swamirishi commented on code in PR #9388:
URL: https://github.com/apache/ozone/pull/9388#discussion_r2573138813


##########
hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/utils/db/RocksDatabase.java:
##########
@@ -665,6 +666,33 @@ public Collection<ColumnFamily> getExtraColumnFamilies() {
     return Collections.unmodifiableCollection(columnFamilies.values());
   }
 
+  public void dropColumnFamily(String tableName) throws RocksDatabaseException 
{
+    ColumnFamily columnFamily = columnFamilies.get(tableName);
+    if (columnFamily != null) {
+      try {
+        getManagedRocksDb().get().dropColumnFamily(columnFamily.getHandle());

Review Comment:
   I thought you were talking about rocksdb reference count native handle 
reference count. Yeah this rocksdb close lock on ozone code side is required.



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