Multiple tag detection threads on same file causing a repository exception

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: High
    • 9.2.7, 9.4.1
    • Affects Version/s: 9.2.3
    • Component/s: Triggers
    • None
    • 1
    • Severity 3 - Minor

      Issue Summary

      This is reproducible on Data Center: (yes) / (no)

      The issue is a repository exception where 2 threads are running tag detection at the same time. One thread is trying to use the file which the other thread is trying to make use of. 

      Steps to Reproduce

      While this is not reproducible, this is occurring as a result of Bamboo tag detection. Bamboo tries to make an SSH connection to check for tag detection. Bamboo attempts to delete the SSH file which has been deleted by a similar Bamboo's thread.

      Expected Results

      Bamboo should be able to delete the file before creating another one successfully an perform the tag detection.

      Actual Results

      The below exception is thrown in the atlassian-bamboo.log file:

      ERROR [19-TagDetectionBackgroundThread:pool-63-thread-1] [TagDetectionServiceImpl] An exception occurred when trying to read and handle tags from repositorycom.atlassian.bamboo.repository.RepositoryException: java.nio.file.NoSuchFileException: /opt/bamboo/temp/bamboo-ssh.2958cbb8.sh    at com.atlassian.bamboo.plugins.git.v2.GitTagsHandler.getAllTagsFromRepository(GitTagsHandler.java:64) ~[?:?] 

      Workaround

      None.

            Assignee:
            Sylwester Jeruzal (Inactive)
            Reporter:
            Mobolaji Koleowo (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: