rpuch commented on code in PR #3424:
URL: https://github.com/apache/ignite-3/pull/3424#discussion_r1531564021


##########
modules/sql-engine/src/integrationTest/java/org/apache/ignite/internal/sql/engine/ItIndexDdlTest.java:
##########
@@ -98,4 +114,52 @@ private static void tryToCreateIndex(String tableName, 
String indexName, boolean
     private static void tryToDropIndex(String indexName, boolean 
failIfNotExist) {
         sql(String.format("DROP INDEX %s", failIfNotExist ? indexName : "IF 
EXISTS " + indexName));
     }
+
+    private static <T> T preventingIndexBuild(Supplier<T> supplier) {
+        return 
CLUSTER.aliveNode().transactions().runInTransaction((Function<Transaction, T>) 
tx -> supplier.get());
+    }
+
+    @Test
+    public void createIndexFutureCompletesWhenIndexBecomesAvailable() {

Review Comment:
   I added another test with production-default cluster configuration 
(including DD=1s) that uses an index right after the DDL returns.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to