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

DVCS Running hourly sync job blocks adding repositories to newly added organization

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 9.15.2
    • 8.13.0, 8.20.0, 8.22.0, 8.20.10
    • DVCS Connector
    • None

    Description

      Issue Summary

      This is reproducible on Data Center: yes

      In DVCS there are two jobs. First one is sync job which synchronize organizations in every hour. Second one is a job which adds repositories to newly added organization. The problem is that both jobs use the same cluster lock com.atlassian.jira.plugins.dvcs.service.RepositoryService.syncRepositoryList. It may happen that second job won’t start because first job is in progress and holds lock.

      Steps to Reproduce

      1. Hourly job should be in progress. When it starts and how long it runs you can check here:
        • ⚙ -> System -> Scheduled details
        • Search for “com.atlassian.jira.plugins.dvcs.scheduler.DvcsScheduler” click "Show more"
        • You should see similar details:
      2. Add new organization on DVCS admin panel. 

      Expected Results

      Organization should be added and should have all repositories.

      Actual Results

      Organization is added to DVCS but without repositories:

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

      Attachments

        1. jobDetails.png
          jobDetails.png
          37 kB
        2. orgWithoutRepos.png
          orgWithoutRepos.png
          89 kB

        Issue Links

          Activity

            People

              1c017edd2c81 awojtasik
              5364cbaf95e3 Artur Luszcz (Inactive)
              Votes:
              7 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: