Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Add another patch for mgo. #8068
Conversation
|
$$merge$$ |
|
Status: merge request accepted. Url: http://ci.jujucharms.com/job/github-merge-juju |
jujubot
merged commit 5324747
into
juju:develop
Nov 15, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
jameinel commentedNov 14, 2017
Description of change
This one changes it so that if we find a document whose txn-queue is
growing too large, abort the transaction, rather than letting it grow
unbounded. This allows us to recover from a bad transaction in a much
more reasonable manner.
QA steps
Bootstrap a controller from the source created by "releasetests/make-release-tarball.sh"
You can use enable-ha if you so chose.
Go to machine-0 and inject and invalid transaction in a document (I like to use lease documents, because we know we try to touch them every 30s.)
Watch the transaction queue grow, but end up capped around 1000.
Remove the bad transaction from the queue.
See that everything actually recovers gracefully.
Documentation changes
None.
Bug reference
go-mgo/mgo#463
This is more about when we have problems, don't let them get as out of hand, than fixing the underlying problem.