Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,14 @@ void testScanStatePiggybackedOnDelete(BucketLayout bucketLayout, boolean createP

// Verify that scan state was updated through the DeleteKeysRequest
String bucketKey = metadataManager.getBucketKey(volumeName, bucketName);
OmLifecycleScanState scanState = metadataManager.getLifecycleScanStateTable().get(bucketKey);
assertNotNull(scanState);
assertNotNull(scanState.getScanEndTime());
GenericTestUtils.waitFor(() -> {
try {
OmLifecycleScanState scanState = metadataManager.getLifecycleScanStateTable().get(bucketKey);
return scanState != null && scanState.getScanEndTime() != null;
} catch (IOException e) {
return false;
}
}, WAIT_CHECK_INTERVAL, 10000);

deleteLifecyclePolicy(volumeName, bucketName);
}
Expand Down Expand Up @@ -2594,6 +2599,7 @@ void testMultipleDirectoriesMatched(String keyPrefix1, String keyPrefix2, String
LOG.info("Dir {} refreshes its modification time", dirName);
KeyInfoWithVolumeContext keyInfo2 = getDirectory(volumeName, bucketName, dirName);
assertNotEquals(keyInfo.getKeyInfo().getModificationTime(), keyInfo2.getKeyInfo().getModificationTime());
awaitDirCacheDrained(volumeName, bucketName);
}

// resume KeyLifecycleService bucket scan
Expand Down