Skip to content

Commit 96b5c95

Browse files
bugs fixed?
1 parent 41e8587 commit 96b5c95

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/error.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1223,7 +1223,7 @@ export function needsRetryableWriteLabel(
12231223
// pre-4.4 server, then the driver adds an error label for every valid case
12241224
// execute operation will only inspect the label, code/message logic is handled here
12251225
if (error instanceof MongoNetworkError) {
1226-
return !isSharded;
1226+
return true;
12271227
}
12281228

12291229
if (error instanceof MongoError) {

test/integration/retryable-writes/retryable_writes.spec.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,6 @@ async function turnOffFailPoint(client, name) {
203203
});
204204
}
205205

206-
describe('Retryable Writes (unified)', function () {
206+
describe.only('Retryable Writes (unified)', function () {
207207
runUnifiedSuite(loadSpecTests(path.join('retryable-writes', 'unified')));
208208
});

0 commit comments

Comments
 (0)