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

Disable the circuit breaker for buffers that write data off-heap only… #3619

Conversation

dlvenable
Copy link
Member

@dlvenable dlvenable commented Nov 9, 2023

Description

This PR disables the circuit breaker for writes to the kafka buffer. It does this by adding a new isWrittenOffHeapOnly boolean method to the Buffer interface.

Additionally this PR updates MultiBufferDecorator to use the DelegatingBuffer to reduce some of the code. And moves it to be package protected in the .parser package.

Issues Resolved

Resolves #3616

Check List

  • New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
    • New functionality has javadoc added
  • Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

…. This is currently only the Kafka buffer. Resolves opensearch-project#3616

Signed-off-by: David Venable <[email protected]>
… in the BufferTest class.

Signed-off-by: David Venable <[email protected]>
@@ -92,6 +92,17 @@ default Duration getDrainTimeout() {
return Duration.ZERO;
}

/**
* Indicates if writes to this buffer are also in some way written
* onto the JVM heap. If writes do go on heap, this should <b>false</b>
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: should be false..

@dlvenable dlvenable merged commit 30d6c2c into opensearch-project:main Nov 10, 2023
46 checks passed
@dlvenable dlvenable deleted the 3616-kafka-writes-disable-circuit-breaker branch November 10, 2023 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow the Kafka buffer (and others that do not require the heap) to bypass the heap circuit breaker
3 participants