[SERVER-84567] writeQueryStats should log an error rather than uassert when the feature flag is disabled Created: 04/Jan/24  Updated: 24/Jan/24  Resolved: 09/Jan/24

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.2.1, 7.3.0-rc0, 7.0.6

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

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.2, v7.1, v7.0
Sprint: QI 2024-01-08, QI 2024-01-22
Participants:
Linked BF Score: 100

 Description   

It is possible that the query stats feature flag was enabled when a request was first registered, but that the feature flag had been disabled before reaching writeQueryStats, in which it throws a uassert. That uassert causes issues that manifest into BF-30856. We should log an error rather than uassert.



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

Author:

{'name': 'Will Buerger', 'email': 'will.buerger@mongodb.com', 'username': 'wbuerger46'}

Message: SERVER-84567: writeTelemetry logs an error rather than uassert when the feature is disabled

GitOrigin-RevId: 068b27d2285db9b8308d4f57a23a3e4e8745c05c
Branch: v7.0
https://github.com/mongodb/mongo/commit/83db9bcf0609f602e43af249f32d177862979904

Comment by Githook User [ 12/Jan/24 ]

Author:

{'name': 'Will Buerger', 'email': 'will.buerger@mongodb.com', 'username': 'wbuerger46'}

Message: SERVER-84567: writeQueryStats logs an error rather than uassert when the feature is disabled
Branch: v7.2
https://github.com/mongodb/mongo/commit/d35fa286978de98ced015cfedebef8a21f1ae703

Comment by Githook User [ 09/Jan/24 ]

Author:

{'name': 'Will Buerger', 'email': '59492746+wbuerger46@users.noreply.github.com', 'username': 'wbuerger46'}

Message: SERVER-84567: writeQueryStats logs an error rather than uassert when the feature is disabled (#17882)

GitOrigin-RevId: 640b019b6cfcf4c3c0aab69934d3963a42172d4a
Branch: master
https://github.com/mongodb/mongo/commit/5e3a113f54224c1771168cbce9d2b32a74072025

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