From dcce326153f84f93ba7bd7b7e5773d7252987d64 Mon Sep 17 00:00:00 2001 From: Neal Beeken Date: Tue, 3 Sep 2024 15:26:35 -0400 Subject: [PATCH] chore: bump gridFS times and mention using one mongos --- .../tests/README.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/source/client-side-operations-timeout/tests/README.md b/source/client-side-operations-timeout/tests/README.md index 0713ec1f1e..02d0d54e0a 100644 --- a/source/client-side-operations-timeout/tests/README.md +++ b/source/client-side-operations-timeout/tests/README.md @@ -315,6 +315,8 @@ error occurs. ### 6. GridFS - Upload Tests in this section MUST only be run against server versions 4.4 and higher. +Drivers SHOULD apply [useMultipleMongoses=false](source/unified-test-format/unified-test-format.md#entity) +as described in the unified test format when testing on sharded clusters to ensure failpoint are hit by only using one mongos. #### uploads via openUploadStream can be timed out @@ -329,12 +331,12 @@ Tests in this section MUST only be run against server versions 4.4 and higher. data: { failCommands: ["insert"], blockConnection: true, - blockTimeMS: 15 + blockTimeMS: 200 } } ``` -3. Create a new MongoClient (referred to as `client`) with `timeoutMS=10`. +3. Create a new MongoClient (referred to as `client`) with `timeoutMS=150`. 4. Using `client`, create a GridFS bucket (referred to as `bucket`) that wraps the `db` database. @@ -364,12 +366,12 @@ This test only applies to drivers that provide an API to abort a GridFS upload s data: { failCommands: ["delete"], blockConnection: true, - blockTimeMS: 15 + blockTimeMS: 200 } } ``` -3. Create a new MongoClient (referred to as `client`) with `timeoutMS=10`. +3. Create a new MongoClient (referred to as `client`) with `timeoutMS=150`. 4. Using `client`, create a GridFS bucket (referred to as `bucket`) that wraps the `db` database with `chunkSizeBytes=2`. @@ -388,6 +390,8 @@ This test only applies to drivers that provide an API to abort a GridFS upload s ### 7. GridFS - Download This test MUST only be run against server versions 4.4 and higher. +Drivers SHOULD apply [useMultipleMongoses=false](source/unified-test-format/unified-test-format.md#entity) +as described in the unified test format when testing on sharded clusters to ensure failpoint are hit by only using one mongos. 1. Using `internalClient`, drop and re-create the `db.fs.files` and `db.fs.chunks` collections. @@ -411,7 +415,7 @@ This test MUST only be run against server versions 4.4 and higher. } ``` -3. Create a new MongoClient (referred to as `client`) with `timeoutMS=10`. +3. Create a new MongoClient (referred to as `client`) with `timeoutMS=150`. 4. Using `client`, create a GridFS bucket (referred to as `bucket`) that wraps the `db` database. @@ -429,7 +433,7 @@ This test MUST only be run against server versions 4.4 and higher. data: { failCommands: ["find"], blockConnection: true, - blockTimeMS: 15 + blockTimeMS: 200 } } ```