Tests fail using the mongo package from raring, or ppa

Bug #1175493 reported by Dave Cheney
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
Critical
Andrew Wilkins

Bug Description

The version of mongo that we install for Raring (from the archive) or Quantal & Precise (from PPA) does not pass unit tests.

This is a serious problem.

Revision history for this message
Данило Шеган (danilo) wrote :

This is a "go test ./..." run on raring with packaged mongodb (2.2.4-0ubuntu1) on arm64.

All the tests pass successfully with our tarball mongodb 2.2.0.

Revision history for this message
Dave Cheney (dave-cheney) wrote :

I've been chasing this off and on for a few days now. Here is what I know so far

1. there were some races, i've fixed those

2. this absolutely happens with the packaged mongo, and absolutely does not happen with our tarball

3. it is not actually a problem with TLS, i've added debugging to crypto/tls and we are negotiating the same ciphers

4. i believe it is either

  a. a race between cleaning up the mongo server and the cleanup actions themselves that try to remove the juju and presence tables. once they fail, then the next test does not run cleanly, and more failures propagate from that.

  b. a packet we send to mongo which isn't valid for 2.2.4, causing it to slam the connection closed.

5. if I run the tests under the race detector, they pass, which gives me more ammunition to think it is a race on the cleanup actions of the test.

William Reade (fwereade)
Changed in juju-core:
status: Confirmed → Triaged
Revision history for this message
Andrew Wilkins (axwalk) wrote :

FWIW, I have not had any issues with the packaged version in Raring (amd64).

Revision history for this message
Dave Cheney (dave-cheney) wrote :

Confirmed. Thank you.

Changed in juju-core:
milestone: 1.10.1 → 1.13.0
status: Triaged → Fix Committed
Changed in juju-core:
status: Fix Committed → Fix Released
assignee: nobody → Andrew Wilkins (axwalk)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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