virajjasani commented on a change in pull request #3235: URL: https://github.com/apache/hadoop/pull/3235#discussion_r681111705
########## File path: hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestEditLogTailer.java ########## @@ -488,4 +509,19 @@ private static MiniDFSCluster createMiniDFSCluster(Configuration conf, .build(); return cluster; } + + private static final class TestTimer extends Timer { Review comment: Yes we have `FakeTimer`, however, it's c'tor allows only fixed values initially, which can only be incremented later (IMHO, not efficient for our test, we just require setting to specific value): ``` public FakeTimer() { // Initialize with a non-trivial value. now = 1577836800000L; // 2020-01-01 00:00:00,000+0000 nowNanos = TimeUnit.MILLISECONDS.toNanos(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: common-issues-unsubscr...@hadoop.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org