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 mr...@apache.org on 2014/07/15 08:18:43 UTC

svn commit: r1610592 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/AsyncIndexUpdate.java

Author: mreutegg
Date: Tue Jul 15 06:18:43 2014
New Revision: 1610592

URL: http://svn.apache.org/r1610592
Log:
OAK-1968: Wrong time unit for async index lease time

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

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/AsyncIndexUpdate.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/AsyncIndexUpdate.java?rev=1610592&r1=1610591&r2=1610592&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/AsyncIndexUpdate.java (original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/AsyncIndexUpdate.java Tue Jul 15 06:18:43 2014
@@ -70,11 +70,11 @@ public class AsyncIndexUpdate implements
             "Async", 1, "Concurrent update detected");
 
     /**
-     * Timeout in minutes after which an async job would be considered as
+     * Timeout in milliseconds after which an async job would be considered as
      * timed out. Another node in cluster would wait for timeout before
      * taking over a running job
      */
-    private static final int ASYNC_TIMEOUT = 15;
+    private static final long ASYNC_TIMEOUT = TimeUnit.MINUTES.toMillis(15);
 
     private final String name;