[ https://issues.apache.org/jira/browse/OAK-7834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16650146#comment-16650146 ]
Francesco Mari commented on OAK-7834: ------------------------------------- The first version of the patch implements a {{search}} command that scans the Segment Store for nodes with certain characteristics and prints their record IDs on stdout. Finding the super-root nodes at the moment is a specific solution to the more general problems of finding a node with two children named {{checkpoints}} and {{root}}. For this reason, I opted for a very simple interface to search nodes based on children names, property names, and property values. For example, finding the super-roots using the heuristic of the children named {{checkpoints}} and {{root}} is equivalent to: {noformat} java -jar oak-run.jar search path/to/store -c checkpoints -c root {noformat} Moreover, it is possible to find nodes with specific property values. For example, to find every node whose {{jcr:primaryType}} property is set to {{cq:Page}}, a user can invoke: {noformat} java -jar oak-run.jar search path/to/store -v jcr:primaryType=cq:Page {noformat} [~mduerig], [~dulceanu], [~ahanikel], what do you think? > Add a tool to identify super-root nodes > --------------------------------------- > > Key: OAK-7834 > URL: https://issues.apache.org/jira/browse/OAK-7834 > Project: Jackrabbit Oak > Issue Type: New Feature > Components: segment-tar > Reporter: Francesco Mari > Assignee: Francesco Mari > Priority: Major > Fix For: 1.10 > > Attachments: OAK-7834-01.patch > > > oak-segment-tar should have a tool that allows users to search for super-root > nodes. -- This message was sent by Atlassian JIRA (v7.6.3#76005)