[SERVER-78178] Make configureQueryAnalyzer command fail with a more user-friendly message when a user runs it directly against a shard Created: 16/Jun/23  Updated: 29/Oct/23  Resolved: 19/Jun/23

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

Type: Task 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
Backwards Compatibility: Fully Compatible
Backport Requested:
v7.0
Sprint: Sharding NYC 2023-06-26
Participants:

 Description   

Today If a user runs configureQueryAnalyzer directly against a shard, it would fail with an IllegalOperation error with the message "Received request without the version for the database <databaseName>". We should make it fail a message explaining that it is illegal to run it against a shard. 



 Comments   
Comment by Githook User [ 19/Jun/23 ]

Author:

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

Message: SERVER-78178 Make configureQueryAnalyzer command fail with a more user-friendly message when a user runs it directly against a shard

(cherry picked from commit c7ff34c382863423a4baa576efd43e89e4abd23f)
Branch: v7.0
https://github.com/mongodb/mongo/commit/d516031b37de9fa928a5ad8fee3e444674c506f3

Comment by Githook User [ 19/Jun/23 ]

Author:

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

Message: SERVER-78178 Make configureQueryAnalyzer command fail with a more user-friendly message when a user runs it directly against a shard
Branch: master
https://github.com/mongodb/mongo/commit/c7ff34c382863423a4baa576efd43e89e4abd23f

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