Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-1008

Conditional replace/remove not returning previous value in Java Hot Rod client

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 4.2.1.FINAL, 5.0.0.ALPHA3
    • Remote Protocols
    • None

    Description

      The following RemoteCache APIs (and their variants) are not correctly defined:

      boolean replaceWithVersion(K key, V newValue, long version);
      boolean removeWithVersion(K key, long version);

      The protocol allows for the previous value to be returned if Flag.FORCE_RETURN_VALUE is used, and these APIs do not accomodate that.

      We should think whether it makes sense to keep the protocol as is. Does returning previous value help at all with conditional operations like these?

      Attachments

        Activity

          People

            mircea.markus Mircea Markus (Inactive)
            rh-ee-galder Galder ZamarreƱo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: