mirror of
https://github.com/minio/minio.git
synced 2025-11-25 20:16:10 -05:00
Ignore "connection reset" errors while initializing the targets with queue store enabled (#8185)
Fixes #8178
This commit is contained in:
committed by
Harshavardhana
parent
259a5d825b
commit
428836d4e1
@@ -182,7 +182,7 @@ func NewNSQTarget(id string, args NSQArgs, doneCh <-chan struct{}) (*NSQTarget,
|
||||
|
||||
if err := target.producer.Ping(); err != nil {
|
||||
// To treat "connection refused" errors as errNotConnected.
|
||||
if target.store == nil || !IsConnRefusedErr(err) {
|
||||
if target.store == nil || !(IsConnRefusedErr(err) || IsConnResetErr(err)) {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user