We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bf6581 commit 090aef1Copy full SHA for 090aef1
rediscluster/redisclusterutil/cluster.go
@@ -78,7 +78,9 @@ func ParseSlotsInfo(res interface{}) ([]SlotsRange, error) {
78
host, hasHost := rawaddr[0].([]byte)
79
port, hasPort := rawaddr[1].(int64)
80
if !hasHost && hasPort && port == 0 {
81
- // fallback to skip zero address
+ // Due to possible Redis cluster misconfiguration we can receive zero address
82
+ // for one of the replicas. It is totally fine to skip the misconfigured replica
83
+ // and go with the remaining ones without inducing denial of service.
84
arr, isArray := rawaddr[0].([]interface{})
85
if isArray && len(arr) == 0 {
86
continue
0 commit comments