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

Branches are marked as deleted when an error occurs during change detection.

    XMLWordPrintable

Details

    Description

      Consider the following flow:

      DefaultChangeDetectionManager#collectChangesWithRetry
        DefaultChangeDetectionManager#handleRepositoryExceptionForDeletedBranchWithRetry
          DefaultChangeDetectionManager#handleRepositoryExceptionForDeletedBranch
            ChainBranchManagerImpl#handleVcsBranchDeletedOfPlanBranch
      

      This is how exception thrown during change detection will lead to branch being marked as deleted.
      Then branch expiry could remove such branch.

      Possible ways to fix it

      • make smarter decision when marking branch as deleted
      • make BranchDeletionService verify such branches and reopen them?

      Workaround

      Disable deletion on branch expiry configuration for a plan.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kbrazulewicz Krystian Brazulewicz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: