Skip to content

Commit

Permalink
[Bug] Close PartitionMarkDone to prevent potential resource leakage (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Aitozi authored Oct 22, 2024
1 parent 656d71e commit f427fca
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ public Map<Long, List<Committable>> groupByCheckpoint(Collection<Committable> co
@Override
public void close() throws Exception {
commit.close();
if (partitionMarkDone != null) {
partitionMarkDone.close();
}
}

private void calcNumBytesAndRecordsOut(List<ManifestCommittable> committables) {
Expand Down

0 comments on commit f427fca

Please sign in to comment.