redict/tests/unit/cluster
Makdon 2495b90a64
redis-cli: use previous hostip when not provided by redis cluster server (#12273)
When the redis server cluster running on cluster-preferred-endpoint-type unknown-endpoint mode, and receive a request that should be redirected to another redis server node, it does not reply the hostip, but a empty host like MOVED 3999 :6381.

The redis-cli would try to connect to an address without a host, which cause the issue:
```
127.0.0.1:7002> set bar bar
-> Redirected to slot [5061] located at :7000
Could not connect to Redis at :7000: No address associated with hostname
Could not connect to Redis at :7000: No address associated with hostname
not connected> exit
```

In this case, the redis-cli should use the previous hostip when there's no host provided by the server.

---------

Co-authored-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
Co-authored-by: Madelyn Olson <madelynolson@gmail.com>
2023-07-20 15:31:06 -07:00
..
announced-endpoints.tcl [BUG] Fix announced ports not updating on local node when updated at runtime (#10745) 2022-11-25 18:01:01 -08:00
cli.tcl redis-cli: use previous hostip when not provided by redis cluster server (#12273) 2023-07-20 15:31:06 -07:00
cluster-response-tls.tcl Support TLS service when "tls-cluster" is not enabled and persist both plain and TLS port in nodes.conf (#12233) 2023-06-26 07:43:38 -07:00
hostnames.tcl Make nodename test more consistent (#12330) 2023-06-20 18:00:55 -07:00
human-announced-nodename.tcl Make nodename test more consistent (#12330) 2023-06-20 18:00:55 -07:00
links.tcl Attempt to solve MacOS CI issues in GH Actions (#12013) 2023-04-12 09:19:21 +03:00
misc.tcl Exclude aux fields from "cluster nodes" and "cluster replicas" output (#12166) 2023-05-23 18:32:37 +03:00
multi-slot-operations.tcl Adding missing test cases for Addslot Command (#12288) 2023-06-11 08:36:26 +03:00
scripting.tcl Cluster test improvements (#10920) 2022-07-12 10:41:29 -07:00
slot-ownership.tcl bugfix:del keys in slot replicate to replica, and trigger other invalidations (#11084) 2022-08-28 11:37:26 +03:00