[SERVER-55150] Add whitelist of errors that will not be retried on rename collection path Created: 11/Mar/21  Updated: 29/Oct/23  Resolved: 28/May/21

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

Type: Improvement Priority: Major - P3
Reporter: Tommaso Tocci Assignee: Marcos José Grillo Ramirez
Resolution: Fixed Votes: 0
Labels: PM-1965-Milestone-1, post-rc0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
is depended on by SERVER-57017 Enable sharded DDL plus FCV FSM in st... Closed
Problem/Incident
causes SERVER-62521 Distributed locks might not be releas... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v5.0
Sprint: Sharding EMEA 2021-05-31
Participants:

 Description   

When executing a rename collection, there are some expected errors where we don't want them to be retried, so the idea is to encapsulate the exception somehow to have something like the following:

try {
    ...<code> ...
} catch (const ExpectedException& ex) {
    throw NonRetriableException(ex);
}

This way we have a declarative way to tell the DDL coordinator will not retry this time because it is an expected error.



 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 [ 28/May/21 ]

Author:

{'name': 'Marcos José Grillo Ramirez', 'email': 'marcos.grillo@mongodb.com', 'username': 'm4nti5'}

Message: SERVER-55150 Add whitelist of errors that will not be retried on rename collection path

(cherry picked from commit 03de673d885149f49cd31f27a1781cb7b715daac)
Branch: v5.0
https://github.com/mongodb/mongo/commit/637f1a4f14af8f13be703156921e1c7c28b27f79

Comment by Githook User [ 28/May/21 ]

Author:

{'name': 'Marcos José Grillo Ramirez', 'email': 'marcos.grillo@mongodb.com', 'username': 'm4nti5'}

Message: SERVER-55150 Add whitelist of errors that will not be retried on rename collection path
Branch: master
https://github.com/mongodb/mongo/commit/03de673d885149f49cd31f27a1781cb7b715daac

Comment by Marcos José Grillo Ramirez [ 10/May/21 ]

Paused for now to have the Milestone 1 ready

Comment by Marcos José Grillo Ramirez [ 03/May/21 ]

This ticket was repurposed because the actual retry code was commited on SERVER-56560.

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