Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-6522

Expose locks and leases to Coprocessors

    Details

    • 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

      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:

      1. Make HRegion.getLock public
      2. Add
        Leases getLeases()

        to RegionServerServices (and hence to HRegionServer)

        Attachments

        1. 6522-v2.txt
          6 kB
          Lars Hofhansl
        2. 6522.txt
          2 kB
          Lars Hofhansl

          Activity

            People

            • Assignee:
              lhofhansl Lars Hofhansl
              Reporter:
              lhofhansl Lars Hofhansl
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: