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/04/13 09:49:46 UTC

[GitHub] [pulsar] gaozhangmin commented on pull request #15062: [fix] [broker] fix duplicate calculation for msgRateIn and msgThroughputIn in replication PROM metric

gaozhangmin commented on PR #15062:
URL: https://github.com/apache/pulsar/pull/15062#issuecomment-1097831991

   @HQebupt Easily, can we just remove these code?
   ```
   topic.getProducers().values().forEach(producer -> { 
        if (producer.isRemote()) { 
            AggregatedReplicationStats replStats = stats.replicationStats 
                    .computeIfAbsent(producer.getRemoteCluster(), k -> new AggregatedReplicationStats()); 
     
            replStats.msgRateIn += producer.getStats().msgRateIn; 
            replStats.msgThroughputIn += producer.getStats().msgThroughputIn; 
        }
    ```


-- 
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