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 "Marcel Reutegger (JIRA)" <ji...@apache.org> on 2017/03/16 10:40:41 UTC

[jira] [Updated] (OAK-4774) Check usage of DocumentStoreException in MongoDocumentStore

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

Marcel Reutegger updated OAK-4774:
----------------------------------
    Attachment: OAK-4774-1.4.patch

I'd like to backport this to branches. However, there are some changes required, because earlier branches use a different MongoDB Java Driver version and the fongo test dependency had to be changed accordingly.

There also seems to be an issue with the bundle plugin. OAK-4774 adds test classes in the {{com.mongodb}} package, which seems to confuse the plugin and it omits the {{resolution:=optional}} directive even if the MongoDB Java Driver is declared as optional in the POM. I therefore had to add an explicit {{Import-Package}} to oak-core.

[~chetanm], can you please review the attached patch for 1.4 [^OAK-4774-1.4.patch]?

> Check usage of DocumentStoreException in MongoDocumentStore
> -----------------------------------------------------------
>
>                 Key: OAK-4774
>                 URL: https://issues.apache.org/jira/browse/OAK-4774
>             Project: Jackrabbit Oak
>          Issue Type: Task
>          Components: core, mongomk
>            Reporter: Marcel Reutegger
>            Assignee: Marcel Reutegger
>            Priority: Minor
>              Labels: candidate_oak_1_0, candidate_oak_1_2, candidate_oak_1_4, resilience
>             Fix For: 1.5.11, 1.6.0
>
>         Attachments: OAK-4774-1.4.patch
>
>
> With OAK-4771 the usage of DocumentStoreException was clarified in the DocumentStore interface. The purpose of this task is to check usage of the DocumentStoreException in MongoDocumentStore and make sure MongoDB Java driver specific exceptions are handled consistently and wrapped in a DocumentStoreException. At the same time, cache consistency needs to be checked as well in case of a driver exception. E.g. invalidate if necessary.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)