swamirishi commented on code in PR #8203:
URL: https://github.com/apache/ozone/pull/8203#discussion_r2094702114
##########
hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/utils/db/RDBStoreAbstractIterator.java:
##########
@@ -150,5 +181,21 @@ public final void removeFromDB() throws IOException {
@Override
public void close() {
rocksDBIterator.close();
+ closed = true;
+ releaseEntry();
+ }
+
+ public static final class AutoCloseableRawKeyValue<RAW> extends
RawKeyValue<RAW> implements AutoCloseable {
Review Comment:
Closeable is for specifically throwing IOExceptions. AutoCloseable is the
base interface. Since we are not throwing any exceptions we should call it
AutoCloseableRawKeyValue ideally
--
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]