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 2013/08/23 18:07:51 UTC
[jira] [Commented] (OAK-976) MicroKernel.diff() return invalid JSON
(H2)
[ https://issues.apache.org/jira/browse/OAK-976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13748662#comment-13748662 ]
Michael Dürig commented on OAK-976:
-----------------------------------
To reproduce apply the patch from OAK-975 and run {{RootFuzzIT}} with {{-DRootFuzzIT-seed=1361614907}}. It will fail for the H2 Microkernel with
{code}
java.lang.IllegalArgumentException: ^"/root/N2352"
>[*]"/root/N2727":"/root/N2733"
expected: ':'
at org.apache.jackrabbit.mk.json.JsopTokenizer.getFormatException(JsopTokenizer.java:365)
at org.apache.jackrabbit.mk.json.JsopTokenizer.read(JsopTokenizer.java:102)
at org.apache.jackrabbit.oak.kernel.KernelNodeState.processJsonDiff(KernelNodeState.java:609)
at org.apache.jackrabbit.oak.kernel.KernelNodeState.compareAgainstBaseState(KernelNodeState.java:455)
at org.apache.jackrabbit.oak.kernel.JsopDiff.childNodeChanged(JsopDiff.java:143)
at org.apache.jackrabbit.oak.spi.state.AbstractNodeState.compareAgainstBaseState(AbstractNodeState.java:175)
at org.apache.jackrabbit.oak.kernel.KernelNodeState.compareAgainstBaseState(KernelNodeState.java:461)
at org.apache.jackrabbit.oak.kernel.KernelNodeStoreBranch$Persisted.persistTransientHead(KernelNodeStoreBranch.java:395)
at org.apache.jackrabbit.oak.kernel.KernelNodeStoreBranch$Persisted.<init>(KernelNodeStoreBranch.java:327)
at org.apache.jackrabbit.oak.kernel.KernelNodeStoreBranch$BranchState.persist(KernelNodeStoreBranch.java:168)
at org.apache.jackrabbit.oak.kernel.KernelNodeStoreBranch.move(KernelNodeStoreBranch.java:110)
at org.apache.jackrabbit.oak.core.AbstractRoot.move(AbstractRoot.java:182)
at org.apache.jackrabbit.oak.core.RootFuzzIT$Operation$MoveNode.apply(RootFuzzIT.java:221)
at org.apache.jackrabbit.oak.core.RootFuzzIT.fuzzTest(RootFuzzIT.java:125)
{code}
> MicroKernel.diff() return invalid JSON (H2)
> -------------------------------------------
>
> Key: OAK-976
> URL: https://issues.apache.org/jira/browse/OAK-976
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: mk
> Reporter: Michael Dürig
>
> {{MicroKernel.diff()}} returns sometimes
> {code}
> ^"/root/N2352"
> >"/root/N2727":"/root/N2733"
> {code}
> which should be
> {code}
> ^"/root/N2352":{}
> >"/root/N2727":"/root/N2733"
> {code}
> This only happens with the H2 based MicroKernel. MongoMK is fine.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira