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/10/27 03:30:01 UTC
[GitHub] [pulsar] Technoboy- commented on a diff in pull request #18212: [improve] [client] Add api to get producer/consumer stats for partition topic
Technoboy- commented on code in PR #18212:
URL: https://github.com/apache/pulsar/pull/18212#discussion_r1006371623
##########
pulsar-client/src/main/java/org/apache/pulsar/client/impl/PartitionedProducerImpl.java:
##########
@@ -353,7 +353,8 @@ public synchronized ProducerStatsRecorderImpl getStats() {
return null;
}
stats.reset();
- producers.values().forEach(p -> stats.updateCumulativeStats(p.getStats()));
+ producers.forEach(
+ (partition, producer) -> stats.updateCumulativeStats(producer.getTopic(), producer.getStats()));
Review Comment:
`producer.getTopic()` -> `partition` ?
--
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