Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-2116

Detect when eviction can't make progress.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT2.7.0
    • Labels:
      None
    • # Replies:
      2
    • Last comment by Customer:
      true

      Description

      At the moment if WiredTiger gets into a state where it can't evict any pages at all, and all operations are waiting for space in the cache, we can end up waiting forever.

      It would be better to exit in that case. Considerations:

      • How long do we need to determine we aren't making progress? At least several minutes with 0 evictions.
      • Should we consider ourselves stuck if a checkpoint is running? No?
      • How to exit. If we leave via a WT_PANIC, it might appear as though the failure could leave the database corrupted. We so far choose not to return WT_ROLLBACK for operations that haven't done an update, and there has been some pushback to adding that.

        Activity

        Hide
        xgen-internal-githook Githook User added a comment -

        Author:

        {u'username': u'michaelcahill', u'name': u'Michael Cahill', u'email': u'michael.cahill@mongodb.com'}

        Message: WT-2116 Add diagnostic checks for stuck cache and dump the state.
        Branch: develop
        https://github.com/wiredtiger/wiredtiger/commit/66b44e1344219f445305248cb1ea630536af41d2

        Show
        xgen-internal-githook Githook User added a comment - Author: {u'username': u'michaelcahill', u'name': u'Michael Cahill', u'email': u'michael.cahill@mongodb.com'} Message: WT-2116 Add diagnostic checks for stuck cache and dump the state. Branch: develop https://github.com/wiredtiger/wiredtiger/commit/66b44e1344219f445305248cb1ea630536af41d2
        Hide
        xgen-internal-githook Githook User added a comment -

        Author:

        {u'username': u'agorrod', u'name': u'Alex Gorrod', u'email': u'alexander.gorrod@mongodb.com'}

        Message: Merge pull request #2267 from wiredtiger/WT-2116
        Branch: develop
        https://github.com/wiredtiger/wiredtiger/commit/cd6ce979bfcd95adfa103df8bb90089d44a81cef

        Show
        xgen-internal-githook Githook User added a comment - Author: {u'username': u'agorrod', u'name': u'Alex Gorrod', u'email': u'alexander.gorrod@mongodb.com'} Message: Merge pull request #2267 from wiredtiger/ WT-2116 Branch: develop https://github.com/wiredtiger/wiredtiger/commit/cd6ce979bfcd95adfa103df8bb90089d44a81cef

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since reply:
              1 year, 25 weeks, 6 days ago
              Date of 1st Reply: