Uh oh!
There was an error while loading. Please reload this page.
HBASE-28413 Fix race condition in TestCleanerChore.retriesIOExceptionInStatus - #5735
Open
ndimiduk wants to merge 2 commits into
Open
HBASE-28413 Fix race condition in TestCleanerChore.retriesIOExceptionInStatus#5735ndimiduk wants to merge 2 commits into
ndimiduk wants to merge 2 commits into
Conversation
…InStatus We occasionally get a test failure in TestCleanerChore.retriesIOExceptionInStatus. For example, from a recent PR build [0] on branch-2.6, ``` java.util.concurrent.ExecutionException: java.io.IOException: whomp whomp. at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:395) at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1999) at org.apache.hadoop.hbase.master.cleaner.TestCleanerChore.retriesIOExceptionInStatus(TestCleanerChore.java:163) ... Caused by: java.io.IOException: whomp whomp. at org.apache.hadoop.hbase.master.cleaner.TestCleanerChore$1.listStatus(TestCleanerChore.java:134) at org.apache.hadoop.hbase.master.cleaner.CleanerChore.traverseAndDelete(CleanerChore.java:475) at org.apache.hadoop.hbase.master.cleaner.CleanerChore.lambda$chore$0(CleanerChore.java:258) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ... 1 more ``` This looks like a race condition where the chore manages an entire execution between when the flag is flipped and when the test thread gets back around to continuing execution. Make the test a little more pessimistic about its view of the world. [0]: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5725/1/testReport/org.apache.hadoop.hbase.master.cleaner/TestCleanerChore/precommit_checks___yetus_jdk11_hadoop3_checks___retriesIOExceptionInStatus/
ndimiduk
commented
Mar 1, 2024
MemberAuthor
Relates to test change introduced in #4730. |
Uh oh!
There was an error while loading. Please reload this page.
NihalJain
approved these changes
Mar 1, 2024
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Apache-HBase
commented
Mar 1, 2024
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Mar 1, 2024
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Mar 1, 2024
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Mar 1, 2024
🎊 +1 overall
This message was automatically generated. |
Apache9
commented
Mar 2, 2024
Contributor
The test is failing in jdk17 build? |
ndimiduk
commented
Mar 3, 2024
MemberAuthor
I think that my fix is incomplete. Or there's something else disrupting the test harness. The test was terminated, interrupting the chore thread, while the waiter loop had only sat for 5 seconds. |
ndimiduk
commented
Mar 3, 2024
MemberAuthor
In fact, jenkins doesn't tell us which of these failed runs is the output we have in the unit test summary. |
ndimiduk
commented
Mar 3, 2024
MemberAuthor
There is still a race. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We occasionally get a test failure in TestCleanerChore.retriesIOExceptionInStatus. For example, from a recent PR build 0 on branch-2.6,
This looks like a race condition where the chore manages an entire execution between when the flag is flipped and when the test thread gets back around to continuing execution. Make the test a little more pessimistic about its view of the world.