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 st...@apache.org on 2025/02/17 14:06:10 UTC
(jackrabbit-oak) branch OAK-11477 created (now 9393f872ed)
This is an automated email from the ASF dual-hosted git repository.
stefanegli pushed a change to branch OAK-11477
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git
at 9393f872ed OAK-11477 : dont fail if lease couldnt be renewed in crash simulation
This branch includes the following new commits:
new 9393f872ed OAK-11477 : dont fail if lease couldnt be renewed in crash simulation
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-11477 : dont fail if lease couldnt be renewed in crash simulation
Posted by st...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
stefanegli pushed a commit to branch OAK-11477
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git
commit 9393f872eda28f36a30093020a68d5b6fd60a40e
Author: stefan-egli <st...@apache.org>
AuthorDate: Mon Feb 17 15:06:04 2025 +0100
OAK-11477 : dont fail if lease couldnt be renewed in crash simulation
---
.../document/BaseDocumentDiscoveryLiteServiceTest.java | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/BaseDocumentDiscoveryLiteServiceTest.java b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/BaseDocumentDiscoveryLiteServiceTest.java
index 539f27aac9..18e35978e8 100644
--- a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/BaseDocumentDiscoveryLiteServiceTest.java
+++ b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/BaseDocumentDiscoveryLiteServiceTest.java
@@ -283,10 +283,13 @@ public abstract class BaseDocumentDiscoveryLiteServiceTest {
logger.info("crash: stopped lastrev thread, now setting lease to end within 1 sec");
boolean renewed = setLeaseTime(1000 /* 1 sec */, 10 /*10ms*/);
- if (!renewed) {
- logger.info("halt");
- fail("did not renew clusterid lease");
- }
+ logger.info("renewed : {}", renewed);
+ // OAK-11477: lease could have been update by lease update thread while we wanted to do that
+ // in which case testing for !renewed is not very useful here
+ //if (!renewed) {
+ // logger.info("halt");
+ // fail("did not renew clusterid lease");
+ //}
logger.info("crash: now stopping background read/update");
stopAllBackgroundThreads();