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 2023/01/09 12:28:56 UTC
[jackrabbit-oak] branch 1.22 updated: OAK-10055 Auto refreshing IndexTracker causes online reindexing to fail
This is an automated email from the ASF dual-hosted git repository.
thomasm pushed a commit to branch 1.22
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git
The following commit(s) were added to refs/heads/1.22 by this push:
new 16886413d6 OAK-10055 Auto refreshing IndexTracker causes online reindexing to fail
16886413d6 is described below
commit 16886413d6457fd4bd75f0bedc563376b8a7e4cb
Author: Thomas Mueller <th...@apache.org>
AuthorDate: Mon Jan 9 13:28:43 2023 +0100
OAK-10055 Auto refreshing IndexTracker causes online reindexing to fail
---
.../apache/jackrabbit/oak/plugins/index/lucene/IndexTracker.java | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/IndexTracker.java b/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/IndexTracker.java
index a65824d99d..c76e5a5d68 100644
--- a/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/IndexTracker.java
+++ b/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/IndexTracker.java
@@ -65,10 +65,13 @@ import static org.apache.jackrabbit.oak.plugins.memory.EmptyNodeState.EMPTY_NODE
*/
public class IndexTracker {
- // auto-refresh every hour
+ // auto-refresh
+ // the default is to not refresh (refresh every 100 years)
+ // to refresh every hour, set it to 3600000
+ // we don't use Long.MAX_VALUE to avoid (now + AUTO_REFRESH_MILLIS) to become negative
private static final long AUTO_REFRESH_MILLIS = Long.getLong(
"oak.indexTracker.autoRefresh",
- 60 * 60 * 1000);
+ 100L * 365 * 24 * 60 * 60 * 1000);
/** Logger instance. */
private static final Logger log = LoggerFactory.getLogger(IndexTracker.class);