Skip to content

Commit 694969f

Browse files
authored
[fix][test] Fix flaky PrometheusMetricsTest.testBrokerMetrics (#24042)
1 parent 3bae1d1 commit 694969f

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,7 @@ public void testBrokerMetrics() throws Exception {
306306

307307
double systemCursorOutBytes = 0.0;
308308
for (Metric metric : topicLevelBytesOutTotal) {
309-
if (metric.tags.get("subscription").startsWith(SystemTopicNames.SYSTEM_READER_PREFIX)
310-
|| metric.tags.get("subscription").equals(Compactor.COMPACTION_SUBSCRIPTION)) {
309+
if (metric.tags.get("subscription").startsWith(SystemTopicNames.SYSTEM_READER_PREFIX)) {
311310
systemCursorOutBytes = metric.value;
312311
}
313312
}

0 commit comments

Comments
 (0)