Rakesh Gupta created RANGER-5883:
------------------------------------
Summary: Ranger Tagsync commits the last processed Kafka message
offset, causing the Atlas consumer lag to remain at 1
Key: RANGER-5883
URL: https://issues.apache.org/jira/browse/RANGER-5883
Project: Ranger
Issue Type: Bug
Components: Ranger
Reporter: Rakesh Gupta
Assignee: Rakesh Gupta
Tagsync's Atlas source commits the offset of the last successfully processed
notification. However, Kafka interprets the committed offset as the position of
the next record to be consumed. Since Atlas commits the last processed message
offset without incrementing it, Kafka continues to report a consumer lag of 1.
For the last processed message at offset N, the log-end offset is N+1.
Therefore, each fully consumed partition reports:
{{Consumer Lag = (N+1) - N = 1}}
This lag remains constant and does not increase over time. New messages
continue to be consumed normally while Tagsync is running. However, when
Tagsync restarts or a consumer rebalance occurs, Kafka redelivers the last
processed message for each partition because the committed offset still points
to that message.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)