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 "Michael Dürig (JIRA)" <ji...@apache.org> on 2016/11/07 10:26:58 UTC

[jira] [Commented] (OAK-5069) Backup fails when called from RepositoryManagementMBean#startBackup

    [ https://issues.apache.org/jira/browse/OAK-5069?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15643760#comment-15643760 ] 

Michael Dürig commented on OAK-5069:
------------------------------------

My bad. The registration of the {{FileStoreBackupRestoreMBean}} in {{SegmentNodeStoreService}} passes the directory of the current segment store as the destination of the backup. This is clearly wrong. 

The question now is, what location do we pass in for the backup/restore directory? Where is this value coming from? [~alex.parvulescu], [~frm] any idea how this was supposed to work? Just add a configuration option to the {{SegmentNodeStoreService}}?

> Backup fails when called from RepositoryManagementMBean#startBackup
> -------------------------------------------------------------------
>
>                 Key: OAK-5069
>                 URL: https://issues.apache.org/jira/browse/OAK-5069
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>    Affects Versions: 1.5.12
>            Reporter: Andrei Dulceanu
>            Assignee: Andrei Dulceanu
>             Fix For: 1.5.14
>
>
> When calling {{RepositoryManagementMBean.startBackup}}, the operation fails with the following stacktrace:
> {code:java}
> 04.11.2016 13:12:56.733 *ERROR* [qtp2039314079-250] org.apache.jackrabbit.oak.management.ManagementOperation Backup failed
> java.lang.IllegalStateException: /repository/segmentstore is in use by another store.
>         at org.apache.jackrabbit.oak.segment.file.FileStore.<init>(FileStore.java:168)
>         at org.apache.jackrabbit.oak.segment.file.FileStoreBuilder.build(FileStoreBuilder.java:304)
>         at org.apache.jackrabbit.oak.backup.impl.FileStoreBackupImpl.backup(FileStoreBackupImpl.java:65)
>         at org.apache.jackrabbit.oak.backup.impl.FileStoreBackupRestoreImpl$1.call(FileStoreBackupRestoreImpl.java:102)
>         at org.apache.jackrabbit.oak.backup.impl.FileStoreBackupRestoreImpl$1.call(FileStoreBackupRestoreImpl.java:97)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>         at java.lang.Thread.run(Thread.java:745)
> Caused by: java.nio.channels.OverlappingFileLockException: null
>         at sun.nio.ch.SharedFileLockTable.checkList(FileLockTable.java:255)
>         at sun.nio.ch.SharedFileLockTable.add(FileLockTable.java:152)
>         at sun.nio.ch.FileChannelImpl.lock(FileChannelImpl.java:1062)
>         at java.nio.channels.FileChannel.lock(FileChannel.java:1053)
>         at org.apache.jackrabbit.oak.segment.file.FileStore.<init>(FileStore.java:166)
>         ... 8 common frames omitted
> {code}
> /cc [~mduerig]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)