[SERVER-68535] ExpressionFromRankAccumulator::parse uassert always says (None) for accumulator name Created: 03/Aug/22  Updated: 29/Oct/23  Resolved: 05/Sep/23

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

Type: Bug Priority: Minor - P4
Reporter: Gregory Noma Assignee: Erin Zhu
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Optimization
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: QI 2023-09-04, QI 2023-09-18
Participants:

 Description   

uassert 5371603 in ExpressionFromRankAccumulator::parse uses accumulatorName as a part of the error message, but accumulatorName is not set until the following line. This causes the message to always say that the accumulator name is "(None)". We can either use argName in the error message or swap the order of these two lines.



 Comments   
Comment by Githook User [ 29/Aug/23 ]

Author:

{'name': 'Erin Zhu', 'email': 'erin.zhu@mongodb.com', 'username': 'erinzhu001'}

Message: SERVER-68535: Fix error message to display rank accumulator name
Branch: master
https://github.com/mongodb/mongo/commit/9bc5b4ddca564dd62189853b4603963ae24d9a72

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