You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Michael Dürig (JIRA)" <ji...@apache.org> on 2019/04/09 15:00:00 UTC

[jira] [Commented] (OAK-3316) BTreeManager doesn't work

    [ https://issues.apache.org/jira/browse/OAK-3316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16813513#comment-16813513 ] 

Michael Dürig commented on OAK-3316:
------------------------------------

Unassigning myself as I don't have the capacity to work on this

> BTreeManager doesn't work
> -------------------------
>
>                 Key: OAK-3316
>                 URL: https://issues.apache.org/jira/browse/OAK-3316
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: jcr
>    Affects Versions: 1.2.2
>         Environment: Adobe AEM 6.1
>            Reporter: Sam Shao
>            Priority: Major
>
> See my codes below. It fails on 41 node.
> Session session = req.getResourceResolver().adaptTo(Session.class);
> Node contentNode = session.getNode("/content");
> Node testNode = contentNode.hasNode("test1") ? contentNode.getNode("test1") : contentNode.addNode("test1");
> BTreeManager manager = new BTreeManager(testNode, 20, 40, Rank.<String>comparableComparator(), true);
> NodeSequence nodes = ItemSequence.createNodeSequence(manager);
> for (int i = 0; i < 100; ++i) {
>     String name = "Node" + String.format("%02d", (i + 1));
>     writer.write("Creating node [" + name + "] ...");
>     nodes.addNode(name, NodeType.NT_UNSTRUCTURED);
>     writer.write(" Done.\n");
> }



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)