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

Return value of Cache.remove(key) not consistent in transactional context

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      I have a scenario where multiple threads attempt to remove the same key concurrently via "cache.remove(key)" (each thread having explicitly started a transaction).
      I expect only one thread to succeed, ie. only one invocation of "cache.remove(key)" to return a non-null value.
      But that is not the case, the return value of "cache.remove(key)" is non-null for more than one thread.

      In that sense, "cache.remove(key)" seems to behave differently from "cache.remove(key, value)".

      The bug can be reproduced by using a test analogous to the one in "DummyTxTest" (ISPN-2077), but using "cache.remove(key)" instead of "cache.remove(key, value)".

              rh-ee-galder Galder ZamarreƱo
              c_lohmn Carsten Lohmann (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: