Skip to content

Commit de20b29

Browse files
authored
DRIVERS-1483 Add error label to retryable writes PoolClearedError prose test (#1024)
1 parent 9fb9319 commit de20b29

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

source/retryable-reads/tests/README.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ PoolClearedError Retryability Test
182182
==================================
183183

184184
This test will be used to ensure drivers properly retry after encountering PoolClearedErrors.
185-
This test MUST be implemented by any driver that implements the CMAP specification.
185+
It MUST be implemented by any driver that implements the CMAP specification.
186+
This test requires MongoDB 4.2.9+ for ``blockConnection`` support in the failpoint.
186187

187188
1. Create a client with maxPoolSize=1 and retryReads=true. If testing against a
188189
sharded deployment, be sure to connect to only a single mongos.

source/retryable-writes/tests/README.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ and sharded clusters.
330330

331331
#. Test that drivers properly retry after encountering PoolClearedErrors. This
332332
test MUST be implemented by any driver that implements the CMAP
333-
specification.
333+
specification. This test requires MongoDB 4.2.9+ for ``blockConnection`` support in the failpoint.
334334

335335
1. Create a client with maxPoolSize=1 and retryWrites=true. If testing
336336
against a sharded deployment, be sure to connect to only a single mongos.
@@ -344,7 +344,8 @@ and sharded clusters.
344344
failCommands: ["insert"],
345345
errorCode: 91,
346346
blockConnection: true,
347-
blockTimeMS: 1000
347+
blockTimeMS: 1000,
348+
errorLabels: ["RetryableWriteError"]
348349
}
349350
}
350351

0 commit comments

Comments
 (0)