[HUDI-2206] Fix checkpoint blocked because getLastPendingInstant() action after than restoreWriteMetadata() action (#3326)
This commit is contained in:
@@ -207,6 +207,7 @@ public class StreamWriteFunction<K, I, O>
|
|||||||
TypeInformation.of(WriteMetadataEvent.class)
|
TypeInformation.of(WriteMetadataEvent.class)
|
||||||
));
|
));
|
||||||
|
|
||||||
|
this.currentInstant = this.writeClient.getLastPendingInstant(this.actionType);
|
||||||
if (context.isRestored()) {
|
if (context.isRestored()) {
|
||||||
restoreWriteMetadata();
|
restoreWriteMetadata();
|
||||||
} else {
|
} else {
|
||||||
@@ -214,7 +215,6 @@ public class StreamWriteFunction<K, I, O>
|
|||||||
}
|
}
|
||||||
// blocks flushing until the coordinator starts a new instant
|
// blocks flushing until the coordinator starts a new instant
|
||||||
this.confirming = true;
|
this.confirming = true;
|
||||||
this.currentInstant = this.writeClient.getLastPendingInstant(this.actionType);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user