diff --git a/.evergreen/spec-patch/PYTHON-5493.patch b/.evergreen/spec-patch/PYTHON-5493.patch new file mode 100644 index 0000000000..cf1afbb271 --- /dev/null +++ b/.evergreen/spec-patch/PYTHON-5493.patch @@ -0,0 +1,99 @@ +diff --git a/test/connection_logging/connection-logging.json b/test/connection_logging/connection-logging.json +index d40cfbb7e..5799e834d 100644 +--- a/test/connection_logging/connection-logging.json ++++ b/test/connection_logging/connection-logging.json +@@ -272,7 +272,13 @@ + "level": "debug", + "component": "connection", + "data": { +- "message": "Connection pool closed", ++ "message": "Connection closed", ++ "driverConnectionId": { ++ "$$type": [ ++ "int", ++ "long" ++ ] ++ }, + "serverHost": { + "$$type": "string" + }, +@@ -281,20 +287,15 @@ + "int", + "long" + ] +- } ++ }, ++ "reason": "Connection pool was closed" + } + }, + { + "level": "debug", + "component": "connection", + "data": { +- "message": "Connection closed", +- "driverConnectionId": { +- "$$type": [ +- "int", +- "long" +- ] +- }, ++ "message": "Connection pool closed", + "serverHost": { + "$$type": "string" + }, +@@ -303,8 +304,7 @@ + "int", + "long" + ] +- }, +- "reason": "Connection pool was closed" ++ } + } + } + ] +@@ -446,22 +446,6 @@ + } + } + }, +- { +- "level": "debug", +- "component": "connection", +- "data": { +- "message": "Connection pool cleared", +- "serverHost": { +- "$$type": "string" +- }, +- "serverPort": { +- "$$type": [ +- "int", +- "long" +- ] +- } +- } +- }, + { + "level": "debug", + "component": "connection", +@@ -514,6 +498,22 @@ + ] + } + } ++ }, ++ { ++ "level": "debug", ++ "component": "connection", ++ "data": { ++ "message": "Connection pool cleared", ++ "serverHost": { ++ "$$type": "string" ++ }, ++ "serverPort": { ++ "$$type": [ ++ "int", ++ "long" ++ ] ++ } ++ } + } + ] + } diff --git a/test/connection_logging/connection-logging.json b/test/connection_logging/connection-logging.json index 72103b3cab..5799e834d7 100644 --- a/test/connection_logging/connection-logging.json +++ b/test/connection_logging/connection-logging.json @@ -446,22 +446,6 @@ } } }, - { - "level": "debug", - "component": "connection", - "data": { - "message": "Connection pool cleared", - "serverHost": { - "$$type": "string" - }, - "serverPort": { - "$$type": [ - "int", - "long" - ] - } - } - }, { "level": "debug", "component": "connection", @@ -514,6 +498,22 @@ ] } } + }, + { + "level": "debug", + "component": "connection", + "data": { + "message": "Connection pool cleared", + "serverHost": { + "$$type": "string" + }, + "serverPort": { + "$$type": [ + "int", + "long" + ] + } + } } ] }