Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
roman-khimov opened this issue Sep 12, 2023 · 0 comments · Fixed by #521
Closed

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

roman-khimov opened this issue Sep 12, 2023 · 0 comments · Fixed by #521
Assignees
Labels
bug Something isn't working pool Issue related to the pool
Milestone

Comments

@roman-khimov
Copy link
Member

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.

@roman-khimov roman-khimov added bug Something isn't working pool Issue related to the pool labels Sep 12, 2023
@roman-khimov roman-khimov added this to the v1.0.0 milestone Sep 12, 2023
@roman-khimov roman-khimov self-assigned this Sep 12, 2023
roman-khimov added a commit that referenced this issue Sep 12, 2023
Only do it from Close, one SEARCH request -> one statistic update.

Fixes #518 at the same time, since in Close() io.EOF is filtered out (as it
should be).

Signed-off-by: Roman Khimov <roman@nspcc.ru>
roman-khimov added a commit that referenced this issue Sep 12, 2023
@roman-khimov roman-khimov modified the milestones: v1.0.0, v1.0.0-rc12 Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pool Issue related to the pool
Projects
None yet
2 participants