keith-turner opened a new pull request, #4824:
URL: https://github.com/apache/accumulo/pull/4824

   This [comment][1] identified a flaky unit test. The test was likely flakey 
because it compared elapsed times on two timers.  Each call to elapsed time 
would call System.nanoTime. Depending on how much nano time drifted between the 
two calls different results could be obtained making the code non-deteministic. 
Added a method to check if one timer started after another and used it for this 
check making the code deterministic.  Its also much easier to understand the 
intent of the code with this change.
   
   [1]:https://github.com/apache/accumulo/pull/4821#issuecomment-2307244079


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to