race: concurrent charm deployments corrupts deployments
Bug #1067979 reported by
Dave Cheney
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
High
|
Dimiter Naydenov |
Bug Description
lucky(~
[1] 4586
lucky(~
[2] 4592
lucky(~
[2]+ Exit 1 juju deploy -n10 mysql mysql-1
Related branches
lp://staging/~dimitern/juju-core/260-lp-1067979-duplicate-charm
- Dimiter Naydenov (community): Approve
-
Diff: 1365 lines (+560/-190)21 files modifiedcharm/repo.go (+2/-9)
charm/testing/mockstore.go (+12/-9)
environs/sync/sync.go (+6/-12)
environs/testing/storage.go (+17/-0)
environs/tools/testing/testing.go (+4/-9)
juju/conn.go (+1/-6)
juju/conn_test.go (+1/-1)
juju/testing/conn.go (+1/-1)
juju/testing/repo.go (+2/-7)
state/apiserver/charms.go (+2/-17)
state/apiserver/charms_test.go (+11/-16)
state/apiserver/client/client.go (+37/-13)
state/apiserver/client/client_test.go (+128/-14)
state/apiserver/export_test.go (+3/-4)
state/state.go (+144/-21)
state/state_test.go (+95/-28)
testing/charm.go (+19/-9)
utils/trivial.go (+26/-0)
utils/trivial_test.go (+46/-2)
worker/uniter/charm/charm.go (+2/-6)
worker/uniter/uniter_test.go (+1/-6)
summary: |
- race: concurrent charm deployments corrupts both deployments + race: concurrent charm deployments corrupts deployments |
Changed in juju-core: | |
milestone: | 1.9.1 → 1.9.2 |
Changed in juju-core: | |
milestone: | 1.9.2 → 1.9.3 |
Changed in juju-core: | |
milestone: | 1.9.3 → 1.9.4 |
Changed in juju-core: | |
milestone: | 1.9.4 → none |
tags: | added: deploy |
tags: | added: race-condition |
tags: | added: test-needed |
Changed in juju-core: | |
status: | Triaged → In Progress |
milestone: | none → 1.17.1 |
milestone: | 1.17.1 → 1.17.2 |
Changed in juju-core: | |
milestone: | 1.17.2 → 2.0 |
milestone: | 2.0 → 1.18.0 |
Changed in juju-core: | |
status: | In Progress → Fix Committed |
Changed in juju-core: | |
milestone: | 1.18.0 → 1.17.2 |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Still an issue
lucky(~ /src/launchpad. net/juju- core) % juju deploy -n7 wordpress & /src/launchpad. net/juju- core) % juju deploy -n7 wordpress wp-1 & /src/launchpad. net/juju- core) % error: cannot add charm: cannot add charm "cs:precise/ wordpress- 9": E11000 duplicate key error index: juju.charms.$_id_ dup key: { : "cs:precise/ wordpress- 9" }
[1] 12085
lucky(~
[2] 12089
lucky(~