Skip to content
Merged
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 @@ -492,6 +492,8 @@ public void testHSyncOpenKeyCommitAfterExpiry() throws Exception {
// Create key2 without hsync
try (FSDataOutputStream os1 = fs.create(key2, true)) {
os1.write(1);
// Wait for double buffer flush to avoid flakiness because RDB iterator bypasses table cache
cluster.getOzoneManager().awaitDoubleBufferFlush();
// There should be 2 key in openFileTable
assertThat(getOpenKeyInfo(BUCKET_LAYOUT))
.extracting(OmKeyInfo::getKeyName)
Expand Down Expand Up @@ -586,6 +588,8 @@ public void testHSyncOpenKeyDeletionWhileDeleteDirectory() throws Exception {
try (FSDataOutputStream os = fs.create(key1, true)) {
os.write(1);
os.hsync();
// Wait for double buffer flush to avoid flakiness because RDB iterator bypasses table cache
cluster.getOzoneManager().awaitDoubleBufferFlush();
// There should be 1 key in openFileTable
assertThat(getOpenKeyInfo(BUCKET_LAYOUT))
.extracting(OmKeyInfo::getKeyName)
Expand Down
Loading