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

Fix stream statistics and pool restarts #521

Merged
merged 6 commits into from
Sep 12, 2023
Merged

Conversation

roman-khimov
Copy link
Member

Replaces #519, fixes #518 and #520.

Tie statistics to Close() invocation, have it collected once per operation.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
Multiple (unknown in advance) stream operations make little sense.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
There can be a lot of Write() calls, but there is only one Close() (usually).

Signed-off-by: Roman Khimov <roman@nspcc.ru>
d6d6a41 regression, refactor err/x.err
duality along the way.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
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 roman-khimov changed the title Fix stream statistics Fix stream statistics and pool restarts Sep 12, 2023
getRawClient never returned a proper client for unhealthy nodes, so restart
always failed. f38e127 regression.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
@roman-khimov roman-khimov merged commit c0eefd5 into master Sep 12, 2023
5 checks passed
@roman-khimov roman-khimov deleted the fix-stream-statistics branch September 12, 2023 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Empty SEARCH result is treated as an error leading to unhealthy client
2 participants