If a collection with query sampling enabled is dropped via dropCollection, dropDatabase or renamed via renameCollection, query sampling should stop even if the collection is later recreated with the same name (in the drop case) or if the config.queryAnalyzers document has not been deleted (see SERVER-70479). Also, if the client later runs a configureQueryAnalyzer command enable query sampling again, the sampling should follow the new configuration.
- depends on
-
SERVER-76297 Make query sampling jstests check namespace and collection uuid when waiting for sampling to become active and inactive
- Closed
- is related to
-
SERVER-70479 Make sure that dropDatabase, dropCollection and renameCollection on sharded cluster delete the config.queryAnalyzers doc for the collection being dropped or renamed
- Closed