PYTHON-5699 & PYTHON-5698 [Spec Resync] 01-26-2026 (#2685)

Co-authored-by: Cloud User <ec2-user@ip-10-128-52-19.ec2.internal>
This commit is contained in:
mongodb-drivers-pr-bot[bot] 2026-01-26 13:36:51 -06:00 committed by GitHub
parent db6dad95be
commit a89c5e3a89
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 337 additions and 6 deletions

View File

@ -23,6 +23,12 @@
"database": "database",
"collectionName": "logging-tests-collection"
}
},
{
"session": {
"id": "session",
"client": "client"
}
}
],
"initialData": [
@ -210,6 +216,328 @@
]
}
]
},
{
"description": "A successful commitTransaction command",
"runOnRequirements": [
{
"topologies": [
"replicaset",
"sharded"
]
}
],
"operations": [
{
"name": "startTransaction",
"object": "session"
},
{
"name": "insertOne",
"object": "collection",
"arguments": {
"session": "session",
"document": {
"_id": 2,
"x": 22
}
}
},
{
"name": "commitTransaction",
"object": "session"
}
],
"expectLogMessages": [
{
"client": "client",
"messages": [
{
"level": "debug",
"component": "command",
"data": {
"message": "Command started",
"databaseName": "logging-tests",
"commandName": "insert",
"command": {
"$$type": "string"
},
"requestId": {
"$$type": [
"int",
"long"
]
},
"serverHost": {
"$$type": "string"
},
"serverPort": {
"$$type": [
"int",
"long"
]
}
}
},
{
"level": "debug",
"component": "command",
"data": {
"message": "Command succeeded",
"databaseName": "logging-tests",
"commandName": "insert",
"reply": {
"$$type": "string"
},
"requestId": {
"$$type": [
"int",
"long"
]
},
"serverHost": {
"$$type": "string"
},
"serverPort": {
"$$type": [
"int",
"long"
]
},
"durationMS": {
"$$type": [
"double",
"int",
"long"
]
}
}
},
{
"level": "debug",
"component": "command",
"data": {
"message": "Command started",
"databaseName": "admin",
"commandName": "commitTransaction",
"command": {
"$$type": "string"
},
"requestId": {
"$$type": [
"int",
"long"
]
},
"serverHost": {
"$$type": "string"
},
"serverPort": {
"$$type": [
"int",
"long"
]
}
}
},
{
"level": "debug",
"component": "command",
"data": {
"message": "Command succeeded",
"databaseName": "admin",
"commandName": "commitTransaction",
"reply": {
"$$type": "string"
},
"requestId": {
"$$type": [
"int",
"long"
]
},
"serverHost": {
"$$type": "string"
},
"serverPort": {
"$$type": [
"int",
"long"
]
},
"durationMS": {
"$$type": [
"double",
"int",
"long"
]
}
}
}
]
}
]
},
{
"description": "A successful abortTransaction command",
"runOnRequirements": [
{
"topologies": [
"replicaset",
"sharded"
]
}
],
"operations": [
{
"name": "startTransaction",
"object": "session"
},
{
"name": "insertOne",
"object": "collection",
"arguments": {
"session": "session",
"document": {
"_id": 3,
"x": 33
}
}
},
{
"name": "abortTransaction",
"object": "session"
}
],
"expectLogMessages": [
{
"client": "client",
"messages": [
{
"level": "debug",
"component": "command",
"data": {
"message": "Command started",
"databaseName": "logging-tests",
"commandName": "insert",
"command": {
"$$type": "string"
},
"requestId": {
"$$type": [
"int",
"long"
]
},
"serverHost": {
"$$type": "string"
},
"serverPort": {
"$$type": [
"int",
"long"
]
}
}
},
{
"level": "debug",
"component": "command",
"data": {
"message": "Command succeeded",
"databaseName": "logging-tests",
"commandName": "insert",
"reply": {
"$$type": "string"
},
"requestId": {
"$$type": [
"int",
"long"
]
},
"serverHost": {
"$$type": "string"
},
"serverPort": {
"$$type": [
"int",
"long"
]
},
"durationMS": {
"$$type": [
"double",
"int",
"long"
]
}
}
},
{
"level": "debug",
"component": "command",
"data": {
"message": "Command started",
"databaseName": "admin",
"commandName": "abortTransaction",
"command": {
"$$type": "string"
},
"requestId": {
"$$type": [
"int",
"long"
]
},
"serverHost": {
"$$type": "string"
},
"serverPort": {
"$$type": [
"int",
"long"
]
}
}
},
{
"level": "debug",
"component": "command",
"data": {
"message": "Command succeeded",
"databaseName": "admin",
"commandName": "abortTransaction",
"reply": {
"$$type": "string"
},
"requestId": {
"$$type": [
"int",
"long"
]
},
"serverHost": {
"$$type": "string"
},
"serverPort": {
"$$type": [
"int",
"long"
]
},
"durationMS": {
"$$type": [
"double",
"int",
"long"
]
}
}
}
]
}
]
}
]
}

View File

@ -244,11 +244,12 @@
"failPoint": {
"configureFailPoint": "failCommand",
"mode": {
"times": 1
"times": 2
},
"data": {
"failCommands": [
"insert"
"insert",
"abortTransaction"
],
"blockConnection": true,
"blockTimeMS": 600

View File

@ -245,11 +245,12 @@
"failPoint": {
"configureFailPoint": "failCommand",
"mode": {
"times": 1
"times": 2
},
"data": {
"failCommands": [
"insert"
"insert",
"abortTransaction"
],
"blockConnection": true,
"blockTimeMS": 600

View File

@ -242,11 +242,12 @@
"failPoint": {
"configureFailPoint": "failCommand",
"mode": {
"times": 1
"times": 2
},
"data": {
"failCommands": [
"insert"
"insert",
"abortTransaction"
],
"blockConnection": true,
"blockTimeMS": 600