[ 
https://issues.apache.org/jira/browse/GEODE-9195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kirk Lund resolved GEODE-9195.
------------------------------
    Resolution: Fixed

Merged to feature/GEODE-7665


> 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)

Reply via email to