[SERVER-83005] Reintroduce numInitialChunks parameter (IDL only) to maintain backward compatibility Created: 09/Nov/23  Updated: 10/Nov/23  Resolved: 10/Nov/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 7.2.0-rc1
Fix Version/s: 7.3.0-rc0, 7.2.0-rc2

Type: Bug Priority: Major - P3
Reporter: Tommaso Tocci Assignee: Tommaso Tocci
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-74747 Deprecate `numInitialChunks` paramete... Closed
Related
related to SERVER-83006 Remove deprecated numInitialChunk par... Backlog
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.2
Sprint: CAR Team 2023-11-13
Participants:
Linked BF Score: 35

 Description   

In SERVER-74747 we removed both:
 - The logic to support numInitialChunks parameter
 - The parameter itself from the requests IDL

While starting from  7.2 is it totally fine to ignore the parameter, we can't really remove the parameter itself due to backward incompatibility with previous versions.

In particular in 7.0 the mongos was always sending the __ _shardsvrShardCollection command with a default value 0. This means that request always contain numInitialChunk: 0 , while in 7.2 since we removed completely the parameter the request will not have this parameter at all.

As a consequence the two requests do not match between one version and the other.



 Comments   
Comment by Githook User [ 09/Nov/23 ]

Author:

{'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}

Message: SERVER-83005 Reintroduce numInitialChunks parameter (IDL only) to maintain backward compatibility
Branch: master
https://github.com/mongodb/mongo/commit/1f82af7d89af0c01032ad7c9a649863477ceea6f

Comment by Githook User [ 09/Nov/23 ]

Author:

{'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}

Message: SERVER-83005 Reintroduce numInitialChunks parameter (IDL only) to maintain backward compatibility
Branch: v7.2
https://github.com/mongodb/mongo/commit/215a1ef0d25a7da2faa8af554cd2573ae758dafd

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