[SERVER-84529] Order of read preference tags should not matter for query stats key Created: 03/Jan/24  Updated: 24/Jan/24  Resolved: 24/Jan/24

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

Type: Bug Priority: Major - P3
Reporter: Charlie Swanson Assignee: Alyssa Clark
Resolution: Fixed Votes: 0
Labels: flag-for-2885-backport, qi-query-stats
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Assigned Teams:
Query Integration
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: QI 2024-01-22, QI 2024-02-05
Participants:

 Description   

We are seeing in the staging data that different orderings of read preference tags result in different entries in the query stats store. We should probably just sort the tags array to prevent this from happening.



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

Author:

{'name': 'Alyssa Wagenmaker', 'email': 'alyssa.clark@mongodb.com', 'username': 'awagenmaker'}

Message: SERVER-84529 Sort readPreference tags in query shapes (#18151)

GitOrigin-RevId: eb11610573963aafdd860bcb35e2ca3fee1d88a7
Branch: master
https://github.com/mongodb/mongo/commit/847d171046299c4b0f5513834c6fbc4b0c753d0a

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