Skip to content

SAMZA-2295 : records-lag based topic metrics not working for topics with periods (dot, '.') in them - #1131

Merged
mynameborat merged 1 commit into
apache:masterfrom
ntent:bug/SAMZA-2295
Aug 7, 2019
Merged

mynameborat merged 1 commit into
apache:masterfrom
ntent:bug/SAMZA-2295

Conversation

@thunderstumpges

Copy link
Copy Markdown
Contributor

Fix for topic lag metrics where topic contains period (.)

messages-behind-high-watermark and high-watermark are calculated from kafka's records-lag consumer metric. In version 1.1 or so, when metrics moved from including the topic name in the metric name to using tags, they added a replacement of period to underscore. See commit :
apache/kafka@5d81639#diff-b45245913eaae46aa847d2615d62cde0R1331

When Samza refactored to match this, the same replacement was not made, so the lookup of the "records-lag" metric in KafkaConsumerProxy fails to find a match.

The related commit on Samza is here:
01c0605#diff-b56db493dfdd2fd2d471f6df342fe661R400

The fix is a simple replacement added to the line above.

(messages-behind-high-watermark and high-watermark) are calculated from kafka's "records-lag" consumer metric. In version 1.1 or so, when metrics moved from including the topic name in the metric name to using tags, they added a replacement of period to underscore. See commit :
apache/kafka@5d81639#diff-b45245913eaae46aa847d2615d62cde0R1331

@mynameborat mynameborat left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this :)

@mynameborat
mynameborat merged commit ab53bb3 into apache:master Aug 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants