-
Notifications
You must be signed in to change notification settings - Fork 915
Correct typo for example in README #20
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
Conversation
It looks like @dfdeshom hasn't signed our Contributor License Agreement, yet. Appreciation of efforts, clabot |
Hmm, @dfdeshom the intent with that block is that something could potentially set |
@ewencp sounds good. My focus was on code that I can copy and paste to a console and have it work. Something like you mentioned would work:
|
@dfdeshom Yeah, that absolutely makes sense. I like the suggested change, want to update the PR? |
Update the example to show that upon exit, the consumer must call `close()`
Done! |
Awesome, LGTM. Thanks @dfdeshom! Last bit of formality before merging is the CLA. Not sure why the bot didn't include the link, but you can sign it here: clabot.confluent.io/cla |
Done! CLA should be signed |
@dfdeshom Excellent, thanks for the contribution! |
I'm sorry for coming in late but this change will cause the loop to exit as soon as the end is reached for any consumed partition (error is ._PARTITION_EOF). We've discussed not emitting that event as an error but in the meantime that particular error will need to be handled explicitly in the example loop. |
@edenhill Yeah, the tradeoff here is verbosity vs completeness. The goal here was just getting to something that'll actually exit. Not sure how robust/complete an example in a README necessarily needs to be. |
@ewencp I agree, but this introduces behaviour that is generally undesired: exiting on the first partition EOF, and we dont want people to start off their experience with that behaviour. |
I can update the example if needed. I guess it was implicit in the previous version that users should determine what sets |
No description provided.