equanz opened a new pull request #12401: URL: https://github.com/apache/pulsar/pull/12401
Master Issue: https://github.com/apache/pulsar/wiki/PIP-79%3A-Reduce-redundant-producers-from-partitioned-producer ### Motivation This is an alternative approach of https://github.com/apache/pulsar/pull/10534. Also, please see the PIP document. ### Modifications * Change partitioned producer initialization logic to use same producerName across partitions even if producerName is not configured at producer config * Change PartitionedTopicStats to aggregate by producerName - To support partial partitioned producer like [PartialRoundRobinMessageRouterImpl.java](https://github.com/apache/pulsar/blob/1f8945addb18bf1f94366d2c7f5286ee6f62c675/pulsar-client/src/main/java/org/apache/pulsar/client/impl/customroute/PartialRoundRobinMessageRouterImpl.java) - Also, single producer which connected to partition are supported Currently, this feature is enabled at all clients. It will change existing behavior (especially, total partitioned producer). If it is not approved, I'll add configurable interface to control partitioned producer initialization logic. ### Verifying this change - [ ] Make sure that the change passes the CI checks. This change added tests and can be verified as follows: - Added unit tests for stats aggregation ### Does this pull request potentially affect one of the following parts: *If `yes` was chosen, please highlight the changes* - Dependencies (does it add or upgrade a dependency): (no) - The public API: (no) - The schema: (no) - The default values of configurations: (no) - The wire protocol: (yes) - Added new field `partial_producer_supported` to `CommandProducer` message - The rest endpoints: (no) - The admin cli options: (no) - Anything that affects deployment: (no) ### Documentation Check the box below and label this PR (if you have committer privilege). Need to update docs? - [x] `no-need-doc` If we should add new stats aggregation logic, I'll modify to `doc-required`. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
