jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cko...@apache.org
Subject svn commit: r1820744 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/MultiIndex.java
Date Wed, 10 Jan 2018 12:33:45 GMT
Author: ckoell
Date: Wed Jan 10 12:33:45 2018
New Revision: 1820744

URL: http://svn.apache.org/viewvc?rev=1820744&view=rev
Log:
Debug Log

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/MultiIndex.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/MultiIndex.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/MultiIndex.java?rev=1820744&r1=1820743&r2=1820744&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/MultiIndex.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/MultiIndex.java
Wed Jan 10 12:33:45 2018
@@ -1295,9 +1295,12 @@ public class MultiIndex {
                 && idleTime > handler.getVolatileIdleTime() * 1000) {
             try {
                 if (redoLog.hasEntries()) {
+                    long time = System.currentTimeMillis();
                     log.debug("Flushing index after being idle for "
                             + idleTime + " ms.");
                     safeFlush();
+                    time = System.currentTimeMillis() - time;
+                    log.debug("Index flushed in " + time + " ms.");
                 }
             } catch (IOException e) {
                 log.error("Unable to commit volatile index", e);



Mime
View raw message