[infinispan-issues] [JBoss JIRA] (ISPN-4763) Create a new status for when put/putIfAbsent/replace return the previous value
Galder Zamarreño (JIRA)
issues at jboss.org
Wed Sep 24 17:24:02 EDT 2014
Galder Zamarreño created ISPN-4763:
--------------------------------------
Summary: Create a new status for when put/putIfAbsent/replace return the previous value
Key: ISPN-4763
URL: https://issues.jboss.org/browse/ISPN-4763
Project: Infinispan
Issue Type: Enhancement
Components: Remote Protocols
Reporter: Galder Zamarreño
Assignee: Galder Zamarreño
Fix For: 7.0.0.CR1, 7.0.0.Final
With the current protocol way of handling previous, the client needs to track the request's return previous flag value when it needs to decide whether to decode the previous value in the response or it.
Doing this ties the decoder with the request made. It would be better for the put/putIfAbsent/replace operations to provide a different status code, say 0x04 for when the operation succeeds and the previous value follows. By doing this, the decode has all it needs to decode in the actual response, rather than having to remember what the request flag was.
This can easily be fixed in Hot Rod 2.0 protocol.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
More information about the infinispan-issues
mailing list