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

Namespace operations should throw clean exceptions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.98.0, 0.96.0
    • master
    • None
    • Reviewed

    Description

      Some of the namespace operations does not throw clean exceptions mimicking table exceptions (TableNotFoundException, etc).

      For example:

      hbase(main):007:0> describe_namespace 'non_existing_namespace'
      
      ERROR: java.io.IOException
      	at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2117)
      	at org.apache.hadoop.hbase.ipc.RpcServer$CallRunner.run(RpcServer.java:1816)
      	at org.apache.hadoop.hbase.ipc.SimpleRpcScheduler.consumerLoop(SimpleRpcScheduler.java:165)
      	at org.apache.hadoop.hbase.ipc.SimpleRpcScheduler.access$0(SimpleRpcScheduler.java:161)
      	at org.apache.hadoop.hbase.ipc.SimpleRpcScheduler$1.run(SimpleRpcScheduler.java:113)
      	at java.lang.Thread.run(Thread.java:680)
      Caused by: java.lang.NullPointerException
      	at org.apache.hadoop.hbase.protobuf.ProtobufUtil.toProtoNamespaceDescriptor(ProtobufUtil.java:2138)
      	at org.apache.hadoop.hbase.master.HMaster.getNamespaceDescriptor(HMaster.java:3029)
      	at org.apache.hadoop.hbase.protobuf.generated.MasterAdminProtos$MasterAdminService$2.callBlockingMethod(MasterAdminProtos.java:32904)
      	at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2079)
      	... 5 more
      

      We can clean up the exceptions thrown from ns commands.

      Attachments

        1. 9510v4.txt
          20 kB
          Michael Stack
        2. 9510v4.txt
          17 kB
          Michael Stack
        3. hbase-9510_v1.patch
          21 kB
          Enis Soztutar
        4. hbase-9510_v2.patch
          21 kB
          Enis Soztutar
        5. hbase-9510_v3.patch
          22 kB
          Enis Soztutar

        Activity

          People

            enis Enis Soztutar
            enis Enis Soztutar
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: