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 "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2013/08/07 12:22:47 UTC

[jira] [Resolved] (OAK-943) Provide more details with CommitFailedException

     [ https://issues.apache.org/jira/browse/OAK-943?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chetan Mehrotra resolved OAK-943.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 0.9
         Assignee: Chetan Mehrotra

Committed the patch with revision http://svn.apache.org/r1511233
                
> Provide more details with CommitFailedException
> -----------------------------------------------
>
>                 Key: OAK-943
>                 URL: https://issues.apache.org/jira/browse/OAK-943
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 0.8
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>            Priority: Minor
>             Fix For: 0.9
>
>         Attachments: OAK-943.patch
>
>
> Currently if a commit fails due to conflict it throws following exception
> {noformat}
> Caused by: org.apache.jackrabbit.oak.api.CommitFailedException: OakState0001: Unresolved conflicts in /
> 	at org.apache.jackrabbit.oak.plugins.commit.ConflictValidator.failOnMergeConflict(ConflictValidator.java:82)
> 	at org.apache.jackrabbit.oak.plugins.commit.ConflictValidator.propertyChanged(ConflictValidator.java:59)
> 	at org.apache.jackrabbit.oak.spi.commit.CompositeEditor.propertyChanged(CompositeEditor.java:91)
> 	at org.apache.jackrabbit.oak.spi.commit.EditorDiff.propertyChanged(EditorDiff.java:93)
> 	at org.apache.jackrabbit.oak.plugins.memory.ModifiedNodeState.compareAgainstBaseState(ModifiedNodeState.java:355)
> 	at org.apache.jackrabbit.oak.spi.commit.EditorDiff.process(EditorDiff.java:52)
> {noformat}
> With this much information its hard to see the conflict details. To help in debugging such issues the exception message must include the conflict related information
> Discussion Thread - http://markmail.org/thread/4ipmyad6wwsy6th6

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