tkalkirill commented on code in PR #2500:
URL: https://github.com/apache/ignite-3/pull/2500#discussion_r1319429370


##########
modules/runner/src/integrationTest/java/org/apache/ignite/internal/runner/app/ItIgniteNodeRestartTest.java:
##########
@@ -1229,30 +1222,9 @@ private void createTableWithData(List<IgniteImpl> nodes, 
String name, int replic
     private void waitForIndex(Collection<IgniteImpl> nodes, String indexName) 
throws InterruptedException {
         // FIXME: Wait for the index to be created on all nodes,
         //  this is a workaround for 
https://issues.apache.org/jira/browse/IGNITE-18733 to avoid missed updates to 
the PK index.
-
-        Stream<TablesConfiguration> partialTablesConfiguration = 
Stream.empty();
-
-        if (!partialNodes.isEmpty()) {
-            partialTablesConfiguration = partialNodes.stream()
-                    .flatMap(it -> it.startedComponents().stream())
-                    .filter(ConfigurationManager.class::isInstance)
-                    .map(c -> ((ConfigurationManager) 
c).configurationRegistry().getConfiguration(TablesConfiguration.KEY))
-                    .filter(Objects::nonNull)
-                    .findAny()
-                    .map(Stream::of)
-                    .orElseThrow();
-        }
-
-        Stream<TablesConfiguration> nodesTablesConfigurations = nodes.stream()
-                .filter(Objects::nonNull)
-                .map(node -> 
node.clusterConfiguration().getConfiguration(TablesConfiguration.KEY));
-
-        List<TablesConfiguration> tablesConfigurations = 
Stream.concat(nodesTablesConfigurations, partialTablesConfiguration)
-                .collect(Collectors.toList());
-
         assertTrue(waitForCondition(
-                () -> tablesConfigurations.stream()
-                        .map(cfg -> cfg.indexes().get(indexName.toUpperCase()))
+                () -> nodes.stream()

Review Comment:
   Since this is not a very useful code, there is already a TODO to fix it 
above.



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

Reply via email to