[SERVER-42204] ReplBatcher must handle exceptions from OplogApplier::calculateBatchLimitBytes Created: 12/Jul/19  Updated: 29/Oct/23  Resolved: 07/Sep/19

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: 4.0.10, 4.2.0-rc2
Fix Version/s: 4.3.1

Type: Bug Priority: Minor - P4
Reporter: William Schultz (Inactive) Assignee: A. Jesse Jiryu Davis
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-38052 ReplBatcher thread must handle except... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Repl 2019-08-12, Repl 2019-08-26, Repl 2019-09-09
Participants:
Linked BF Score: 10

 Description   

The OplogApplier::calculateBatchLimitBytes function call here tries to acquire a lock and so may throw an exception if it is interrupted (at shutdown, for example). We should make sure the ReplBatcher can handle these exceptions. We may be able to extend the scope of this uninterruptible code block, which was added to handle a nearly identical issue in a later part of that code.



 Comments   
Comment by Githook User [ 06/Sep/19 ]

Author:

{'name': 'A. Jesse Jiryu Davis', 'username': 'ajdavis', 'email': 'jesse@mongodb.com'}

Message: SERVER-42204 Make calculation of oplog batch size uninterruptible
Branch: master
https://github.com/mongodb/mongo/commit/2eb7225e892d2008a5e8723ee040c2bcb571c4b1

Generated at Thu Feb 08 04:59:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.