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

cloud_storage: fix logs about http client errors #3356

Merged
merged 2 commits into from
Dec 23, 2021

Conversation

LenaAn
Copy link
Contributor

@LenaAn LenaAn commented Dec 23, 2021

Cover letter

Downgrade log message severity in case of http client disconnect since it's a normal mode of operation.
Fixes: #3333

Release notes

Improvements

  • Fine-tune logging

Elena Anyusheva added 2 commits December 23, 2021 18:15
The real error message should be printed in the code that calls the
http client, it has the right context
This is a normal situation when http client disconnects, we will just
retry.
@@ -247,10 +247,10 @@ ss::future<> client::response_stream::shutdown() { return _client->stop(); }
/// Return failed future if ec is set, otherwise return future in ready state
static ss::future<iobuf>
fail_on_error(prefix_logger& ctxlog, const boost::beast::error_code& ec) {
if (!ec) {
if (!ec.failed()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: why this change is needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not needed, but I think that's more readable

@LenaAn LenaAn merged commit 0cd1cd5 into redpanda-data:dev Dec 23, 2021
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cloud_storage: noisy errors on innocuous request errors
3 participants