[SERVER-78252] Block chunk migrations for hashed shard keys if you don’t have the shard key index Created: 20/Jun/23 Updated: 29/Oct/23 Resolved: 04/Aug/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.1.0-rc0, 7.0.2, 5.0.22, 6.0.12 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Garaudy Etienne | Assignee: | Sanika Phanse (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | sharding-nyc-subteam2 | ||
| 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, v6.0, v5.0
|
||||||||||||||||
| Sprint: | Sharding NYC 2023-07-10, Sharding NYC 2023-07-24, Sharding NYC 2023-08-07 | ||||||||||||||||
| Participants: | |||||||||||||||||
| Story Points: | 3 | ||||||||||||||||
| Description |
|
Since we are now allowing customers to drop the hashed shard key index (for write performance reasons), we should block chunk migrations for hashed shard keys if you don’t have the supporting shard key index. |
| Comments |
| Comment by Githook User [ 09/Oct/23 ] | ||||||||||||||||
|
Author: {'name': 'Sanika Phanse', 'email': 'sanika.phanse@mongodb.com', 'username': 'sphanse99'}Message: | ||||||||||||||||
| Comment by Githook User [ 05/Oct/23 ] | ||||||||||||||||
|
Author: {'name': 'Sanika Phanse', 'email': 'sanika.phanse@mongodb.com', 'username': 'sphanse99'}Message: | ||||||||||||||||
| Comment by Githook User [ 19/Sep/23 ] | ||||||||||||||||
|
Author: {'name': 'Sanika Phanse', 'email': 'sanika.phanse@mongodb.com', 'username': 'sphanse99'}Message: | ||||||||||||||||
| Comment by Githook User [ 03/Aug/23 ] | ||||||||||||||||
|
Author: {'name': 'Sanika Phanse', 'email': 'sanika.phanse@mongodb.com', 'username': 'sphanse99'}Message: | ||||||||||||||||
| Comment by Githook User [ 03/Aug/23 ] | ||||||||||||||||
|
Author: {'name': 'Sanika Phanse', 'email': 'sanika.phanse@mongodb.com', 'username': 'sphanse99'}Message: | ||||||||||||||||
| Comment by Max Hirschhorn [ 27/Jun/23 ] | ||||||||||||||||
|
I think beyond chunk migration and range deletion, the following list of callers to use an index which is compatible with the shard key pattern need to accept there won't be one (perhaps by explicitly erroring) when the system is in this state.
|