This is an automated email from the ASF dual-hosted git repository.

reschke pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 4470027247 OAK-12067: Utils.alignWithExternalRevisions logs timestamps 
with second resolution (#2693)
4470027247 is described below

commit 4470027247f3dd083c2b7a1fc628a9ecae291d3e
Author: Julian Reschke <[email protected]>
AuthorDate: Wed Jan 21 15:17:16 2026 +0100

    OAK-12067: Utils.alignWithExternalRevisions logs timestamps with second 
resolution (#2693)
    
    * OAK-12067: Utils.alignWithExternalRevisions logs timestamps with second 
resolution
    
    * OAK-12067: Utils.alignWithExternalRevisions logs timestamps with second 
resolution
    
    * OAK-12067: Utils.alignWithExternalRevisions logs timestamps with second 
resolution
---
 .../org/apache/jackrabbit/oak/plugins/document/util/Utils.java     | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git 
a/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/util/Utils.java
 
b/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/util/Utils.java
index 49a1488c22..f9f67dfd55 100644
--- 
a/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/util/Utils.java
+++ 
b/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/util/Utils.java
@@ -28,7 +28,6 @@ import java.time.format.DateTimeFormatter;
 import java.util.ArrayList;
 import java.util.Collections;
 import java.util.Comparator;
-import java.util.Date;
 import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
@@ -1235,8 +1234,12 @@ public class Utils {
             if (timeDiff > warnThresholdMillis) {
                 LOG.warn("Detected clock differences. Local time is '{}', " +
                                 "while most recent external time is '{}'. " +
+                                "Threshold: {}ms, Difference: {}ms. " +
                                 "Current _lastRev entries: {}",
-                        new Date(localTime), new Date(externalTime), 
lastRevMap.values());
+                        asISO8601(localTime),
+                        asISO8601(externalTime),
+                        warnThresholdMillis, timeDiff,
+                        lastRevMap.values());
                 String msg = String.format(fmt, delay);
                 LOG.warn(msg);
             }

Reply via email to