[
https://issues.apache.org/jira/browse/OAK-1696?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jukka Zitting resolved OAK-1696.
--------------------------------
Resolution: Fixed
Fixed in revisions 1586364 and 1586372 by postponing memory-mapping to only
after the possible recovery operations.
Also in revision 1587130 I added explicit file locking to prevent the
repository from being reopened before it has been shut down (cleanly or not),
which might be what happened in this case.
Merged the above changes to the 1.0 branch in revision 1587135.
Resolving as fixed.
> Repository fails to restart on Windows
> ---------------------------------------
>
> Key: OAK-1696
> URL: https://issues.apache.org/jira/browse/OAK-1696
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: segmentmk
> Affects Versions: 0.20.0
> Environment: Windows
> Reporter: Chetan Mehrotra
> Assignee: Jukka Zitting
> Priority: Blocker
> Fix For: 1.0
>
>
> Restarting an application running Oak/SegmentMK/Memory Mapped files fails to
> restart with following exception
> {noformat}
> 07.04.2014 16:50:22.679 ERROR [FelixStartLevel]
> org.apache.jackrabbit.oak-core
> [org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService(46)] The
> activate method has thrown an exception (java.io.IOException: Could not
> backup tar file
> E:\CQ_6.0\author\crx-quickstart\repository\segmentstore\data00003a.tar)
> java.io.IOException: Could not backup tar file
> E:\CQ_6.0\author\crx-quickstart\repository\segmentstore\data00003a.tar
> at
> org.apache.jackrabbit.oak.plugins.segment.file.TarReader.open(TarReader.java:109)
> at
> org.apache.jackrabbit.oak.plugins.segment.file.FileStore.<init>(FileStore.java:172)
> at
> org.apache.jackrabbit.oak.plugins.segment.file.FileStore.<init>(FileStore.java:134)
> at
> org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService.registerNodeStore(SegmentNodeStoreService.java:151)
> at
> org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService.activate(SegmentNodeStoreService.java:119)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)