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

Expose locks and leases to Coprocessors

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.94.2
    • 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:

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

        to RegionServerServices (and hence to HRegionServer)

      Attachments

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

        Activity

          People

            larsh Lars Hofhansl
            larsh Lars Hofhansl
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: