Skip to content

Commit bd016d8

Browse files
committed
fixup: retryWrites=false
1 parent 6670bfc commit bd016d8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/mongodb-runner/src/mongoserver.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,8 @@ export class MongoServer {
350350
fn: Fn,
351351
): Promise<ReturnType<Fn>> {
352352
const client = await MongoClient.connect(
353-
`mongodb://${this.hostport}/?directConnection=true`,
353+
// directConnection + retryWrites let us write to `local` db on secondaries
354+
`mongodb://${this.hostport}/?directConnection=true&retryWrites=false`,
354355
);
355356
try {
356357
return await fn(client);

0 commit comments

Comments
 (0)