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

Pausing and quickly unpausing bamboo while builds are running causes it to pause again some time later

    XMLWordPrintable

Details

    Description

      On the plugin management page, if I click the pause button, followed quickly by the cancel pause button, Bamboo will pause then unpause as expected.

      However if a build is running at the time, then it will pause itself again later once that build finishes. I'm not sure if a build just has to be running, or requests for builds have to be coming in as well for this to occur.

      Attached a screenshot of it going from "RUNNING" to "PAUSED" without going to "PAUSING" first.

      I think this happens because the queue watcher doesn't get cancelled properly when resumeServer() is called. The queue watcher spins in a loop waiting to transition the server from "PAUSING" to "PAUSED". When you call resumeServer(), it sends a cancel to the watcher.

      I'm unsure, but I believe that since the watcher has a second callable inside it that blocks when build requests are being made, the watcher is cancelled but the inner blocked callable hangs around and executes anyway, transitioning it from "RUNNING" directly to "PAUSED".

      Attachments

        Activity

          People

            Unassigned Unassigned
            drizzuto David Rizzuto
            Votes:
            5 Vote for this issue
            Watchers:
            13 Start watching this issue

            Dates

              Created:
              Updated: