This is an automated email from the ASF dual-hosted git repository. lhotari pushed a commit to branch branch-3.0 in repository https://gitbox.apache.org/repos/asf/pulsar.git
commit b41e7527158da8e12dcd491dca4698c4a74d07ba Author: zhangqian <503837...@qq.com> AuthorDate: Wed Apr 10 16:51:26 2024 +0800 [fix][broker] Fix message drop record in producer stat (#22458) Co-authored-by: ceceezhang <ceceezh...@tencent.com> (cherry picked from commit cea1a9ba9b576bf43f0a45ff8d65369b0f2bbb36) --- .../src/main/java/org/apache/pulsar/broker/service/Producer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/Producer.java b/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/Producer.java index 53b79f06e8e..b077ae17a45 100644 --- a/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/Producer.java +++ b/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/Producer.java @@ -741,7 +741,7 @@ public class Producer { } if (this.isNonPersistentTopic) { msgDrop.calculateRate(); - ((NonPersistentPublisherStatsImpl) stats).msgDropRate = msgDrop.getRate(); + ((NonPersistentPublisherStatsImpl) stats).msgDropRate = msgDrop.getValueRate(); } }