[SERVER-60985] include WT_SESSION pointer in GDB pretty printer for dumping all active RecoveryUnits Created: 26/Oct/21  Updated: 29/Oct/23  Resolved: 26/Oct/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
is related to SERVER-59856 Hang analyzer gdb script raises gdb.e... Backlog
is related to SERVER-45556 Create GDB pretty printer to dump all... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2021-11-01
Participants:
Linked BF Score: 136

 Description   

The GDB pretty printer mongodb-dump-recovery-units is used by the hang analyzer to dump the state of all active RecoveryUnits in a mongod server. In the case of the WiredTiger storage engine, the WiredTigerRecoveryUnit holds a WiredTigerSession which is displayed as an opaque unique pointer. The session object contains a WT_SESSION pointer which would be very useful to include in the pretty printer output for diagnostic purposes.



 Comments   
Comment by Githook User [ 26/Oct/21 ]

Author:

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

Message: SERVER-60985 gdb helper includes WT_SESSION when dumping WT recovery units
Branch: master
https://github.com/mongodb/mongo/commit/2351697b1402222ea36082c3c675efbb91d75c87

Comment by Githook User [ 26/Oct/21 ]

Author:

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

Message: SERVER-60985 SERVER-59856 gdb helper logs decoration type lookup error
Branch: master
https://github.com/mongodb/mongo/commit/09406264978c13ef748769e3f0a870ce85873e19

Comment by Benety Goh [ 26/Oct/21 ]

The pretty printer currently fails in the SessionCatalog stage with a gdb.Error reported in SERVER-59856.

Comment by Benety Goh [ 26/Oct/21 ]

This ticket builds on the work completed in SERVER-45556.

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