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

Get with closest_row_before on "hbase:meta" can return empty Cell during region merge/split

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.1
    • 1.4.0, 1.3.2, 1.1.11, 1.2.7
    • regionserver
    • None
    • Linux (16.04.2), MacOS 10.11.6.
      Standalone and distributed HBase setup.

    • Reviewed

    Description

      During region split/merge there's a brief period of time where doing a "Get" with "closest_row_before=true" on "hbase:meta" may return empty "GetResponse.result.cell" field even though parent, splitA and splitB regions are all in "hbase:meta". Both gohbase (https://github.com/tsuna/gohbase) and AsyncHBase (https://github.com/OpenTSDB/asynchbase) interprets this as "TableDoesNotExist", which is returned to the client.

      Here's a gist that reproduces this problem: https://gist.github.com/Timoha/c7a236b768be9220e85e53e1ca53bf96. Note that you have to use older HTable client (I used 1.2.4) as current versions ignore `Get.setClosestRowBefore(bool)` option.

      Attachments

        1. HBASE-18066.branch-1.1.v1.patch
          11 kB
          Zheng Hu
        2. HBASE-18066.branch-1.1.v2.patch
          10 kB
          Zheng Hu
        3. HBASE-18066.branch-1.1.v2.patch
          10 kB
          Zheng Hu
        4. HBASE-18066.branch-1.3.v1.patch
          11 kB
          Duo Zhang
        5. HBASE-18066.branch-1.3.v2.patch
          10 kB
          Zheng Hu
        6. HBASE-18066.branch-1.3.v2.patch
          10 kB
          Zheng Hu
        7. HBASE-18066.branch-1.v1.patch
          11 kB
          Zheng Hu
        8. HBASE-18066.branch-1.v2.patch
          11 kB
          Zheng Hu
        9. HBASE-18066.branch-1.v3.patch
          11 kB
          Michael Stack
        10. HBASE-18066.branch-1.v4.patch
          10 kB
          Duo Zhang
        11. TestGetWithClosestRowBeforeWhenSplit.java
          2 kB
          Zheng Hu

        Issue Links

          Activity

            People

              openinx Zheng Hu
              timoha Andrey Elenskiy
              Votes:
              0 Vote for this issue
              Watchers:
              17 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: