[SERVER-70479] Make sure that dropDatabase, dropCollection and renameCollection on sharded cluster delete the config.queryAnalyzers doc for the collection being dropped or renamed Created: 11/Oct/22 Updated: 29/Oct/23 Resolved: 25/Apr/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.1.0-rc0, 7.0.0-rc1 |
| 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: |
|
||||||||||||||||||||
| Assigned Teams: |
Sharding NYC
|
||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||
| Backport Requested: |
v7.0
|
||||||||||||||||||||
| Sprint: | Sharding NYC 2023-04-03, Sharding NYC 2023-04-17, Sharding NYC 2023-05-01 | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Description |
|
The sharding_ddl_util::removeQueryAnalyzerMetadataFromConfig() is currently only called in sharded collection path. So the dropDatabase command currently doesn't delete the config.queryAnalyzers docs for unsharded collections. There was a bug in the jstest added in |
| Comments |
| Comment by Githook User [ 25/Apr/23 ] |
|
Author: {'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}Message: (cherry picked from commit 57872cba96820e27b5b0420b9fa42b3f34971b45) |
| Comment by Githook User [ 25/Apr/23 ] |
|
Author: {'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}Message: (cherry picked from commit f1fd45a9706a0d7ee666559fb7921f37016f9931) |
| Comment by Githook User [ 25/Apr/23 ] |
|
Author: {'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}Message: |
| Comment by Githook User [ 24/Apr/23 ] |
|
Author: {'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}Message: |