You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "1996fanrui (via GitHub)" <gi...@apache.org> on 2023/07/25 02:11:59 UTC
[GitHub] [flink] 1996fanrui commented on a diff in pull request #23059: [FLINK-32655][runtime] Fix checkpoint aborted message being swallowed by RecreateOnResetOperatorCoordinator
1996fanrui commented on code in PR #23059:
URL: https://github.com/apache/flink/pull/23059#discussion_r1272922054
##########
flink-runtime/src/test/java/org/apache/flink/runtime/operators/coordination/RecreateOnResetOperatorCoordinatorTest.java:
##########
@@ -264,6 +264,19 @@ public void testConsecutiveResetToCheckpoint() throws Exception {
"Timed out when waiting for the coordinator to close.");
}
+ @Test
+ public void testNotifyCheckpointAbortedSuccess() throws Exception {
+ TestingCoordinatorProvider provider = new TestingCoordinatorProvider(null);
+ MockOperatorCoordinatorContext context =
+ new MockOperatorCoordinatorContext(OPERATOR_ID, NUM_SUBTASKS);
+ RecreateOnResetOperatorCoordinator coordinator = createCoordinator(provider, context);
+ TestingOperatorCoordinator internalCoordinatorAfterReset =
+ getInternalCoordinator(coordinator);
+
+ coordinator.notifyCheckpointAborted(1L);
+ assertThat(internalCoordinatorAfterReset.getLastCheckpointAborted()).isEqualTo(1L);
Review Comment:
nits:
```suggestion
assertThat(internalCoordinatorAfterReset.getLastCheckpointAborted()).isOne();
```
--
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