[SERVER-31587] ReplBatcher has a long-running OperationContext Created: 16/Oct/17  Updated: 30/Oct/23  Resolved: 20/Oct/17

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 3.2.18, 3.4.11, 3.6.0-rc1

Type: Bug Priority: Major - P3
Reporter: Daniel Gottlieb (Inactive) Assignee: Benety Goh
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
related to SERVER-31101 WT table not dropped after collection... Closed
is related to SERVER-22766 Dynamic oplog sizing for WiredTiger n... Closed
is related to SERVER-31654 ReplBatcher should recalculate batch ... Backlog
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Completed:
Sprint: Repl 2017-10-23
Participants:

 Description   

The ReplBatcher has been identified as an actor that keeps a long-running OperationContext. This can cause problems such as WT table drops to fail until the OperationContext is destroyed.

https://github.com/mongodb/mongo/blob/8210549ab754524b155ea45eb6675d717873cb21/src/mongo/db/repl/sync_tail.cpp#L753



 Comments   
Comment by Githook User [ 17/Nov/17 ]

Author:

{'name': 'Benety Goh', 'username': 'benety', 'email': 'benety@mongodb.com'}

Message: SERVER-31587 limit scope of OperationContext in ReplBatcher

(cherry picked from commit 29140e49080de0c25482a2b13d1cc51c7b0096bf)
Branch: v3.2
https://github.com/mongodb/mongo/commit/8c2ece023718fd8b23629a55392399dae0be1581

Comment by Githook User [ 17/Nov/17 ]

Author:

{'name': 'Benety Goh', 'username': 'benety', 'email': 'benety@mongodb.com'}

Message: SERVER-31587 limit scope of OperationContext in ReplBatcher

(cherry picked from commit 29140e49080de0c25482a2b13d1cc51c7b0096bf)
Branch: v3.4
https://github.com/mongodb/mongo/commit/9a982805bdbd2d1e6395d394bf13c89cf1f14354

Comment by Githook User [ 20/Oct/17 ]

Author:

{'email': 'benety@mongodb.com', 'name': 'Benety Goh', 'username': 'benety'}

Message: SERVER-31587 limit scope of OperationContext in ReplBatcher
Branch: master
https://github.com/mongodb/mongo/commit/29140e49080de0c25482a2b13d1cc51c7b0096bf

Comment by Daniel Gottlieb (Inactive) [ 16/Oct/17 ]

spencer I think you're aware of the visible impact this can have on customers. I'm hoping we can squash the remaining long-running OperationContexts for 3.6. Let me know if you don't think this can be prioritized in time.

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