diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/NamespaceExistException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/NamespaceExistException.java index 23fa130092b..5263523417e 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/NamespaceExistException.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/NamespaceExistException.java @@ -31,7 +31,7 @@ public class NamespaceExistException extends DoNotRetryIOException { public NamespaceExistException() { } - public NamespaceExistException(String namespace) { - super("Namespace " + namespace + " already exists"); + public NamespaceExistException(String msg) { + super(msg); } } diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/CreateNamespaceProcedure.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/CreateNamespaceProcedure.java index f0d0af8c537..5eb56f5456c 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/CreateNamespaceProcedure.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/CreateNamespaceProcedure.java @@ -192,7 +192,7 @@ public class CreateNamespaceProcedure */ private void prepareCreate(final MasterProcedureEnv env) throws IOException { if (getTableNamespaceManager(env).doesNamespaceExist(nsDescriptor.getName())) { - throw new NamespaceExistException(nsDescriptor.getName()); + throw new NamespaceExistException("Namespace " + nsDescriptor.getName() + " already exists"); } getTableNamespaceManager(env).validateTableAndRegionCount(nsDescriptor); }