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

Remove redundant local locking from PartitionedRegionClear

    XMLWordPrintableJSON

Details

    Description

      Existing behavior:
      PR clear unconditionally acquires a global lock and also acquires local locks on all buckets before doing clear.

      Expected behavior:
      Now that PR clear acquires a global lock, it no longer needs to acquire local locks on all buckets before doing clear.

      Solution:
      Remove the logic taking lock in individual nodes in:

      DistributedRegion.obtainWriteLocksForClear()
      

      Remove:

      if (!localLockedAlready) {
        lockLocallyForClear(getDistributionManager(), getMyId(), regionEvent);
      }
      

      Attachments

        Activity

          People

            klund Kirk Lund
            klund Kirk Lund
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: