Fix PYTHON-2673.patch

This commit is contained in:
Noah Stapp 2025-07-30 11:23:42 -04:00
parent f5057288ee
commit 324bb159b7
3 changed files with 71 additions and 7 deletions

View File

@ -0,0 +1,64 @@
diff --git a/test/load_balancer/cursors.json b/test/load_balancer/cursors.json
index 43e4fbb4f..4e2a55fd4 100644
--- a/test/load_balancer/cursors.json
+++ b/test/load_balancer/cursors.json
@@ -376,7 +376,7 @@
]
},
{
+ "description": "pinned connections are not returned after an network error during getMore",
- "description": "pinned connections are returned after an network error during getMore",
"operations": [
{
"name": "failPoint",
@@ -440,7 +440,7 @@
"object": "testRunner",
"arguments": {
"client": "client0",
+ "connections": 1
- "connections": 0
}
},
{
@@ -659,7 +659,7 @@
]
},
{
+ "description": "pinned connections are not returned to the pool after a non-network error on getMore",
- "description": "pinned connections are returned to the pool after a non-network error on getMore",
"operations": [
{
"name": "failPoint",
@@ -715,7 +715,7 @@
"object": "testRunner",
"arguments": {
"client": "client0",
+ "connections": 1
- "connections": 0
}
},
{
diff --git a/test/load_balancer/sdam-error-handling.json b/test/load_balancer/sdam-error-handling.json
index 63aabc04d..462fa0aac 100644
--- a/test/load_balancer/sdam-error-handling.json
+++ b/test/load_balancer/sdam-error-handling.json
@@ -366,6 +366,9 @@
{
"connectionCreatedEvent": {}
},
+ {
+ "poolClearedEvent": {}
+ },
{
"connectionClosedEvent": {
"reason": "error"
@@ -378,9 +375,6 @@
"connectionCheckOutFailedEvent": {
"reason": "connectionError"
}
- },
- {
- "poolClearedEvent": {}
}
]
}

View File

@ -385,7 +385,7 @@
]
},
{
"description": "pinned connections are not returned after an network error during getMore",
"description": "pinned connections are returned after an network error during getMore",
"operations": [
{
"name": "failPoint",
@ -449,7 +449,7 @@
"object": "testRunner",
"arguments": {
"client": "client0",
"connections": 1
"connections": 0
}
},
{
@ -677,7 +677,7 @@
]
},
{
"description": "pinned connections are not returned to the pool after a non-network error on getMore",
"description": "pinned connections are returned to the pool after a non-network error on getMore",
"operations": [
{
"name": "failPoint",
@ -733,7 +733,7 @@
"object": "testRunner",
"arguments": {
"client": "client0",
"connections": 1
"connections": 0
}
},
{

View File

@ -372,9 +372,6 @@
{
"connectionCreatedEvent": {}
},
{
"poolClearedEvent": {}
},
{
"connectionClosedEvent": {
"reason": "error"
@ -384,6 +381,9 @@
"connectionCheckOutFailedEvent": {
"reason": "connectionError"
}
},
{
"poolClearedEvent": {}
}
]
}