-
Notifications
You must be signed in to change notification settings - Fork 721
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
jdk19 Jep425Tests_testVirtualThread test_VirtualthreadYieldResume Virtual Thread 1: incorrect result of 1 #15651
Comments
@JasonFengJ9 We'll need t exclude these as well |
Removing the |
https://openj9-jenkins.osuosl.org/job/Test_openjdk19_j9_sanity.functional_ppc64_aix_Nightly_testList_1/89
|
@babsingh can you please take a look at this? |
re #15651 (comment): Unable to reproduce the failureRan two grinders:
The failure couldn't be reproduced. Failing test's source codeopenj9/test/functional/Java19andUp/src/org/openj9/test/jep425/VirtualThreadTests.java Lines 72 to 92 in b975e82
Probable causeI believe that the problem lies in the below line of the test's source code:
5 seconds is not sufficient in the worst case scenario. Why? 6 virtual threads are being launched in the test-case. Each virtual thread sleeps twice for 1 second (2 seconds in total) and performs three arithmetic operations. In addition, there is cost associated to schedule, sleep and wake the thread. Assumption: each virtual thread may take 3-4 seconds to execute in the worst case scenario. If the machine has scarce resources i.e. each virtual thread is executed sequentially (worst-case), the test-case may take |
Removing from milestone plan since this won't block the release. |
In test_VirtualthreadYieldResume, the wait time has been increased to support the worst-case scenario where all virtual threads are executed sequentially. The wait loop is dynamic i.e. it will exit if the virtual threads finish early. Fixes: eclipse-openj9#15651 Signed-off-by: Babneet Singh <sbabneet@ca.ibm.com>
https://openj9-jenkins.osuosl.org/job/Test_openjdk19_j9_sanity.functional_ppc64_aix_Nightly_testList_1/109
|
@fengxue-IS A similar failure from #16693 is seen above for different reasons. Can you review the test case for other weaknesses? |
This issue only tracks failures related to |
Yes, sorry. Created #16722 |
https://openj9-jenkins.osuosl.org/job/Test_openjdk19_j9_sanity.functional_x86-64_windows_OpenJDK19_testList_1/9
Jep425Tests_testVirtualThread_0
@tajila fyi
The text was updated successfully, but these errors were encountered: