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

unexpected EOF error when reading from partition

Open sayan-mitra opened this issue 3 years ago • 1 comments

we recently added the error logger to the reader config for reader initialisation. Looking into the logs, these below type of error logs have been occurring quite frequently: the kafka reader got an unknown error reading partition <no.> of <topic_name> at offset <no.>: unexpected EOF

we checked this issue #258, but the change for it is already consumed by us as we are using the latest version of the library.

Searching through the library code, we found this is where the log is coming from here https://github.com/segmentio/kafka-go/blob/main/reader.go#L1399.

Though this error is not impacting any functionality in our case, reads are happening whenever a message is there in the partition/topic but our logs and stats are shooting up because of this error.

Plz suggest a way to correct this, any pointer would be very helpful. Thanks!

sayan-mitra avatar Mar 08 '22 04:03 sayan-mitra

hey @achille-roussel can you please help on this.

sayan-mitra avatar Apr 04 '22 06:04 sayan-mitra