wenbingshen commented on code in PR #10767:
URL: https://github.com/apache/hudi/pull/10767#discussion_r1508546818


##########
hudi-flink-datasource/hudi-flink/src/test/java/org/apache/hudi/sink/utils/TestFunctionWrapper.java:
##########
@@ -82,6 +82,14 @@ default void coordinatorFails() throws Exception {
     throw new UnsupportedOperationException();
   }
 
+  /**
+   * Triggers Job level fail, so the coordinator need re-create a new instance.
+   * @throws Exception
+   */
+  default void coordinatorFailsAndRenewOne() throws Exception {
+    throw new UnsupportedOperationException();
+  }
+

Review Comment:
   Triggers Job level fail. During the process of simulating Job restart, we 
need to reinitialize a new coordinator, so that the coordinator's instant will 
be initialized to BOOTSTRAP_INSTANT. Otherwise, the old coordinator caches the 
old instant, which will affect the test results.



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