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

DIAGNOSTIC split code assert can race with WT_REF locking

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT10.0.0, 4.3.4
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Engines
    • 3
    • Storage Engines 2020-01-27, Storage Engines 2020-02-10
    • v4.2, v4.0

      Summary:
      Fix an assert (so only applicable when the library is built in DIAGNOSTIC mode), that could race with the recently added locking code.


      When splitting a page into its parent, in DIAGNOSTIC mode, WT_REF structures are asserted to be in WT_REF_SPLIT mode, and that isn't necessarily correct because the WT_REF is still discoverable, and can reasonably be in WT_REF_LOCKED mode.

      Since the increase in cursor-walk WT_REF locking added in WT-5219, format runs are triggering the assert.

            Assignee:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Reporter:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: