[SERVER-80135] Allow ShardCollection to work correctly when an unsharded collection is not located on the DBPrimary Created: 16/Aug/23  Updated: 06/Feb/24

Status: In Progress
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Allison Easton Assignee: Allison Easton
Resolution: Unresolved Votes: 0
Labels: oldshardingemea
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-83631 Create collection coordinator must ro... Closed
depends on SERVER-78918 Make `shardCollection` command shard ... Closed
depends on SERVER-83497 Simplify commit function for the new ... Closed
Problem/Incident
causes SERVER-85657 Unsplittable_collections_created_on_a... Closed
Assigned Teams:
Catalog and Routing
Backwards Compatibility: Fully Compatible
Sprint: CAR Team 2023-11-27, CAR Team 2023-12-11, CAR Team 2023-12-25, CAR Team 2024-01-08, CAR Team 2024-01-22, CAR Team 2024-02-05, CAR Team 2024-02-19
Participants:
Linked BF Score: 150

 Description   

Currently, the shard collection command does a local write on the db primary to determine if the collection is empty. If the collection data is located on a shard other than the dbprimary, this read should be routed to the correct shard.

This ticket should also include testing the command for collections that are not located on the db primary and addressing any other issues with the coordinator.



 Comments   
Comment by Githook User [ 26/Jan/24 ]

Author:

{'name': 'Allison Easton', 'email': 'allison.easton@mongodb.com', 'username': 'allisoneaston'}

Message: Revert "SERVER-80135 Allow ShardCollection to work correctly when an unsharded collection is not located on the DBPrimary (#18133)"

This reverts commit ff5851579e18a47fb51084389b545e65cdc23b53.

GitOrigin-RevId: 4df3d9480b56dd307298778e033aa2866a83c240
Branch: master
https://github.com/mongodb/mongo/commit/8808494f39bc3620984494254564661c4e3fec3d

Comment by Githook User [ 23/Jan/24 ]

Author:

{'name': 'Allison Easton', 'email': 'allison.easton@mongodb.com', 'username': 'allisoneaston'}

Message: SERVER-80135 Allow ShardCollection to work correctly when an unsharded collection is not located on the DBPrimary (#18133)

GitOrigin-RevId: ff5851579e18a47fb51084389b545e65cdc23b53
Branch: master
https://github.com/mongodb/mongo/commit/f44506e434b597e208ee25db31c0668b45aa0ec2

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