[
https://issues.apache.org/jira/browse/OAK-3164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chetan Mehrotra resolved OAK-3164.
----------------------------------
Resolution: Fixed
Fix Version/s: 1.0.18
1.2.4
Fixed and merged to branches as its required for OAK-3155
* trunk - http://svn.apache.org/r1693525
* 1.0 - http://svn.apache.org/r1693527
* 1.2 - http://svn.apache.org/r1693530
> 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.2.4, 1.3.4, 1.0.18
>
> 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)