RunnerSuite.TestOneWorkerStartWhenStopping timed out

Bug #1583771 reported by Curtis Hovey
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
William Reade

Bug Description

As seen in
    http://reports.vapour.ws/releases/issue/573e1886749a56605000b574
The RunnerSuite.TestOneWorkerStartWhenStopping test fails when run under race conditions

runner_test.go:147:
    starter.assertStarted(c, true)
runner_test.go:351:
    c.Fatalf("timed out waiting for start notification")
... Error: timed out waiting for start notification

Curtis Hovey (sinzui)
Changed in juju-core:
importance: Medium → High
William Reade (fwereade)
Changed in juju-core:
assignee: nobody → William Reade (fwereade)
William Reade (fwereade)
Changed in juju-core:
status: Triaged → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: none → 2.0-beta14
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → In Progress
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 2.0-beta14 → 2.0-beta15
Revision history for this message
William Reade (fwereade) wrote :

Ha, found the other race now: just because the *worker* knows it's been started doesn't mean the *runner* knows that yet, which means that we need synchronisation between lines 136-137:

    starter.assertStarted(c, true)
    err = runner.StopWorker("id")

...lest the stop be ignored because "nothing is started", and the rest of the test continue to run against an unexpected state. Trying to think of something more reliable than a voodoo sleep.

Revision history for this message
William Reade (fwereade) wrote :
Changed in juju-core:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
affects: juju-core → juju
Changed in juju:
milestone: 2.0-beta15 → none
milestone: none → 2.0-beta15
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.