nodece opened a new pull request, #21746:
URL: https://github.com/apache/pulsar/pull/21746

   ### Motivation
   
   In geo, the `msgOut` is inaccurate:
   
   1. When `Entry` is batch message, the 
`org.apache.pulsar.common.stats.Rate#countAdder` and 
`org.apache.pulsar.common.stats.Rate#totalCountAdder` increment only once.
   2. When the network fails, the 
`org.apache.pulsar.common.stats.Rate#recordEvent(long)` shouldn't be called, 
due to the message cannot be sent to the remote cluster.
   
   ### Modifications
   
   Use the Producer stats instead of msgOut in geo.
   
   ### Verifying this change
   
   Just to verify the `msgRateOut` and `msgThroughputOut` doesn't equal to 0.
   
   ### Documentation
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   - [ ] `doc` <!-- Your PR contains doc changes. -->
   - [ ] `doc-required` <!-- Your PR changes impact docs and you will update 
later -->
   - [x] `doc-not-needed` <!-- Your PR changes do not impact docs -->
   - [ ] `doc-complete` <!-- Docs have been already added -->
   
   ### Matching PR in forked repository
   
   PR in forked repository: <!-- ENTER URL HERE -->
   
   <!--
   After opening this PR, the build in apache/pulsar will fail and instructions 
will
   be provided for opening a PR in the PR author's forked repository.
   
   apache/pulsar pull requests should be first tested in your own fork since 
the 
   apache/pulsar CI based on GitHub Actions has constrained resources and quota.
   GitHub Actions provides separate quota for pull requests that are executed 
in 
   a forked repository.
   
   The tests will be run in the forked repository until all PR review comments 
have
   been handled, the tests pass and the PR is approved by a reviewer.
   -->
   


-- 
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-unsubscr...@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to