[improve][client] add physicalAddress as part of connection pool key#22196
Merged
heesung-sohn merged 8 commits intoapache:masterfrom Mar 5, 2024
Merged
[improve][client] add physicalAddress as part of connection pool key#22196heesung-sohn merged 8 commits intoapache:masterfrom
heesung-sohn merged 8 commits intoapache:masterfrom
Conversation
|
@heesung-sn Please add the following content to your PR description and select a checkbox: |
15 tasks
lhotari
requested changes
Mar 5, 2024
pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConnectionPool.java
Outdated
Show resolved
Hide resolved
ba34d63 to
59a1f3c
Compare
dragosvictor
approved these changes
Mar 5, 2024
pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConnectionPool.java
Outdated
Show resolved
Hide resolved
pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConnectionPool.java
Outdated
Show resolved
Hide resolved
…ectionPool.java Co-authored-by: Dragos Misca <dragosvictor@users.noreply.github.com>
…ectionPool.java Co-authored-by: Dragos Misca <dragosvictor@users.noreply.github.com>
lhotari
requested changes
Mar 5, 2024
Member
lhotari
left a comment
There was a problem hiding this comment.
The Key looks good now. One more refactoring suggestion.
pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConnectionPool.java
Outdated
Show resolved
Hide resolved
added 2 commits
March 5, 2024 09:58
lhotari
approved these changes
Mar 5, 2024
pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConnectionPool.java
Outdated
Show resolved
Hide resolved
pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConnectionPool.java
Outdated
Show resolved
Hide resolved
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #22196 +/- ##
============================================
- Coverage 73.57% 73.55% -0.02%
- Complexity 32624 32653 +29
============================================
Files 1877 1878 +1
Lines 139502 139634 +132
Branches 15299 15328 +29
============================================
+ Hits 102638 102711 +73
- Misses 28908 28929 +21
- Partials 7956 7994 +38
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Member
|
@poorbarcode Do we need this fix in branch-3.0? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Context: https://github.com/apache/pulsar/pull/22085/files#r1497008116
Currently, the connection pool key does not include physicalAddress (currently logicalAddress + keySuffix). This can be a problem when the same logicalAddresses are in the migrated(green) cluster. (the connection pool will return the connection to the old(blue) cluster)
Modifications
Add physicalAddress as part of the connection pool key
Verifying this change
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: