-
Notifications
You must be signed in to change notification settings - Fork 1.1k
PYTHON-5528 & PYTHON-5651 Add exponential backoff to operation retry loop for server overloaded errors #2635
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
Open
blink1073
wants to merge
32
commits into
mongodb:backpressure
Choose a base branch
from
blink1073:PYTHON-5528-backpressure
base: backpressure
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+8,506
−210
Open
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
a23518b
PYTHON-5528 Add exponential backoff to operation retry loop for serve…
blink1073 9c6eeed
add async test
blink1073 f83e16b
fix test setup
blink1073 6333244
implement handshake prose test
blink1073 4644074
update unified test and add prose test
blink1073 4ba159c
fix overload retry for clientBulk
blink1073 1333881
fix prose test
blink1073 9a88851
PYTHON-5664 extract using `tar` command (#2636)
kevinAlbs 9e85611
update justfile from master
blink1073 77dc3b7
PYTHON-5656: Fixes broken link to aggregation pipeline docs. (#2627)
caseyclements 5dd20a1
Deprioritize previous servers for overload retry attempts
blink1073 49f605a
return type fixes
blink1073 d676283
update retry logic
blink1073 2a2251f
clean up tests
blink1073 a653b2d
update client bulkwrite logic
blink1073 14e401b
fix client bulk write handling
blink1073 901a27d
add transactions unified tests
blink1073 723af95
allow startTransaction to retry
blink1073 1f446b1
update min server version
blink1073 9197f3a
fix logic
blink1073 5885e3c
clean up unified tests
blink1073 61077d9
fix logic
blink1073 3cfdfee
fix logic
blink1073 816632a
typing
blink1073 cda4ff7
fix logic
blink1073 2a7472a
update test names and fix writeconcern handling
blink1073 7f94c31
sync tests
blink1073 e8e28ee
fix entity map
blink1073 bfbf230
sync tests
blink1073 ab3cdb7
Merge branch 'backpressure' into PYTHON-5528-backpressure
blink1073 69076cf
address review
blink1073 75746e9
Merge branch 'PYTHON-5528-backpressure' of github.com:blink1073/mongo…
blink1073 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
What's the motivation behind the change from this centralized method to a bunch of
def innerclosures?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.
Because we needed to pass a function to the retry helper class, and the logic for backpressure is centralized there