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

discarded page has hazard pointer

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT2.4.0
    • Component/s: None
    • Labels:
      None

      Description

      When we discard a page in a diagnostic build, we check that there are no hazard pointers to that page. Generally this is true, because we make sure there are no hazard pointers as part of locking a page for eviction. However, reading threads set a hazard pointer before checking the WT_REF_LOCKED flag, so there is a brief window when this assertion can fire.

      The best idea I've had so far is to sleep and loop a few times, then print a warning message instead of making this an assertion failure.

      e.g., http://mjc.homeunix.org:8180/job/wiredtiger-test-format-stress-santizer/1746/console

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: