Operational Defect Database

BugZero found this defect 223 days ago.

MongoDB | 2469499

repl::applyCommand_inlock does not handle TemporarilyUnavailable and TransactionTooLargeForCache exceptions

Last update date:

3/12/2024

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

7.3.0-rc0

7.2.0-rc2

7.0.5

7.1.2

Description:

Info

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.

Top User Comments

xgen-internal-githook commented on Wed, 29 Nov 2023 18:00:01 +0000: 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 xgen-internal-githook commented on Fri, 17 Nov 2023 18:48:57 +0000: 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 xgen-internal-githook commented on Fri, 17 Nov 2023 17:43:33 +0000: 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 xgen-internal-githook commented on Mon, 13 Nov 2023 12:57:21 +0000: 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

Steps to Reproduce


Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

Closed

Learn More

Search:

...