[HUDI-3703] Reset taskID in restoreWriteMetadata (#5122)
This commit is contained in:
@@ -182,6 +182,8 @@ public abstract class AbstractStreamWriteFunction<I>
|
|||||||
boolean eventSent = false;
|
boolean eventSent = false;
|
||||||
for (WriteMetadataEvent event : this.writeMetadataState.get()) {
|
for (WriteMetadataEvent event : this.writeMetadataState.get()) {
|
||||||
if (Objects.equals(lastInflight, event.getInstantTime())) {
|
if (Objects.equals(lastInflight, event.getInstantTime())) {
|
||||||
|
// Reset taskID for event
|
||||||
|
event.setTaskID(taskID);
|
||||||
// The checkpoint succeed but the meta does not commit,
|
// The checkpoint succeed but the meta does not commit,
|
||||||
// re-commit the inflight instant
|
// re-commit the inflight instant
|
||||||
this.eventGateway.sendEventToCoordinator(event);
|
this.eventGateway.sendEventToCoordinator(event);
|
||||||
|
|||||||
Reference in New Issue
Block a user