[ https://issues.apache.org/jira/browse/OAK-6220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16011963#comment-16011963 ]
Chetan Mehrotra commented on OAK-6220: -------------------------------------- bq. I think the existing MemoryNodeStore already supports this to some degree. It's in-memory only and does not expose the checkpoints of an underlying store, but it can be based on any NodeState. Yes that would be much simpler. Just construct a MemoryNodeStore based on current DocumentNodeState and it would take care of rest. > Copy on write node store implementation > --------------------------------------- > > Key: OAK-6220 > URL: https://issues.apache.org/jira/browse/OAK-6220 > Project: Jackrabbit Oak > Issue Type: New Feature > Components: core > Reporter: Tomek Rękawek > Fix For: 1.8 > > Attachments: OAK-6220-2.patch, OAK-6220.patch > > > The copy-on-write (COW) node store implementation would allow to temporarily > switch the repository into the "testing" mode, in which all the changes are > saved in a reversible way. After switching back to the "production" mode, the > test changes should be dropped. > This should include checkpoints as well. > Because the SegmentNodeStore supports COW natively, we may simply copy the / > tree to some user-provided path and use it as a new root. For the > DocumentNodeStore we'll need something more complex. -- This message was sent by Atlassian JIRA (v6.3.15#6346)