Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-2702

Backups created while updates occur cannot be restored.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • 5.5
    • 5.2.0.Final
    • None
    • None
    • Hide

      Create a repository with some content that will take some time to back it up.
      Update something that already exists in the repository WHILE doing a backup.
      Attempt to restore the backup.

      Show
      Create a repository with some content that will take some time to back it up. Update something that already exists in the repository WHILE doing a backup. Attempt to restore the backup.

      RepositoryManager.backupRepository() succeeds whether there are concurrent updates or not. When concurrent updates occur, the backup directory contains documents in "changes/documents_000001.bin.gz". In cases where documents exist in that file that have the same key as documents in the main documents_000001.bin.gz, a database error occurs on RepositoryManager.restoreRepository() with the message: java.sql.BatchUpdateException: Duplicate entry '87a0a8c7505d64c1ae7b49-16d3-4c8c-9709-9bfb2a20420c' for key 'PRIMARY'

              Unassigned Unassigned
              mdurbin_jira Michael Durbin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: