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

HBaseAdmin#createTable could fail if region splits too fast

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.98.0, 0.96.1, 0.94.15
    • Client
    • None
    • Reviewed

    Description

      TestAdmin.testCreateBadTables failed on me once with the following exception:

      2013-11-25 13:37:27,832 ERROR [0] server.NIOServerCnxnFactory$1(44): Thread Thread[0,5,main] died
      java.lang.RuntimeException: Failed threaded create0
      	at org.apache.hadoop.hbase.client.TestAdmin$3.run(TestAdmin.java:1070)
      Caused by: org.apache.hadoop.hbase.client.RegionOfflineException: Only 2 of 1 regions are online; retries exhausted.
      	at org.apache.hadoop.hbase.client.HBaseAdmin.createTable(HBaseAdmin.java:455)
      	at org.apache.hadoop.hbase.client.HBaseAdmin.createTable(HBaseAdmin.java:348)
      	at org.apache.hadoop.hbase.client.TestAdmin$3.run(TestAdmin.java:1065)
      

      It seems one region is split while we are still expect the region count to be 1.

      Attachments

        1. trunk-10026.patch
          0.8 kB
          Jimmy Xiang
        2. 0.94-10026.patch
          0.8 kB
          Jimmy Xiang

        Activity

          People

            jxiang Jimmy Xiang
            jxiang Jimmy Xiang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: