[SERVER-55520] Remove '_ns' from the ReshardingSplitPolicy Created: 25/Mar/21  Updated: 29/Oct/23  Resolved: 26/Mar/21

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 5.0.0-rc0

Type: Bug Priority: Minor - P4
Reporter: Kaloian Manassiev Assignee: Kaloian Manassiev
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding 2021-04-05
Participants:

 Description   

The ReshardingSplitPolicy takes the source namespace as a parameter, but actually only uses it in the createFirstChunks method, where it is already available through the params argument.

Because the InitialSplitPolicy is supposed to be agnostic to the namespace (it just takes the parameters from createFirstChunks, we should remove this from the constructor. Otherwise it is confusing to reason that _ns should match with params.



 Comments   
Comment by Githook User [ 26/Mar/21 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-55520 Remove '_ns' from the ReshardingSplitPolicy
Branch: master
https://github.com/mongodb/mongo/commit/e8b1ac66fc3832b4fd7c61fe0320991f474675a2

Generated at Thu Feb 08 05:36:42 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.