This is an automated email from the ASF dual-hosted git repository. reschke pushed a commit to branch OAK-12067 in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git
commit 9c42e2b98e1adff2fd1815d8e1935f543ecfadbd Author: Julian Reschke <[email protected]> AuthorDate: Tue Jan 20 13:00:52 2026 +0100 OAK-12067: Utils.alignWithExternalRevisions logs timestamps with second resolution --- .../java/org/apache/jackrabbit/oak/plugins/document/util/Utils.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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..441464b209 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 @@ -1235,8 +1235,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()); + DateTimeFormatter.ISO_INSTANT.format(Instant.ofEpochMilli(localTime)), + DateTimeFormatter.ISO_INSTANT.format(Instant.ofEpochMilli(externalTime)), + warnThresholdMillis, timeDiff, + lastRevMap.values()); String msg = String.format(fmt, delay); LOG.warn(msg); }
