File tree 2 files changed +2
-3
lines changed
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/node
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/fsck
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 22
22
import java .util .Objects ;
23
23
import java .util .Set ;
24
24
import org .apache .hadoop .hdds .protocol .proto .HddsProtos ;
25
- import org .apache .hadoop .util .Time ;
26
25
27
26
/**
28
27
* This class is used to capture the current status of a datanode. This
@@ -124,7 +123,7 @@ public boolean operationalStateExpired() {
124
123
if (0 == opStateExpiryEpochSeconds ) {
125
124
return false ;
126
125
}
127
- return Time . monotonicNow () / 1000 >= opStateExpiryEpochSeconds ;
126
+ return System . currentTimeMillis () / 1000 >= opStateExpiryEpochSeconds ;
128
127
}
129
128
130
129
public boolean isInService () {
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ protected void runTask() throws Exception {
147
147
unhealthyContainerStateStatsMap );
148
148
long start = Time .monotonicNow ();
149
149
long currentTime = System .currentTimeMillis ();
150
- long existingCount = processExistingDBRecords (Time . monotonicNow (),
150
+ long existingCount = processExistingDBRecords (System . currentTimeMillis (),
151
151
unhealthyContainerStateStatsMap );
152
152
LOG .debug ("Container Health task thread took {} milliseconds to" +
153
153
" process {} existing database records." ,
You can’t perform that action at this time.
0 commit comments