Skip to content

[STORM-8019] Fixing kafka topic level metrics computation#2

Merged
reiabreu merged 31 commits into
masterfrom
fixing_kafka_topic_metrics
Apr 25, 2025
Merged

[STORM-8019] Fixing kafka topic level metrics computation#2
reiabreu merged 31 commits into
masterfrom
fixing_kafka_topic_metrics

Conversation

@reiabreu

@reiabreu reiabreu commented Apr 21, 2025

Copy link
Copy Markdown
Owner

What is the purpose of the change

PR opened to address: apache#8019

Fixing a regression introduced by https://issues.apache.org/jira/browse/STORM-3782

This PR keeps the same logic introduced in apache#8019, but with a important change:

  • the topic level metrics and partition level metrics are calculated on the same method and, importantly, topic level metrics are reset every time getMetrics is executed.

How was the change tested

Created the following test class: /external/storm-kafka-client/src/test/java/org/apache/storm/kafka/spout/metric2/KafkaOffsetPartitionAndTopicMetricsTest.java

@reiabreu reiabreu changed the title Fixing kafka topic metrics [STORM-8019] Fixing kafka topic metrics Apr 24, 2025
@reiabreu reiabreu changed the title [STORM-8019] Fixing kafka topic metrics [STORM-8019] Fixing kafka topic level metrics computation Apr 25, 2025
@reiabreu reiabreu merged commit 22da2a4 into master Apr 25, 2025
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.

1 participant