Ignore "connection reset" errors while initializing the targets with queue store enabled (#8185)

Fixes #8178
This commit is contained in:
Praveen raj Mani
2019-09-06 02:25:48 +05:30
committed by Harshavardhana
parent 259a5d825b
commit 428836d4e1
6 changed files with 12 additions and 8 deletions

View File

@@ -276,7 +276,7 @@ func NewRedisTarget(id string, args RedisArgs, doneCh <-chan struct{}) (*RedisTa
_, pingErr := conn.Do("PING")
if pingErr != nil {
if target.store == nil || !IsConnRefusedErr(pingErr) {
if target.store == nil || !(IsConnRefusedErr(pingErr) || IsConnResetErr(pingErr)) {
return nil, pingErr
}
} else {