You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "akalash (via GitHub)" <gi...@apache.org> on 2023/04/14 13:55:16 UTC

[GitHub] [flink] akalash commented on a diff in pull request #21833: [FLINK-30852][runtime] Checking task cancelation explicitly rather than failing the cancel method

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-unsubscribe@flink.apache.org

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