1
0

[HUDI-4098] Metadata table heartbeat for instant has expired, last heartbeat 0 (#5583)

This commit is contained in:
Danny Chan
2022-05-16 17:40:08 +08:00
committed by GitHub
parent 61030d8e7a
commit 43e08193ef
2 changed files with 50 additions and 0 deletions

View File

@@ -138,6 +138,11 @@ public class FlinkHoodieBackedTableMetadataWriter extends HoodieBackedTableMetad
// reuses the same instant time without rollback first. It is a no-op here as the
// clean plan is the same, so we don't need to delete the requested and inflight instant
// files in the active timeline.
// The metadata writer uses LAZY cleaning strategy without auto commit,
// write client then checks the heartbeat expiration when committing the instant,
// sets up the heartbeat explicitly to make the check pass.
writeClient.getHeartbeatClient().start(instantTime);
}
List<WriteStatus> statuses = preppedRecordList.size() > 0