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

Fix debug eviction mode so it chooses skew more randomly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT3.2.1, 4.3.1, 4.2.0-rc3, 4.0.13
    • Component/s: None
    • Labels:
    • Story Points:
      1
    • Sprint:
      Storage Engines 2019-07-19
    • Backport Requested:
      v4.0

      Description

      We recently added a debug mode to the eviction server in WT-4477. That added some randomization about when to choose lookaside eviction behind the WT_CACHE_EVICT_DEBUG_MODE flag. There was a bug in that code which means that we override the random selection immediately:

      We need to remove the line here:
      https://github.com/wiredtiger/wiredtiger/blob/develop/src/reconcile/rec_write.c#L642

      The value for r->las_skew_newest was chosen in the above if/else.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              haribabu.kommi Haribabu Kommi
              Reporter:
              alexander.gorrod Alexander Gorrod
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: