EdColeman commented on code in PR #4250:
URL: https://github.com/apache/accumulo/pull/4250#discussion_r1484663165


##########
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) {
           log.info("Slow sync cost: {} ms, current pipeline: {}", duration,

Review Comment:
   This should probably convert the display value to milliseconds 
`NANOSECONDS.toMillis(duration)` - using a static import of NANOSECONDS. 



-- 
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