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

Remove redundant local locking from PartitionedRegionClear

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

            • Assignee:
              klund Kirk Lund
              Reporter:
              klund Kirk Lund

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment