smengcl commented on code in PR #4163:
URL: https://github.com/apache/ozone/pull/4163#discussion_r1091369218


##########
hadoop-hdds/rocksdb-checkpoint-differ/src/test/java/org/apache/ozone/rocksdiff/TestRocksDBCheckpointDiffer.java:
##########
@@ -1100,4 +1114,108 @@ public void 
testPruneOlderSnapshotsWithCompactionHistory(
     deleteDirectory(compactionLogDir);
     deleteDirectory(sstBackUpDir);
   }
+
+  private static Stream<Arguments> sstFilePruningScenarios() {
+    return Stream.of(
+        Arguments.of("Case 1: No compaction.",
+            "",
+            Arrays.asList("000015", "000013", "000011", "000009"),
+            Arrays.asList("000015", "000013", "000011", "000009")
+        ),
+        Arguments.of("Case 2: One level compaction.",
+            "C 000015,000013,000011,000009:000018,000016,000017\n",
+            Arrays.asList("000015", "000013", "000011", "000009", "000018",
+                "000016", "000017", "000026", "000024", "000022", "000020"),
+            Arrays.asList("000015", "000013", "000011", "000009", "000026",
+                "000024", "000022", "000020")
+        ),

Review Comment:
   Make sense. I was thinking about the DAG in the other direction.



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