-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Remove return from breakers #66943
Remove return from breakers #66943
Conversation
Pinging @elastic/es-core-infra (Team:Core/Infra) |
While this is about the circuit breaker infrastructure it is really a direct follow up to #66895 so I've tagged @not-napoleon for review here. |
This removes the return values from `CircuitBreaker`'s `addEstimateBytesAndMaybeBreak` and `addWithoutBreaking` because they are not supported by the new pre-allocating `CircuitBreaker` and they aren't used for anything other than tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This addresses the concern I had in #66895 but someone from Core should probably also give this at least a glance, for awareness if nothing else.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This removes the return values from `CircuitBreaker`'s `addEstimateBytesAndMaybeBreak` and `addWithoutBreaking` because they are not supported by the new pre-allocating `CircuitBreaker` and they aren't used for anything other than tests.
This removes the return values from `CircuitBreaker`'s `addEstimateBytesAndMaybeBreak` and `addWithoutBreaking` because they are not supported by the new pre-allocating `CircuitBreaker` and they aren't used for anything other than tests. Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This removes the return values from
CircuitBreaker
'saddEstimateBytesAndMaybeBreak
andaddWithoutBreaking
because theyare not supported by the new pre-allocating
CircuitBreaker
and theyaren't used for anything other than tests.