ArbaazKhan1 commented on code in PR #6173:
URL: https://github.com/apache/accumulo/pull/6173#discussion_r2886165061


##########
test/src/main/java/org/apache/accumulo/test/NamespacesIT.java:
##########
@@ -411,8 +411,12 @@ public void verifyIteratorInheritance() throws Exception {
           EnumSet.allOf(IteratorScope.class));
       c.namespaceOperations().attachIterator(namespace, setting);
       sleepUninterruptibly(2, TimeUnit.SECONDS);
-      var e = assertThrows(AccumuloException.class, () -> 
c.namespaceOperations()
-          .checkIteratorConflicts(namespace, setting, 
EnumSet.allOf(IteratorScope.class)));
+      // conflicting iterator with same name and different priority
+      IteratorSetting conflictingSetting = new 
IteratorSetting(setting.getPriority() + 1,
+          setting.getName(), setting.getIteratorClass());
+      var e = assertThrows(AccumuloException.class,
+          () -> c.namespaceOperations().checkIteratorConflicts(namespace, 
conflictingSetting,
+              EnumSet.allOf(IteratorScope.class)));

Review Comment:
   It is but when running the IT was throwing an error for this test 



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