[ https://issues.apache.org/jira/browse/HBASE-9421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13757934#comment-13757934 ]
Hudson commented on HBASE-9421: ------------------------------- SUCCESS: Integrated in HBase-TRUNK #4463 (See [https://builds.apache.org/job/HBase-TRUNK/4463/]) HBASE-9421 Provide better error message when dropping non-existent namespace (Ted Yu) (tedyu: rev 1520043) * /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/master/TableNamespaceManager.java > Provide better error message when dropping non-existent namespace > ----------------------------------------------------------------- > > Key: HBASE-9421 > URL: https://issues.apache.org/jira/browse/HBASE-9421 > Project: HBase > Issue Type: Bug > Reporter: Ted Yu > Assignee: Ted Yu > Priority: Minor > Fix For: 0.98.0 > > Attachments: 9421-v1.txt > > > If a non-existent namespace is dropped, FileNotFoundException is thrown. > There should be better error message like "namespace does not exist" > {code} > hbase(main):002:0> drop_namespace 'hi' > ERROR: java.io.FileNotFoundException: File > hdfs://h.com:8020/apps/hbase/data/data/hi does not exist. > at > org.apache.hadoop.hdfs.DistributedFileSystem.listStatusInternal(DistributedFileSystem.java:656) > at > org.apache.hadoop.hdfs.DistributedFileSystem.access$600(DistributedFileSystem.java:92) > at > org.apache.hadoop.hdfs.DistributedFileSystem$14.doCall(DistributedFileSystem.java:714) > at > org.apache.hadoop.hdfs.DistributedFileSystem$14.doCall(DistributedFileSystem.java:710) > at > org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:78) > at > org.apache.hadoop.hdfs.DistributedFileSystem.listStatus(DistributedFileSystem.java:710) > at org.apache.hadoop.fs.FileSystem.listStatus(FileSystem.java:1478) > at org.apache.hadoop.fs.FileSystem.listStatus(FileSystem.java:1518) > at > org.apache.hadoop.hbase.util.FSUtils.getLocalTableDirs(FSUtils.java:1316) > at > org.apache.hadoop.hbase.util.FSTableDescriptors.getByNamespace(FSTableDescriptors.java:222) > at > org.apache.hadoop.hbase.master.HMaster.listTableDescriptorsByNamespace(HMaster.java:3121) > at > org.apache.hadoop.hbase.master.TableNamespaceManager.remove(TableNamespaceManager.java:158) > at > org.apache.hadoop.hbase.master.HMaster.deleteNamespace(HMaster.java:3106) > at > org.apache.hadoop.hbase.master.HMaster.deleteNamespace(HMaster.java:3000) > at > org.apache.hadoop.hbase.protobuf.generated.MasterAdminProtos$MasterAdminService$2.callBlockingMethod(MasterAdminProtos.java:32902) > at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2147) > at > org.apache.hadoop.hbase.ipc.RpcServer$Handler.run(RpcServer.java:1854) > Here is some help for this command: > Drop the named namespace. The namespace must be empty. > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira