Skip to content

Commit

Permalink
Fixed TestOmSnapshot.testSnapDiffWithMultipleSSTs test
Browse files Browse the repository at this point in the history
  • Loading branch information
hemantk-12 committed Jan 23, 2024
1 parent c24c313 commit 5befca3
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@
import org.apache.ozone.rocksdiff.CompactionNode;
import org.apache.ozone.test.GenericTestUtils;
import org.apache.ozone.test.tag.Slow;
import org.apache.ozone.test.tag.Unhealthy;
import org.jetbrains.annotations.NotNull;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.Test;
Expand Down Expand Up @@ -1784,9 +1783,7 @@ public void testListSnapshotDiffWithInvalidParameters()
* sst filtering code path.
*/
@Test
@Unhealthy("HDDS-8005")
public void testSnapDiffWithMultipleSSTs()
throws Exception {
public void testSnapDiffWithMultipleSSTs() throws Exception {
// Create a volume and 2 buckets
String volumeName1 = "vol-" + counter.incrementAndGet();
String bucketName1 = "buck1";
Expand Down Expand Up @@ -1819,10 +1816,7 @@ public void testSnapDiffWithMultipleSSTs()
String snap2 = "snap" + counter.incrementAndGet();
createSnapshot(volumeName1, bucketName1, snap2); // 1.sst 2.sst 3.sst 4.sst
assertEquals(4, getKeyTableSstFiles().size());
SnapshotDiffReportOzone diff1 =
store.snapshotDiff(volumeName1, bucketName1, snap1, snap2,
null, 0, forceFullSnapshotDiff, disableNativeDiff)
.getSnapshotDiffReport();
SnapshotDiffReportOzone diff1 = getSnapDiffReport(volumeName1, bucketName1, snap1, snap2);
assertEquals(1, diff1.getDiffList().size());
}

Expand Down

0 comments on commit 5befca3

Please sign in to comment.