This is an automated email from the ASF dual-hosted git repository.

edcoleman pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo.git


The following commit(s) were added to refs/heads/main by this push:
     new 7e6df2f918 Add namespace or table id to config check string (#3158)
7e6df2f918 is described below

commit 7e6df2f918a73856c1d8f33380f27f6ef75a1074
Author: EdColeman <d...@etcoleman.com>
AuthorDate: Tue Jan 10 11:03:32 2023 -0500

    Add namespace or table id to config check string (#3158)
---
 .../org/apache/accumulo/server/conf/ServerConfigurationFactory.java  | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git 
a/server/base/src/main/java/org/apache/accumulo/server/conf/ServerConfigurationFactory.java
 
b/server/base/src/main/java/org/apache/accumulo/server/conf/ServerConfigurationFactory.java
index bd2d0b1ace..8688636102 100644
--- 
a/server/base/src/main/java/org/apache/accumulo/server/conf/ServerConfigurationFactory.java
+++ 
b/server/base/src/main/java/org/apache/accumulo/server/conf/ServerConfigurationFactory.java
@@ -105,7 +105,8 @@ public class ServerConfigurationFactory extends 
ServerConfiguration {
         context.getPropStore().registerAsListener(TablePropKey.of(context, 
tableId), deleteWatcher);
         var conf =
             new TableConfiguration(context, tableId, 
getNamespaceConfigurationForTable(tableId));
-        ConfigCheckUtil.validate(conf, tableId.toString());
+        ConfigCheckUtil.validate(conf, "table id: " + tableId.toString());
+
         return conf;
       }
       return null;
@@ -129,7 +130,7 @@ public class ServerConfigurationFactory extends 
ServerConfiguration {
       context.getPropStore().registerAsListener(NamespacePropKey.of(context, 
namespaceId),
           deleteWatcher);
       var conf = new NamespaceConfiguration(context, namespaceId, 
getSystemConfiguration());
-      ConfigCheckUtil.validate(conf, namespaceId.toString());
+      ConfigCheckUtil.validate(conf, "namespace id: " + 
namespaceId.toString());
       return conf;
     });
   }

Reply via email to