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] [Created] (OAK-3164) MemoryNodeStore issues duplicate checkpoint
Date Wed, 29 Jul 2015 14:43:05 GMT
Chetan Mehrotra created OAK-3164:
------------------------------------

             Summary: MemoryNodeStore issues duplicate checkpoint
                 Key: OAK-3164
                 URL: https://issues.apache.org/jira/browse/OAK-3164
             Project: Jackrabbit Oak
          Issue Type: Bug
          Components: e
            Reporter: Chetan Mehrotra
            Assignee: Chetan Mehrotra
            Priority: Minor
             Fix For: 1.3.4


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