Update cluster parameter cache on set-/removeQuerySettings and perform single retry on failure (SERVER-81062)

[SERVER-83216] Refactor query settings command implementation Created: 14/Nov/23  Updated: 16/Nov/23  Resolved: 16/Nov/23

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

Type: Sub-task Priority: Major - P3
Reporter: Romans Kasperovics Assignee: Romans Kasperovics
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: QE 2023-10-16, QE 2023-10-30, QE 2023-11-13, QE 2023-11-27
Participants:

 Description   

Query settings modification commands 'setQuerySettings' and
'removeQuerySettings' need to read, modify and write the 'querySettings'
cluster parameter. Internally, the 'setQuerySettings' splits into two further calls - for insertion (query settings is totally new) and update. All this implementations share some part, which will even grow with SERVER-81062 if not refactored.



 Comments   
Comment by Githook User [ 14/Nov/23 ]

Author:

{'name': 'Romans Kasperovics', 'email': 'romans.kasperovics@mongodb.com', 'username': 'romanskas'}

Message: SERVER-83216 Refactor query settings modification commands

Query settings modification commands 'setQuerySettings' and
'removeQuerySettings' need to read, modify and write the 'querySettings'
cluster parameter. This change extracts the common code related to this
procedure into a separate function.
Branch: master
https://github.com/mongodb/mongo/commit/efe94ad329b5b8cccc5e84e3dcbe14aad234cde7

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