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

PutIfAbsent can succeed in scattered cache on non-null entry

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 9.1.0.Final
    • Core
    • None
    • Hide
      Actually this bug applies only when ISPN-8078 is in place; I'll merge the fix with ISPN-8078 PR instead.
      Show
      Actually this bug applies only when ISPN-8078 is in place; I'll merge the fix with ISPN-8078 PR instead.

    Description

      When the putIfAbsent is a retry, the value/metadata in RepeatableReadEntry is reset to the first loaded version. However if this command caused a prefetch from remote node after finding RemoteMetadata locally, the first loaded version is the remote metadata and the value updated by prefetch is reset, despite the prefetched value being already inserted into DC. The command sees null as cache value and since the seen version matches to the version in DC, the write is allowed.

      Attachments

        Issue Links

          Activity

            People

              rvansa1@redhat.com Radim Vansa (Inactive)
              rvansa1@redhat.com Radim Vansa (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: