-
Notifications
You must be signed in to change notification settings - Fork 1.2k
PYTHON-5903 : Retry attempts should share a single stable operation_id #2901
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
base: master
Are you sure you want to change the base?
Changes from all commits
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 |
|---|---|---|
|
|
@@ -699,7 +699,7 @@ def require_failCommand_fail_point(self, func: Any) -> Any: | |
| func=func, | ||
| ) | ||
|
|
||
| def require_failCommand_appName(self, func): | ||
|
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. What's the purpose of this change?
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. It was needed to fix an untyped-decorator mypy error that was occurring in my test. This matches the signature of
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. You don't need both the |
||
| def require_failCommand_appName(self, func: Any) -> Any: | ||
| """Run a test only if the server supports the failCommand appName.""" | ||
| # SERVER-47195 and SERVER-49336. | ||
| return self._require( | ||
|
|
||
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.
I don't think we want to track op_id on connections. It introduces more risk of accidental inclusion or staleness on operations like auth compared to explicitly passing it through each operation. What about passing
op_idas a kwarg onConnection.command()and on_Query/_GetMorewhere operations are actually initiated?