[SERVER-59152] Make range deletion submission resilient to onShardVersionMismatch exceptions Created: 06/Aug/21  Updated: 29/Oct/23  Resolved: 06/Aug/21

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 5.1.0, 5.0.2
Fix Version/s: 5.1.0-rc0

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

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.0
Sprint: Sharding EMEA 2021-08-09
Participants:
Linked BF Score: 146

 Description   

With the partially wrong changes introduced in SERVER-48883, it was wrongly assumed that onShardVersionMismatch would never fail with exceptions different from NamespaceNotFound.

As this is definitely not the case, the range deletion task submission is failing and not retried in case any other exception is thrown.

A possible way to fix the problem would be calling onShardVersionMismatch within a retryIdempotentWorkAsPrimaryUntilSuccessOrStepdown.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 10/Aug/21 ]

Author:

{'name': 'Pierlauro Sciarelli', 'email': 'pierlauro.sciarelli@mongodb.com', 'username': 'pierlauro'}

Message: SERVER-59152 Make range deletion submission resilient to onShardVersionMismatch exceptions

(cherry picked from commit 3bdbe14de35d849f729221805c22b9ce76a1a9d6)
Branch: v5.0
https://github.com/mongodb/mongo/commit/2b86fc3175604f8e56b61480a2eb7ad719534521

Comment by Githook User [ 06/Aug/21 ]

Author:

{'name': 'Pierlauro Sciarelli', 'email': 'pierlauro.sciarelli@mongodb.com', 'username': 'pierlauro'}

Message: SERVER-59152 Make range deletion submission resilient to onShardVersionMismatch exceptions
Branch: master
https://github.com/mongodb/mongo/commit/3bdbe14de35d849f729221805c22b9ce76a1a9d6

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