[SERVER-81978] repl::applyCommand_inlock does not handle TemporarilyUnavailable and TransactionTooLargeForCache exceptions Created: 09/Oct/23  Updated: 30/Nov/23  Resolved: 13/Nov/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.3.0-rc0, 7.2.0-rc2, 7.0.5, 7.1.2

Type: Bug Priority: Major - P3
Reporter: Josef Ahmad Assignee: Haley Connelly
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
is related to SERVER-81979 Audit conversion of DBException to St... Open
Assigned Teams:
Storage Execution EMEA
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.2
Sprint: CAR Team 2023-11-13, CAR Team 2023-11-27
Participants:
Linked BF Score: 105

 Description   

The function catches a DBException and converts it to a Status, then re-throws it if it was a WriteConflict. This leaves TemporarilyUnavailable and TransactionTooLargeForCache exceptions unhandled.

The code should directly catch and re-throw StorageUnavailableExceptions.



 Comments   
Comment by Githook User [ 29/Nov/23 ]

Author:

{'name': 'Haley Connelly', 'email': 'haley.connelly@mongodb.com', 'username': 'haleyConnelly'}

Message: SERVER-81978 handle StorageUnavailableExceptions in repl::applyCommand_inlock()

(cherry picked from commit bc2e4b24b53d2dd54683d6279ea6cc9e5a5a54e8)
Branch: v7.0
https://github.com/mongodb/mongo/commit/f0b25bb54d532c080f93cd81a7c3a5179ccda872

Comment by Githook User [ 17/Nov/23 ]

Author:

{'name': 'Haley Connelly', 'email': 'haley.connelly@mongodb.com', 'username': 'haleyConnelly'}

Message: SERVER-81978 handle StorageUnavailableExceptions in repl::applyCommand_inlock()

(cherry picked from commit bc2e4b24b53d2dd54683d6279ea6cc9e5a5a54e8)
Branch: v7.1
https://github.com/mongodb/mongo/commit/146a2e018bd13b86702f22ab00306e0a6205aad0

Comment by Githook User [ 17/Nov/23 ]

Author:

{'name': 'Haley Connelly', 'email': 'haley.connelly@mongodb.com', 'username': 'haleyConnelly'}

Message: SERVER-81978 handle StorageUnavailableExceptions in repl::applyCommand_inlock()

(cherry picked from commit bc2e4b24b53d2dd54683d6279ea6cc9e5a5a54e8)
Branch: v7.2
https://github.com/mongodb/mongo/commit/82801a08520a4ab16c3e68c639e7fce160add52e

Comment by Githook User [ 13/Nov/23 ]

Author:

{'name': 'Haley Connelly', 'email': 'haley.connelly@mongodb.com', 'username': 'haleyConnelly'}

Message: SERVER-81978 handle StorageUnavailableExceptions in repl::applyCommand_inlock()
Branch: master
https://github.com/mongodb/mongo/commit/bc2e4b24b53d2dd54683d6279ea6cc9e5a5a54e8

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