[ 
https://issues.apache.org/jira/browse/KAFKA-17093?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17863713#comment-17863713
 ] 

Tom Kalmijn commented on KAFKA-17093:
-------------------------------------

According to the documentation "If isolation. level=read_committed, the end 
offset will be the Last Stable Offset, i.e., the offset of the first message 
with an open transaction."

In my case I dont think there are any open transactions as no new messages are 
coming in. However, there are trailing transaction markers from previous 
(possibly aborted) transactional messages. So the documentation may not be 
clear about which offset should be returned in this scenario?

> KafkaConsumer.seekToEnd should return LSO 
> ------------------------------------------
>
>                 Key: KAFKA-17093
>                 URL: https://issues.apache.org/jira/browse/KAFKA-17093
>             Project: Kafka
>          Issue Type: Bug
>          Components: consumer
>    Affects Versions: 3.6.1
>         Environment: Ubuntu,  IntelliJ, Scala   "org.apache.kafka" % 
> "kafka-clients" % "3.6.1"
>            Reporter: Tom Kalmijn
>            Priority: Major
>
>  
> Expected
> When using a transactional producer then the method 
> KafkaConsumer.seekToEnd(...) of a consumer configured with isolation level 
> "read_committed" should return the LSO. 
> Observed
> The offset returned is always the actual last offset of the partition, which 
> is not the LSO if the latest offsets are occupied by transaction markers.
> Also see this Slack thread:
> https://confluentcommunity.slack.com/archives/C499EFQS0/p1720088282557559



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to