[HUDI-3713] Guarding archival for multi-writer (#5138)
This commit is contained in:
committed by
GitHub
parent
f6ff95f97c
commit
4569734d60
@@ -329,12 +329,13 @@ public class HoodieFlinkWriteClient<T extends HoodieRecordPayload> extends
|
||||
protected void postCommit(HoodieTable table,
|
||||
HoodieCommitMetadata metadata,
|
||||
String instantTime,
|
||||
Option<Map<String, String>> extraMetadata) {
|
||||
Option<Map<String, String>> extraMetadata,
|
||||
boolean acquireLockForArchival) {
|
||||
try {
|
||||
// Delete the marker directory for the instant.
|
||||
WriteMarkersFactory.get(config.getMarkersType(), createTable(config, hadoopConf), instantTime)
|
||||
.quietDeleteMarkerDir(context, config.getMarkersDeleteParallelism());
|
||||
autoArchiveOnCommit(table);
|
||||
autoArchiveOnCommit(table, acquireLockForArchival);
|
||||
} finally {
|
||||
this.heartbeatClient.stop(instantTime);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user