[SERVER-83631] Create collection coordinator must rollback if it finds an error when recreating chunk distribution Created: 28/Nov/23  Updated: 02/Jan/24  Resolved: 02/Jan/24

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

Type: Bug Priority: Major - P3
Reporter: Pol Pinol Assignee: Pol Pinol
Resolution: Fixed Votes: 0
Labels: robust-create-collection
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-83386 Enable feature flag for new CreateCol... Open
is depended on by SERVER-80857 Introduce a new section for the shard... In Code Review
is depended on by SERVER-80135 Allow ShardCollection to work correct... In Progress
Related
related to SERVER-78918 Make `shardCollection` command shard ... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: CAR Team 2023-12-11, CAR Team 2023-12-25, CAR Team 2024-01-08
Participants:

 Description   

The new create collection coordinator (feature flag protected) is creating one chunk on the db primary shard when finding any error.

This could be triggered by potentially concurrent addZones that do not respect the shards where the critical section was entered.

The current handling of this situation is misleading and it may make succeed the operation (shardCollection) letting garbage in some shards (collection created) and not respecting zones.

The goal of this ticket is to, at the commit phase, the operation is permitted to skip the mustAlwaysMakeProgress and be rolled back, i.e. trigger the clean-up procedure, if it is re-calculating the parameters to execute the commit.

Involved code here.



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

Author:

{'name': 'Pol PiƱol Castuera', 'email': '67922619+PolPinol@users.noreply.github.com', 'username': 'PolPinol'}

Message: SERVER-83631 Create collection coordinator must rollback if it finds an error when recreating chunk distribution (#17227)

GitOrigin-RevId: edd6a46b55c7e2b7eeaafbbba9552a5e28e113dc
Branch: master
https://github.com/mongodb/mongo/commit/626e92f2dcdf629df43a3fd964e6873fa1c367f8

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