reschke commented on code in PR #2202:
URL: https://github.com/apache/jackrabbit-oak/pull/2202#discussion_r2021260689


##########
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:
   Aha. Yes, that may be a problem, so we should update "our" clock impl. That 
actually has a ticket already. Will work on it in parallel.



-- 
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]

Reply via email to