[SERVER-27591] Need to abandonSnapshot after unlocking in TTLMonitor Created: 05/Jan/17  Updated: 05/Apr/17  Resolved: 06/Jan/17

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 3.4.2, 3.5.2

Type: Bug Priority: Major - P3
Reporter: Geert Bosch Assignee: Geert Bosch
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v3.4
Sprint: Storage 2017-01-23
Participants:
Linked BF Score: 0

 Description   

We're not holding lock after scanning for indexes in TTLMonitor. On debug builds this may cause an invariant to be hit where we check for consistency between index state in the on-disk catalog and our in-memory copy.



 Comments   
Comment by Githook User [ 12/Jan/17 ]

Author:

{u'username': u'GeertBosch', u'name': u'Geert Bosch', u'email': u'geert@mongodb.com'}

Message: SERVER-27591 Abandon snapshot after scanning indexes

(cherry picked from commit 4509a6fd597bd32ba8fbd67b4f7b7aa1c598afb0)
(cherry picked from commit a20e229464f720ebd9502a6d5ea4c18c02ea9032)
Branch: v3.4
https://github.com/mongodb/mongo/commit/772512aa7acf0cd2731c3840bae547cd02797c4e

Comment by Githook User [ 11/Jan/17 ]

Author:

{u'username': u'GeertBosch', u'name': u'Geert Bosch', u'email': u'geert@mongodb.com'}

Message: SERVER-27591 Fix missing variable name
Branch: master
https://github.com/mongodb/mongo/commit/a20e229464f720ebd9502a6d5ea4c18c02ea9032

Comment by Bruce Lucas (Inactive) [ 11/Jan/17 ]

Note for future reference: this can cause a hang with cache full (or full of dirty data) because the ttl thread can end up waiting for a lock with a WT transaction open, creating a long-running WT transaction, which can allow the cache to fill with unevictable data.

Comment by Githook User [ 06/Jan/17 ]

Author:

{u'username': u'GeertBosch', u'name': u'Geert Bosch', u'email': u'geert@mongodb.com'}

Message: SERVER-27591 Abandon snapshot after scanning indexes
Branch: master
https://github.com/mongodb/mongo/commit/4509a6fd597bd32ba8fbd67b4f7b7aa1c598afb0

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