kafka-go
kafka-go copied to clipboard
conn.ReadOffsets and related functions should honor isolation level
Describe the solution you'd like Seeking to the end of a partition is probably broken for users that write messages with transactional producers. Because we're not setting the isolation level when we find the last offset, we may seek beyond the last stable offset.
Supporting documentation
As part of KIP-98, a field for isolation_level was added to the v2 of ListOffsetsRequest. See also: https://kafka.apache.org/protocol#The_Messages_ListOffsets.
Related work:
- https://github.com/segmentio/kafka-go/pull/755