[SERVER-77247] Allow users to retry a configureQueryAnalyzer command to disable query sampling Created: 17/May/23  Updated: 29/Oct/23  Resolved: 18/May/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0, 7.0.0-rc2

Type: Bug Priority: Major - P3
Reporter: Cheahuychou Mao Assignee: Cheahuychou Mao
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.0
Sprint: Sharding NYC 2023-05-29
Participants:
Linked BF Score: 35

 Description   

The configureQueryAnalyzer command currently has a uassert that would throw if a user tries to disable query sampling while query is not active. While such warning can be useful, it has caused the command to be non-retryable across failover or network errors. For this reason, uassert should be replaced with a warning log message instead.



 Comments   
Comment by Githook User [ 18/May/23 ]

Author:

{'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}

Message: SERVER-77247 Allow users to retry a configureQueryAnalyzer command to disable query sampling

(cherry picked from commit d7bf13d97da047abfe9098a6b5f98678e89cd987)
Branch: v7.0
https://github.com/mongodb/mongo/commit/475a34e15540935ef7678ec55adb1a336ccf3f25

Comment by Githook User [ 18/May/23 ]

Author:

{'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}

Message: SERVER-77247 Allow users to retry a configureQueryAnalyzer command to disable query sampling
Branch: master
https://github.com/mongodb/mongo/commit/d7bf13d97da047abfe9098a6b5f98678e89cd987

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