kerneltime commented on code in PR #3646:
URL: https://github.com/apache/ozone/pull/3646#discussion_r936001547
##########
hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/utils/db/RDBSstFileWriter.java:
##########
@@ -82,19 +82,23 @@ public void close() throws IOException {
throw toIOException("Failed to finish dumping into file "
+ sstFile.getAbsolutePath(), e);
} finally {
- sstFileWriter.close();
- sstFileWriter = null;
- emptyOption.close();
+ closeResources();
}
keyCounter.set(0);
}
}
+ private void closeResources() {
+ sstFileWriter.close();
Review Comment:
Check if not null.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]