EdColeman commented on code in PR #2569:
URL: https://github.com/apache/accumulo/pull/2569#discussion_r869674002


##########
server/manager/src/main/java/org/apache/accumulo/manager/ManagerClientServiceHandler.java:
##########
@@ -397,21 +399,25 @@ private void alterNamespaceProperty(TCredentials c, 
String namespace, String pro
 
     try {
       if (value == null) {
-        NamespacePropUtil.removeNamespaceProperty(manager.getContext(), 
namespaceId, property);
+        NamespacePropUtil.factory().removeProperties(manager.getContext(), 
namespaceId,
+            List.of(property));
       } else {
-        NamespacePropUtil.setNamespaceProperty(manager.getContext(), 
namespaceId, property, value);
+        NamespacePropUtil.factory().setProperties(manager.getContext(), 
namespaceId,
+            Map.of(property, value));
+      }
+    } catch (PropStoreException ex) {
+      if (ex.getCause() instanceof KeeperException.NoNodeException) {

Review Comment:
   The PropStoreException was removed and IllegalStateException is used instead



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to