jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dürig (JIRA) <j...@apache.org>
Subject [jira] [Commented] (OAK-3316) BTreeManager doesn't work
Date Tue, 09 Apr 2019 15:00:00 GMT

    [ 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)

Mime
View raw message