hemantk-12 commented on code in PR #7563:
URL: https://github.com/apache/ozone/pull/7563#discussion_r1884204278


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/snapshot/SnapshotDiffManager.java:
##########
@@ -1032,8 +1032,10 @@ private void getDeltaFilesAndDiffKeysToObjectIdToKeyMap(
     // tombstone is not loaded.
     // TODO: [SNAPSHOT] Update Rocksdb SSTFileIterator to read tombstone
     if (skipNativeDiff || !isNativeLibsLoaded) {
-      deltaFiles.addAll(getSSTFileListForSnapshot(fromSnapshot,
-          tablesToLookUp));
+      Set<String> inputFiles = getSSTFileListForSnapshot(fromSnapshot, 
tablesToLookUp);
+      ManagedRocksDB fromDB = 
((RDBStore)fromSnapshot.getMetadataManager().getStore()).getDb().getManagedRocksDb();
+      RocksDiffUtils.filterRelevantSstFiles(inputFiles, tablePrefixes, fromDB);
+      deltaFiles.addAll(inputFiles);
     }
     addToObjectIdMap(fsTable, tsTable, deltaFiles,

Review Comment:
   nit: can you please log `deltaFiles` at DEBUG level? 



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