read-redis/tests/integration
Huang Zhw 8892b5cf9e When redis-cli received ASK, it didn't handle it (#8930)
When redis-cli received ASK, it used string matching wrong and didn't
handle it.

When we access a slot which is in migrating state, it maybe
return ASK. After redirect to the new node, we need send ASKING
command before retry the command.  In this PR after redis-cli receives
ASK, we send a ASKING command before send the origin command
after reconnecting.

Other changes:
* Make redis-cli -u and -c (unix socket and cluster mode) incompatible
  with one another.
* When send command fails, we avoid the 2nd reconnect retry and just
  print the error info. Users will decide how to do next.
  See #9277.
* Add a test faking two redis nodes in TCL to just send ASK and OK in
  redis protocol to test ASK behavior.

Co-authored-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
Co-authored-by: Oran Agra <oran@redislabs.com>
(cherry picked from commit cf61ad14cc45787e57d9af3f28f41462ac0f2aa2)
2021-10-04 13:59:40 +03:00
..
aof-race.tcl TLS: Connections refactoring and TLS support. 2019-10-07 21:06:13 +03:00
aof.tcl Print the number of abnormal line in AOF (#8823) 2021-05-03 22:57:00 +03:00
block-repl.tcl stabilize tests that involved with load handlers (#8967) 2021-07-21 21:06:49 +03:00
convert-zipmap-hash-on-load.tcl convert-zipmap-hash-on-load false positive fixed. 2012-03-25 11:02:16 +02:00
corrupt-dump-fuzzer.tcl fix stream deep sanitization with deleted records (#8568) 2021-03-01 17:23:29 +02:00
corrupt-dump.tcl Corrupt stream key access to uninitialized memory (#8681) 2021-03-24 11:33:49 +02:00
failover.tcl stabilize tests that involved with load handlers (#8967) 2021-07-21 21:06:49 +03:00
logging.tcl Fix failed tests on Linux Alpine and add a CI job. (#8532) 2021-02-23 12:57:45 +02:00
psync2-pingoff.tcl solve race conditions in psync2-pingoff test (#8720) 2021-03-30 11:41:06 +03:00
psync2-reg.tcl fix loading race in psync2 tests 2020-04-28 09:18:01 +03:00
psync2.tcl Sanitize dump payload: fuzz tester and fixes for segfaults and leaks it exposed 2020-12-06 14:54:34 +02:00
rdb.tcl fix stream deep sanitization with deleted records (#8568) 2021-03-01 17:23:29 +02:00
redis-benchmark.tcl Add io-thread daily CI tests. (#8232) 2021-01-17 15:48:48 +02:00
redis-cli.tcl When redis-cli received ASK, it didn't handle it (#8930) 2021-10-04 13:59:40 +03:00
replication-2.tcl solve race in replication-2 test - again (#8491) 2021-02-15 12:50:23 +02:00
replication-3.tcl add daily github actions with libc malloc and valgrind 2020-05-04 09:52:20 +03:00
replication-4.tcl stabilize tests that involved with load handlers (#8967) 2021-07-21 21:06:49 +03:00
replication-psync.tcl stabilize tests that involved with load handlers (#8967) 2021-07-21 21:06:49 +03:00
replication.tcl longer timeout in replication test (#8963) 2021-07-21 21:06:49 +03:00