kafka-go icon indicating copy to clipboard operation
kafka-go copied to clipboard

Fix: skip reading from compacted records

Open niafly opened this issue 1 year ago • 2 comments

We experience this issue when replaying messages from a compacted topic. For readMessageV2 we actually can receive a batch response with zero header count so this fix will skip the batch until it meet a non-empty one.

This is currently the fix that we applied to our local forked repository we're using now, but we expect to get this merged to get up-to-date with the origin public repository.

Fixes #874

niafly avatar Jul 14 '23 16:07 niafly

Hi @niafly, thanks for submitting this PR, could you please include tests for these changes?

rhansen2 avatar Jul 21 '23 16:07 rhansen2

Hi @niafly do you have any plans to finish this?

azarakovskiy avatar Nov 22 '23 15:11 azarakovskiy