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

Question regarding the key ordering #415

Closed
reggiezhang opened this issue Sep 23, 2022 · 1 comment
Closed

Question regarding the key ordering #415

reggiezhang opened this issue Sep 23, 2022 · 1 comment

Comments

@reggiezhang
Copy link

For key ordering scenario demonstrated in 10.4. Ordered by Key, if 5E in partition one can never be processed successfully, does it cause the committed offset to stick to 5E and eventually exceed the OffsetMap size limit?
image

@astubbs
Copy link
Contributor

astubbs commented Sep 23, 2022

does it cause the committed offset to stick to 5E and

That's correct - the committed offset would "stick" to 5, with the metadata payload containing all the per msg ack's beyond 5.

eventually exceed the OffsetMap size limit?

No, as if the payload size hits 75% or more of the limit (4kB), the back pressure system kicks in, and no more records will be taken for processing, until it drops below 75% again. Instead it will keep retrying existing records.

However, if the only record to continually fail is 5, and all others succeed, let's say offset 6-50,000, then the meta data payload is only ~2 shorts (1 and (50,000-6=) 49,994), as it will use run length encoding. So it's very efficient.

Does that answer your question?

This is described a bit in the readme, under 0.3 features: https://github.com/confluentinc/parallel-consumer#features-3
And lightly under https://github.com/confluentinc/parallel-consumer#storage-notes , and in the talk. However - I will make this more apparent in the readme - thanks for asking!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants