-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[improve][client] Optimize code for MultiTopicsConsumerImpl #18748
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
Merged
Conversation
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
|
@Pomelongan Please add the following content to your PR description and select a checkbox: |
AnonHxy
approved these changes
Dec 6, 2022
BewareMyPower
approved these changes
Dec 7, 2022
Contributor
|
@Pomelongan Please merge/rebase the master branch. There is a flaky test that has been fixed. #18751 |
RobertIndie
approved these changes
Dec 7, 2022
Codecov Report
@@ Coverage Diff @@
## master #18748 +/- ##
============================================
- Coverage 50.05% 47.78% -2.27%
+ Complexity 11024 10657 -367
============================================
Files 703 703
Lines 68814 68816 +2
Branches 7378 7377 -1
============================================
- Hits 34446 32886 -1560
- Misses 30621 32208 +1587
+ Partials 3747 3722 -25
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Demogorgon314
pushed a commit
to Demogorgon314/pulsar
that referenced
this pull request
Dec 26, 2022
…8748) Co-authored-by: huangzegui <huangzegui@didiglobal.com>
Demogorgon314
pushed a commit
to Demogorgon314/pulsar
that referenced
this pull request
Dec 29, 2022
…8748) Co-authored-by: huangzegui <huangzegui@didiglobal.com>
lifepuzzlefun
pushed a commit
to lifepuzzlefun/pulsar
that referenced
this pull request
Jan 10, 2023
…8748) Co-authored-by: huangzegui <huangzegui@didiglobal.com>
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
In
org.apache.pulsar.client.impl.MultiTopicsConsumerImpl#createPartitionedConsumer, it is more appropriate to change some places to generic format. For example, see line 932, it is better to changeConsumerConfigurationDatatoConsumerConfigurationData<T>.pulsar/pulsar-client/src/main/java/org/apache/pulsar/client/impl/MultiTopicsConsumerImpl.java
Lines 932 to 940 in fc655c8
Modifications
Change some code in
org.apache.pulsar.client.impl.MultiTopicsConsumerImpl#createPartitionedConsumerto generic mode.Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
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: Pomelongan#16