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

Stopping a build causes "Final Stage" to never run resulting on build hang

    XMLWordPrintable

Details

    Description

      Summary

      • With "Final Stage" enabled, stopping build causes build to hang

      Environment

      • Bamboo v6.0.3
      • Final Stage (dark feature enabled)

      Steps to Reproduce

      1. create a Project - Plan (e.g. PROJ-PLAN)
      2. enable Final Stage by running:
        curl -u BAMBOO_ADMIN_USERNAME \
             -H "Content-Type: application/json" \
             -d '{"key":"bamboo.final.stages","enabled":true}' \
             -X PUT http://localhost:8085/rest/admin/latest/darkFeatures/bamboo.final.stages
        

        Reference: https://jira.atlassian.com/browse/BAM-9771

      3. create two other Stages
      4. create a Final Stage
      5. Stop build while running second stage (/build/admin/stopPlan.action)

      Expected Results

      Build should stop

      Actual Results

      The below is thrown in the <bamboo-install>/logs/catalina.out file:

      2017-06-30 16:16:39,197 INFO [http-nio-8085-exec-14] [AccessLogFilter] admin POST http://localhost:8085/build/admin/stopPlan.action?planKey=PROJ-PLAN0&returnUrl=%2Fbrowse%2FPROJ-PLAN0 679073kb
      2017-06-30 16:16:39,638 INFO [http-nio-8085-exec-14] [DefaultStopBuildManager] : Request to stop 'PROJ-PLAN0-TJ-1' received from admin
      2017-06-30 16:16:39,640 INFO [http-nio-8085-exec-14] [DefaultStopBuildManager] Stopping build PROJ-PLAN0-TJ-1 on agent 196609
      2017-06-30 16:16:39,640 INFO [http-nio-8085-exec-14] [DefaultStopBuildManager] Build PROJ-PLAN0-TJ-1 will be checked for termination at Fri Jun 30 16:17:39 BRT 2017
      2017-06-30 16:16:39,642 INFO [http-nio-8085-exec-14] [DefaultBuildAgent] Cancel build request for 'PROJ-PLAN0-TJ-1' received on agent 'Default Agent'.
      2017-06-30 16:16:39,643 INFO [http-nio-8085-exec-14] [DefaultBuildAgent] Interrupting task com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask@2a01827a.
      2017-06-30 16:16:39,645 INFO [17-BAM::Default Agent::Agent:pool-32-thread-1] [VcsCheckoutTask] PROJ-PLAN0-TJ-1: Updated source code to revision: 14
      2017-06-30 16:16:39,646 INFO [17-BAM::Default Agent::Agent:pool-32-thread-1] [PrepareBuildTask] PROJ-PLAN0-TJ-1: Running pre-build action: VCS Version Collector
      2017-06-30 16:16:39,646 INFO [17-BAM::Default Agent::Agent:pool-32-thread-1] [DefaultBuildAgent] Detected that build was cancelled... Aborting build process.
      2017-06-30 16:16:39,647 INFO [17-BAM::Default Agent::Agent:pool-32-thread-1] [LocalBuildResultProcessor] Processing build result PROJ-PLAN0-TJ-1...
      2017-06-30 16:16:39,647 INFO [17-BAM::Default Agent::Agent:pool-32-thread-1] [ExecutionPhaseServiceImpl] Elvin - Hung - branchB1 - Third Job #1 (PROJ-PLAN0-TJ-1) execution finished
      2017-06-30 16:16:39,647 WARN [17-BAM::Default Agent::Agent:pool-32-thread-1] [CurrentlyBuildingImpl] PROJ-PLAN0-TJ-1: timer being stopped, but timer isn't started
      2017-06-30 16:16:39,647 DEBUG [17-BAM::Default Agent::Agent:pool-32-thread-1] [LocalBuildResultProcessor] PROJ-PLAN0-TJ-1: Running on server: post build plugin 'NCover Results Collector'
      2017-06-30 16:16:39,649 DEBUG [17-BAM::Default Agent::Agent:pool-32-thread-1] [LocalBuildResultProcessor] PROJ-PLAN0-TJ-1: Running on server: post build plugin 'Build Hanging Detection Configuration'
      2017-06-30 16:16:39,650 DEBUG [17-BAM::Default Agent::Agent:pool-32-thread-1] [LocalBuildResultProcessor] PROJ-PLAN0-TJ-1: Running on server: post build plugin 'Clover Delta Calculator'
      2017-06-30 16:16:39,653 DEBUG [17-BAM::Default Agent::Agent:pool-32-thread-1] [LocalBuildResultProcessor] PROJ-PLAN0-TJ-1: Running on server: post build plugin 'Maven Dependencies Postprocessor'
      2017-06-30 16:16:39,657 INFO [http-nio-8085-exec-17] [AccessLogFilter] admin GET http://localhost:8085/chain/viewChain.action?planKey=PROJ-PLAN0 694096kb
      2017-06-30 16:16:39,664 DEBUG [17-BAM::Default Agent::Agent:pool-32-thread-1] [LocalBuildResultProcessor] PROJ-PLAN0-TJ-1: All post build plugins have finished
      2017-06-30 16:16:39,670 INFO [17-BAM::Default Agent::Agent:pool-32-thread-1] [PlanStatePersisterImpl] PROJ-PLAN0-TJ-1: Generating build results summary...
      2017-06-30 16:16:39,678 INFO [17-BAM::Default Agent::Agent:pool-32-thread-1] [PlanStatePersisterImpl] Updating delta states of build following PROJ-PLAN0-TJ-1
      2017-06-30 16:16:39,751 INFO [17-BAM::Default Agent::Agent:pool-32-thread-1] [CurrentlyBuildingContainer] removeCurrentlyBuilding called for [PROJ-PLAN0-TJ-1]
      2017-06-30 16:16:39,758 INFO [20-IndexerService.indexer:pool-36-thread-1] [DefaultBuildResultsIndexer] Indexed PROJ-PLAN0-TJ-1
      Security framework of XStream not initialized, XStream is probably vulnerable.
      2017-06-30 16:16:39,769 INFO [17-BAM::Default Agent::Agent:pool-32-thread-1] [DefaultBuildAgent] Changing context: PROJ-PLAN0-TJ-1 -> null on Default Agent/1c4088bd
      2017-06-30 16:16:39,769 INFO [17-BAM::Default Agent::Agent:pool-32-thread-1] [BuildAgentControllerImpl] Agent 'Default Agent' ready to take build from queue...
      2017-06-30 16:16:39,769 INFO [17-BAM::Default Agent::Agent:pool-32-thread-1] [BuildAgentControllerImpl] Agent 196609 checking build queue for executables...
      2017-06-30 16:16:39,769 INFO [AtlassianEvent::0-BAM::EVENTS:pool-1-thread-14] [BuildCompletedEventListener] Running build post actions 'PROJ-PLAN0-TJ'
      

      Attachments

        Issue Links

          Activity

            People

              aslaski Adam Slaski
              rsperafico Rafael Sperafico (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: