File tree 1 file changed +3
-3
lines changed
test/src/main/java/org/apache/accumulo/test/functional
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -997,9 +997,9 @@ private void testCancelUserCompactionTimeout(boolean timeout) throws Exception {
997
997
Wait .waitFor (() -> {
998
998
var tabletMeta = ((ClientContext ) client ).getAmple ().readTablet (extent );
999
999
var externalCompactions = tabletMeta .getExternalCompactions ();
1000
- assertTrue ( externalCompactions .values ().stream ()
1001
- .allMatch (ec -> ec .getKind () == CompactionKind .SYSTEM )) ;
1002
- return externalCompactions .size () == 1 ;
1000
+ boolean allECAreSystem = externalCompactions .values ().stream ()
1001
+ .allMatch (ec -> ec .getKind () == CompactionKind .SYSTEM );
1002
+ return allECAreSystem && externalCompactions .size () == 1 ;
1003
1003
}, Wait .MAX_WAIT_MILLIS , 10 );
1004
1004
1005
1005
// Wait for the user compaction to now run after the system finishes
You can’t perform that action at this time.
0 commit comments