GeorgeJahad commented on code in PR #3980:
URL: https://github.com/apache/ozone/pull/3980#discussion_r1130218877


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/SstFilteringService.java:
##########
@@ -143,9 +144,11 @@ public BackgroundTaskResult call() throws Exception {
 
           String dbName = OM_DB_NAME + snapshotInfo.getCheckpointDirName();
 
+          String snapshotCheckpointDir = omMetadataDir + OM_KEY_PREFIX +
+              OM_SNAPSHOT_CHECKPOINT_DIR;
           RDBStore rdbStore = (RDBStore) OmMetadataManagerImpl
-              .loadDB(ozoneManager.getConfiguration(), new File(snapshotDir),
-                  dbName, true);
+              .loadDB(ozoneManager.getConfiguration(),
+                  new File(snapshotCheckpointDir), dbName, true);
           RocksDatabase db = rdbStore.getDb();
           db.deleteFilesNotMatchingPrefix(prefixPairs, filterFunction);
 

Review Comment:
   I discussed that briefly 
[above](https://github.com/apache/ozone/pull/3980#issuecomment-1426468318).  
Basically I added most of the code for the serialization and then pulled it out 
because the PR is getting to big.  I'll be ready to create a separate PR soon 
after this is merged.
   



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