[ https://issues.apache.org/jira/browse/OAK-5069?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15663367#comment-15663367 ]
Michael Dürig commented on OAK-5069: ------------------------------------ Patch is on the right track IMO. Further work beyond this should go into OAK-4866. One thing that we should probably improve is the accepted configuration values for the location of the backup. Currently it only accepts paths relative to {{repository.home}}. I think it would desirable to also allow absolute paths here. [~frm], [~alex.parvulescu]: WDYT? bq. this is not an incremental backup, I think it should be. Please file a follow up issue for further investigating this. > 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 > Components: segment-tar > Affects Versions: 1.5.12 > Reporter: Andrei Dulceanu > Assignee: Andrei Dulceanu > Fix For: 1.6, 1.5.14 > > Attachments: OAK-5069-01.patch > > > 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)