Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-22606

Multiple tag detection threads on same file causing a repository exception

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • High
    • 9.2.7, 9.4.1
    • 9.2.3
    • Triggers
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              0e9420ab33a9 Sylwester Jeruzal
              585c7f2b3568 Mobolaji Koleowo
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: