- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1.1k
PYTHON-5536 Avoid clearing the connection pool when the server connection rate limiter triggers #2509
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
          
     Merged
      
      
    
  
     Merged
                    PYTHON-5536 Avoid clearing the connection pool when the server connection rate limiter triggers #2509
Changes from all commits
      Commits
    
    
            Show all changes
          
          
            68 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      d24b4a5
              
                PYTHON-5503 Use uv to install just in GitHub Actions (#2490)
              
              
                blink1073 3a26119
              
                PYTHON-5502 Fix c extensions on OIDC VMs (#2489)
              
              
                blink1073 db3d3c7
              
                Prep for 4.14.1 release (#2495) [master] (#2496)
              
              
                sleepyStick f7b94be
              
                PYTHON-5143 Support auto encryption in unified tests (#2488)
              
              
                blink1073 9a9a65c
              
                PYTHON-5496 Update CSOT tests for change in dropIndex behavior in 8.3…
              
              
                blink1073 5e96353
              
                PYTHON-5508 - Add built-in DecimalEncoder and DecimalDecoder (#2499)
              
              
                NoahStapp e08284b
              
                PYTHON-5456 Support text indexes with auto encryption (#2500)
              
              
                blink1073 ddf9508
              
                PYTHON-5510 Fix server selection log message for commitTransaction (#…
              
              
                ShaneHarvey 3ebd934
              
                PYTHON-5514 Specific assertions for "is" and "is not None" (#2502)
              
              
                sleepyStick cd4e5db
              
                Bump pyright from 1.1.403 to 1.1.404 (#2506)
              
              
                dependabot[bot] 9892e1b
              
                Update coverage requirement from <=7.10.3,>=5 to >=5,<=7.10.5 (#2507)
              
              
                dependabot[bot] 1179c5c
              
                DRIVERS-3218 Avoid clearing the connection pool when the server conne…
              
              
                blink1073 bc91967
              
                set to one byte
              
              
                blink1073 8c361be
              
                Bump the actions group with 5 updates (#2505)
              
              
                dependabot[bot] 0d4c84e
              
                PYTHON-5519 Clean up uv handling (#2510)
              
              
                blink1073 f51e8a5
              
                update approach
              
              
                blink1073 c1fe2e3
              
                Merge branch 'master' of github.com:mongodb/mongo-python-driver into …
              
              
                blink1073 7584d2d
              
                Revert "Merge branch 'master' of github.com:mongodb/mongo-python-driv…
              
              
                blink1073 f1544aa
              
                undo topology changes
              
              
                blink1073 9d34e52
              
                improve sleep translation
              
              
                blink1073 bb5ac35
              
                improve sleep translation
              
              
                blink1073 957a87d
              
                PYTHON-5519 Clean up uv handling (#2510)
              
              
                blink1073 9d0af17
              
                add prose tests
              
              
                blink1073 da0c0e5
              
                debug
              
              
                blink1073 70b4113
              
                fix and update tests
              
              
                blink1073 c974d36
              
                fix logic
              
              
                blink1073 845f17a
              
                only backoff if conn is closed
              
              
                blink1073 09fc66d
              
                use AutoReconnect
              
              
                blink1073 84478d0
              
                update tests
              
              
                blink1073 532c1b8
              
                update handshake error tests
              
              
                blink1073 6890c73
              
                undo lock file changes
              
              
                blink1073 6f38a9b
              
                add test for limiting maxConnecting
              
              
                blink1073 0997248
              
                add sdam check
              
              
                blink1073 320cb54
              
                fix pool backoff
              
              
                blink1073 7734af7
              
                do not clear the pool on SystemOverloaded
              
              
                blink1073 452cdd6
              
                add retryable label
              
              
                blink1073 1f44c48
              
                PYTHON-5521 - Update TestBsonSizeBatches.test_06_insert_fails_over_16…
              
              
                NoahStapp fa5c151
              
                fix test
              
              
                blink1073 0ab78e4
              
                fix test
              
              
                blink1073 07d0233
              
                Revert "update handshake error tests"
              
              
                blink1073 771570d
              
                update maxConnecting test
              
              
                blink1073 6623261
              
                fix maxconnecting test
              
              
                blink1073 f602d4c
              
                fix handling of maxConnecting
              
              
                blink1073 64aa0af
              
                update test
              
              
                blink1073 7f6335e
              
                fix test
              
              
                blink1073 6db793d
              
                undo lock file changes
              
              
                blink1073 8c2eb91
              
                PYTHON-5538 Clean up uv lock file handling (#2522)
              
              
                blink1073 a84a181
              
                wip
              
              
                blink1073 c5ce8dd
              
                wip
              
              
                blink1073 679807e
              
                update backoff criteria
              
              
                blink1073 7e9f19f
              
                update backoff criteria
              
              
                blink1073 b0b5800
              
                update backoff criteria
              
              
                blink1073 a033c58
              
                handle the already closed case
              
              
                blink1073 ded90b0
              
                handle another edge case
              
              
                blink1073 2cd3c18
              
                Merge branch 'backpressure' of github.com:mongodb/mongo-python-driver…
              
              
                blink1073 0b4b265
              
                address review
              
              
                blink1073 7548f7b
              
                clean up logic
              
              
                blink1073 5e34bdc
              
                clean up logic
              
              
                blink1073 f1294dc
              
                do not try and label errors
              
              
                blink1073 6a47fc6
              
                address review
              
              
                blink1073 6d57549
              
                fix option pass
              
              
                blink1073 9fa3a6f
              
                update load balancer sdam tests
              
              
                blink1073 47e55b4
              
                update uri options
              
              
                blink1073 4f06bb6
              
                create new client
              
              
                blink1073 3c760e7
              
                try again
              
              
                blink1073 4cc6619
              
                address review
              
              
                blink1073 eaab484
              
                add pool backoff message
              
              
                blink1073 65832a7
              
                update enum
              
              
                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
    
  
  
    
              
  
    
      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.
Is calling
is_closinghere better? It'll catch more edge cases in theory.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.
Hmm let me try that.
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.
No, it is ambiguous as to whether
connection_lostas been called yet. Sinceconnection_lostis synchronous, checking forself._closed.done()assures that we have actually lost the connection.