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

      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

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

          Form Name

            [JSWSERVER-21411] DVCS Running hourly sync job blocks adding repositories to newly added organization

            Our team have encountered this bug in our instance and it is having a significant impact on our operations. The details of the bug align closely with our experience, causing considerable disruption in our workflow.

            Jira version: 9.4.12
            Jira DVCS Connector Plugin version: 5.11.14

            Maksim Zazeka added a comment - Our team have encountered this bug in our instance and it is having a significant impact on our operations. The details of the bug align closely with our experience, causing considerable disruption in our workflow. Jira version: 9.4.12 Jira DVCS Connector Plugin version: 5.11.14

            Affecting 9.4.4

            Steve Letch added a comment - Affecting 9.4.4

            This is still affecting us on Jira 8.20.

            Caterina Trainito added a comment - This is still affecting us on Jira 8.20.

              7e8b5dfc9af0 Nitesh Giri
              5364cbaf95e3 Artur Luszcz (Inactive)
              Affected customers:
              7 This affects my team
              Watchers:
              20 Start watching this issue

                Created:
                Updated:
                Resolved: