HBASE-30255 Async archiving wal file causes TestLogRolling flaky#8406
Conversation
There was a problem hiding this comment.
Pull request overview
This PR addresses flakiness in AbstractTestLogRolling#testLogRolling caused by asynchronous WAL archiving by waiting until both the rolled WAL file count and tracked WAL size reach zero before asserting completion.
Changes:
- Replace
HBaseTestingUtil.waitFor+ immediate size assertion with an Awaitility-baseduntilAssertedblock that waits for both conditions. - Increase the maximum wait time to 15 seconds to accommodate async archival completion.
- Add Awaitility and
Durationimports to support the new wait logic.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
PDavid
left a comment
There was a problem hiding this comment.
Many thanks for fixing this. 👍
|
There is the same issue in // no archived wal files yet
assertFalse(fs.exists(globalWALArchiveDir));
region.requestRollAll();
region.waitUntilWalRollFinished();
// should have one
FileStatus[] files = fs.listStatus(globalWALArchiveDir);Maybe we can also update the code at the same time @Apache9 |
|
Sorry, forgot to attach the error logs. Here they are: |
I think you can file another issue for this one :) |
OK, I'll create a separate PR later. |
Signed-off-by: Xiao Liu <liuxiaocs@apache.org> Signed-off-by: Dávid Paksy <paksyd@apache.org> (cherry picked from commit 481332e)
Signed-off-by: Xiao Liu <liuxiaocs@apache.org> Signed-off-by: Dávid Paksy <paksyd@apache.org> (cherry picked from commit 481332e)
Signed-off-by: Xiao Liu <liuxiaocs@apache.org> Signed-off-by: Dávid Paksy <paksyd@apache.org> (cherry picked from commit 481332e)
Signed-off-by: Xiao Liu <liuxiaocs@apache.org> Signed-off-by: Dávid Paksy <paksyd@apache.org> (cherry picked from commit 481332e)
No description provided.