Skip to content

Commit ab27ec9

Browse files
poorbarcodelhotari
authored andcommitted
[fix][test]Fix flaky ExtensibleLoadManagerImplTest_testGetMetrics (#25216)
(cherry picked from commit 257d42f)
1 parent c604310 commit ab27ec9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pulsar-broker/src/test/java/org/apache/pulsar/broker/loadbalance/extensions/ExtensibleLoadManagerImplTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1819,7 +1819,7 @@ public void testRoleChange() throws Exception {
18191819
.get(3, TimeUnit.SECONDS);
18201820
}
18211821

1822-
@Test
1822+
@Test(priority = Integer.MIN_VALUE)
18231823
public void testGetMetrics() throws Exception {
18241824
{
18251825
ServiceConfiguration conf = getDefaultConf();
@@ -2009,7 +2009,7 @@ SplitDecision.Reason.Unknown, new AtomicLong(6))
20092009
dimensions=[{broker=localhost, metric=sunitStateChn, result=Cancel}], metrics=[{brk_sunit_state_chn_inactive_broker_cleanup_ops_total=7}]
20102010
dimensions=[{broker=localhost, metric=sunitStateChn, result=Schedule}], metrics=[{brk_sunit_state_chn_inactive_broker_cleanup_ops_total=5}]
20112011
dimensions=[{broker=localhost, metric=sunitStateChn, result=Success}], metrics=[{brk_sunit_state_chn_inactive_broker_cleanup_ops_total=1}]
2012-
dimensions=[{broker=localhost, metric=sunitStateChn}], metrics=[{brk_sunit_state_chn_orphan_su_cleanup_ops_total=3, brk_sunit_state_chn_owned_su_total=10, brk_sunit_state_chn_su_tombstone_cleanup_ops_total=2}]
2012+
dimensions=[{broker=localhost, metric=sunitStateChn}], metrics=[{brk_sunit_state_chn_last_metadata_session_event_age_seconds=-1, brk_sunit_state_chn_last_metadata_session_event_is_reestablished=1, brk_sunit_state_chn_last_metadata_session_event_timestamp_ms=0, brk_sunit_state_chn_metadata_state=0, brk_sunit_state_chn_orphan_su_cleanup_ops_total=3, brk_sunit_state_chn_owned_su_total=10, brk_sunit_state_chn_su_tombstone_cleanup_ops_total=2}]
20132013
dimensions=[{broker=localhost, metric=bundleUnloading}], metrics=[{brk_lb_ignored_ack_total=3, brk_lb_ignored_send_total=2}]
20142014
""".split("\n"));
20152015
var actual = primaryLoadManager.getMetrics().stream().map(Metrics::toString).collect(Collectors.toSet());

0 commit comments

Comments
 (0)