-
Type:
Improvement
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 0.94.2
-
Component/s: None
-
Labels:None
-
Hadoop Flags:Reviewed
Currently it is not possible for CP to implement any of checkAndMutate type operations, because coprocessor have no way create a lock, because getLock is private HRegion (interestingly ReleaseLock is public).
In addition it would nice if Coprocessor could hook into the RegionServers' Lease management.
Here I propose two trivial changes:
- Make HRegion.getLock public
- Add
Leases getLeases()
to RegionServerServices (and hence to HRegionServer)