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:
Narges Shadab 2021-03-23 04:36:58 -07:00 committed by GitHub
parent 63eb289462
commit d77c7ab4e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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() {