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

Don't fail rollback_to_stable due to sweep activity

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 4.0.0
    • Fix Version/s: 4.0.4, 4.1.4, WT3.2.0
    • Component/s: None
    • Labels:
      None
    • Story Points:
      2
    • Sprint:
      Storage Engines 2018-10-08
    • Backport Requested:
      v4.0

      Description

      Some MongoDB tests are failing with the following error message:

      WT_CONNECTION.rollback_to_stable: __txn_rollback_to_stable_check, 455: rollback_to_stable illegal with active transactions
      

      This is despite no MongoDB operations being active when rollback_to_stable is called.

      Debugging indicates that the sweep thread can have a transaction active when removing stale entries from the lookaside table, and that transaction can cause the check to fail unnecessarily.

      Since the later phase of rollback_to_stable holds a lock to prevent sweep running concurrently, this check should use the same approach to avoid spurious failures.

        Attachments

          Activity

            People

            Assignee:
            michael.cahill Michael Cahill
            Reporter:
            michael.cahill Michael Cahill
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: