[SERVER-66716] WaitForDelete may not be honored in case of retry Created: 24/May/22  Updated: 29/Oct/23  Resolved: 27/May/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.0-rc8, 6.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Pierlauro Sciarelli Assignee: Paolo Polato
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Problem/Incident
is caused by SERVER-65831 BalancerCommandsScheduler::stop() sho... Closed
Related
related to SERVER-70852 Recommit SERVER-66716 on v6.0 Closed
is related to SERVER-46669 moveChunk may succeed but not respect... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.0
Sprint: Sharding EMEA 2022-05-30
Participants:
Linked BF Score: 150

 Description   

The donor shard is first committing the migration on the config server and then waiting for orphans to be deleted.

The _configsvrMoveRange command calls into Balancer::moveRange that retrieves the current shard from config.chunks and returns early in case the range is already present on the recipient shard.

Given the above mentioned conditions, in case the config server command is retried it may happen that it succeeds before the donor finishes waiting for range deletions.



 Comments   
Comment by Githook User [ 27/Oct/22 ]

Author:

{'name': 'Paolo Polato', 'email': 'paolo.polato@mongodb.com', 'username': 'ppolato'}

Message: SERVER-70852 Recommit SERVER-66716 on v6.0
Branch: v6.0
https://github.com/mongodb/mongo/commit/6635037939558a224b3c593f0464e4d078a6f974

Comment by Githook User [ 29/May/22 ]

Author:

{'name': 'Paolo Polato', 'email': 'paolo.polato@mongodb.com', 'username': 'ppolato'}

Message: SERVER-66716 remove early return check from _configSvrMoveRange
Branch: v6.0
https://github.com/mongodb/mongo/commit/3faed4f1f673f23dbe7431c88f2085e882e0fb07

Comment by Githook User [ 26/May/22 ]

Author:

{'name': 'Paolo Polato', 'email': 'paolo.polato@mongodb.com', 'username': 'ppolato'}

Message: SERVER-66716 remove early return check from _configSvrMoveRange
Branch: master
https://github.com/mongodb/mongo/commit/8e89b04e6a77169721758f523837b0e84df676ee

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