Skip to content

Commit

Permalink
HDFS-17503. Unreleased volume references because of OOM. (apache#6782)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuzilong2013 authored and K0K0V0K committed May 17, 2024
1 parent 4da8a0a commit fd63a7c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -434,12 +434,12 @@ class BlockSender implements java.io.Closeable {
blockIn = datanode.data.getBlockInputStream(block, offset); // seek to offset
ris = new ReplicaInputStreams(
blockIn, checksumIn, volumeRef, fileIoProvider);
} catch (IOException ioe) {
} catch (Throwable t) {
IOUtils.cleanupWithLogger(null, volumeRef);
IOUtils.closeStream(this);
IOUtils.closeStream(blockIn);
IOUtils.closeStream(checksumIn);
throw ioe;
throw t;
}
}

Expand Down

0 comments on commit fd63a7c

Please sign in to comment.