ivandika3 commented on code in PR #8818:
URL: https://github.com/apache/ozone/pull/8818#discussion_r2224825734


##########
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/repair/TransactionInfoRepair.java:
##########
@@ -65,12 +67,14 @@ public class TransactionInfoRepair extends RepairTool {
 
   @Override
   public void execute() throws Exception {
+    ManagedConfigOptions configOptions = new ManagedConfigOptions();
+    ManagedDBOptions dbOptions = new ManagedDBOptions();
     List<ColumnFamilyHandle> cfHandleList = new ArrayList<>();
-    List<ColumnFamilyDescriptor> cfDescList = 
RocksDBUtils.getColumnFamilyDescriptors(
-        dbPath);
+    List<ColumnFamilyDescriptor> cfDescList = new ArrayList<>();

Review Comment:
   Thanks for the review. The issue is that all these options (except for 
`ColumnFamilyDescriptor`) are `RocksObject` that need to be closed. If not, it 
will leak the native object.



-- 
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]

Reply via email to