rkhachatryan commented on a change in pull request #13351:
URL: https://github.com/apache/flink/pull/13351#discussion_r496662041



##########
File path: 
flink-streaming-java/src/test/java/org/apache/flink/streaming/util/StreamTaskUtil.java
##########
@@ -29,9 +30,10 @@
  */
 public class StreamTaskUtil {
 
-       public static void waitTaskIsRunning(StreamTask<?, ?> task, 
CompletableFuture<Void> taskInvocation) throws InterruptedException {
+       public static void waitTaskIsRunning(StreamTask<?, ?> task, 
CompletableFuture<Void> taskInvocation) throws InterruptedException, 
ExecutionException {
                while (!task.isRunning()) {
                        if (taskInvocation.isDone()) {
+                               taskInvocation.get();

Review comment:
       I'd prefer not to wrap it as it's more straightforward to me both in 
code and in the logs.




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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to