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

The branch detection service keeps recreating same branch if the branch name contains a comma

    XMLWordPrintable

Details

    Description

      The branch detection service that runs every 5 minutes keeps creating same branch after each iteration if the branch name contains characters. e.g DSP-241,380,401_hibernate-loaders. In this case, the problematic character is a comma. The logs shows the following:

      2013-08-30 23:07:16,260 INFO [5-BranchDetectionBackgroundThread:pool-9-thread-1] [BranchDetectionServiceImpl] Created branch with key TESTA-GIT4 for VCS branch VCS Branch [DSP-241,380,401_hibernate-loaders]
      2013-08-30 23:07:16,267 INFO [5-BranchDetectionBackgroundThread:pool-9-thread-1] [DashboardCacheListener] event: com.atlassian.bamboo.event.ChainCreatedEvent[source=com.atlassian.bamboo.build.creation.ChainBranchCreationServiceImpl@1b5756a1] plan=TESTA-GIT4
      2013-08-30 23:07:16,287 INFO [AtlassianEvent::0-BAM::EVENTS:pool-2-thread-14] [InitialBuildListener] Initial build for TESTA-GIT4
      2013-08-30 23:07:16,310 INFO [5-BranchDetectionBackgroundThread:pool-9-thread-1] [DashboardCachingManagerImpl] Plan cache updated for 1 plans in 0:00:00.023
      2013-08-30 23:07:16,317 INFO [5-BranchDetectionBackgroundThread:pool-9-thread-1] [BranchDetectionServiceImpl] Disabling chain branch TESTA-GIT4 because its vcsBranch is no longer detected as open.
      .
      .
      .
      .
      2013-08-30 23:07:22,012 ERROR [3-DelayedChangeDetectionThread:pool-6-thread-8] [RetryingTaskExecutor] Exception being rethrown
      2013-08-30 23:07:22,012 ERROR [3-DelayedChangeDetectionThread:pool-6-thread-8] [ChainExecutionManagerImpl] Errors getting changes for TESTA-GIT4-1
      java.lang.RuntimeException: com.atlassian.bamboo.repository.InvalidRepositoryException: Cannot determine head revision of 'https://sultanmaiyaki@bitbucket.org/sultanmaiyaki/bamboo-auto-create-issue.git' on branch 'DSP-241\,380\,401_hibernate-loaders'. Branch has probably been removed.
      	at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:132)
      	at com.atlassian.bamboo.executor.RetryingTaskExecutor.runTask(RetryingTaskExecutor.java:88)
      	at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:191)
      	at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:176)
      	at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectionChangesWithRetry(DefaultChangeDetectionManager.java:470)
      	at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceLastBuildInternal(DefaultChangeDetectionManager.java:331)
      	at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceRevisions(DefaultChangeDetectionManager.java:259)
      	at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceRevisions(DefaultChangeDetectionManager.java:161)
      	at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectAllChangesSinceLastBuild(DefaultChangeDetectionManager.java:127)
      	at com.atlassian.bamboo.build.BuildDetectionActionFactoryImpl$InitialBuildDetectionAction.performDelayedChangeDetection(BuildDetectionActionFactoryImpl.java:248)
      	at com.atlassian.bamboo.chains.ChainExecutionManagerImpl$2.getChainState(ChainExecutionManagerImpl.java:206)
      	at com.atlassian.bamboo.chains.ChainExecutionManagerImpl.tryStartChainState(ChainExecutionManagerImpl.java:259)
      	at com.atlassian.bamboo.chains.ChainExecutionManagerImpl.delayedStart(ChainExecutionManagerImpl.java:195)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:601)
      	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      	at $Proxy97.delayedStart(Unknown Source)
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              smaiyaki Sultan Maiyaki (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: