[ https://issues.apache.org/jira/browse/GEODE-9195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17357644#comment-17357644 ]
ASF subversion and git services commented on GEODE-9195: -------------------------------------------------------- Commit a4e1128ffbb677cd9a842b6e8edceb1927894cc4 in geode's branch refs/heads/feature/GEODE-7665 from Kirk Lund [ https://gitbox.apache.org/repos/asf?p=geode.git;h=a4e1128 ] 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.3.4#803005)