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:
parent
db6dad95be
commit
a89c5e3a89
@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@ -244,11 +244,12 @@
|
||||
"failPoint": {
|
||||
"configureFailPoint": "failCommand",
|
||||
"mode": {
|
||||
"times": 1
|
||||
"times": 2
|
||||
},
|
||||
"data": {
|
||||
"failCommands": [
|
||||
"insert"
|
||||
"insert",
|
||||
"abortTransaction"
|
||||
],
|
||||
"blockConnection": true,
|
||||
"blockTimeMS": 600
|
||||
|
||||
@ -245,11 +245,12 @@
|
||||
"failPoint": {
|
||||
"configureFailPoint": "failCommand",
|
||||
"mode": {
|
||||
"times": 1
|
||||
"times": 2
|
||||
},
|
||||
"data": {
|
||||
"failCommands": [
|
||||
"insert"
|
||||
"insert",
|
||||
"abortTransaction"
|
||||
],
|
||||
"blockConnection": true,
|
||||
"blockTimeMS": 600
|
||||
|
||||
@ -242,11 +242,12 @@
|
||||
"failPoint": {
|
||||
"configureFailPoint": "failCommand",
|
||||
"mode": {
|
||||
"times": 1
|
||||
"times": 2
|
||||
},
|
||||
"data": {
|
||||
"failCommands": [
|
||||
"insert"
|
||||
"insert",
|
||||
"abortTransaction"
|
||||
],
|
||||
"blockConnection": true,
|
||||
"blockTimeMS": 600
|
||||
|
||||
Loading…
Reference in New Issue
Block a user