• Oran Agra's avatar
    prevent client tracking from causing feedback loop in performEvictions (#8100) · f2f57eb4
    Oran Agra authored
    When client tracking is enabled signalModifiedKey can increase memory usage,
    this can cause the loop in performEvictions to keep running since it was measuring
    the memory usage impact of signalModifiedKey.
    
    The section that measures the memory impact of the eviction should be just on dbDelete,
    excluding keyspace notification, client tracking, and propagation to AOF and replicas.
    
    This resolves part of the problem described in #8069
    p.s. fix took 1 minute, test took about 3 hours to write.
    
    (cherry picked from commit c4fdf09c)
    f2f57eb4
evict.c 26.6 KB