Comment 1 for bug 1484105

Revision history for this message
Junien F (axino) wrote :

I think I found the cause of this bug : stale data in the DB.

> db.services.findOne({_id : "ubuntu-mirror"} ).relationcount
8
> db.relations.find({ _id: { $regex: "ubuntu-mirror:" } }).count()
7

When trying to upgrade the charm, one of the transaction (txnOp) asserts that "relationcount" in the service is 7, while in the DB it 8. So the set of transaction fails, juju retries 4 times and ends up throwing an ExcessiveContention error.

Is my analysis correct ? How can I progress with this ?

Thanks !