File tree 1 file changed +1
-2
lines changed
hadoop-hdds/server-scm/src/test/java/org/apache/hadoop/hdds/scm/node
1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 56
56
import org .apache .hadoop .hdds .scm .pipeline .PipelineID ;
57
57
import org .apache .hadoop .hdds .scm .server .StorageContainerManager ;
58
58
import org .apache .hadoop .hdds .server .events .EventQueue ;
59
- import org .apache .hadoop .util .Time ;
60
59
import org .junit .jupiter .api .BeforeEach ;
61
60
import org .junit .jupiter .api .Test ;
62
61
import org .junit .jupiter .api .io .TempDir ;
@@ -381,7 +380,7 @@ public void testNodeDecommissionManagerOnBecomeLeader() throws Exception {
381
380
List <DatanodeDetails > dns = generateDatanodes ();
382
381
383
382
long maintenanceEnd =
384
- (Time . monotonicNow () / 1000L ) + (100 * 60L * 60L );
383
+ (System . currentTimeMillis () / 1000L ) + (100 * 60L * 60L );
385
384
386
385
// Put 1 node into entering_maintenance, 1 node into decommissioning
387
386
// and 1 node into in_maintenance.
You can’t perform that action at this time.
0 commit comments