redict/tests/cluster
Viktor Söderqvist b53c7f2c0b
Turn into replica on SETSLOT (#10489)
* Fix race condition where node loses its last slot and turns into replica

When a node has lost its last slot and finds out from the SETSLOT command
before the cluster bus PONG from the new owner arrives. In this case, the
node didn't turn itself into a replica of the new slot owner.

This commit adds the same logic to the SETSLOT command as already exists
for the cluster bus PONG processing.

* Revert "Fix new / failing cluster slot migration test (#10482)"

This reverts commit 0b21ef8d49.

In this test, the old slot owner finds out that it has lost its last
slot in a nondeterministic way. Either the cluster bus PONG from the
new slot owner and sometimes in a SETSLOT command from redis-cli. In
both cases, the result should be the same and the old owner should
turn itself into a replica of the new slot owner.
2022-04-02 14:58:07 -07:00
..
tests Turn into replica on SETSLOT (#10489) 2022-04-02 14:58:07 -07:00
tmp Cluster test: add tmp dir to Git repo. 2014-05-26 18:08:12 +02:00
cluster.tcl Add new cluster shards command (#10293) 2022-03-15 18:24:40 -07:00
run.tcl Fix recent daily CI test failures (#9966) 2021-12-20 12:31:13 +02:00