This is an automated email from the ASF dual-hosted git repository. reschke pushed a commit to branch OAK-10997 in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git
commit 3a462749854ed4a480d1b55bb8ca193629db24c2 Author: Julian Reschke <resc...@apache.org> AuthorDate: Wed Jul 31 18:32:12 2024 +0100 OAK-10997: jcr: OrderableNodeTest with many children may fail with RDB (Derby) due to OOM --- .../test/java/org/apache/jackrabbit/oak/jcr/OrderableNodesTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/OrderableNodesTest.java b/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/OrderableNodesTest.java old mode 100644 new mode 100755 index 72cb3a818b..21add1ccdc --- a/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/OrderableNodesTest.java +++ b/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/OrderableNodesTest.java @@ -30,11 +30,13 @@ import javax.jcr.RepositoryException; import javax.jcr.Session; import org.apache.jackrabbit.commons.iterator.NodeIterable; +import org.apache.jackrabbit.oak.fixture.DocumentRdbFixture; import org.apache.jackrabbit.oak.fixture.NodeStoreFixture; import org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore; import org.apache.jackrabbit.oak.spi.state.NodeStore; import org.apache.jackrabbit.oak.spi.toggle.FeatureToggle; import org.apache.jackrabbit.oak.spi.whiteboard.Tracker; +import org.junit.Assume; import org.junit.Test; public class OrderableNodesTest extends AbstractRepositoryTest { @@ -118,6 +120,7 @@ public class OrderableNodesTest extends AbstractRepositoryTest { @Test public void orderableAddManyChildrenWithSave() throws Exception { + Assume.assumeTrue ("test is skipped for RDB (see OAK-10997)", !(fixture instanceof DocumentRdbFixture)); int childCount = 2000; StringBuilder prefix = new StringBuilder(""); //keep name length below 512, since that is the maximum supported by RDBDocumentStore @@ -134,6 +137,7 @@ public class OrderableNodesTest extends AbstractRepositoryTest { @Test public void moveOrderableWithManyChildren() throws Exception { + Assume.assumeTrue ("test is skipped for RDB (see OAK-10997)", !(fixture instanceof DocumentRdbFixture)); int childCount = 2000; StringBuilder prefix = new StringBuilder(""); //keep name length below 512, since that is the maximum supported by RDBDocumentStore @@ -156,6 +160,7 @@ public class OrderableNodesTest extends AbstractRepositoryTest { @Test public void copyOrderableWithManyChildren() throws Exception { + Assume.assumeTrue ("test is skipped for RDB (see OAK-10997)", !(fixture instanceof DocumentRdbFixture)); int childCount = 2000; StringBuilder prefix = new StringBuilder(""); //keep name length below 512, since that is the maximum supported by RDBDocumentStore