-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Debug flaky test Issue#9415 #9421
Debug flaky test Issue#9415 #9421
Conversation
ecf2ae1
to
e0a85c4
Compare
@aczajkowski can you please explain how this helps, for the benefit of future cases like this? at the first sight, it could seem that subclasses of |
Only explanation to such behaviour that came in to my mind is that |
e0a85c4
to
9f9bd72
Compare
But is it? |
9728db3
to
9f9bd72
Compare
The information you are looking for is mostly here and here, though it's not exactly straightforward to understand. An important part is this:
We set these: <parallel>methods</parallel>
<threadCount>2</threadCount> We thus use these defaults: <forkCount>1</forkCount>
<reuseForks>true</reuseForks> This means that all tests will be run in a single, separate JVM (from the one used by Maven). TestNG creates each test class once, then runs the test methods in parallel using two threads. Each class is independent, so unless you are sharing static state between classes, or external resources such as files, they should be independent. I agree with @findepi that this change should not have any effect. For your debug PR, you can edit the |
@electrum Thx for all the information. it confirms my assumptions on how TestNG works with conjunction with surefire.
So during Test object initialisation/creation. We should have separate threads and object in such case. UPDATE:
|
9f9bd72
to
e8a8385
Compare
2a58f3b
to
6754d40
Compare
6754d40
to
272356d
Compare
Fixes flaky test
io.trino.plugin.hive.TestHive3InsertOverwrite
flakyFixes: #9415
CC: @losipiuk