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

Cherry-pick #17028 to 7.x: Ensure pprof endpoint is listening on startup #17081

Merged
merged 3 commits into from
Mar 19, 2020

Conversation

jsoriano
Copy link
Member

@jsoriano jsoriano commented Mar 18, 2020

Cherry-pick of PR #17028 to 7.x branch. Original message:

pprof HTTP endpoint was being initialized asynchronously. In tests we
have found that sometimes after Metricbeat has started, it fails to
connect to the pprof endpoint. This can happen if the server is not
listening before the rest of the beat is initialized.

This change ensures that the listener for this endpoint is started
before continuing with the rest of the initialization. This should reduce
flakiness of tests that depend on these endpoint (test_stats tests).

Some comments and error messages have been polished.

pprof HTTP endpoint was being initialized asynchronously. In tests we
have found that sometimes after Metricbeat has started, it fails to
connect to the pprof endpoint. This can happen if the server is not
listening before the rest of the beat is initialized.

This change ensures that the listener for this endpoint is started
before continuing with the rest of the initialization.

Some comments and error messages have been polished.

(cherry picked from commit efdab6f)
@jsoriano
Copy link
Member Author

jenkins, test this please

@jsoriano jsoriano self-assigned this Mar 19, 2020
@jsoriano jsoriano merged commit e78ec4d into elastic:7.x Mar 19, 2020
@jsoriano jsoriano deleted the backport_17028_7.x branch March 19, 2020 19:45
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.

2 participants