Uh oh!
There was an error while loading. Please reload this page.
TEZ-4723: TestMapProcessor is flaky - #504
Conversation
| output.collect(key, value); | ||
| if (counter.incrementAndGet() % N == 0) { | ||
| try { | ||
| Thread.sleep(1); |
There was a problem hiding this comment.
This will not fix it I believe, it will increase the probability of it passing I believe. Can we wait in the Test's monitoring thread for some X condition instead? Like maybe using GenericTestUtils.waitFor()
There was a problem hiding this comment.
agreed, the current solution is just a sophisticated Thread.sleep :) let me improve it
tez-yetus
commented
Jun 2, 2026
🎊 +1 overall
This message was automatically generated. |
5a07af8 to
8521d5dCompareabstractdog
commented
Jun 3, 2026
@ayushtkn : created |
tez-yetus
commented
Jun 3, 2026
🎊 +1 overall
This message was automatically generated. |
ayushtkn
left a comment
There was a problem hiding this comment.
LGTM. Minor suggestions, feel free to commit once you handle it
| scheduler.shutdownNow(); | ||
| task.close(); | ||
| sharedExecutor.shutdownNow(); |
There was a problem hiding this comment.
maybe this could be in finally block, if the above assertion fails, resources would get leaked
There was a problem hiding this comment.
ack, fixed in 384c066
also made TezSharedExecutorAutoCloseable
tez-yetus
commented
Jun 8, 2026
🎊 +1 overall
This message was automatically generated. |
tez-yetus
commented
Jun 8, 2026
💔 -1 overall
This message was automatically generated. |
tez-yetus
commented
Jun 8, 2026
🎊 +1 overall
This message was automatically generated. |
Uh oh!
There was an error while loading. Please reload this page.
No description provided.