Skip to content

fix: auto-inject MongoDB HA timeout options when creating MongoClient#761

Merged
jarad0628 merged 1 commit intomainfrom
TAP-11353
Apr 27, 2026
Merged

fix: auto-inject MongoDB HA timeout options when creating MongoClient#761
jarad0628 merged 1 commit intomainfrom
TAP-11353

Conversation

@ply0011
Copy link
Copy Markdown
Collaborator

@ply0011 ply0011 commented Apr 27, 2026

Append serverSelectionTimeoutMS=15000, socketTimeoutMS=15000, maxIdleTimeMS=30000 in MongodbUtil.getMongoClientSettingsBuilder and the legacy oplog reader path. User-specified options take precedence (case-insensitive match).

Prevents the 15-minute Linux tcp_retries2 hang on dead MongoDB connections observed in DMP HA drill test.

(cherry picked from commit 72b35a3)

Append serverSelectionTimeoutMS=15000, socketTimeoutMS=15000, maxIdleTimeMS=30000
in MongodbUtil.getMongoClientSettingsBuilder and the legacy oplog reader path.
User-specified options take precedence (case-insensitive match).

Prevents the 15-minute Linux tcp_retries2 hang on dead MongoDB connections
observed in DMP HA drill test.

(cherry picked from commit 72b35a3)
@jarad0628 jarad0628 merged commit 910f93c into main Apr 27, 2026
@jarad0628 jarad0628 deleted the TAP-11353 branch April 27, 2026 02:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants