[SERVER-65125] The GDB printers for Status/StatusWith do not work Created: 31/Mar/22  Updated: 29/Oct/23  Resolved: 03/Apr/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.0-rc0

Type: Bug Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Kaloian Manassiev
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding EMEA 2022-04-04
Participants:

 Description   

They currently fail with the following error:

(gdb) print responseStatus.toString()
$2 = "OK"
(gdb) print responseStatus
$3 = Traceback (most recent call last):
  File "buildscripts/gdb/mongo_printers.py", line 49, in to_string
    code = self.val['_error']['code']
gdb.error: There is no member or method named code.
 
 
(gdb) print responseStatus._error
$4 = {px = 0x0}
(gdb) print str(responseStatus._error)



 Comments   
Comment by Githook User [ 03/Apr/22 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-65125 Fix Status/StatusWith printing in mongo_printers.py
Branch: master
https://github.com/mongodb/mongo/commit/bd0be154aa5f1d04136efc8cb0bd2d40fac3f0ab

Generated at Thu Feb 08 06:01:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.