Skip to content

Commit

Permalink
HDDS-10487. Intermittent crash in TestSnapshotDiffManager (apache#6346)
Browse files Browse the repository at this point in the history
  • Loading branch information
adoroszlai authored Mar 7, 2024
1 parent 7c8160f commit 9dab4d2
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -390,14 +390,14 @@ public OmSnapshot load(@Nonnull UUID key) {

@AfterEach
public void tearDown() {
IOUtils.closeQuietly(snapshotDiffManager);
if (columnFamilyHandles != null) {
columnFamilyHandles.forEach(IOUtils::closeQuietly);
}

IOUtils.closeQuietly(db);
IOUtils.closeQuietly(dbOptions);
IOUtils.closeQuietly(columnFamilyOptions);
IOUtils.closeQuietly(snapshotDiffManager);
}

private OmSnapshot getMockedOmSnapshot(UUID snapshotId) {
Expand Down Expand Up @@ -674,8 +674,6 @@ public void testObjectIdMapWithTombstoneEntries(boolean nativeLibraryLoaded,
Table<String, ? extends WithParentObjectId> fromSnapshotTable =
getMockedTable(fromSnapshotTableMap, snapshotTableName);

snapshotDiffManager = new SnapshotDiffManager(db, differ, ozoneManager,
snapDiffJobTable, snapDiffReportTable, columnFamilyOptions, codecRegistry);
SnapshotDiffManager spy = spy(snapshotDiffManager);

doAnswer(invocation -> {
Expand Down

0 comments on commit 9dab4d2

Please sign in to comment.