[SERVER-60242] Save BSON to a local variable in WildcardKeyGenerator::generateKeys so we can read it in a core dump Created: 27/Sep/21  Updated: 24/Aug/23  Resolved: 24/Aug/23

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

Type: Bug Priority: Major - P3
Reporter: Dianna Hohensee (Inactive) Assignee: Backlog - Storage Execution Team
Resolution: Declined Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Storage Execution
Operating System: ALL
Participants:

 Description   

The BSON generated from this query call in WildcardKeyGenerator::generateKeys appears to trip a bson dassert when the bson is iterated. The core dump does not save what that value is. We should save the bson the a local variable in the function, and then pass it on as a function parameter, so we can then print out what the BSON is if/when there's another failure.



 Comments   
Comment by Dianna Hohensee (Inactive) [ 27/Sep/21 ]

You're right, thanks for the sanity check! Closing.

Comment by Louis Williams [ 27/Sep/21 ]

dianna.hohensee what do you mean by "save" in this context? If the temporary BSON object is passed into _traverseWildcard, is it not available for inspection inside of that function as "obj"?

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