[SERVER-76297] Make query sampling jstests check namespace and collection uuid when waiting for sampling to become active and inactive Created: 19/Apr/23  Updated: 29/Oct/23  Resolved: 21/Apr/23

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

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
is depended on by SERVER-76296 Make sure query sampling works correc... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.0
Sprint: Sharding NYC 2023-05-01
Participants:

 Description   

Currently, the helpers for waiting for query sampling to become active or inactive relies on checking that serverStatus "activeCollections" is >= 1 or = 0, respectively. This won't work for the test in SERVER-76296 where the collection is dropped and recreated or renamed (which causes the namespace or collection uuid to change). 



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

Author:

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

Message: SERVER-76297 Make query sampling jstests check namespace and collection uuid when waiting for sampling to become active and inactive

(cherry picked from commit afc8fc41d98174bd71c1ecc0d15df9bae3605d7e)
Branch: v7.0
https://github.com/mongodb/mongo/commit/2377a8d91c5f70e059390e996c6725ec2c4d21a3

Comment by Githook User [ 21/Apr/23 ]

Author:

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

Message: SERVER-76297 Make query sampling jstests check namespace and collection uuid when waiting for sampling to become active and inactive
Branch: master
https://github.com/mongodb/mongo/commit/afc8fc41d98174bd71c1ecc0d15df9bae3605d7e

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