HDFS-15908. Possible Resource Leak in org.apache.hadoop.hdfs.qjournal.server.Journal (#2790). Contributed by Narges Shadab.
Signed-off-by: Ayush Saxena <ayushsaxena@apache.org>
This commit is contained in:
parent
63eb289462
commit
d77c7ab4e0
@ -264,9 +264,9 @@ void format(NamespaceInfo nsInfo, boolean force) throws IOException {
|
||||
*/
|
||||
@Override // Closeable
|
||||
public void close() throws IOException {
|
||||
storage.close();
|
||||
IOUtils.closeStream(committedTxnId);
|
||||
IOUtils.closeStream(curSegment);
|
||||
storage.close();
|
||||
}
|
||||
|
||||
JNStorage getStorage() {
|
||||
|
Loading…
Reference in New Issue
Block a user