Skip to content

KAFKA-3418: add javadoc section describing consumer failure detection#1129

Closed
hachikuji wants to merge 1 commit into
apache:trunkfrom
hachikuji:KAFKA-3418
Closed

KAFKA-3418: add javadoc section describing consumer failure detection#1129
hachikuji wants to merge 1 commit into
apache:trunkfrom
hachikuji:KAFKA-3418

Conversation

@hachikuji
Copy link
Copy Markdown
Contributor

No description provided.

@hachikuji
Copy link
Copy Markdown
Contributor Author

cc @jkreps

@omkreddy
Copy link
Copy Markdown
Contributor

LGTM

* </ol>
* <p>
* For use cases where message processing time varies unpredictably, neither of these options may be viable.
* The recommended way to handle these cases is to move message processing to another thread, which allows
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is it correct that another downside of this approach is that the foreground thread could end up buffering too much data as we have no way to apply backpressure?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@ijuma I think this question is addressed below -- pausing partitions in the network thread effectively is backpressure and turns the network thread into a pure heartbeating thread while processing is being performed. You can also, of course, choose to buffer as much or as little as you want by adjusting when you decide to pause the collection.

I'd say the current docs explain this well enough, though I think a few code examples (in the somewhat defunct examples jar) would be the most helpful way to show how to make this work in practice.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Makes sense @ewencp, not sure how I missed that sentence when I read it originally.

@ewencp
Copy link
Copy Markdown
Contributor

ewencp commented Apr 29, 2016

LGTM. We may want to move some of this into the normal docs given how large this part of the javadocs is getting, but better to get this in somewhere for the next release.

@asfgit asfgit closed this in fe6c481 Apr 29, 2016
gfodor pushed a commit to AltspaceVR/kafka that referenced this pull request Jun 3, 2016
Author: Jason Gustafson <jason@confluent.io>

Reviewers: Manikumar Reddy <manikumar.reddy@gmail.com>, Ismael Juma <ismael@juma.me.uk>, Ewen Cheslack-Postava <ewen@confluent.io>

Closes apache#1129 from hachikuji/KAFKA-3418
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