You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by fr...@apache.org on 2016/10/04 09:13:24 UTC
svn commit: r1763254 -
/jackrabbit/oak/trunk/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/standby/client/StandbyClientSyncExecution.java
Author: frm
Date: Tue Oct 4 09:13:24 2016
New Revision: 1763254
URL: http://svn.apache.org/viewvc?rev=1763254&view=rev
Log:
OAK-4880 - Reduce log level of StandbySyncExecution
Contribution by Timothee Maret
Modified:
jackrabbit/oak/trunk/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/standby/client/StandbyClientSyncExecution.java
Modified: jackrabbit/oak/trunk/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/standby/client/StandbyClientSyncExecution.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/standby/client/StandbyClientSyncExecution.java?rev=1763254&r1=1763253&r2=1763254&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/standby/client/StandbyClientSyncExecution.java (original)
+++ jackrabbit/oak/trunk/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/standby/client/StandbyClientSyncExecution.java Tue Oct 4 09:13:24 2016
@@ -99,7 +99,7 @@ class StandbyClientSyncExecution {
try {
return current.compareAgainstBaseState(before, new StandbyDiff(builder, store, client, running));
} catch (SegmentNotFoundException e) {
- log.info("Found missing segment {}", e.getSegmentId());
+ log.debug("Found missing segment {}", e.getSegmentId());
copySegmentHierarchyFromPrimary(UUID.fromString(e.getSegmentId()));
}
}
@@ -113,17 +113,17 @@ class StandbyClientSyncExecution {
while (batch.size() > 0) {
UUID current = batch.remove();
- log.info("Loading segment {}", current);
+ log.debug("Loading segment {}", current);
Segment segment = copySegmentFromPrimary(current);
- log.info("Marking segment {} as loaded", current);
+ log.debug("Marking segment {} as loaded", current);
visited.add(current);
if (!SegmentId.isDataSegmentId(current.getLeastSignificantBits())) {
continue;
}
- log.info("Inspecting segment {} for references", current);
+ log.debug("Inspecting segment {} for references", current);
for (int i = 0; i < segment.getReferencedSegmentIdCount(); i++) {
UUID referenced = segment.getReferencedSegmentId(i);
@@ -146,7 +146,7 @@ class StandbyClientSyncExecution {
continue;
}
- log.info("Found reference from {} to {}", current, referenced);
+ log.debug("Found reference from {} to {}", current, referenced);
if (SegmentId.isDataSegmentId(referenced.getLeastSignificantBits())) {
batch.add(referenced);
@@ -163,7 +163,7 @@ class StandbyClientSyncExecution {
Segment result = cache.get(uuid);
if (result != null) {
- log.info("Segment {} was found in the local cache", uuid);
+ log.debug("Segment {} was found in the local cache", uuid);
return result;
}