[SERVER-61177] Create GDB command to dump WiredTiger system info Created: 01/Nov/21  Updated: 29/Oct/23  Resolved: 04/Nov/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.2.0

Type: Improvement Priority: Major - P3
Reporter: Benety Goh Assignee: Benety Goh
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-61211 Migrate lockInfo command to IDL Closed
is related to SERVER-52956 Add storage debug method to dump syst... Closed
is related to WT-3529 Add undocumented debug API Closed
is related to SERVER-45556 Create GDB pretty printer to dump all... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2021-11-15
Participants:
Linked BF Score: 136

 Description   

We introduced a GDB command in SERVER-45556 to dump all active RecoveryUnits. This is useful when diagnosing from the MDB perspective and we use this in our hang analysis tools to debug test timeouts in our CI system.

To supplement this information, It would be useful to have diagnostic output from the WiredTiger point of view, specifically debug information provided by the WT_CONNECTION::debug_info() function introduced in WT-3529.

A similar request was previously made in SERVER-52956.

Note: this ticket also added an "includeStorageEngineDump" option to the "lockInfo" command to print the WT debug_info to the logs.



 Comments   
Comment by Githook User [ 03/Nov/21 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-61177 implement WiredTigerKVEngine::dump() in terms of WT_CONNECTION::debug_info()
Branch: master
https://github.com/mongodb/mongo/commit/3d10a2a64311193ad0af8ba03333c41e60a595de

Comment by Githook User [ 03/Nov/21 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-61177 Create GDB command to dump storage engine info

This also adds the new command to the hang analyzer script.
Branch: master
https://github.com/mongodb/mongo/commit/9cdf162eaf214810eaa7bcd65d60c61401d368e5

Comment by Githook User [ 03/Nov/21 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-61177 lockInfo supports dumping storage engine state
Branch: master
https://github.com/mongodb/mongo/commit/4c3e8db887d934a506b26d6050164eb1eb04dd97

Comment by Githook User [ 03/Nov/21 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-61177 add KVEngine::dump() and StorageEngine::dump()
Branch: master
https://github.com/mongodb/mongo/commit/e28293624165173a0886b7713e5b0c39ef662966

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