[SERVER-84563] The pretty printer for StringData is broken Created: 04/Jan/24  Updated: 04/Jan/24  Resolved: 04/Jan/24

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 7.3.0-rc0

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

Issue Links:
Problem/Incident
is caused by SERVER-82604 Add missing std::string_view members ... Closed
Assigned Teams:
Catalog and Routing
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

As of SERVER-82604, the pretty printer for StringData is broken:

(gdb) frame 13
#13 0x0000aaaad797fa64 in mongo::(anonymous namespace)::ExternalStateForTest::withShardVersionRetry(mongo::OperationContext*, mongo::NamespaceString const&, mongo::StringData, mongo::unique_function<void ()>) (this=0xfffedd643a60, opCtx=0xfffedb2361a0, nss="sourcedb.sourcecollection", reason=Traceback (most recent call last):
  File "buildscripts/gdb/mongo_printers.py", line 121, in to_string
    size = self.val["_size"]
gdb.error: There is no member or method named _size.
, callback=<error reading variable: Cannot access memory at address 0x0>) at src/mongo/db/s/resharding/resharding_recipient_service_test.cpp:194



 Comments   
Comment by Githook User [ 04/Jan/24 ]

Author:

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

Message: SERVER-84563 Fix the pretty printer for StringData (#17877)

GitOrigin-RevId: 85dd80db547fb09bb39235d537dc40ff3c6c9266
Branch: master
https://github.com/mongodb/mongo/commit/cb863af65bd3accfc7a078486ed34a8462285e98

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