[SERVER-31425] Retrying initial shardCollection with hashed shard key after retryable error can skip moveChunk Created: 05/Oct/17  Updated: 06/Dec/22  Resolved: 17/Aug/18

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

Type: Bug Priority: Major - P3
Reporter: Jack Mulrow Assignee: [DO NOT USE] Backlog - Sharding Team
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Duplicate
duplicates SERVER-14394 Create initial chunks directly on shards Closed
Related
is related to SERVER-35915 Blacklist hash_skey_split.js from the... Closed
Assigned Teams:
Sharding
Operating System: ALL
Participants:
Linked BF Score: 26

 Description   

The last step in _configsvrShardCollection is to migrate initial chunks from empty collections to spread them across the shards, which is only done if the collection is empty and the shard key is hashed. If there is a retryable error (like a stepdown) after the step before, which is to actually shard the collection through the ShardingCatalogManager, then when the command is retried, it will early exit successfully because the collection is already sharded with the same options, which skips the moveChunk call.



 Comments   
Comment by Maria van Keulen [ 13/Sep/18 ]

greg.mckeon Ah, I didn't see that this issue was closed as a dupe of SERVER-14394. There are test failures still occurring on the 4.0 branch that appear to show the same symptoms as the test failures that should have been addressed by SERVER-14394. I see there have been backports of commits on that ticket to 4.0, so I think some further investigation needs to be done on the failures.

Comment by Gregory McKeon (Inactive) [ 13/Sep/18 ]

maria.vankeulen we didnt do any work on this ticket - what ticket would you like to see backported?

Comment by Ian Whalen (Inactive) [ 28/Aug/18 ]

greg.mckeon i just spotted this - maybe the 3 BFs linked here can be resolved?

Generated at Thu Feb 08 04:27:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.