[SERVER-54041] ReshardingOplogApplicationRules::applyOperation() doesn't retry on WriteConflictExceptions Created: 26/Jan/21  Updated: 29/Oct/23  Resolved: 27/Jan/21

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

Type: Bug Priority: Major - P3
Reporter: Max Hirschhorn Assignee: Janna Golden
Resolution: Fixed Votes: 0
Labels: PM-234-M2.5, PM-234-T-oplog-apply
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
is related to SERVER-49901 Implement ordinary insert rule for re... Closed
is related to SERVER-49902 Implement ordinary delete rule for re... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding 2021-02-08
Participants:
Story Points: 1

 Description   

WriteConflictException extends from DBException so the WriteConflictException exception is converted into a status and returned up the stack.

try {
    ...
} catch (const ExceptionFor<ErrorCodes::LockTimeout>&) {
    throw WriteConflictException();
} catch (const DBException& ex) {
    return ex.toStatus();
}

https://github.com/mongodb/mongo/blob/593de2a7ed6e6717ed35112c63ab3ee38b825851/src/mongo/db/s/resharding/resharding_oplog_application.cpp#L179-L183



 Comments   
Comment by Githook User [ 27/Jan/21 ]

Author:

{'name': 'jannaerin', 'email': 'golden.janna@gmail.com', 'username': 'jannaerin'}

Message: SERVER-54041 ReshardingOplogApplicationRules::applyOperation() doesn't retry on WriteConflictExceptions
Branch: master
https://github.com/mongodb/mongo/commit/cee8be71cf1a9b4fa914cdaa8adb8d08818c1c8a

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