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 "Tomek Rękawek (JIRA)" <ji...@apache.org> on 2016/12/21 10:02:58 UTC
[jira] [Commented] (OAK-5326) Not able to move segment store
directory on filesystem after closing FileStore
[ https://issues.apache.org/jira/browse/OAK-5326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15766657#comment-15766657 ]
Tomek Rękawek commented on OAK-5326:
------------------------------------
It's the same issue as described in OAK-4274. Right now we don't know any way to release previously MMAPed files on Windows.
> Not able to move segment store directory on filesystem after closing FileStore
> ------------------------------------------------------------------------------
>
> Key: OAK-5326
> URL: https://issues.apache.org/jira/browse/OAK-5326
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: upgrade
> Affects Versions: 1.5.13
> Environment: Windows 2012 R2,
> Java(TM) SE Run-time Environment (build 1.8.0_74-b02)
> Reporter: Arek Kita
>
> The JVM process that uses {{oak-upgrade}} library for upgrading Oak repository is not able to move source (and probably destination) repository after making sure that both file stores are closed.
> {code:title=oak-upgrade}
> 16.12.2016 17:15:31.463 INFO o.a.j.o.u.RepositorySidegrade: Copying node #770000:
> 16.12.2016 17:15:38.604 INFO o.a.j.o.u.RepositorySidegrade: Copying node #780000:
> 16.12.2016 17:15:39.495 INFO o.a.j.o.u.RepositorySidegrade: Copying node #790000:
> 16.12.2016 17:15:41.182 INFO o.a.j.o.s.f.FileStore: TarMK closed: C:\workspace\repository-segment-tar-20161216-171300\segmentstore
> 16.12.2016 17:15:41.370 INFO o.a.j.o.p.s.f.FileStore: TarMK closed: C:\workspace\repository\segmentstore
> 16.12.2016 17:17:11.604 ERROR java.io.IOException: Unable to delete file: C:\workspace\repository\segmentstore\journal.log
> at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2381) ~
> at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1679) ~
> at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1575) ~
> at org.apache.commons.io.FileUtils.moveDirectory(FileUtils.java:2916) ~
> ...
> {code}
> Is there any way to make all operations synchronised and finished after the migration is executed using the API method: {{OakUpgrade.migrate(MigrationOptions options, StoreArguments stores, DatastoreArguments datastores) throws IOException, CliArgumentException}}
> This leads to a weird experience when filesystem clean up (reordering) is needed.
> On Unix the {{segmentstore}} folder might be moved as UNIX fs implementation is not so restrictive. On Windows it is *not possible*.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)