Skip to content

Commit c4af9e6

Browse files
pdoliflhotari
authored andcommitted
[fix][test] Fix flaky PrometheusMetricsTest.testBrokerMetrics (#24042)
(cherry picked from commit 694969f)
1 parent 4d54779 commit c4af9e6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pulsar-broker/src/test/java/org/apache/pulsar/broker/stats/PrometheusMetricsTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,7 @@ public void testBrokerMetrics() throws Exception {
302302

303303
double systemCursorOutBytes = 0.0;
304304
for (Metric metric : topicLevelBytesOutTotal) {
305-
if (metric.tags.get("subscription").startsWith(SystemTopicNames.SYSTEM_READER_PREFIX)
306-
|| metric.tags.get("subscription").equals(Compactor.COMPACTION_SUBSCRIPTION)) {
305+
if (metric.tags.get("subscription").startsWith(SystemTopicNames.SYSTEM_READER_PREFIX)) {
307306
systemCursorOutBytes = metric.value;
308307
}
309308
}

0 commit comments

Comments
 (0)