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 "Julian Reschke (JIRA)" <ji...@apache.org> on 2017/10/23 10:34:00 UTC

[jira] [Commented] (OAK-6813) DocumentStore conditional remove: reduce set of supported conditions to what the Version GC needs

    [ https://issues.apache.org/jira/browse/OAK-6813?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16214935#comment-16214935 ] 

Julian Reschke commented on OAK-6813:
-------------------------------------

A simplified API proposal:

Change:
{noformat}
    <T extends Document> int remove(Collection<T> collection,
                                    Map<String, Map<UpdateOp.Key, UpdateOp.Condition>> toRemove)
            throws DocumentStoreException;
{noformat}

to
{noformat}
    <T extends Document> int remove(Collection<T> collection, List<Entry<String, Long>> toRemove)
            throws DocumentStoreException;
{noformat}

...where the list would contain pairs of Document IDs and MODIFIED values (to be checked with "equals")

> DocumentStore conditional remove: reduce set of supported conditions to what the Version GC needs
> -------------------------------------------------------------------------------------------------
>
>                 Key: OAK-6813
>                 URL: https://issues.apache.org/jira/browse/OAK-6813
>             Project: Jackrabbit Oak
>          Issue Type: Technical task
>          Components: documentmk
>            Reporter: Julian Reschke
>            Assignee: Julian Reschke
>             Fix For: 1.8
>
>         Attachments: OAK-6813.diff
>
>
> ...and verify in tests that implementations consistently reject other variants.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)