From 1cf7181155c3b592123f9fc12bfd5e34b4b1b066 Mon Sep 17 00:00:00 2001 From: Juan P Lopez Date: Thu, 7 Nov 2024 06:57:00 -0500 Subject: [PATCH] fix(core): update read concern to avoid sync issues (#4649) --- core/api/src/services/mongodb/index.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/core/api/src/services/mongodb/index.ts b/core/api/src/services/mongodb/index.ts index dbc8ee99df..c80a91cf08 100644 --- a/core/api/src/services/mongodb/index.ts +++ b/core/api/src/services/mongodb/index.ts @@ -37,14 +37,11 @@ const DEFAULT_MONGODB_OPTIONS: mongoose.ConnectOptions = { retryWrites: true, writeConcern: { w: "majority", // Wait for majority acknowledgment - j: true, // Wait for journal commit - wtimeout: 10000, // Write timeout }, retryReads: true, maxStalenessSeconds: 90, readPreference: "primaryPreferred", // Prefer primary but allow secondary reads - readConcern: { level: "majority" }, // Read from majority-committed data } as const export const ledgerAdmin = lazyLoadLedgerAdmin({