[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: |