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 ch...@apache.org on 2017/05/05 06:07:57 UTC
svn commit: r1793948 -
/jackrabbit/oak/trunk/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/directory/IndexConsistencyChecker.java
Author: chetanm
Date: Fri May 5 06:07:57 2017
New Revision: 1793948
URL: http://svn.apache.org/viewvc?rev=1793948&view=rev
Log:
OAK-5558 - Consistency checker for Lucene indexes
-- Fix the loggers
Modified:
jackrabbit/oak/trunk/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/directory/IndexConsistencyChecker.java
Modified: jackrabbit/oak/trunk/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/directory/IndexConsistencyChecker.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/directory/IndexConsistencyChecker.java?rev=1793948&r1=1793947&r2=1793948&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/directory/IndexConsistencyChecker.java (original)
+++ jackrabbit/oak/trunk/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/directory/IndexConsistencyChecker.java Fri May 5 06:07:57 2017
@@ -239,16 +239,16 @@ public class IndexConsistencyChecker {
}
if (result.clean){
- log.info("[] No problems were detected with this index. Time taken {}", indexPath, watch);
+ log.info("[{}] No problems were detected with this index. Time taken {}", indexPath, watch);
} else {
- log.warn("[] Problems detected with this index. Time taken {}", indexPath, watch);
+ log.warn("[{}] Problems detected with this index. Time taken {}", indexPath, watch);
}
if (cleanWorkDir){
FileUtils.deleteQuietly(workDir);
} else if (workDir != null){
- log.info("[] Index files are copied to {}", indexPath, workDir.getAbsolutePath());
+ log.info("[{}] Index files are copied to {}", indexPath, workDir.getAbsolutePath());
}
watch.stop();
@@ -265,7 +265,7 @@ public class IndexConsistencyChecker {
if (NodeStateUtils.isHidden(dirName) && MultiplexersLucene.isIndexDirName(dirName)){
DirectoryStatus dirStatus = new DirectoryStatus(dirName);
result.dirStatus.add(dirStatus);
- log.warn("[{}] Checking directory {}", indexPath, dirName);
+ log.info("[{}] Checking directory {}", indexPath, dirName);
try {
checkIndexDirectory(dirStatus, idx, defn, workDir, dirName);
} catch (IOException e){