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 md...@apache.org on 2015/12/07 13:54:32 UTC
svn commit: r1718340 -
/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/file/FileStore.java
Author: mduerig
Date: Mon Dec 7 12:54:32 2015
New Revision: 1718340
URL: http://svn.apache.org/viewvc?rev=1718340&view=rev
Log:
OAK-3737: Compactor should log revisions acting upon
Add additional logging
Modified:
jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/file/FileStore.java
Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/file/FileStore.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/file/FileStore.java?rev=1718340&r1=1718339&r2=1718340&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/file/FileStore.java (original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/file/FileStore.java Mon Dec 7 12:54:32 2015
@@ -976,6 +976,8 @@ public class FileStore implements Segmen
}
SegmentNodeState after = compactor.compact(EMPTY_NODE, before, EMPTY_NODE);
+ gcMonitor.info("TarMK GC #{}: compacted {} to {}",
+ gcCount, before.getRecordId(), after.getRecordId());
if (compactionCanceled.get()) {
gcMonitor.warn("TarMK GC #{}: compaction canceled: {}", gcCount, compactionCanceled);
@@ -995,6 +997,8 @@ public class FileStore implements Segmen
"Compacting these commits. Cycle {}", gcCount, cycles);
SegmentNodeState head = getHead();
after = compactor.compact(before, head, after);
+ gcMonitor.info("TarMK GC #{}: compacted {} against {} to {}",
+ gcCount, head.getRecordId(), before.getRecordId(), after.getRecordId());
if (compactionCanceled.get()) {
gcMonitor.warn("TarMK GC #{}: compaction canceled: {}", gcCount, compactionCanceled);