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

Fix debug eviction mode so it chooses skew more randomly

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • WT3.2.1, 4.3.1, 4.2.0-rc3, 4.0.13
    • None
    • 1
    • Storage Engines 2019-07-19
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: