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
OffsetOutOfRange errors have returned #2951
Comments
Same here. So far the same consumer group & topic it seems. |
I'm sorry I can't hold this back Jokes aside, I can't reproduce this on my end since I don't use Kafka anymore (I replaced it with Redpanda and I got no errors like this). Does this command still works? sudo docker compose down && \ # We shutdown everything, but we only want to keep Kafka running
sudo docker compose up -d --wait kafka && \
sudo docker compose run --rm kafka kafka-consumer-groups --bootstrap-server kafka:9092 --group post-process-forwarder --delete && \ # Delete the post-process-forwarder consumer group
sudo docker compose run --rm kafka kafka-consumer-groups --bootstrap-server kafka:9092 --group post-process-forwarder --topic events --delete-offsets && \ # Delete events topic offsets from consumer group named post-process-forwarder on Kafka
sudo docker compose up -d # To start everything again Let me know if that works. |
@aldy505 Well, that approach could work too, however what I do in these cases is just a simple offset reset:
or you can "optimistically" reset all of them:
|
Unsure why this is only happening for post-process-forwarder, since I don't think that was converted to rust-consumer. Wondering if we are missing a |
+1 |
It looks like that reverting to the non-rust consumers has fixed it for now: I haven't seen the offset issue return since when I created the ticket and removed the kafka volumes. |
I've on the other hand set the suggested |
I also reverted to the non-rust consumers, but today the 3 post-process-forwarder consumers failed again with OffsetOutOfRange errors I will try to go back to the rust-consumers now, and add
It works :-) |
I've since added For me, this seems to have successfully fixed the issue, with seemingly no side effects :-) |
I concur. |
@hubertdeng123 @azaslavsky Do you think it's safe to put the |
Note that I did not add the |
Self-Hosted Version
24.3.0
CPU Architecture
x86_64
Docker Version
26.0.0 / 24.0.7
Docker Compose Version
2.25.0 / 2.21.1
Steps to Reproduce
The OffsetOutOfRange errors (discussed before in #1894) have spontaneously returned on 2 out of my 3 self-hosted installations. This is mostly visible due to the alert no longer being executed.
For one of them, I removed the kafka and zookeeper volumes last week to solve the issue, but it seems that it was only temporary as the errors have returned. The other one only catched my attention just now.
As this might be related to #2931 and #2876, I will remove the kafka and zookeeper volumes now again, and replace the
rust-consumer
s withconsumer
.I'm also seeing getsentry/snuba#5707 on the other instance, so I will be changed that to the non-rust consumers there as well.
Expected Result
Well, no errors, and events being processed correctly 😄
Actual Result
Event ID
No response
The text was updated successfully, but these errors were encountered: