Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fsync mongo so new lease queries are up to date
Mongo doesn't know about our clock implementation. So even though we've advanced our clock we might not have waited for mongo to write the changes to disk before asking for the expired leases and trying to claim a new one. I was able to reproduce this pretty easily within 100 or so runs. With mgo.Session.Fsync I haven't triggered it within ~3000 runs. Fixes https://bugs.launchpad.net/juju/+bug/1614256
- Loading branch information