akalash commented on code in PR #21833: URL: https://github.com/apache/flink/pull/21833#discussion_r1166866708
########## flink-runtime/src/test/java/org/apache/flink/runtime/taskmanager/TaskTest.java: ########## @@ -1300,9 +1304,7 @@ public TestInvokableCorrect(Environment environment) { public void invoke() {} @Override - public void cancel() { - fail("This should not be called"); Review Comment: For sure, it is true but right now we write to log that the cancellation was unexpected while it was actually expected which leads to confusion. It's why I explicitly added a check that the cancellation don't happen in tests where we don't expect it. -- 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: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org