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

How can consumer group consume new partition without losing data using OffsetNewest config? #2927

Open
AlexanderJLiu opened this issue Jun 13, 2024 · 0 comments

Comments

@AlexanderJLiu
Copy link

AlexanderJLiu commented Jun 13, 2024

sarama config:

config.Consumer.Offsets.Initial = sarama.OffsetNewest

Consumer group consume topic partitions using OffsetNewest config, when topic partitions increase, producers have produced data to new partitions, but consumer group haven't rebalance to Stable state, when consumer ready, consumer would consume new partitions begining with newest data, data produced to new partitions between rebalance would lose.

Is there any config to control consume newer partitions with OffsetOldest config while other partitions with OffsetNewest config?

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

No branches or pull requests

1 participant