Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-20781

Duplicate values in AO_E8B6CC_REPOSITORY_MAPPING leads to DVCS sync job failure.

    XMLWordPrintable

Details

    Description

      Problem

      There is no unique constraint in AO_E8B6CC_REPOSITORY_MAPPING.slug column and hence, however the DVCS code expects a unique value in that specific column.  If duplicate values are found in AO_E8B6CC_REPOSITORY_MAPPING then the below error will be written to the atlassian-jira log file.

      2020-11-24 22:10:30,938+0000 Caesium-1-4 ERROR ServiceRunner [c.a.scheduler.core.JobLauncher] Scheduled job with ID 'com.atlassian.jira.plugins.dvcs.scheduler.DvcsScheduler:job' failed
      java.lang.IllegalArgumentException: Multiple entries with same key: example-repo=[https://server/data/example-repo], example-repo, true, false, true and example-repo=[https://server/data/example-repo], example-repo, true, false, true. To index multiple values under a key, use Multimaps.index.
      

      Workaround

      An attempt to add a unique constraint to avoid duplicates was tested and led to other problems hence, there is no workaround for this issue.
       

      Attachments

        Issue Links

          Activity

            People

              f2a07b6310aa awojtasik
              cpostma@atlassian.com Conny Postma
              Votes:
              6 Vote for this issue
              Watchers:
              17 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: