HDDS-1779. TestWatchForCommit tests are flaky.#1071
HDDS-1779. TestWatchForCommit tests are flaky.#1071bshashikant wants to merge 5 commits intoapache:trunkfrom
Conversation
supratimdeka
left a comment
There was a problem hiding this comment.
+1
I have not reviewed the new file. As it is just code movement per our discussion.
Approving, pl consider the change I have suggested and remove the debug println.
| // as well as there is no logIndex generate in Ratis. | ||
| // The basic idea here is just to test if its throws an exception. | ||
| xceiverClient | ||
| .watchForCommit(index + new Random().nextInt(100) + 10, 20000); |
There was a problem hiding this comment.
instead of a Random increment, why not increment by a fixed number everytime - say 100 or 110? This applies to all the other modified test cases as well.
There was a problem hiding this comment.
The idea here is to run the test each time with unique number so any possible hacks/errors get caught if any.
|
💔 -1 overall
This message was automatically generated. |
…well as ceckstyle issues.
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
Thanks @mukul1987 and @supratimdeka for the review. I have committed the change to trunk. |
* Using jsonserde to write metadata file * Getting rid of public static class
No description provided.