[SERVER-74416] Make sure analyzeShardKey and configureQueryAnalyzer command use database and shard versioning Created: 27/Feb/23 Updated: 29/Oct/23 Resolved: 03/Mar/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: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Sprint: | Sharding NYC 2023-03-06 | ||||||||
| Participants: | |||||||||
| Linked BF Score: | 154 | ||||||||
| Description |
|
Currently, the analyzeShardKey command doesn't participate in shard versioning when it is sent to a secondary since:
Given (1), mongos should explicitly attach the readConcern to "local" to the analyzeShardKey command to a shard. Similarly, the configureQueryAnalyzer command currently runs $listCollections command against the primary shard. However, it doesn't have the logic to refresh and retry on a StaleDbVersion error. |
| Comments |
| Comment by Githook User [ 03/Mar/23 ] |
|
Author: {'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}Message: |
| Comment by Githook User [ 02/Mar/23 ] |
|
Author: {'name': 'Uladzimir Makouski', 'email': 'uladzimir.makouski@mongodb.com', 'username': 'umakouski'}Message: Revert " This reverts commit 5c4d7fcb0ed77081dfe435a2e3056ae40b4af68a. |
| Comment by Githook User [ 02/Mar/23 ] |
|
Author: {'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}Message: |
| Comment by Githook User [ 01/Mar/23 ] |
|
Author: {'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}Message: Revert " This reverts commit 8d29060501879098863f926712babfdc77fbbd6f. |
| Comment by Githook User [ 01/Mar/23 ] |
|
Author: {'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}Message: |