[SERVER-79486] Increase the cardinality of the new shard key Created: 28/Jul/23 Updated: 08/Jan/24 Resolved: 11/Dec/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.2.1, 7.3.0-rc0 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Jada Lilleboe (Inactive) | Assignee: | Nandini Bhartiya |
| 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 | ||||||||||||
| Backport Requested: |
v7.2, v7.1, v7.0
|
||||||||||||
| Participants: | |||||||||||||
| Linked BF Score: | 5 | ||||||||||||
| Description |
|
The write_without_shard_key_with_resharding.js test fails because the sampling policy that creates the split points is unable to find 20 distinct shard key values. The custom shard key value (used for resharding) is determined randomly. Changing this to a monotonically increasing integer will ensure that each document has a unique shard key value for the split points. |
| Comments |
| Comment by Githook User [ 04/Jan/24 ] |
|
Author: {'name': 'Nandini Bhartiya', 'email': 'nandini.bhartiya@mongodb.com', 'username': 'nandinibhartiyaMDB'}Message: (cherry picked from commit 045c7112dfa49e8b3b9b9997269d5d58e6edd242) |
| Comment by Githook User [ 17/Nov/23 ] |
|
Author: {'name': 'Nandini Bhartiya', 'email': 'nandini.bhartiya@mongodb.com', 'username': 'nandinibhartiyaMDB'}Message: |