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


##########
core/src/main/java/org/apache/accumulo/core/fate/Fate.java:
##########
@@ -114,8 +116,8 @@ public enum FateOperation {
     TABLE_TABLET_AVAILABILITY(TFateOperation.TABLE_TABLET_AVAILABILITY);
 
     private final TFateOperation top;
-    private static final Set<FateOperation> nonThriftOps = 
Collections.unmodifiableSet(
-        EnumSet.of(COMMIT_COMPACTION, SHUTDOWN_TSERVER, SYSTEM_SPLIT, 
SYSTEM_MERGE));
+    private static final Set<FateOperation> nonThriftOps = 
Arrays.stream(FateOperation.values())
+        .filter(fateOp -> fateOp.top == 
null).collect(Collectors.toUnmodifiableSet());

Review Comment:
   Tried this since it looked more succinct, but removeIf returns boolean not 
set



-- 
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: notifications-unsubscr...@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to