[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: |
|
||||||||||||
| 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: (cherry picked from commit 4509a6fd597bd32ba8fbd67b4f7b7aa1c598afb0) |
| Comment by Githook User [ 11/Jan/17 ] |
|
Author: {u'username': u'GeertBosch', u'name': u'Geert Bosch', u'email': u'geert@mongodb.com'}Message: |
| 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: |