kafka icon indicating copy to clipboard operation
kafka copied to clipboard

How to handle the errors in consumer?

Open jsatishkumar opened this issue 7 years ago • 2 comments

I have a simple consumer and I am trying to read from offsets 3 to 5 which do not exist. I want to catch the OffsetOutofRange error and need to do some operations.

Any idea of how to catch this error?

jsatishkumar avatar Jan 19 '17 09:01 jsatishkumar

There is no good way to do this. no-kafka will automatically update subscription offset as per recoveryOffset option.

oleksiyk avatar Jan 19 '17 14:01 oleksiyk

thanks

jsatishkumar avatar Jan 19 '17 16:01 jsatishkumar