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 ConnectionPoolTest.testSetProxyToTargetBrokerAddress #20293

Merged
merged 1 commit into from
May 11, 2023

Conversation

lhotari
Copy link
Member

@lhotari lhotari commented May 10, 2023

Fixes #20290

Motivation

The test ConnectionPoolTest.testSetProxyToTargetBrokerAddress is flaky

Modifications

Modify test so that it's not flaky. Use separate broker1 and broker2 since the connection pool doesn't contain handling for separating direct and proxied connections to a broker.
The key in the connection pool is the "logical address" which is the target broker. It doesn't take the "physical address" into account.

Documentation

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

Copy link
Contributor

@nicoloboschi nicoloboschi left a comment

Choose a reason for hiding this comment

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

👍 thanks

@lhotari lhotari added the doc-not-needed Your PR changes do not impact docs label May 10, 2023
@codecov-commenter
Copy link

Codecov Report

Merging #20293 (4685df3) into master (ea56197) will increase coverage by 35.35%.
The diff coverage is n/a.

Impacted file tree graph

@@              Coverage Diff              @@
##             master   #20293       +/-   ##
=============================================
+ Coverage     37.57%   72.93%   +35.35%     
- Complexity    12602    31961    +19359     
=============================================
  Files          1691     1868      +177     
  Lines        129033   138601     +9568     
  Branches      14068    15240     +1172     
=============================================
+ Hits          48490   101089    +52599     
+ Misses        74226    29469    -44757     
- Partials       6317     8043     +1726     
Flag Coverage Δ
inttests 24.05% <ø> (-0.04%) ⬇️
systests 24.81% <ø> (+0.05%) ⬆️
unittests 72.23% <ø> (+39.00%) ⬆️

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

see 1430 files with indirect coverage changes

@lhotari lhotari merged commit b07f2a9 into apache:master May 11, 2023
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 ready-to-test type/flaky-tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flaky-test: ConnectionPoolTest.testSetProxyToTargetBrokerAddress
4 participants