[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: |
|
||||||||||||||||||||||||||||
| 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: (cherry picked from commit f7e3b602cf271f7793eedfbc49050e6728607ad7) |
| Comment by Githook User [ 17/Mar/22 ] |
|
Author: {'name': 'Marcos Jose Grillo Ramirez', 'email': 'marcos.grillo@mongodb.com', 'username': 'm4nti5'}Message: |