Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
Description
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)