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
|
🎊 +1 overall
This message was automatically generated. |
5a07af8 to
8521d5d
Compare
|
@ayushtkn : created |
|
🎊 +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 TezSharedExecutor AutoCloseable
|
🎊 +1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
No description provided.