I am facing issue in kafka consumer for execption handling. My flow: 1) subscribe to kafka consumer 2) poll assign to a buffer map 3) commit (Since the process takes more than session time out duration commiting the consumer before processing) 4) process the buffer map load in database 5)If any exception in processing step 4 seek to initial offset number saved in poll step 2
There are two issues, the seek is not working from exception, When I start the consumer again with seek option, I am creating one consumer seeking it to previous successful offset , I confirmed the seek is moving correctly. Then I created another kafka consumer to process the data but the seek operation is not considered, it is picking from committed offset.