[SERVER-81438] Add validation check to the moveCollection "toShard" field Created: 26/Sep/23  Updated: 29/Oct/23  Resolved: 26/Sep/23

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

Type: Task Priority: Major - P3
Reporter: Kruti Shah Assignee: Kshitij Gupta
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-81439 Add validation check to the moveColle... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding NYC 2023-10-02
Participants:

 Description   

Add a check to ensure that if command request "toShard" field is set to the shard in which the collection already exists, we don't proceed with the operation. 



 Comments   
Comment by Githook User [ 26/Sep/23 ]

Author:

{'name': 'Kshitij Gupta', 'email': 'kshitij.gupta@mongodb.com', 'username': 'kshitijng'}

Message: SERVER-81438: Validate toShard for moveCollection
Branch: master
https://github.com/mongodb/mongo/commit/9f5c7d9492eb1bc2022ebb62e34a1f0f7b205c1c

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