kevinrr888 commented on code in PR #6040:
URL: https://github.com/apache/accumulo/pull/6040#discussion_r2687632600


##########
core/src/main/java/org/apache/accumulo/core/client/admin/NewTableConfiguration.java:
##########
@@ -199,29 +215,51 @@ public Map<String,String> getProperties() {
       // check the properties for conflicts with default iterators
       var defaultIterSettings = 
IteratorConfigUtil.getInitialTableIteratorSettings();
       // if a default prop already exists, don't want to consider that a 
conflict
-      var noDefaultsPropMap = new HashMap<>(propertyMap);
-      noDefaultsPropMap.entrySet().removeIf(entry -> 
initTableProps.get(entry.getKey()) != null
-          && initTableProps.get(entry.getKey()).equals(entry.getValue()));
-      defaultIterSettings.forEach((setting, scopes) -> {
+      for (var defaultIterSetting : defaultIterSettings.entrySet()) {
+        var setting = defaultIterSetting.getKey();
+        var scopes = defaultIterSetting.getValue();
         try {
-          TableOperationsHelper.checkIteratorConflicts(noDefaultsPropMap, 
setting, scopes);
+          TableOperationsHelper.checkIteratorConflicts(propertyMap, setting, 
scopes);
         } catch (AccumuloException e) {
-          throw new IllegalStateException(String.format(
+          throw new AccumuloException(String.format(
               "conflict with default table iterator: scopes: %s setting: %s", 
scopes, setting), e);
         }

Review Comment:
   Fixed in cb2eccb02a46330efdc73a027c6806f22c58e781



-- 
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