Skip to content

Commit

Permalink
[fix][test] Fix flaky PrometheusMetricsTest.testBrokerMetrics
Browse files Browse the repository at this point in the history
  • Loading branch information
pdolif committed Mar 1, 2025
1 parent d0025e7 commit 3aac8f4
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,7 @@ public void testBrokerMetrics() throws Exception {

double systemCursorOutBytes = 0.0;
for (Metric metric : topicLevelBytesOutTotal) {
if (metric.tags.get("subscription").startsWith(SystemTopicNames.SYSTEM_READER_PREFIX)
|| metric.tags.get("subscription").equals(Compactor.COMPACTION_SUBSCRIPTION)) {
if (metric.tags.get("subscription").startsWith(SystemTopicNames.SYSTEM_READER_PREFIX)) {
systemCursorOutBytes = metric.value;
}
}
Expand Down

0 comments on commit 3aac8f4

Please sign in to comment.