Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-5069

Backup fails when called from RepositoryManagementMBean#startBackup

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.12
    • Fix Version/s: 1.5.14, 1.6.0
    • Component/s: segment-tar
    • Labels:
      None

      Description

      When calling RepositoryManagementMBean.startBackup, the operation fails with the following stacktrace:

      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
      

      /cc Michael Dürig

        Attachments

        1. OAK-5069-01.patch
          2 kB
          Andrei Dulceanu
        2. OAK-5069-02.patch
          2 kB
          Andrei Dulceanu

          Issue Links

            Activity

              People

              • Assignee:
                adulceanu Andrei Dulceanu
                Reporter:
                adulceanu Andrei Dulceanu
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: