This is an automated email from the ASF dual-hosted git repository.
baedke pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git
The following commit(s) were added to refs/heads/trunk by this push:
new 3387059f1c OAK-10642: Add tests for operations on very large ordered
collections (#1303)
3387059f1c is described below
commit 3387059f1c90301f6adac0f3c1c90249f4dbdcc3
Author: mbaedke <[email protected]>
AuthorDate: Tue Feb 20 15:49:03 2024 +0100
OAK-10642: Add tests for operations on very large ordered collections
(#1303)
Added tests.
---
.../apache/jackrabbit/oak/jcr/ManyChildrenIT.java | 65 ++++++++++++++++++++++
1 file changed, 65 insertions(+)
diff --git
a/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/ManyChildrenIT.java
b/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/ManyChildrenIT.java
index a2bb7c0fa6..eeac7c5cc8 100644
--- a/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/ManyChildrenIT.java
+++ b/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/ManyChildrenIT.java
@@ -24,8 +24,11 @@ import javax.jcr.NodeIterator;
import javax.jcr.Session;
import org.apache.jackrabbit.oak.fixture.NodeStoreFixture;
+import org.junit.Ignore;
import org.junit.Test;
+import java.util.UUID;
+
/**
* Test nodes with many child nodes.
*/
@@ -77,4 +80,66 @@ public class ManyChildrenIT extends AbstractRepositoryTest {
writer.save();
assertTrue(test.hasNode("node-x"));
}
+
+ @Test
+ @Ignore //OAK-10646
+ public void orderableAddManyChildrenWithSave() throws Exception {
+ int childCount = 1000;
+ StringBuilder prefix = new StringBuilder("");
+ for (int k = 0; k < 90; k++) {
+ prefix.append("0123456789");
+ }
+ Session session = getAdminSession();
+ Node test = session.getRootNode().addNode("test", "nt:unstructured");
+ session.save();
+ for (int k = 0; k < childCount; k++) {
+ test.addNode(prefix.toString() + k, "nt:unstructured");
+ }
+ }
+
+ @Test
+ @Ignore //OAK-10646
+ public void moveOrderableWithManyChildren() throws Exception {
+ int childCount = 1000;
+ int moveCount = 1;
+ StringBuilder prefix = new StringBuilder("");
+ for (int k = 0; k < 90; k++) {
+ prefix.append("0123456789");
+ }
+ Session session = getAdminSession();
+ Node test = session.getRootNode().addNode("test-0", "nt:unstructured");
+ session.save();
+ for (int k = 0; k < childCount; k++) {
+ test.addNode(prefix.toString() + k, "nt:unstructured");
+ if (k % 100 == 0) {
+ session.save();
+ }
+ }
+ session.save();
+ session.move("/test-0", "/test-1");
+ session.save();
+ }
+
+ @Test
+ @Ignore //OAK-10646
+ public void copyOrderableWithManyChildren() throws Exception {
+ int childCount = 1000;
+ int copyCount = 1;
+ StringBuilder prefix = new StringBuilder("");
+ for (int k = 0; k < 90; k++) {
+ prefix.append("0123456789");
+ }
+ Session session = getAdminSession();
+ Node test = session.getRootNode().addNode("test-0", "nt:unstructured");
+ session.save();
+ for (int k = 0; k < childCount; k++) {
+ test.addNode(prefix.toString() + k, "nt:unstructured");
+ if (k % 100 == 0) {
+ session.save();
+ }
+ }
+ session.save();
+ session.getWorkspace().copy("/test-0", "/test-1");
+ session.save();
+ }
}