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 da...@apache.org on 2014/10/21 16:39:01 UTC
svn commit: r1633389 -
/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/property/strategy/ContentMirrorStoreStrategy.java
Author: davide
Date: Tue Oct 21 14:39:00 2014
New Revision: 1633389
URL: http://svn.apache.org/r1633389
Log:
OAK-2224 - Increase the threshold for warning in PathIterator
Increased threshold to 10,000 and configurable via system property
'oak.traversing.warn'
Modified:
jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/property/strategy/ContentMirrorStoreStrategy.java
Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/property/strategy/ContentMirrorStoreStrategy.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/property/strategy/ContentMirrorStoreStrategy.java?rev=1633389&r1=1633388&r2=1633389&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/property/strategy/ContentMirrorStoreStrategy.java (original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/property/strategy/ContentMirrorStoreStrategy.java Tue Oct 21 14:39:00 2014
@@ -69,6 +69,11 @@ import com.google.common.collect.Sets;
public class ContentMirrorStoreStrategy implements IndexStoreStrategy {
static final Logger LOG = LoggerFactory.getLogger(ContentMirrorStoreStrategy.class);
+
+ /**
+ * logging a warning every {@code oak.traversing.warn} traversed nodes. Default {@code 10000}
+ */
+ static final int TRAVERSING_WARN = Integer.getInteger("oak.traversing.warn", 10000);
@Override
public void update(
@@ -329,7 +334,7 @@ public class ContentMirrorStoreStrategy
ChildNodeEntry entry = iterator.next();
readCount++;
- if (readCount % 1000 == 0) {
+ if (readCount % TRAVERSING_WARN == 0) {
FilterIterators.checkReadLimit(readCount, maxMemoryEntries);
LOG.warn("Traversed " + readCount + " nodes using index " + indexName + " with filter " + filter);
}