-
Notifications
You must be signed in to change notification settings - Fork 137
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
fixes #409: Adds support for compacted topics and commit offset resetting #425
fixes #409: Adds support for compacted topics and commit offset resetting #425
Conversation
Track expected offsets returned from broker, and truncate where needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
....
...consumer-core/src/main/java/io/confluent/parallelconsumer/offsets/OffsetMapCodecManager.java
Show resolved
Hide resolved
parallel-consumer-core/src/main/java/io/confluent/parallelconsumer/state/PartitionState.java
Outdated
Show resolved
Hide resolved
parallel-consumer-core/src/main/java/io/confluent/parallelconsumer/state/PartitionState.java
Outdated
Show resolved
Hide resolved
...llel-consumer-core/src/test/java/io/confluent/parallelconsumer/state/PartitionStateTest.java
Outdated
Show resolved
Hide resolved
This needs some more careful thinking through, the solution proposed won't work. I thought it needed to be checked continuously, but actually it may indeed only be upon first initial poll - as it's only the committed offset that's affected, not the offset map - I think. |
This reverts commit 23c289f
done. |
parallel-consumer-core/src/main/java/io/confluent/parallelconsumer/state/PartitionState.java
Outdated
Show resolved
Hide resolved
...va/io/confluent/parallelconsumer/integrationTests/state/PartitionStateCommittedOffsetIT.java
Show resolved
Hide resolved
...l-consumer-core/src/test/java/io/confluent/parallelconsumer/offsets/OffsetEncodingTests.java
Outdated
Show resolved
Hide resolved
...ore/src/test/java/io/confluent/parallelconsumer/state/PartitionStateCommittedOffsetTest.java
Outdated
Show resolved
Hide resolved
parallel-consumer-core/src/test/java/io/confluent/parallelconsumer/state/PolledTestBatch.java
Outdated
Show resolved
Hide resolved
…ion-reset-latest # Conflicts: # CHANGELOG.adoc # README.adoc # parallel-consumer-core/src/main/java/io/confluent/parallelconsumer/offsets/BitSetEncoder.java
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...
...va/io/confluent/parallelconsumer/integrationTests/state/PartitionStateCommittedOffsetIT.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
** Truncate the offset state when bootstrap polled offset higher or lower than committed
** Prune missing records from the tracked incomplete offset state, when they're missing from polled batches
Fixes:
Checklist