[SERVER-33880] Log currentOp information to mongod log Created: 14/Mar/18  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: Diagnostics
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Bruce Lucas (Inactive) Assignee: Backlog - Query Execution
Resolution: Unresolved Votes: 0
Labels: SWDI
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
related to SERVER-33445 Add signal handler to generate stack ... Closed
is related to SERVER-35079 Provide a mechanism to redact PII out... Backlog
Assigned Teams:
Query Execution
Participants:

 Description   

If mongod hangs it can be useful to have currentOp information to identify what ops are running. But when mongod is hung it may not be possible to connect to obtain currentOp, or if it is possible, a system administrator who is focused on restoring function may not do so.

We could log currentOp in mongod, possibly

  • periodically, for example once per minute
  • when clean shutdown is attempted
  • when clean shutdown is attempted but gets stalled

Generated at Thu Feb 08 04:34:51 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.