jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chetan Mehrotra (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (OAK-3164) MemoryNodeStore issues duplicate checkpoint
Date Thu, 30 Jul 2015 12:58:05 GMT

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

Chetan Mehrotra updated OAK-3164:
---------------------------------
    Component/s:     (was: e)
                 core

> MemoryNodeStore issues duplicate checkpoint
> -------------------------------------------
>
>                 Key: OAK-3164
>                 URL: https://issues.apache.org/jira/browse/OAK-3164
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>            Priority: Minor
>             Fix For: 1.3.4
>
>         Attachments: OAK-3164.patch
>
>
> {{MemoryNodeStore}} can possibly issue duplicate checkpoint. In below logic if {{checkpoints}}
has one entry then on subsequent call to issue checkpoint the name would be set to {{checkpoint1}}
only. This causes AsyncIndexUpdate test to fail in some cases
> {code}
>     @Override
>     public String checkpoint(long lifetime, @Nonnull Map<String, String> properties)
{
>         checkArgument(lifetime > 0);
>         checkNotNull(properties);
>         String checkpoint = "checkpoint" + checkpoints.size();
>         checkpoints.put(checkpoint, new Checkpoint(getRoot(), properties));
>         return checkpoint;
>     }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message