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

Renew Scanner Lease without advancing the RegionScanner

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.98.13, 1.0.2, 1.2.0, 1.1.1, 2.0.0
    • Component/s: None
    • Labels:
      None
    • Release Note:
      Adds a renewLease call to ClientScanner

      Description

      We have a usecase (for Phoenix) where we want to let the server know that the client is still around. Like a client-side heartbeat.

      Doing a full heartbeat is complicated, but we could add the ability to make scanner call with caching set to 0. The server already does the right thing (it renews the lease, but does not advance the scanner).

      It looks like the client (ScannerCallable) also does the right thing. We cannot break ResultScanner before HBase 2.0, but we can add a renewLease() method to AbstractClientScaner. Phoenix (or any other caller) can then cast to ClientScanner and call that method to ensure we renew the lease on the server.

      It would be a simple and fully backwards compatible change. James Taylor

      Comments?

        Attachments

        1. 13333-0.98.txt
          5 kB
          Lars Hofhansl
        2. 13333-master.txt
          5 kB
          Lars Hofhansl

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: