danny0405 commented on code in PR #6222: URL: https://github.com/apache/hudi/pull/6222#discussion_r932769944
########## hudi-flink-datasource/hudi-flink/src/test/java/org/apache/hudi/table/ITTestHoodieDataSource.java: ########## @@ -236,11 +236,16 @@ void testStreamWriteBatchReadOptimized() { .option(FlinkOptions.QUERY_TYPE, FlinkOptions.QUERY_TYPE_READ_OPTIMIZED) .option(FlinkOptions.COMPACTION_DELTA_COMMITS, 1) .option(FlinkOptions.COMPACTION_TASKS, 1) + // disable the metadata table because + // the lock conflicts resolution takes time + .option(FlinkOptions.METADATA_ENABLED, false) .end(); streamTableEnv.executeSql(hoodieTableDDL); String insertInto = "insert into t1 select * from source"; execInsertSql(streamTableEnv, insertInto); + // give some buffer time for finishing the async compaction tasks + TimeUnit.SECONDS.sleep(5); Review Comment: Want to, but flink had no good manner for waiting for all the async tasks finish. -- 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: commits-unsubscr...@hudi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org