Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-2661

CacheListener gets invoked when an non-existent entry is removed using removeAll

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2.0
    • regions

    Description

      PROBLEM: CacheListener.afterDestroy is invoked for an entry which does not exist.
      FIX: Make entry is not a re-destroyed entry.

      When a non-existing entry is removed using removeAll from PartitionedRegion (need to verify this on replicated), the CacheListener's aftrerDestroy callback method gets invoked. The afterDestroy should not be invoked for entry which is not present.

      How to reproduce.
      region.put (k1, v1)
      region.put (k2, v2)

      // Remove all from client
      List keys= Arrays.asList("k1", "k2", "k8");
      region.removeAll(l);

      The afterDestroy call back will be invoked for k8. On server.

      Attachments

        Activity

          People

            lgallinat Lynn Gallinat
            agingade Anilkumar Gingade
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: