-
Notifications
You must be signed in to change notification settings - Fork 729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenJDK java/util/concurrent/SynchronousQueue/Fairness - Error: fair=true i=6 j=7 #18771
Comments
https://openj9-jenkins.osuosl.org/job/Grinder/3181/ - jdk_util testing |
The grinder isn't finished, but this failure has already been repeated a number of times. The failure is repeatable when running just the single test. @tobi someone needs to look at this. |
I think the test is broken: There's nothing in the code that prioritizes threads started earlier over those started later. It is possible that the test is in a state where all the started threads are immediately after the call to By artificially inserting delays between those two calls (longer for smaller-numbered threads) the test can be made to fail at will. |
In fact, even if all threads call |
It's not a new test, and the test hasn't changed in years. It's not failing on other platforms, and we haven't seen it fail previously. I'm wondering what changed, and why it only fails on zlinux now. |
There are changes to
I'll dig deeper to see if I can find an explanation there. |
In https://bugs.java.com/bugdatabase/view_bug?bug_id=8300663 they seem to agree that testing fairness is difficult (emphasis mine):
|
If we're going to ignore the test failure, the test needs to be excluded. I'd start with just on zlinux unless we start to see it fail elsewhere. |
The code for |
ok |
Issue: eclipse-openj9/openj9#18771 Signed-off-by: Keith W. Campbell <[email protected]>
For the record, it's not failing on the zlinux 21.0.2 Temurin build.
|
Pls create a PR for https://github.com/adoptium/aqa-tests/tree/v1.0.0-release as well. |
Issue: eclipse-openj9/openj9#18771 Signed-off-by: Keith W. Campbell <[email protected]>
…#4987) Issue: eclipse-openj9/openj9#18771 Signed-off-by: Keith W. Campbell <[email protected]>
Done: adoptium/aqa-tests#4988 |
…#4988) Issue: eclipse-openj9/openj9#18771 Signed-off-by: Keith W. Campbell <[email protected]>
The test waits for the newly launched thread to leave the
Sometimes, however, there's contention for
The call to
|
Are any changes for this expected in the next couple of weeks, or should this be moved forward to the next release? |
The changes to |
Issue: eclipse-openj9/openj9#18771 Signed-off-by: Keith W. Campbell <[email protected]>
As we discovered in testing the related pull requests, removing the synchronization that breaks this test reintroduces a more serious, functional problem. I think the synchronization should be restored in the head stream until a solution that doesn't need it is discovered. |
See ibmruntimes/openj9-openjdk-jdk#748 which restores that synchronization; I think we should move this forward to the next release. I don't think it could cause any defensible real-world problems. |
https://openj9-jenkins.osuosl.org/job/Test_openjdk21_j9_sanity.openjdk_s390x_linux_Release_testList_0/10/
jdk_util_1
java/util/concurrent/SynchronousQueue/Fairness.java
The text was updated successfully, but these errors were encountered: