[ https://issues.apache.org/jira/browse/OAK-5069?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15643781#comment-15643781 ]
Francesco Mari commented on OAK-5069: ------------------------------------- [~mduerig] I would add a new configuration option to the {{SegmentNodeStoreService}} with a sensitive default, e.g. a {{segment-store-backup}} folder under {{repository.home}}. > 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)