HBASE-9251. list_namespace_tables seems to fail
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1515185 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b9e92fdf6f
commit
dec9876d5f
|
@ -3133,7 +3133,7 @@ MasterServices, Server {
|
|||
public List<TableName> listTableNamesByNamespace(String name) throws IOException {
|
||||
List<TableName> tableNames = Lists.newArrayList();
|
||||
for (HTableDescriptor descriptor: tableDescriptors.getByNamespace(name).values()) {
|
||||
tableNames.add(TableName.valueOf(name, descriptor.getNameAsString()));
|
||||
tableNames.add(descriptor.getTableName());
|
||||
}
|
||||
return tableNames;
|
||||
}
|
||||
|
|
|
@ -77,6 +77,14 @@ module Hbase
|
|||
assert(!admin.list.member?('hbase:meta'))
|
||||
end
|
||||
|
||||
define_test "list_namespace_tables for the system namespace should return a list of tables" do
|
||||
assert(admin.list_namespace_tables('hbase').count > 0)
|
||||
end
|
||||
|
||||
define_test "list_namespace_tables for the default namespace should return a list of tables" do
|
||||
assert(admin.list_namespace_tables('default').count > 0)
|
||||
end
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
define_test "flush should work" do
|
||||
|
|
Loading…
Reference in New Issue