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

KAFKA-7778: document scala suppress API #6586

Merged
merged 2 commits into from
Apr 16, 2019
Merged

KAFKA-7778: document scala suppress API #6586

merged 2 commits into from
Apr 16, 2019

Conversation

vvcephei
Copy link
Contributor

Document the minor API change.

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

@vvcephei
Copy link
Contributor Author

@guozhangwang @casey-green , do you mind taking a quick look at this doc?

Copy link
Contributor

@casey-green casey-green left a comment

Choose a reason for hiding this comment

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

lgtm, thanks!

@@ -71,6 +71,7 @@ <h1>Upgrade Guide and API Changes</h1>
</p>

<h3><a id="streams_api_changes_230" href="#streams_api_changes_230">Streams API changes in 2.3.0</a></h3>
<p>Version 2.3.0 adds the Suppress operator to the <code>kafka-streams-scala</code> Ktable API.</p>
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we also mention the added EagerBufferConfig as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I left it out intentionally; I think that it's unnecessary detail, which would make the guide more cumbersome without adding value.

The reason is that this change doesn't have any effect on the code that people have written or will write. Specifically, the return type of BufferConfig.emitEarlyWhenFull() used to be BufferConfig<?>, and now it's EagerBufferConfig extends BufferConfig<?>, and both are applicable in exactly the same case: Suppressed.untilTimeLimit(BufferConfig), and not Suppressed.untilWindowCloses(StrictBufferConfig).

At the most, it's a change that people may notice in passing, but they can read the javadocs if they're curious. It shouldn't materially affect their lives in any way.

@guozhangwang guozhangwang merged commit 99ce7d7 into apache:trunk Apr 16, 2019
@vvcephei vvcephei deleted the KAFKA-7778-document-scala-suppress-api branch April 17, 2019 16:28
pengxiaolong pushed a commit to pengxiaolong/kafka that referenced this pull request Jun 14, 2019
Document the minor API change.

Reviewers: Casey Green <greenc421@gmail.com>, Guozhang Wang <wangguoz@gmail.com>,  Bill Bejeck <bbejeck@gmail.com>
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.

4 participants