-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[hotfix]Intermittent unit test failures we have hit in ExecutionGraph tests #27433
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
base: master
Are you sure you want to change the base?
Conversation
…wTaskDetectorTest Signed-off-by: davidradl <david_radley@uk.ibm.com>
Signed-off-by: davidradl <david_radley@uk.ibm.com>
|
We have hit 2 more intermittent unit test failures in this area. Fixing those here too. and |
|
also IBM Bob is adding .metals to github repos, so I have git ignored this folder. |
| // Give time for the failure to be processed | ||
| Thread.sleep(10); | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not rely on timeouts in tests
this is is also mentioned in contribution guide https://flink.apache.org/how-to-contribute/code-style-and-quality-common/#avoid-timeouts-in-junit-tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK I was following the existing approach in the code. Also I see ExecutionGraphTestUtils.waitUntilJobStatus that is effectively a method doing the timeout. The comment says // this is a poor implementation - we may want to improve it eventually
I will investigate to see if there is another way,
adb379d to
e238c2f
Compare
Signed-off-by: davidradl <david_radley@uk.ibm.com>
e238c2f to
2613629
Compare
We were getting an intermittent error in our CI pipeline, as below. This change adds a small sleep to allow the 2 slow tasks to start before it checks they are there. This approach is in line with other parts of this code e.g. this
[ERROR] Tests run: 13, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 2.068 s <<< FAILURE! -- in org.apache.flink.runtime.scheduler.slowtaskdetector.ExecutionTimeBasedSlowTaskDetectorTest
#24 511.0 [ERROR] org.apache.flink.runtime.scheduler.slowtaskdetector.ExecutionTimeBasedSlowTaskDetectorTest.testBalancedInput -- Time elapsed: 0.011 s <<< FAILURE!
#24 511.0 java.lang.AssertionError:
#24 511.0
#24 511.0 Expected size: 2 but was: 0 in:
#24 511.0 {}
#24 511.0 at org.apache.flink.runtime.scheduler.slowtaskdetector.ExecutionTimeBasedSlowTaskDetectorTest.testBalancedInput(ExecutionTimeBasedSlowTaskDetectorTest.java:269)
#24 511.0 at java.base/java.lang.reflect.Method.invoke(Method.java:586)
#24 511.0 at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
#24 511.0 at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
#24 511.0 at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
#24 511.0 at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
#24 511.0 at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)