[
https://issues.apache.org/jira/browse/OAK-8111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16785848#comment-16785848
]
Julian Reschke commented on OAK-8111:
-------------------------------------
Revised patch:
https://issues.apache.org/jira/secure/attachment/12961419/OAK-8111.diff
Note that when in read only mode the {{DocumentNodeStore}} will return a
clusterId of zero, so in that case the user will need to explicitly specify one
using {{--clusterId}}.
I tried to help with that, example output:
{noformat}
Apache Jackrabbit Oak 1.12-SNAPSHOT
(dryRun specified, defaulting to --readOnly)
DocumentNodeStore is in read-only mode, use --clusterId to select a non-null
clusterId...
Existing entries in the clusternodes collection:
1: {instance=C:\projects\apache\oak\trunk\oak-run,
lastWrittenRootRev=r16953d11461-0-1, machine=mac:1803733fd6b0,
_collisionsModCount=0, startTime=1551889404902, _id=1, state=null,
leaseEnd=null, _modified=0, _modCount=22, oakVersion=1.12-SNAPSHOT, info=id: 1,
startTime: 1551889404902, machineId: mac:1803733fd6b0, instanceId:
C:\projects\apache\oak\trunk\oak-run, pid: 19192, uuid:
7a457479-25cd-4b00-86ec-2baebefc6724, readWriteMode: null, leaseCheckMode:
STRICT, state: ACTIVE, oakVersion: 1.12-SNAPSHOT, formatVersion: 1.8.0}
{noformat}
> Create read-only DocumentNodeStore for oak-run recovery dry run
> ---------------------------------------------------------------
>
> Key: OAK-8111
> URL: https://issues.apache.org/jira/browse/OAK-8111
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: oak-run
> Reporter: Marcel Reutegger
> Assignee: Julian Reschke
> Priority: Minor
> Labels: candidate_oak_1_10, candidate_oak_1_8
> Fix For: 1.12
>
> Attachments: OAK-8111.diff, OAK-8111.diff
>
>
> The oak-run recovery command always creates a read-write DocumentNodeStore
> even when the dryRun flag is set. In dryRun mode, the command should create a
> read-only DocumentNodeStore.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)