On premise sentry all of a sudden got kafka issue

The sentry was working well and all of a sudden got some issue on kafka with following issues:
Exception: KafkaError{code=OFFSET_OUT_OF_RANGE,val=1,str="Broker: Offset out of range"}

I am running sentry on premise inside docker containers. How can I fix this Kafka issue where should I reset the offset range or make sure it does not come up again.

Thanks

Looks like you had a burst of events or the system Sentry running on was not able to consume the messages as fast as they were produced. This answer may help you: https://stackoverflow.com/a/36472296/90297