Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
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); }