ivandika3 commented on code in PR #8096:
URL: https://github.com/apache/ozone/pull/8096#discussion_r1997565621
##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/fsck/ContainerHealthTask.java:
##########
@@ -146,8 +146,8 @@ protected void runTask() throws Exception {
initializeUnhealthyContainerStateStatsMap(
unhealthyContainerStateStatsMap);
long start = Time.monotonicNow();
- long currentTime = System.currentTimeMillis();
- long existingCount = processExistingDBRecords(currentTime,
+ long currentTime = Time.monotonicNow();
+ long existingCount = processExistingDBRecords(Time.monotonicNow(),
Review Comment:
@chiacyu As @peterxcli pointed out, `start` already uses
`Time.monotonicNow`. The `currentTime` is used for the
`UnhealthyContainers.inStateSince` which will be displayed in Recon UI. So
`currentTime` should still use `System.currentTimeMillis` .
Please kindly revert this change.
--
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]