Skip to content

Commit d8fb388

Browse files
poorbarcodepriyanshu-ctds
authored andcommitted
[fix][test]Fix flaky ExtensibleLoadManagerImplTest_testGetMetrics (apache#25216)
(cherry picked from commit 257d42f) (cherry picked from commit a8eac91)
1 parent c7f4ca1 commit d8fb388

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
@@ -1784,7 +1784,7 @@ public void testRoleChange() throws Exception {
17841784
.get(3, TimeUnit.SECONDS);
17851785
}
17861786

1787-
@Test
1787+
@Test(priority = Integer.MIN_VALUE)
17881788
public void testGetMetrics() throws Exception {
17891789
{
17901790
ServiceConfiguration conf = getDefaultConf();
@@ -1974,7 +1974,7 @@ SplitDecision.Reason.Unknown, new AtomicLong(6))
19741974
dimensions=[{broker=localhost, metric=sunitStateChn, result=Cancel}], metrics=[{brk_sunit_state_chn_inactive_broker_cleanup_ops_total=7}]
19751975
dimensions=[{broker=localhost, metric=sunitStateChn, result=Schedule}], metrics=[{brk_sunit_state_chn_inactive_broker_cleanup_ops_total=5}]
19761976
dimensions=[{broker=localhost, metric=sunitStateChn, result=Success}], metrics=[{brk_sunit_state_chn_inactive_broker_cleanup_ops_total=1}]
1977-
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}]
1977+
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}]
19781978
dimensions=[{broker=localhost, metric=bundleUnloading}], metrics=[{brk_lb_ignored_ack_total=3, brk_lb_ignored_send_total=2}]
19791979
""".split("\n"));
19801980
var actual = primaryLoadManager.getMetrics().stream().map(Metrics::toString).collect(Collectors.toSet());

0 commit comments

Comments
 (0)