XML Backup gets corrupted when generated while DVCS sync

XMLWordPrintable

    • 6.04
    • 23
    • Severity 3 - Minor
    • 5

      Summary

      XML Backup will be corrupted when generated while DVCS synchronization is running.

      Environment

      • DVCS is configured and sync is running

      Steps to Reproduce

      1. Configure JIRA with DVCS connection to Bitbucket
      2. While DVCS synchronization is running, create an XML backup

      Expected Results

      The XML backup created are usable and restored correctly

      Actual Results

      Trying to restore the XML backup created will throw the error in the UI and logs

      There was a problem restoring ActiveObjects data for the <unknown plugin> plugin. Caught exception with following message: ERROR: insert or update on table "AO_E8B6CC_ISSUE_TO_CHANGESET" violates foreign key constraint "fk_ao_e8b6cc_issue_to_changeset_changeset_id" Detail: Key (CHANGESET_ID)=(1885) is not present in table "AO_E8B6CC_CHANGESET_MAPPING". Please check the log for details.
      

      Workaround

      • Create an XML backup with the following JVM arguments in place ( restart required ). This will stop all outgoing connections:
        -Dhttp.proxyHost=127.255.255.255 -Dhttp.proxyPort=1234 -Dhttps.proxyHost=127.255.255.255 -Dhttps.proxyPort=1234 -Dhttp.nonProxyHosts=localhost
        
      • Rely on native database backup

            Assignee:
            Unassigned
            Reporter:
            Zul NS [Atlassian] (Inactive)
            Votes:
            22 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated: