Rion Williams
04/16/2024, 4:39 PMread_committed requirement on the consumer, it will not return or see any records. Likewise adjusting it back to read_uncommitted will work as expected and I can see all of the data flowing through. I have another job using the same Flink and Kafka Client version with the same transactional/processing requirements (e.g. XO) and it’s also working as expected.
I’m a bit stumped and didn’t see any smoking guns that identified the specific issue or fix.Josh Mahonin
04/16/2024, 7:47 PMread_committed will only read up to the last committed transaction, and then block until the transaction completes or times out. But consumers with read_uncommitted will happily continue reading new data.
Kafka 3.x has some new APIs and tooling that lets you introspect on transactions a bit. eg, kafka-transactions.shRion Williams
04/16/2024, 7:50 PMRion Williams
04/16/2024, 7:52 PMJosh Mahonin
04/16/2024, 7:54 PMkcat or kafkacat you can set that read isolation mode, and correlate that with the overall topic offsets to see if it’s blocked or not. The kafka distribution comes with that kafka-transaction.sh helper now, which although very painful to use, will show if there are lingering transactions on a topic or not, and allow you to abort them.Rion Williams
04/16/2024, 8:05 PM