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 re...@apache.org on 2026/04/14 14:29:06 UTC
(jackrabbit-oak) branch OAK-12177 created (now e0752c3db1)
This is an automated email from the ASF dual-hosted git repository.
reschke pushed a change to branch OAK-12177
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git
at e0752c3db1 OAK-12177: improve diagnostics in DocumentNodeStoreIT
This branch includes the following new commits:
new e0752c3db1 OAK-12177: improve diagnostics in DocumentNodeStoreIT
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-12177: improve diagnostics in DocumentNodeStoreIT
Posted by re...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
reschke pushed a commit to branch OAK-12177
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git
commit e0752c3db14a71c78e1fe1ff4515ae3948bea13d
Author: Julian Reschke <ju...@gmx.de>
AuthorDate: Tue Apr 14 15:28:37 2026 +0100
OAK-12177: improve diagnostics in DocumentNodeStoreIT
---
.../oak/plugins/document/DocumentNodeStoreIT.java | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStoreIT.java b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStoreIT.java
index d2fde3e593..b45e374e2a 100644
--- a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStoreIT.java
+++ b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStoreIT.java
@@ -245,12 +245,22 @@ public class DocumentNodeStoreIT extends AbstractDocumentStoreTest {
b1.setProperty("prop", -1);
ns1.merge(b1, EmptyHook.INSTANCE, CommitInfo.EMPTY);
+ long now = clock.getTime();
// create MANY previous docs
+ int mergeOps = 0;
for (int j = 0; j < 100; j++) {
for (int i = 0; i < NodeDocument.NUM_REVS_THRESHOLD; i++) {
- b1 = ns1.getRoot().builder();
- b1.setProperty("prop", i);
- ns1.merge(b1, EmptyHook.INSTANCE, CommitInfo.EMPTY);
+ try {
+ mergeOps += 1;
+ b1 = ns1.getRoot().builder();
+ b1.setProperty("prop", i);
+ ns1.merge(b1, EmptyHook.INSTANCE, CommitInfo.EMPTY);
+ } catch (DocumentStoreException dse) {
+ long elapsed = clock.getTime() - now;
+ fail("document store exception, likely because of lease updated failure after " + elapsed + " clock ticks of "
+ + clock + ", store: " + ns1.getDocumentStore() + ", " +
+ "after " + mergeOps + " merge operations, exception was: " + dse.getMessage());
+ }
}
ns1.runBackgroundOperations();
}