[ https://issues.apache.org/jira/browse/OAK-5069?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15647123#comment-15647123 ]
Valentin Olteanu commented on OAK-5069: --------------------------------------- I would say this is more a parameter to `startBackup` and `startRestore` than a global config (one might want to call `startBackup` at different times for different destinations - think about hourly/daily/monthly backups). In any case, I agree it should have a sensitive default, but I would go for the more homogenous `segmentstore-backup` :) Correct me if I'm wrong but I think this is an incremental backup. If not, maybe the default should include a timestamp. > 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)