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

RSRpcServices#openRegion() should handle the case where table descriptor is null

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.0
    • Fix Version/s: 1.3.0, 1.2.4, 1.1.8
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Over in HBASE-16349, Mikhail Antonov pointed me to the failed TestClusterId in Jenkins 1.3 build.
      I ran the test locally with Java 8 and consistently stumbled over timeout in starting the mini cluster:

      2016-10-13 15:41:05,276 INFO  [RpcServer.FifoWFPBQ.priority.handler=5,queue=1,port=59233] regionserver.RSRpcServices(1620): Open hbase:namespace,,1476398463993.                               7ab1d0b3b7be8b9a7ce9af61c29d5342.
      2016-10-13 15:41:05,277 ERROR [RpcServer.FifoWFPBQ.priority.handler=5,queue=1,port=59233] ipc.RpcServer(2320): Unexpected throwable object
      java.lang.NullPointerException
        at org.apache.hadoop.hbase.regionserver.RSRpcServices.openRegion(RSRpcServices.java:1679)
        at org.apache.hadoop.hbase.protobuf.generated.AdminProtos$AdminService$2.callBlockingMethod(AdminProtos.java:22737)
        at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2270)
        at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:123)
        at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:188)
        at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:168)
      

      It turned out that htd for hbase:namespace table was null.

      Once the NPE is fixed, the test passes.

        Attachments

        1. 16830.branch-1.3.txt
          0.8 kB
          Ted Yu
        2. testClusterId-output.txt
          3.96 MB
          Ted Yu
        3. 16830.branch-1.3.txt
          1 kB
          Ted Yu

          Activity

            People

            • Assignee:
              yuzhihong@gmail.com Ted Yu
              Reporter:
              yuzhihong@gmail.com Ted Yu
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: