[DOCS-14239] Investigate changes in SERVER-53852: MongoDB hangs randomly Created: 19/Feb/21  Updated: 13/Nov/23  Resolved: 22/Mar/21

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: 4.4.6, 5.0.0-rc0, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113

Type: Task Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: Andrew Feierabend (Inactive)
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
backported by DOCS-14341 [BACKPORT] [v4.4] MongoDB hangs randomly Closed
Documented
documents SERVER-53852 MongoDB hangs randomly Closed
Participants:
Days since reply: 2 years, 50 weeks, 5 days ago
Epic Link: DOCSP-9747
Story Points: 2

 Description   

Description

Downstream Change Summary

Bug has been fixed which could cause mongod to hang up when there is a failure to write to log file.

Description of Linked Ticket

I am running MongoDB 4.4.2 cluster with one Primary, one Secondary and one hidden Secondary. On the hidden Secondary, sometimes (like once every 2 days or so) MongoDB just hangs (once it also happened on the Primary). By "hangs", I mean:

  • I am not able to connect to mongod via mongoshell
  • Secondary stops replicating, and starts lagging (until I restart it manually)
  • but running `rs.status()` on the Primary server shows that hung Secondary is reachable

I referred to https://jira.mongodb.org/browse/SERVER-34190 which looked like a similar issue (but it was fixed in 3.6.4). So I have attached the files that were requested in that issue:

  1. Output of the gdb command: gdb p $(pidof mongod) -batch -ex 'thread apply all bt' > gdb_`date +"%Y%m-%d_%H-%M-%S"`.txt
  2. Last 500 lines of mongod.log
  3. I have provided the latest files in diagnostic.data folder

Please let me know if you need anything else or you want me to try running some commands.

Scope of changes

Impact to Other Docs

MVP (Work and Date)

Resources (Scope or Design Docs, Invision, etc.)


Generated at Thu Feb 08 08:09:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.