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

Concurrent access and removal of an AtomicMap should result in an IllegalStateException

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 5.0.0.CR3, 5.0.0.FINAL
    • 4.2.1.FINAL
    • Core
    • None

    Description

      Currently, we see:

      tx.begin();
      Map<?,?> map = AtomicMapLookup.getAtomicMap(cache, key);
      assert map.size() == 3;
      AtomicMapLookup.removeAtomicMap(cache, key);
      assert map.size() == 0;
      tx.commit();
      

      Access to the map after its removal is invalid, since even storing data here would be lost.

      An IllegalStateException should be thrown if one attempts to access or manipulate an AtomicMap after the AtomicMap has been removed from the cache, since this represents a stale handle.

      Attachments

        Activity

          People

            manik_jira Manik Surtani (Inactive)
            manik_jira Manik Surtani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: