Skip to content

Commit

Permalink
[Segment Replication] Close writer on segment replication cancellation (
Browse files Browse the repository at this point in the history
#7062)

Signed-off-by: Suraj Singh <[email protected]>
  • Loading branch information
dreamer-89 authored Apr 11, 2023
1 parent df5def4 commit b4e361c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -292,5 +292,6 @@ private ChecksumIndexInput toIndexInput(byte[] input) {
protected void onCancel(String reason) {
cancellableThreads.cancel(reason);
source.cancel();
multiFileWriter.close();
}
}

0 comments on commit b4e361c

Please sign in to comment.