From febefbe0f0bfd59c212121040c5196cce7588d97 Mon Sep 17 00:00:00 2001 From: Kevin Albertson Date: Fri, 1 Dec 2023 12:25:24 -0500 Subject: [PATCH 1/2] remove ExceededTimeLimit.json, rename exceededTimeLimit.json to exceededTimeLimit2.json --- .../unified/ExceededTimeLimit.json | 170 ------------------ ...TimeLimit.json => exceededTimeLimit2.json} | 0 2 files changed, 170 deletions(-) delete mode 100644 src/libmongoc/tests/json/retryable_reads/unified/ExceededTimeLimit.json rename src/libmongoc/tests/json/retryable_reads/unified/{exceededTimeLimit.json => exceededTimeLimit2.json} (100%) diff --git a/src/libmongoc/tests/json/retryable_reads/unified/ExceededTimeLimit.json b/src/libmongoc/tests/json/retryable_reads/unified/ExceededTimeLimit.json deleted file mode 100644 index dba29d53c5..0000000000 --- a/src/libmongoc/tests/json/retryable_reads/unified/ExceededTimeLimit.json +++ /dev/null @@ -1,170 +0,0 @@ -{ - "description": "ExceededTimeLimit is a retryable read", - "schemaVersion": "1.3", - "runOnRequirements": [ - { - "minServerVersion": "4.2", - "topologies": [ - "replicaset", - "sharded", - "load-balanced" - ], - "auth": true - } - ], - "createEntities": [ - { - "client": { - "id": "client0", - "useMultipleMongoses": false, - "observeEvents": [ - "commandStartedEvent" - ] - } - }, - { - "database": { - "id": "database0", - "client": "client0", - "databaseName": "find-tests" - } - }, - { - "collection": { - "id": "collection0", - "database": "database0", - "collectionName": "coll0" - } - } - ], - "initialData": [ - { - "collectionName": "coll0", - "databaseName": "find-tests", - "documents": [ - { - "_id": 1, - "x": 11 - }, - { - "_id": 2, - "x": 22 - }, - { - "_id": 3, - "x": 33 - }, - { - "_id": 4, - "x": 44 - }, - { - "_id": 5, - "x": 55 - }, - { - "_id": 6, - "x": 66 - } - ] - } - ], - "tests": [ - { - "description": "Find succeeds on second attempt after ExceededTimeLimit", - "operations": [ - { - "name": "failPoint", - "object": "testRunner", - "arguments": { - "client": "client0", - "failPoint": { - "configureFailPoint": "failCommand", - "mode": { - "times": 1 - }, - "data": { - "failCommands": [ - "find" - ], - "closeConnection": false, - "errorCode": 262 - } - } - } - }, - { - "name": "find", - "arguments": { - "filter": { - "_id": { - "$gt": 1 - } - }, - "batchSize": 10 - }, - "object": "collection0", - "expectResult": [ - { - "_id": 2, - "x": 22 - }, - { - "_id": 3, - "x": 33 - }, - { - "_id": 4, - "x": 44 - }, - { - "_id": 5, - "x": 55 - }, - { - "_id": 6, - "x": 66 - } - ] - } - ], - "expectEvents": [ - { - "client": "client0", - "events": [ - { - "commandStartedEvent": { - "command": { - "find": "coll0", - "filter": { - "_id": { - "$gt": 1 - } - }, - "batchSize": 10 - }, - "commandName": "find", - "databaseName": "find-tests" - } - }, - { - "commandStartedEvent": { - "command": { - "find": "coll0", - "filter": { - "_id": { - "$gt": 1 - } - }, - "batchSize": 10 - }, - "commandName": "find", - "databaseName": "find-tests" - } - } - ] - } - ] - } - ] -} diff --git a/src/libmongoc/tests/json/retryable_reads/unified/exceededTimeLimit.json b/src/libmongoc/tests/json/retryable_reads/unified/exceededTimeLimit2.json similarity index 100% rename from src/libmongoc/tests/json/retryable_reads/unified/exceededTimeLimit.json rename to src/libmongoc/tests/json/retryable_reads/unified/exceededTimeLimit2.json From 305882e4f406b0dfca3a32527b2e3af9deb448e7 Mon Sep 17 00:00:00 2001 From: Kevin Albertson Date: Fri, 1 Dec 2023 12:25:48 -0500 Subject: [PATCH 2/2] rename exceededTimeLimit2.json to exceededTimeLimit.json --- .../unified/{exceededTimeLimit2.json => exceededTimeLimit.json} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename src/libmongoc/tests/json/retryable_reads/unified/{exceededTimeLimit2.json => exceededTimeLimit.json} (100%) diff --git a/src/libmongoc/tests/json/retryable_reads/unified/exceededTimeLimit2.json b/src/libmongoc/tests/json/retryable_reads/unified/exceededTimeLimit.json similarity index 100% rename from src/libmongoc/tests/json/retryable_reads/unified/exceededTimeLimit2.json rename to src/libmongoc/tests/json/retryable_reads/unified/exceededTimeLimit.json