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

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

XMLWordPrintable

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

      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.

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

                Created:
                Updated:
                Resolved: