zentol commented on a change in pull request #8820: [FLINK-12916][tests] Retry 
cancelWithSavepoint on cancellation barrier in AbstractOperatorRestoreTestBase
URL: https://github.com/apache/flink/pull/8820#discussion_r303422653
 
 

 ##########
 File path: 
flink-tests/src/test/java/org/apache/flink/test/state/operator/restore/AbstractOperatorRestoreTestBase.java
 ##########
 @@ -66,12 +72,16 @@
        private static final int NUM_TMS = 1;
        private static final int NUM_SLOTS_PER_TM = 4;
        private static final Duration TEST_TIMEOUT = Duration.ofSeconds(10000L);
-       private static final Pattern 
PATTERN_CANCEL_WITH_SAVEPOINT_TOLERATED_EXCEPTIONS = Pattern
-               .compile(
-                       "(was not running)" +
-                               "|(Not all required tasks are currently 
running)" +
-                               "|(Checkpoint was declined \\(tasks not 
ready\\))"
-               );
+
+       private static final Pattern 
PATTERN_CANCEL_WITH_SAVEPOINT_TOLERATED_EXCEPTIONS = Pattern.compile(
+               Stream.of(
+                       TRIGGER_SAVEPOINT_FAILURE.message(),
 
 Review comment:
   I'm not sold on having such a generic exception be added to the set of 
tolerated exceptions.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to