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 2015/07/29 16:43:05 UTC
[jira] [Created] (OAK-3164) MemoryNodeStore issues duplicate
checkpoint
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)