tillrohrmann commented on a change in pull request #14999:
URL: https://github.com/apache/flink/pull/14999#discussion_r582982487
##########
File path:
flink-runtime/src/test/java/org/apache/flink/runtime/scheduler/DefaultSchedulerTest.java
##########
@@ -968,6 +982,75 @@ public void testExceptionHistoryWithRestartableFailure() {
lessThanOrEqualTo(updateStateTriggeringJobFailureTimeframe.upperEndpoint()));
}
+ @Test(expected = IllegalStateException.class)
+ public void testRestoringModifiedJobFromSavepointFails() throws Exception {
+ // create savepoint data
+ final long savepointId = 42L;
+ final OperatorID operatorID = new OperatorID();
+ final File savepointFile =
+ TestUtils.createSavepointWithOperatorState(
+ TEMPORARY_FOLDER.newFile(), savepointId, operatorID);
+
+ // set savepoint settings which don't allow non restored state
+ final SavepointRestoreSettings savepointRestoreSettings =
+
SavepointRestoreSettings.forPath(savepointFile.getAbsolutePath(), false);
+
+ // create a new operator
Review comment:
Good point. Will add 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.
For queries about this service, please contact Infrastructure at:
[email protected]