[SERVER-53253] Make donorStartMigration and recipientSyncData validate input connection string Created: 07/Dec/20  Updated: 29/Oct/23  Resolved: 08/Dec/20

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Bug Priority: Major - P3
Reporter: Cheahuychou Mao Assignee: Cheahuychou Mao
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 2020-12-14
Participants:

 Description   

Currently, the TenantMigrationDonorService could crash while trying to initialize the RemoteCommandTargeterRS if the input recipientConnectionString for the donorStartMigration command is a connection string for a standalone instead of a replica set. To avoid this, we should make validateConnectionString try to parse the input connection string as a replica set connection string to fail the command immediately if the validation fails. 



 Comments   
Comment by Githook User [ 08/Dec/20 ]

Author:

{'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}

Message: SERVER-53253 Make donorStartMigration and recipientSyncData validate input connection string
Branch: master
https://github.com/mongodb/mongo/commit/7ceea3cefb37954e6ba37f83c42387753ec4dc99

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