Skip to content

Commit

Permalink
[#2260] network/cache: Ignore clients only on Dial errors
Browse files Browse the repository at this point in the history
The problem is that accidental timeout errors can make us to ignore
other nodes for some time. The primary purpose of the whole ignore
mechanism is not to degrade in case of failover. For this case,
closing connection and limiting the amount of dials is enough.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
  • Loading branch information
fyrchik committed Feb 17, 2023
1 parent 3c6fcf5 commit 7b47d11
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/network/cache/multi.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ func (s *singleClient) invalidate() {
_ = s.client.Close()
}
s.client = nil
s.lastAttempt = time.Now()
s.Unlock()
}

Expand Down

0 comments on commit 7b47d11

Please sign in to comment.