[SERVER-35609] Create initial chunk on primaryShard if only writing one chunk Created: 14/Jun/18  Updated: 29/Oct/23  Resolved: 20/Jun/18

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 3.6.6, 4.0.1, 4.1.1

Type: Bug Priority: Major - P3
Reporter: Janna Golden Assignee: Janna Golden
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.0, v3.6
Sprint: Sharding 2018-06-18, Sharding 2018-07-02
Participants:

 Description   

Currently, if we're only writing one chunk when creating a newly sharded collection we create it on any shard. We should create this on the primaryShard because during M/R, if creating a new sharded output collection we'll create the new collection on the primary shard with UUID X, but then write the initial chunk to possibly a different shard with UUID Y.



 Comments   
Comment by Githook User [ 28/Jun/18 ]

Author:

{'username': 'jannaerin', 'name': 'jannaerin', 'email': 'golden.janna@gmail.com'}

Message: SERVER-35609 Create initial chunk on primaryShard

(cherry picked from commit c842fb1f6479a6e7299f2bac51dd787393366dd6)
Branch: v4.0
https://github.com/mongodb/mongo/commit/496b22fec5a92d018824d7f357e91cb400050a3a

Comment by Githook User [ 20/Jun/18 ]

Author:

{'username': 'jannaerin', 'name': 'jannaerin', 'email': 'golden.janna@gmail.com'}

Message: SERVER-35609 Create initial chunk on primaryShard
Branch: v3.6
https://github.com/mongodb/mongo/commit/e13f3e2a932bc39017066bbd6efef602e1f952f7

Comment by Githook User [ 20/Jun/18 ]

Author:

{'username': 'jannaerin', 'name': 'jannaerin', 'email': 'golden.janna@gmail.com'}

Message: SERVER-35609 Create initial chunk on primaryShard
Branch: master
https://github.com/mongodb/mongo/commit/c842fb1f6479a6e7299f2bac51dd787393366dd6

Generated at Thu Feb 08 04:40:22 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.