ctubbsii commented on a change in pull request #332: ACCUMULO-XXXX Use the 
hadoop3 shaded jars
URL: https://github.com/apache/accumulo/pull/332#discussion_r155415703
 
 

 ##########
 File path: 
server/monitor/src/test/java/org/apache/accumulo/monitor/util/AccumuloMonitorAppenderTest.java
 ##########
 @@ -174,11 +175,15 @@ private static boolean 
verifyAppender(AccumuloMonitorAppender parent, String new
     if (childAppenders == null || !childAppenders.hasMoreElements()) {
       return false;
     }
-    AppenderSkeleton child = (AppenderSkeleton) childAppenders.nextElement();
-    if (childAppenders.hasMoreElements()) {
-      Assert.fail("Appender should never have more than one child");
+    try {
+      AppenderSkeleton child = (AppenderSkeleton) childAppenders.nextElement();
+      if (childAppenders.hasMoreElements()) {
+        Assert.fail("Appender should never have more than one child");
+      }
+      return ("Appender for " + newLocName).equals(child.getName());
+    } catch (NoSuchElementException e) {
 
 Review comment:
   Sounds like the thing you mentioned on 
https://issues.apache.org/jira/browse/ACCUMULO-4409
   Just checking that it's not something new. :smile:

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to