[ https://issues.apache.org/jira/browse/GEODE-9195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17509124#comment-17509124 ]
ASF subversion and git services commented on GEODE-9195: -------------------------------------------------------- Commit 5fef11a8ab3eee070e1ad1ea3c8fbd3e6d23a8f9 in geode's branch refs/heads/feature/GEODE-7665 from Kirk Lund [ https://gitbox.apache.org/repos/asf?p=geode.git;h=5fef11a ] GEODE-9195: Remove PR clear local locking (#6410) Unit test changes in BucketRegion and DistributedRegion. Unit test most of PartitionedRegionClearMessage. > Remove redundant local locking from PartitionedRegionClear > ---------------------------------------------------------- > > Key: GEODE-9195 > URL: https://issues.apache.org/jira/browse/GEODE-9195 > Project: Geode > Issue Type: Improvement > Components: regions > Reporter: Kirk Lund > Assignee: Kirk Lund > Priority: Major > Labels: GeodeOperationAPI, pull-request-available > > 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: > {noformat} > DistributedRegion.obtainWriteLocksForClear() > {noformat} > Remove: > {noformat} > if (!localLockedAlready) { > lockLocallyForClear(getDistributionManager(), getMyId(), regionEvent); > } > {noformat} -- This message was sent by Atlassian Jira (v8.20.1#820001)