xicm commented on code in PR #5526:
URL: https://github.com/apache/hudi/pull/5526#discussion_r867313899
##########
hudi-flink-datasource/hudi-flink/src/test/java/org/apache/hudi/table/ITTestHoodieDataSource.java:
##########
@@ -1358,7 +1358,11 @@ private List<Row> execSelectSql(TableEnvironment tEnv,
String select, String sin
TableResult tableResult = tEnv.executeSql("insert into sink " + select);
// wait for the timeout then cancels the job
TimeUnit.SECONDS.sleep(timeout);
- tableResult.getJobClient().ifPresent(JobClient::cancel);
+ try {
+ tableResult.getJobClient().ifPresent(JobClient::cancel);
+ } catch (IllegalStateException e) {
+ log.info("MiniCluster has already been shut down, do nothing.");
+ }
Review Comment:
I found the testWriteAndReadDebeziumJson is flaky a few days ago,it resolved
with my changes. But I haven't reproduced it today. It seems I haven't found
the root cause.
--
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]