ddanielr commented on code in PR #4250:
URL: https://github.com/apache/accumulo/pull/4250#discussion_r1484845633
##########
server/tserver/src/main/java/org/apache/accumulo/tserver/log/DfsLogger.java:
##########
@@ -186,7 +186,7 @@ public void run() {
} catch (IOException | RuntimeException ex) {
fail(work, ex, "synching");
}
- long duration = System.currentTimeMillis() - start;
+ long duration = System.nanoTime() - start;
if (duration > slowFlushMillis) {
Review Comment:
I don't think this comparison will work correctly comparing nanoseconds to
milliseconds
--
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]