[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:
Backports
Depends
Related
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: SERVER-79486: Increase the cardinality of the new shard key.

(cherry picked from commit 045c7112dfa49e8b3b9b9997269d5d58e6edd242)
Branch: v7.2
https://github.com/mongodb/mongo/commit/c55a549d9d046ddc453281638ef28d84677e7aa7

Comment by Githook User [ 17/Nov/23 ]

Author:

{'name': 'Nandini Bhartiya', 'email': 'nandini.bhartiya@mongodb.com', 'username': 'nandinibhartiyaMDB'}

Message: SERVER-79486: Increase the cardinality of the new shard key.
Branch: master
https://github.com/mongodb/mongo/commit/045c7112dfa49e8b3b9b9997269d5d58e6edd242

Generated at Thu Feb 08 06:41:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.