[SERVER-72301] Use ordered:false when inserting chunks in optimized path of create collection Created: 21/Dec/22  Updated: 29/Oct/23  Resolved: 03/Jan/23

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 5.0.15, 6.0.4, 6.3.0-rc0

Type: Bug Priority: Major - P3
Reporter: Marcos José Grillo Ramirez Assignee: Marcos José Grillo Ramirez
Resolution: Fixed Votes: 0
Labels: sharding-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Problem/Incident
is caused by SERVER-59806 Optimized path of shard collection fa... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v6.2, v6.0, v5.0
Sprint: Sharding EMEA 2022-12-26
Participants:

 Description   

The optimized path of create collection consist in creating and pre-splitting the chunks across the cluster depending on the split policy initially associated with the collection.

SERVER-59806 introduced an optimization when creating a collection in the optimized path: using an insert instead of an upsert of the chunks. However, we could also set the ordered field to false to allow parallel batch processing instead of sequential processing and decrease the total time necessary to pre-split large amounts of chunks in the cluster.



 Comments   
Comment by Githook User [ 04/Jan/23 ]

Author:

{'name': 'Marcos José Grillo Ramirez', 'email': 'marcos.grillo@mongodb.com', 'username': 'm4nti5'}

Message: SERVER-72301 Use ordered:false when inserting chunks in the create collection coordinator

(cherry picked from commit b572adc250b9ce7c37539e642c5d23c39f5c14dc)
(cherry picked from commit a4d4fa6104bf04ae38b5e63334c77392799a9d13)
Branch: v5.0
https://github.com/mongodb/mongo/commit/20a10a1b3c1fec3bd5275ea0ebbae40857c7003f

Comment by Githook User [ 04/Jan/23 ]

Author:

{'name': 'Marcos José Grillo Ramirez', 'email': 'marcos.grillo@mongodb.com', 'username': 'm4nti5'}

Message: SERVER-72301 Use ordered:false when inserting chunks in the create collection coordinator

(cherry picked from commit b572adc250b9ce7c37539e642c5d23c39f5c14dc)
Branch: v6.0
https://github.com/mongodb/mongo/commit/a4d4fa6104bf04ae38b5e63334c77392799a9d13

Comment by Githook User [ 03/Jan/23 ]

Author:

{'name': 'Marcos José Grillo Ramirez', 'email': 'marcos.grillo@mongodb.com', 'username': 'm4nti5'}

Message: SERVER-72301 Use ordered:false when inserting chunks in the create collection coordinator
Branch: master
https://github.com/mongodb/mongo/commit/b572adc250b9ce7c37539e642c5d23c39f5c14dc

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