mbaedke commented on code in PR #2202: URL: https://github.com/apache/jackrabbit-oak/pull/2202#discussion_r2021169674
########## oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/TrackingCorruptIndexHandler.java: ########## @@ -168,7 +168,13 @@ public class CorruptIndexInfo { private final String asyncName; private final String path; private final long lastIndexerCycleCount = indexerCycleCount; - private final Stopwatch watch = Stopwatch.createStarted(new ClockTicker(clock)); + private final Stopwatch watch = Stopwatch.createStarted(new Ticker() { + @Override + public long read() { + return TimeUnit.MILLISECONDS.toNanos(clock.millis()); Review Comment: I didn't look deeper, but shouldn't we use clock#getTime()? (might be overridden while #millis() isn't) -- 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: oak-dev-unsubscr...@jackrabbit.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org