You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2022/07/29 00:17:47 UTC
[GitHub] [hudi] danny0405 commented on a diff in pull request #6222: [HUDI-4484] Add default lock config options for flink metadata table
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-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org