Author: thomasm
Date: Wed Jun 10 15:22:39 2020
New Revision: 1878716

URL: http://svn.apache.org/viewvc?rev=1878716&view=rev
Log:
OAK-9108 Change default timeout to mark indexes corrupt

Modified:
    
jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/AsyncIndexerService.java

Modified: 
jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/AsyncIndexerService.java
URL: 
http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/AsyncIndexerService.java?rev=1878716&r1=1878715&r2=1878716&view=diff
==============================================================================
--- 
jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/AsyncIndexerService.java
 (original)
+++ 
jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/AsyncIndexerService.java
 Wed Jun 10 15:22:39 2020
@@ -75,7 +75,7 @@ public class AsyncIndexerService {
                 description = "Async indexer configs in the form of 
<name>:<interval in secs> e.g. \"async:5\""
         )
         String[] asyncConfigs() default {"async:5"};
-        
+
         @AttributeDefinition(
                 name = "Lease time out",
                 description = "Lease timeout in minutes. AsyncIndexer would 
wait for this timeout period before breaking " +
@@ -86,9 +86,10 @@ public class AsyncIndexerService {
         @AttributeDefinition(
                 name = "Failing Index Timeout (s)",
                 description = "Time interval in seconds after which a failing 
index is considered as corrupted and " +
-                        "ignored from further indexing untill reindex. To 
disable this set it to 0"
+                        "ignored from further indexing until reindex. The 
default is 7 days (7 * 24 * 60 * 60 = 604800). " +
+                        "To disable this set it to 0."
         )
-        long failingIndexTimeoutSeconds() default 30 * 60;
+        long failingIndexTimeoutSeconds() default 7 * 24 * 60 * 60L;
 
         @AttributeDefinition(
                 name = "Error warn interval (s)",


Reply via email to