Missing txn-revnos in mongodb leads to missing status updates
Bug #1666396 reported by
Paul Gear
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Today I found a 3rd occurrence of the missing txn-revnos in mongodb which were described in bug #1484105 (https:/
Version history for the affected environment is as follows:
2015-07-06 1.20.14-
2016-01-12 1.24.7-trusty-amd64
2016-09-06 1.25.6-trusty-amd64 (current version)
I followed the process which Tim walked me through previously (https:/
Changed in juju-core: | |
status: | New → Incomplete |
description: | updated |
To post a comment you must log in.
Short summary of mongodb commands involved:
db.statuses. find({" txn-revno" : {$exists: false}} ).count( ) find({" txn-queue" : {$exists: false}} ).count( ) update( {"txn-revno" : {$exists: false}} ,{$set: {"txn-revno": NumberLong(2), "lp1666396- 2017-02- 21": true }},{multi: true}) update( {"txn-queue" : {$exists: false}} ,{$set: {"txn-queue": [], "lp1666396- 2017-02- 21": true }},{multi: true}) find({" txn-queue" : {$exists: false}} ).count( ) find({" txn-revno" : {$exists: false}} ).count( ) find({" lp1666396- 2017-02- 21": true}).count()
db.statuses.
db.statuses.
db.statuses.
db.statuses.
db.statuses.
db.statuses.
Note that "lp1666396- 2017-02- 21" is an arbitrary text tag which is used to confirm the document counts.
Assigning to Tim at his request.