liubin101 opened a new pull request, #4609:
URL: https://github.com/apache/hadoop/pull/4609

   ### Description of PR
   There is a calculation in 
DecommissioningNodesWatcher#logDecommissioningNodesStatus to calculate app 
elapsed time:
   ```
   (mclock.getTime() - rmApp.getStartTime()) / 1000
   ```
   But mclock.getTime() is generated from System.nanoTime() / 
NANOSECONDS_PER_MILLISECOND,
   
   rmApp.getStartTime() is generated from System.currentTimeMillis(), they 
cannot be compared.
   
   This calculation should be:
   ```
   (System.currentTimeMillis() - rmApp.getStartTime()) / 1000
   ```
   


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to