redict/tests
Oran Agra 88d71f4793 fix a rare active defrag edge case bug leading to stagnation
There's a rare case which leads to stagnation in the defragger, causing
it to keep scanning the keyspace and do nothing (not moving any
allocation), this happens when all the allocator slabs of a certain bin
have the same % utilization, but the slab from which new allocations are
made have a lower utilization.

this commit fixes it by removing the current slab from the overall
average utilization of the bin, and also eliminate any precision loss in
the utilization calculation and move the decision about the defrag to
reside inside jemalloc.

and also add a test that consistently reproduce this issue.
2020-05-20 16:04:42 +03:00
..
assets Fix test "server is up" detection after logging changes. 2016-12-19 16:49:58 +01:00
cluster Add a test to prove current tcl cluster client can not handle keys with hash tag. 2020-05-11 13:14:18 +08:00
helpers revert an accidental test code change done as part of the tls project 2019-12-01 16:10:09 +02:00
integration fix valgrind test failure in replication test 2020-05-18 10:26:53 +03:00
modules Fix memory corruption in moduleHandleBlockedClients 2020-04-01 12:53:26 +03:00
sentinel TLS: Configuration options. 2019-10-07 21:07:27 +03:00
support Handle keys with hash tag when computing hash slot using tcl cluster client. 2020-05-11 13:14:18 +08:00
tmp minor fixes to the new test suite, html doc updated 2010-05-14 18:48:33 +02:00
unit fix a rare active defrag edge case bug leading to stagnation 2020-05-20 16:04:42 +03:00
instances.tcl TLS: Connections refactoring and TLS support. 2019-10-07 21:06:13 +03:00
test_helper.tcl Test: --dont-clean should do first cleanup. 2020-05-05 13:18:53 +02:00