-
Notifications
You must be signed in to change notification settings - Fork 59
"Fix" flaky sharded cluster tests #682
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 9 commits
8e185f6
64b52ef
91ff11a
3eb7bd1
6ae02a6
db1562d
6d88a50
bbae06f
2c6a9c1
ddfa4d5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -49,7 +49,7 @@ def mongo_tester(mdb: MongoDB): | |
| def mdb_health_checker(mongo_tester: MongoTester) -> MongoDBBackgroundTester: | ||
| return MongoDBBackgroundTester( | ||
| mongo_tester, | ||
| allowed_sequential_failures=1, | ||
|
nammn marked this conversation as resolved.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hmmm fair point, but at the same time we don't expect writes to be down the whole migration, just for some amount of time.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, but the issue is that the downtime intervals are not deterministic. There can be one or N re-elections, we won't know until optimize the restart order. So from a testing standpoint, while there are any pods which are restarting, the writes will not be deterministically available |
||
| allowed_sequential_failures=5, | ||
| health_function_params={ | ||
| "attempts": 1, | ||
| "write_concern": pymongo.WriteConcern(w="majority"), | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that test is racy