[SERVER-64580] Step downs while sharding a collection in mixed binaries shards might crash the old binary Created: 16/Mar/22  Updated: 29/Oct/23  Resolved: 17/Mar/22

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 5.0.5, 5.3.0-rc3
Fix Version/s: 5.3.2, 6.0.0-rc0, 5.0.7

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

Issue Links:
Backports
Depends
Problem/Incident
is caused by SERVER-62454 Add collectionUUID parameter to shard... Closed
is caused by SERVER-63732 Add new implicitlyCreateIndex and enf... Closed
Related
related to SERVER-64721 Drain incompatible createCollectionCo... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.3, v5.2, v5.0
Sprint: Sharding EMEA 2022-03-21
Participants:
Linked BF Score: 162

 Description   

In the create collection coordinator documents we have strict as true, considering we have the create collection request parameters as fields in the document, after SERVER-62454 and SERVER-63732 we've added 3 new parameters to the request, making the coordinator document in new versions incompatible with old ones.

The crash scenario is the following: if we have a mixed binaries shard and a shard collection is issued against the primary node in 6.0 or 5.3 and then a stepdown happens, if the new primary is 5.0 then the parse of the document will fail, making the construction to throw, which in turn will hit the DDL coordinator construction invariant. We should set strict false in the create collection coordinator document.



 Comments   
Comment by Githook User [ 17/Mar/22 ]

Author:

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

Message: SERVER-64580 Set strict false in create collection coordinator document

(cherry picked from commit f7e3b602cf271f7793eedfbc49050e6728607ad7)
Branch: v5.0
https://github.com/mongodb/mongo/commit/ac2d7f5202986a918d176059eabd95c6406cf857

Comment by Githook User [ 17/Mar/22 ]

Author:

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

Message: SERVER-64580 Set strict false in create collection coordinator document
Branch: master
https://github.com/mongodb/mongo/commit/f7e3b602cf271f7793eedfbc49050e6728607ad7

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