1
0

[HUDI-2206] Fix checkpoint blocked because getLastPendingInstant() action after than restoreWriteMetadata() action (#3326)

This commit is contained in:
swuferhong
2021-07-22 16:35:07 +08:00
committed by GitHub
parent 151f22e43a
commit fe5d2e7f53

View File

@@ -207,6 +207,7 @@ public class StreamWriteFunction<K, I, O>
TypeInformation.of(WriteMetadataEvent.class)
));
this.currentInstant = this.writeClient.getLastPendingInstant(this.actionType);
if (context.isRestored()) {
restoreWriteMetadata();
} else {
@@ -214,7 +215,6 @@ public class StreamWriteFunction<K, I, O>
}
// blocks flushing until the coordinator starts a new instant
this.confirming = true;
this.currentInstant = this.writeClient.getLastPendingInstant(this.actionType);
}
@Override