Duplicate values in AO_E8B6CC_REPOSITORY_MAPPING leads to DVCS sync job failure.

XMLWordPrintable

    • 8.05
    • 21
    • Severity 2 - Major
    • 44

      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.
       

            Assignee:
            awojtasik
            Reporter:
            Conny Postma (Inactive)
            Votes:
            6 Vote for this issue
            Watchers:
            17 Start watching this issue

              Created:
              Updated:
              Resolved: