sashapolo commented on code in PR #5551: URL: https://github.com/apache/ignite-3/pull/5551#discussion_r2026617075
########## modules/runner/src/integrationTest/java/org/apache/ignite/internal/runner/app/ItIgniteInMemoryNodeRestartTest.java: ########## @@ -249,8 +259,13 @@ private static boolean solePartitionAssignmentsContain(IgniteImpl restartingNode } private static boolean isRaftNodeStarted(TableViewInternal table, Loza loza) { - return loza.localNodes().stream().anyMatch(nodeId -> - nodeId.groupId() instanceof TablePartitionId && ((TablePartitionId) nodeId.groupId()).tableId() == table.tableId()); + Predicate<RaftNodeId> predicate = enabledColocation() + ? nodeId -> nodeId.groupId() instanceof ZonePartitionId Review Comment: Please rewrite this using a normal `if`, this is very hard to read -- 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...@ignite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org