nspcc-dev / neofs-sdk-go

Go implementation of NeoFS SDK
Apache License 2.0
5 stars 14 forks source link

Empty SEARCH result is treated as an error leading to unhealthy client #518

Closed roman-khimov closed 12 months ago

roman-khimov commented 12 months ago

Current Behavior

HTTP gateway SEARCHing for things often doesn't find anything (it's OK, there are a lot of random requests to the gateway). This leads to io.EOF returned, but it's counted as an error in Pool (incError) and eventually leads to declaring client unhealthy.

Expected Behavior

It's just not an error, it's normal behavior.

Possible Solution

Review error handling in updateErrorRate.

Context

Mainnet gateways (HTTP 0.27.4) went down because of this.