-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Allow re-Committing offsets #1372
Comments
I never use auto commit to be honest, so I may miss some edge cases, but I personally would expect it to recommit. |
|
This has led to some head scratching for us as well for somewhat bursty topic data, thanks for the work on this. |
To make it simpler, maybe instead of having a config option, it would be easier to implement a new function, like |
We want this behaviour to be used for auto commits too, so I think a config option is the easiest approach for users. |
I think this feature is particularly necessary.We have hundreds of topics(no replica) in a cluster , if a broker is broken, need to restart all the clients :( |
@DavidLiuXh it is even more critical because restart doesn't seem to help, negative lag doesn't go away. So you have to choose between two options, both are bad:
I am in this crappy situation right now, sitting in the position |
There are two workarounds:
|
Oh, thanks, something to think about! |
@AlexeyRaga I wrote a reset offset tool myself by librdkafka for kafka 0.9.0.1, basically do not need to restart a large number of clients. |
@DavidLiuXh Can you share that tool? |
@edenhill I need a little time |
@edenhill I shared the tool: https://github.com/DavidLiuXh/KafkaOffsetTools |
@edenhill has anything changed about this issue? This just hot us really hard here: a couple of partitions that were getting data infrequently suddenly lost their offsets... |
@AlexeyRaga This is still on the backburner, let's look into it after the v1.0.0 release. |
@edenhill any update on this? |
This is too big of a change (risk-wise) to go into v1.5, will adress after that release. |
@edenhill One more ping regarding this issue. We also have this annoying case with topics where data is rarely written to. Consumer is working 24/7, but after it restarts, sometimes it begins to process these topics from the beginning (due to Re-committing current offsets for consumers even when no new messages arrive would be a perfect solution for us. |
librdkafka currently ignores (application) commit requests if the offsets match that of the last known commit.
For reasons stated here (commit expiry is shorter than message interval) it is desired for librdkafka not to perform this check and allow the commit to pass through to the broker.
@AlexeyRaga Should this affect auto commit behaviour as well?
The text was updated successfully, but these errors were encountered: