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

Improve Slow Inbound Handling to Include Response Type #80425

Conversation

original-brownbear
Copy link
Member

@original-brownbear original-brownbear commented Nov 5, 2021

The slow logging for responses is often relatively useless when debugging
because it does not contain the type of the response. Tracking down the type
from the message size and response id is not possible in most cases.
This commit adds the handler to the log message which gives us that type information.

The slow logging for responses is often relatively uselss when debugging
because it does not contain the type of the response. Tracking down the type
from the message size and response id is not possible in most cases.
This commit adds the handler to the log message which gives us that type information.
@original-brownbear original-brownbear added >enhancement :Distributed/Network Http and internode communication implementations v8.0.0 v8.1.0 labels Nov 5, 2021
@elasticmachine elasticmachine added the Team:Distributed Meta label for distributed team label Nov 5, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

Copy link
Contributor

@fcofdez fcofdez left a comment

Choose a reason for hiding this comment

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

LGTM. This is really helpful. Would be enough to get the handler default toString in the log message? I'm mainly thinking about nested anonymous classes

@original-brownbear
Copy link
Member Author

Thanks Francisco!

Would be enough to get the handler default toString in the log message? I'm mainly thinking about nested anonymous classes

I think so, we actually fixed the toString on these things for the delegation case because we use this in logging warnings in the inbound handler already :)

@original-brownbear original-brownbear merged commit 2a5b698 into elastic:master Nov 5, 2021
@original-brownbear original-brownbear deleted the log-response-handler-in-slow-inbound-warn branch November 5, 2021 17:58
pxsalehi pushed a commit to pxsalehi/elasticsearch that referenced this pull request Dec 12, 2022
The slow logging for responses is often relatively uselss when debugging
because it does not contain the type of the response. Tracking down the type
from the message size and response id is not possible in most cases.
This commit adds the handler to the log message which gives us that type information.
elasticsearchmachine pushed a commit that referenced this pull request Dec 12, 2022
The slow logging for responses is often relatively uselss when debugging
because it does not contain the type of the response. Tracking down the type
from the message size and response id is not possible in most cases.
This commit adds the handler to the log message which gives us that type information.

Co-authored-by: Armin Braun <me@obrown.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed/Network Http and internode communication implementations >enhancement Team:Distributed Meta label for distributed team v7.17.9 v8.0.0-rc2 v8.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants