You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/11/03 17:19:57 UTC
[GitHub] [pulsar] WJL3333 opened a new pull request, #18327: [improve] Code simplify in `AbstractBaseDispatcher` in filterEntriesForConsumer loop
WJL3333 opened a new pull request, #18327:
URL: https://github.com/apache/pulsar/pull/18327
<!--
### Contribution Checklist
- PR title format should be *[type][component] summary*. For details, see *[Guideline - Pulsar PR Naming Convention](https://docs.google.com/document/d/1d8Pw6ZbWk-_pCKdOmdvx9rnhPiyuxwq60_TrD68d7BA/edit#heading=h.trs9rsex3xom)*.
- Fill out the template below to describe the changes contributed by the pull request. That will give reviewers the context they need to do the review.
- Each pull request should address only one issue, not mix up code from multiple issues.
- Each commit in the pull request has a meaningful commit message
- Once all items of the checklist are addressed, remove the above text and this checklist, leaving only the filled out template below.
-->
<!-- Either this PR fixes an issue, -->
Fixes #xyz
### Modifications
1. batch `subscription.acknowledgeMesage` in filterEntriesForConsumer loop
2. remove unnecessary Optional package parameter for `filterEntriesForConsumer` metadataArray
3. avoid call O(consumer) times of `topic.getMigratedClusterUrl` in `checkAndApplyReachedEndOfTopicOrTopicMigration`
### Verifying this change
- [ ] Make sure that the change passes the CI checks.
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*
- [ ] Dependencies (add or upgrade a dependency)
- [ ] The public API
- [ ] The schema
- [ ] The default values of configurations
- [ ] The threading model
- [ ] The binary protocol
- [ ] The REST endpoints
- [ ] The admin CLI options
- [ ] Anything that affects deployment
### Documentation
<!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
- [ ] `doc` <!-- Your PR contains doc changes. Please attach the local preview screenshots (run `sh start.sh` at `pulsar/site2/website`) to your PR description, or else your PR might not get merged. -->
- [ ] `doc-required` <!-- Your PR changes impact docs and you will update later -->
- [ ] `doc-not-needed` <!-- Your PR changes do not impact docs -->
- [ ] `doc-complete` <!-- Docs have been already added -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] WJL3333 commented on pull request #18327: [improve][broker] Code simplify in `AbstractBaseDispatcher` in filterEntriesForConsumer loop
Posted by GitBox <gi...@apache.org>.
WJL3333 commented on PR #18327:
URL: https://github.com/apache/pulsar/pull/18327#issuecomment-1303100703
@codelipenghui @eolivelli @rdhabalia sorry for all the change in commit, can you guys take a look?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] lifepuzzlefun closed pull request #18327: [improve][broker] Code simplify in `AbstractBaseDispatcher` in filterEntriesForConsumer loop
Posted by GitBox <gi...@apache.org>.
lifepuzzlefun closed pull request #18327: [improve][broker] Code simplify in `AbstractBaseDispatcher` in filterEntriesForConsumer loop
URL: https://github.com/apache/pulsar/pull/18327
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org