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 th...@apache.org on 2025/08/25 07:50:05 UTC

(jackrabbit-oak) branch OAK-11878 created (now aa1af0af38)

This is an automated email from the ASF dual-hosted git repository.

thomasm pushed a change to branch OAK-11878
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git


      at aa1af0af38 OAK-11878 ClusterNodeStoreLock LOCK_TIMEOUT is too large

This branch includes the following new commits:

     new aa1af0af38 OAK-11878 ClusterNodeStoreLock LOCK_TIMEOUT is too large

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(jackrabbit-oak) 01/01: OAK-11878 ClusterNodeStoreLock LOCK_TIMEOUT is too large

Posted by th...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

thomasm pushed a commit to branch OAK-11878
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git

commit aa1af0af382ffed722e74b3ec2d8aecd0392bd10
Author: Thomas Mueller <th...@apache.org>
AuthorDate: Mon Aug 25 09:49:53 2025 +0200

    OAK-11878 ClusterNodeStoreLock LOCK_TIMEOUT is too large
---
 .../oak/plugins/index/importer/ClusterNodeStoreLock.java       | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/importer/ClusterNodeStoreLock.java b/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/importer/ClusterNodeStoreLock.java
index 88d0189f24..651feb63b0 100644
--- a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/importer/ClusterNodeStoreLock.java
+++ b/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/importer/ClusterNodeStoreLock.java
@@ -38,10 +38,14 @@ import org.slf4j.LoggerFactory;
  */
 public class ClusterNodeStoreLock implements AsyncIndexerLock<ClusteredLockToken> {
     /**
-     * Use a looong lease time to ensure that async indexer does not start
-     * in between the import process which can take some time
+     * Use a long lease time to ensure that async indexer does not start
+     * in between the import process which can take some time.
+     * For a very large repository (about 2 billion nodes) the longest
+     * index import can take 2.5 hours. 6 hours has then a safety margin of 100%
+     * above that. A diff of 6 hours is typically OK with the document node store,
+     * but beyond that it gets harder.
      */
-    private static final long LOCK_TIMEOUT = TimeUnit.DAYS.toMillis(100);
+    private static final long LOCK_TIMEOUT = TimeUnit.HOURS.toMillis(6);
     // retry for at most 2 minutes
     private static final long MAX_RETRY_TIME = 2 * 60 * 1000;
     private final Logger log = LoggerFactory.getLogger(getClass());