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

When a query fails because the region has moved, let the regionserver return the new address to the client



    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.95.2
    • Fix Version/s: 0.95.0
    • Component/s: Client, master, regionserver
    • Labels:


      This is mainly useful when we do a rolling restart. This will decrease the load on the master and the network load.

      Note that a region is not immediately opened after a close. So:

      • it seems preferable to wait before retrying on the other server. An optimisation would be to have an heuristic depending on when the region was closed.
      • during a rolling restart, the server moves the regions then stops. So we may have failures when the server is stopped, and this patch won't help.

      The implementation in the first patch does:

      • on the region move, there is an added parameter on the regionserver#close to say where we are sending the region
      • the regionserver keeps a list of what was moved. Each entry is kept 100 seconds.
      • the regionserver sends a specific exception when it receives a query on a moved region. This exception contains the new address.
      • the client analyses the exeptions and update its cache accordingly...


        1. 5877.v18.patch
          65 kB
          Nicolas Liochon
        2. 5877.v18.patch
          65 kB
          Nicolas Liochon
        3. 5877.v18.patch
          65 kB
          Nicolas Liochon
        4. 5877-v17.txt
          62 kB
          Michael Stack
        5. 5877-v17.txt
          62 kB
          Ted Yu
        6. 5877-v16.txt
          62 kB
          Ted Yu
        7. 5877.v15.patch
          65 kB
          Nicolas Liochon
        8. 5877.v12.patch
          61 kB
          Nicolas Liochon
        9. 5877.v6.patch
          56 kB
          Nicolas Liochon
        10. 5877.v1.patch
          35 kB
          Nicolas Liochon

          Issue Links



              • Assignee:
                nkeywal Nicolas Liochon
                nkeywal Nicolas Liochon
              • Votes:
                0 Vote for this issue
                3 Start watching this issue


                • Created: