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

Emit log message when parent circuit breaker trips #47000

Merged

Conversation

danielmitterdorfer
Copy link
Member

We emit a debug log message whenever a child circuit breaker trips (in
ChildMemoryCircuitBreaker#circuitBreak(String, long)) but we never
emit a log message when the parent circuit breaker trips. This is
more likely to happen with the real memory circuit breaker but it is not
possible to detect this in the logs. With this commit we add a log
message on the same log level (debug) when the parent circuit breaker
trips.

We emit a debug log message whenever a child circuit breaker trips (in
`ChildMemoryCircuitBreaker#circuitBreak(String, long)`) but we never
emit a log message when the parent circuit breaker trips. As this is
more likely to happen with the real memory circuit breaker it is not
possible to detect this in the logs. With this commit we add a log
message on the same log level (debug) when the parent circuit breaker
trips.
@danielmitterdorfer danielmitterdorfer added >enhancement :Core/Infra/Circuit Breakers Track estimates of memory consumption to prevent overload v8.0.0 v7.5.0 v7.4.1 labels Sep 24, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

Copy link
Member

@dakrone dakrone left a comment

Choose a reason for hiding this comment

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

LGTM

@danielmitterdorfer danielmitterdorfer merged commit 1447027 into elastic:master Sep 25, 2019
@danielmitterdorfer
Copy link
Member Author

Thanks for the review! :)

@danielmitterdorfer danielmitterdorfer deleted the log-parent-breaker-trips branch September 25, 2019 05:54
@danielmitterdorfer danielmitterdorfer restored the log-parent-breaker-trips branch September 25, 2019 05:55
@danielmitterdorfer danielmitterdorfer deleted the log-parent-breaker-trips branch September 25, 2019 06:01
danielmitterdorfer added a commit to danielmitterdorfer/elasticsearch that referenced this pull request Sep 25, 2019
We emit a debug log message whenever a child circuit breaker trips (in
`ChildMemoryCircuitBreaker#circuitBreak(String, long)`) but we never
emit a log message when the parent circuit breaker trips. As this is
more likely to happen with the real memory circuit breaker it is not
possible to detect this in the logs. With this commit we add a log
message on the same log level (debug) when the parent circuit breaker
trips.
danielmitterdorfer added a commit that referenced this pull request Sep 25, 2019
We emit a debug log message whenever a child circuit breaker trips (in
`ChildMemoryCircuitBreaker#circuitBreak(String, long)`) but we never
emit a log message when the parent circuit breaker trips. As this is
more likely to happen with the real memory circuit breaker it is not
possible to detect this in the logs. With this commit we add a log
message on the same log level (debug) when the parent circuit breaker
trips.
@danielmitterdorfer
Copy link
Member Author

Backported to 7.x in #47073

danielmitterdorfer added a commit that referenced this pull request Oct 2, 2019
We emit a debug log message whenever a child circuit breaker trips (in
`ChildMemoryCircuitBreaker#circuitBreak(String, long)`) but we never
emit a log message when the parent circuit breaker trips. As this is
more likely to happen with the real memory circuit breaker it is not
possible to detect this in the logs. With this commit we add a log
message on the same log level (debug) when the parent circuit breaker
trips.
@danielmitterdorfer
Copy link
Member Author

Backported to 7.4 in #47074

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/Circuit Breakers Track estimates of memory consumption to prevent overload >enhancement v7.4.1 v7.5.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants