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

Always check the parent breaker with zero bytes in PreallocatedCircuitBreakerService #115181

Merged
merged 2 commits into from
Oct 21, 2024

Conversation

iverase
Copy link
Contributor

@iverase iverase commented Oct 21, 2024

If the bytes passed to the PreallocatedCircuitBreakerService is zero, we really want to check the real memory circuit breaker. Still this service only calls the parent if the buffer has been filled, going against the intention of the check. Therefore let's add the logic to call the parent if the provided bytes are zero.

relates #114941

@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Oct 21, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

@elasticsearchmachine
Copy link
Collaborator

Hi @iverase, I've created a changelog YAML for you.

@iverase iverase added the auto-backport Automatically create backport pull requests when merged label Oct 21, 2024
@iverase iverase merged commit bc57bb0 into elastic:main Oct 21, 2024
16 checks passed
@iverase iverase deleted the preAllocatedZeroBytes branch October 21, 2024 18:28
iverase added a commit to iverase/elasticsearch that referenced this pull request Oct 21, 2024
…tBreakerService (elastic#115181)

PreallocatedCircuitBreakerService will call the parent breaker if the nunber of bytes passed is zero.
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.15
8.16

iverase added a commit to iverase/elasticsearch that referenced this pull request Oct 21, 2024
…tBreakerService (elastic#115181)

PreallocatedCircuitBreakerService will call the parent breaker if the nunber of bytes passed is zero.
iverase added a commit to iverase/elasticsearch that referenced this pull request Oct 21, 2024
…tBreakerService (elastic#115181)

PreallocatedCircuitBreakerService will call the parent breaker if the nunber of bytes passed is zero.
elasticsearchmachine pushed a commit that referenced this pull request Oct 21, 2024
…tBreakerService (#115181) (#115273)

PreallocatedCircuitBreakerService will call the parent breaker if the nunber of bytes passed is zero.
elasticsearchmachine pushed a commit that referenced this pull request Oct 21, 2024
…tBreakerService (#115181) (#115272)

PreallocatedCircuitBreakerService will call the parent breaker if the nunber of bytes passed is zero.
elasticsearchmachine pushed a commit that referenced this pull request Oct 21, 2024
…tBreakerService (#115181) (#115274)

PreallocatedCircuitBreakerService will call the parent breaker if the nunber of bytes passed is zero.
georgewallace pushed a commit to georgewallace/elasticsearch that referenced this pull request Oct 25, 2024
…tBreakerService (elastic#115181)

PreallocatedCircuitBreakerService will call the parent breaker if the nunber of bytes passed is zero.
jfreden pushed a commit to jfreden/elasticsearch that referenced this pull request Nov 4, 2024
…tBreakerService (elastic#115181)

PreallocatedCircuitBreakerService will call the parent breaker if the nunber of bytes passed is zero.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/Aggregations Aggregations auto-backport Automatically create backport pull requests when merged >bug Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v8.15.4 v8.16.1 v8.17.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants