MINOR: buffer should ignore caching#5819
MINOR: buffer should ignore caching#5819mjsax merged 3 commits intoapache:trunkfrom vvcephei:2.1-fix-buffer
Conversation
There was a problem hiding this comment.
Should we log a warning here and below?
There was a problem hiding this comment.
I'm not sure I agree with a warning.
I think it's fine to just ignore the call, since the buffer will behave correctly whether you call these methods or not. In fact, I originally had them no-op, and changed it to throw upon review.
There's no publicly facing API to register a buffer, so there's no way that a user could call these methods right now. In fact, the buffer itself is an internal class. Therefore, the only way these methods get called are via Streams itself.
My thought is that it would be confusing to see warnings that actually indicate nothing is wrong and about which you can do nothing.
Would you be satisfied with a javadoc explaining the decision?
There was a problem hiding this comment.
Yeah, my intent was just some sort of notification to users these methods are ignored, javadoc is fine with me.
|
Can you redirect the PR against @lindong28 Can we get this into |
There was a problem hiding this comment.
We should add JavaDoc and point out that he method can be called, but won't do anything, as caching is not supported. Similar below.
|
@mjsax Certainly. I am still waiting for the system test branch to be created for 2.1 branch in https://jenkins.confluent.io/job/system-test-kafka before cutting the first RC. Please feel free to cherry-pick into 2.1 branch when it is ready. |
|
Thanks @lindong28. We'll let you know when it's cherry-picked. Thanks @bbejeck and @mjsax for the reviews. I've rebased on trunk and addressed your comments. |
|
java 8 failures: Retest this, please. |
|
Java11 failed again with... @vvcephei Can you investigate? |
|
Retest this please |
|
@mjsax Can we make a Jira for it instead? I really don't think that this change could be linked with the |
|
Hah! Vindication: this time only Geez. This java11 situation is not cool... |
|
One more try... I we can get green Java11, I'll merge afterwards. (I agree that the change should be unrelated to EOS test -- still, we should try to get a green build. @bbejeck is looking into the problem already -- we can still create a JIRA if there is no quick fix -- leave it to @bbejeck to make a call). Retest this please. |
Reviewers: Bill Bejeck <bill@confluent.io>, Matthias J. Sax <matthias@confluent.io>
|
Merged to |
|
Thanks @mjsax, @bbejeck , and @lindong28 ! |
Reviewers: Bill Bejeck <bill@confluent.io>, Matthias J. Sax <matthias@confluent.io>
When the buffer size config is set to 0, Streams invokes
withCachingDisabledin all registered stores.Previously, we didn't expect this method to be called on the suppression buffer, but since it can be under valid circumstances, we should just ignore it rather than throwing an exception.
Committer Checklist (excluded from commit message)