rkhachatryan commented on a change in pull request #16773:
URL: https://github.com/apache/flink/pull/16773#discussion_r689476915
##########
File path:
flink-tests/src/test/java/org/apache/flink/runtime/operators/lifecycle/TestJobExecutor.java
##########
@@ -84,6 +89,28 @@ public TestJobExecutor stopWithSavepoint(TemporaryFolder
folder, boolean withDra
return new TestJobExecutor(steps);
}
+ public TestJobExecutor sendCommand(
+ TestCommandQueue commandQueue,
+ TestCommand testCommand,
+ TestCommandRetention retention) {
+ steps.add(ctx -> commandQueue.add(testCommand, TestCommandTarget.ALL,
retention));
+ return this;
+ }
+
+ public TestJobExecutor waitForTermination() {
+ steps.add(
+ ctx -> {
+ while (!ctx.miniClusterResource
+ .getClusterClient()
+ .getJobStatus(ctx.job)
+ .get()
+ .isGloballyTerminalState()) {
+ Thread.sleep(100);
Review comment:
This will save 99ms at most, or am I missing something?
(I'll change it anyways)
--
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]