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 2016/10/25 14:17:25 UTC

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

Author: chetanm
Date: Tue Oct 25 14:17:25 2016
New Revision: 1766537

URL: http://svn.apache.org/viewvc?rev=1766537&view=rev
Log:
OAK-4710 - AsyncIndexUpdate delay time should show clock time left

Log would also include the actual clock 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=1766537&r1=1766536&r2=1766537&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 Oct 25 14:17:25 2016
@@ -399,8 +399,8 @@ public class AsyncIndexUpdate implements
         long currentTime = System.currentTimeMillis();
         if (leaseEndTime > currentTime) {
             long leaseExpMsg = (leaseEndTime - currentTime) / 1000;
-            String err = "Another copy of the index update is already running; skipping this update. Time left for lease to expire "
-                    + leaseExpMsg + "s";
+            String err = String.format("Another copy of the index update is already running; skipping this update. " +
+                    "Time left for lease to expire %d s. Indexing can resume by %tT", leaseExpMsg, leaseEndTime);
             indexStats.failed(new Exception(err, CONCURRENT_UPDATE));
             return;
         }