[SERVER-66433] Backport deadline waiting for overlapping range deletion to finish to pre-v5.1 versions Created: 12/May/22  Updated: 29/Oct/23  Resolved: 07/Jun/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.4.15, 5.0.10

Type: Bug Priority: Major - P3
Reporter: Pierlauro Sciarelli Assignee: Silvia Surroca
Resolution: Fixed Votes: 0
Labels: neweng, sharding-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
backports SERVER-60142 Shard can migrate on top of orphans a... Closed
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Sprint: Sharding EMEA 2022-06-13
Participants:
Case:

 Description   

SERVER-60142 introduced a uassert in case the deadline on the migration destination manager is hit while waiting for a range to be cleared up. This specific change prevents the balancer from getting blocked and must be backported to v5.0 and v4.4 (the original backports didn't include this part of the fix).

When the balancer gets blocked waiting for a range deletion, a thread on the recipient shard shows the following stack trace:

 10.000   │  ├▽ bool mongo::Interruptible::waitForConditionOrInterruptUntil<...>
  5.000   │  │├▽ mongo::CollectionShardingRuntime::waitForClean
  5.000   │  ││ ▽ mongo::MigrationDestinationManager::_migrateDriver
  5.000   │  ││  ▽ mongo::MigrationDestinationManager::_migrateThread
  5.000   │  ││   ▽ ???
  5.000   │  ││    ▽ ???
  5.000   │  ││     ▽ ???
  5.000   │  ││      ▽ clone



 Comments   
Comment by Githook User [ 07/Jun/22 ]

Author:

{'name': 'Silvia Surroca', 'email': 'silvia.surroca@mongodb.com', 'username': 'silviasuhu'}

Message: SERVER-66433 Backport deadline waiting for overlapping range deletion to finish to pre-v5.1 versions
Branch: v5.0
https://github.com/mongodb/mongo/commit/ad54048f491d9ebdc107b8bda1be33106fa4ef7a

Comment by Githook User [ 07/Jun/22 ]

Author:

{'name': 'Silvia Surroca', 'email': 'silvia.surroca@mongodb.com', 'username': 'silviasuhu'}

Message: SERVER-66433 Backport deadline waiting for overlapping range deletion to finish to pre-v5.1 versions
Branch: v4.4
https://github.com/mongodb/mongo/commit/e97fa5d06b9f43a47ac29c85e3971e366f193d11

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