zoltar9264 commented on code in PR #22669:
URL: https://github.com/apache/flink/pull/22669#discussion_r1243650264
##########
flink-state-backends/flink-statebackend-changelog/src/main/java/org/apache/flink/state/changelog/ChangelogKeyedStateBackend.java:
##########
@@ -758,6 +762,15 @@ private ChangelogSnapshotState completeRestore(
*/
@Override
public Optional<MaterializationRunnable> initMaterialization() throws
Exception {
+ if (materializedId > 0
+ && lastConfirmedMaterializationId < materializedId - 1
+ && lastFailedMaterializationId < materializedId - 1) {
+ LOG.info(
+ "materialization:{} not confirmed or failed or cancelled,
skip trigger new one.",
+ materializedId - 1);
+ return Optional.empty();
+ }
Review Comment:
1. done.
2. done.
3. actually, check of `materializaedId > 0` is meaningless, this is my
mistake, deleted 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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]