Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix][test] Fix flaky test: PrometheusMetricsTest.testDuplicateMetricTypeDefinitions #18077

Merged
merged 2 commits into from Oct 18, 2022

Conversation

nicoloboschi
Copy link
Contributor

Motivation

Fix #17921
The test may fails if a previous test in the same fork started the transactions and therefore the transactions metrics are published. In the PulsarService shutdown hooks the metrics are never unregistered.

Modifications

  • Unregister transactions metrics in the PulsarService shutdown

Verifying this change

  • Make sure that the change passes the CI checks.

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

@codecov-commenter
Copy link

codecov-commenter commented Oct 18, 2022

Codecov Report

❗ No coverage uploaded for pull request base (master@92b4708). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #18077   +/-   ##
=========================================
  Coverage          ?   45.97%           
  Complexity        ?    17638           
=========================================
  Files             ?     1574           
  Lines             ?   128336           
  Branches          ?    14118           
=========================================
  Hits              ?    59007           
  Misses            ?    63218           
  Partials          ?     6111           
Flag Coverage Δ
unittests 45.97% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Copy link
Member

@lhotari lhotari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nicoloboschi nicoloboschi merged commit eed8c74 into apache:master Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/broker doc-not-needed Your PR changes do not impact docs ready-to-test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flaky-test: PrometheusMetricsTest.testDuplicateMetricTypeDefinitions
4 participants