Skip to content

[fix][test] Fix PrometheusMetricsTest.testBrokerConnection#18539

Merged
Technoboy- merged 2 commits intoapache:masterfrom
coderzc:fix_testBrokerConnection
Nov 19, 2022
Merged

[fix][test] Fix PrometheusMetricsTest.testBrokerConnection#18539
Technoboy- merged 2 commits intoapache:masterfrom
coderzc:fix_testBrokerConnection

Conversation

@coderzc
Copy link
Member

@coderzc coderzc commented Nov 18, 2022

Fixes #18535

Motivation

in #17905, we enable transaction coordinator in the broker, this will lead to opening a connection in broker, so connection_count should recalculate.

Modifications

Enable transaction coordinator in broker only in testDuplicateMetricTypeDefinitions.

Documentation

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

Matching PR in forked repository

PR in forked repository: coderzc#33

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Nov 18, 2022
@codecov-commenter
Copy link

codecov-commenter commented Nov 18, 2022

Codecov Report

Merging #18539 (4362c4b) into master (aeb4503) will increase coverage by 16.39%.
The diff coverage is 42.10%.

Impacted file tree graph

@@              Coverage Diff              @@
##             master   #18539       +/-   ##
=============================================
+ Coverage     31.39%   47.79%   +16.39%     
- Complexity     6651     9363     +2712     
=============================================
  Files           697      617       -80     
  Lines         68015    58521     -9494     
  Branches       7285     6098     -1187     
=============================================
+ Hits          21353    27968     +6615     
+ Misses        43667    27550    -16117     
- Partials       2995     3003        +8     
Flag Coverage Δ
unittests 47.79% <42.10%> (+16.39%) ⬆️

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

Impacted Files Coverage Δ
...ersistentStreamingDispatcherMultipleConsumers.java 0.00% <0.00%> (ø)
...va/org/apache/pulsar/client/impl/ConsumerImpl.java 14.84% <0.00%> (ø)
...he/pulsar/client/impl/MultiTopicsConsumerImpl.java 22.26% <0.00%> (ø)
...ersistentStickyKeyDispatcherMultipleConsumers.java 58.91% <50.00%> (+20.44%) ⬆️
...sistent/PersistentDispatcherMultipleConsumers.java 58.30% <75.00%> (+19.07%) ⬆️
...pulsar/broker/admin/impl/PersistentTopicsBase.java 59.22% <100.00%> (+43.45%) ⬆️
...lsar/client/impl/conf/ClientConfigurationData.java 96.66% <100.00%> (+0.11%) ⬆️
...apache/pulsar/client/impl/AutoClusterFailover.java 70.00% <0.00%> (-6.12%) ⬇️
...apache/pulsar/proxy/server/LookupProxyHandler.java 57.75% <0.00%> (-0.44%) ⬇️
.../apache/pulsar/broker/namespace/LookupOptions.java 87.50% <0.00%> (ø)
... and 242 more

@coderzc
Copy link
Member Author

coderzc commented Nov 18, 2022

/pulsarbot run-failure-checks

@Technoboy- Technoboy- merged commit 3d88585 into apache:master Nov 19, 2022
lifepuzzlefun pushed a commit to lifepuzzlefun/pulsar that referenced this pull request Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-not-needed Your PR changes do not impact docs type/flaky-tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flaky-test: PrometheusMetricsTest.testBrokerConnection

5 participants

Comments