You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "slim bouguerra (JIRA)" <ji...@apache.org> on 2018/09/14 16:36:00 UTC

[jira] [Updated] (HIVE-20561) Use the position of the Kafka Consumer to track progress instead of Consumer Records offsets

     [ https://issues.apache.org/jira/browse/HIVE-20561?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

slim bouguerra updated HIVE-20561:
----------------------------------
    Status: Patch Available  (was: Open)

> Use the position of the Kafka Consumer to track progress instead of Consumer Records offsets
> --------------------------------------------------------------------------------------------
>
>                 Key: HIVE-20561
>                 URL: https://issues.apache.org/jira/browse/HIVE-20561
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 4.0.0
>            Reporter: slim bouguerra
>            Assignee: slim bouguerra
>            Priority: Major
>             Fix For: 4.0.0
>
>
> Kafka Partitions with transactional messages (post 0.11) will include commit or abort markers which indicate the result of a transaction. The markers are not returned to applications, yet have an offset in the log. Therefore the end of Stream position can be the offset of a control message. 
> This Patch change the way how we keep track of the consumer position by using  {code} consumer.position(topicP) {code} as oppose to using the offset of the consumed messages.
> Also I have done some refactoring to help code readability  hopefully.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)