[SERVER-86015] ShardCollection should not create chunks on a draining shard Created: 31/Jan/24  Updated: 01/Feb/24

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

Type: Bug Priority: Major - P3
Reporter: Allison Easton Assignee: Backlog - Catalog and Routing
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File remove_shard_shard_collection_repro.diff    
Issue Links:
Related
is related to SERVER-65666 Do not create chunks on draining shar... Closed
Assigned Teams:
Catalog and Routing
Operating System: ALL
Steps To Reproduce:

Repro attached in files, should fail when running in the sharding suite.

Participants:

 Description   

SERVER-65666 addressed this problem by making it so that the initial split policy will not choose draining shards when creating initial chunks. However, the create collection coordinator creates the initial chunks before actually committing them on the config server.

This means that there is still a case in which shardCollection will create chunks on a draining shard if removeShard is called after the initial chunks are created.

As part of this ticket, we should investigate whether this is additionally a problem with resharding. Resharding using the initial split policies to choose the new chunks for the collection, so it is possible that there is a similar problem here if the initial chunks are created and then a shard is removed before persisting those chunks.


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