• Oran Agra's avatar
    Improve stability of new CSC eviction test (#8160) · 5745b469
    Oran Agra authored
    c4fdf09c added a test that now fails with valgrind
    it fails for two resons:
    1) the test samples the used memory and then limits the maxmemory to
       that value, but it turns out this is not atomic and on slow machines
       the background cron process that clean out old query buffers reduces
       the memory so that the setting doesn't cause eviction.
    2) the dbsize was tested late, after reading some invalidation messages
       by that time more and more keys got evicted, partially draining the
       db. this is not the focus of this fix (still a known limitation)
    
    (cherry picked from commit a102b21d)
    5745b469
maxmemory.tcl 12 KB