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

Remove return from breakers #66943

Merged
merged 1 commit into from
Jan 5, 2021
Merged

Conversation

nik9000
Copy link
Member

@nik9000 nik9000 commented Jan 4, 2021

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.

@nik9000 nik9000 added :Core/Infra/Circuit Breakers Track estimates of memory consumption to prevent overload >refactoring v8.0.0 v7.12.0 labels Jan 4, 2021
@elasticmachine elasticmachine added the Team:Core/Infra Meta label for core/infra team label Jan 4, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

@nik9000
Copy link
Member Author

nik9000 commented Jan 4, 2021

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.
Copy link
Member

@not-napoleon not-napoleon left a 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.

Copy link
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

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

LGTM

@nik9000 nik9000 merged commit 1bd9fa2 into elastic:master Jan 5, 2021
nik9000 added a commit to nik9000/elasticsearch that referenced this pull request Jan 5, 2021
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.
nik9000 added a commit that referenced this pull request Jan 11, 2021
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>
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 >refactoring Team:Core/Infra Meta label for core/infra team v7.12.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants