[SERVER-31590] WT yieldAndAwaitOplogDeletionRequest holds onto an OperationContext while blocking for an infrequent trigger Created: 16/Oct/17  Updated: 30/Oct/23  Resolved: 31/Oct/17

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

Type: Bug Priority: Major - P3
Reporter: Daniel Gottlieb (Inactive) Assignee: Donald Anderson
Resolution: Fixed Votes: 0
Labels: neweng
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
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v3.4, v3.2
Sprint: Storage 2017-11-13
Participants:

 Description   

For WiredTiger, a background thread manages the size of the oplog, truncating it when necessary. However the piece that waits to truncate the oplog is holding onto a borrowed OperationContext. Waiting for a truncation point can be arbitrarily long, particularly when there are few writes coming into the system, or when the oplog has yet to start "rolling over".

https://github.com/mongodb/mongo/blob/24554590b43f57076035dd59629d4a4362929697/src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp#L1056-L1057



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

Author:

{'name': 'Don Anderson', 'username': 'ddanderson', 'email': 'dda@mongodb.com'}

Message: SERVER-31590 Release unused cursors in the cache before awaiting oplog deletion

(cherry picked from commit 2a8818d4fd7b833b82997c9996aca9eb14471f09)
Branch: v3.2
https://github.com/mongodb/mongo/commit/657bd4c2285367278f43992a33942268ebf6919e

Comment by Githook User [ 02/Nov/17 ]

Author:

{'name': 'Don Anderson', 'username': 'ddanderson', 'email': 'dda@mongodb.com'}

Message: SERVER-31590 Release unused cursors in the cache before awaiting oplog deletion

(cherry picked from commit 2a8818d4fd7b833b82997c9996aca9eb14471f09)
Branch: v3.4
https://github.com/mongodb/mongo/commit/3df93f81a58d687cf7736adafab024eb8914d6b0

Comment by Githook User [ 31/Oct/17 ]

Author:

{'email': 'dda@mongodb.com', 'name': 'Don Anderson', 'username': 'ddanderson'}

Message: SERVER-31590 Release unused cursors in the cache before awaiting oplog deletion
Branch: master
https://github.com/mongodb/mongo/commit/2a8818d4fd7b833b82997c9996aca9eb14471f09

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