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

   ### Motivation
   The Replication task execution process works like this:
   - read messages from the origin cluster
   - load schema
   - send to the target cluster
   
   Because the network across the cluster is unstable, the sending task may be 
slower, so if the number of messages being sent is too large, the task will be 
suspended. There is a counter(`pendingMessages `) in `Replicator` indicating 
the count of sending messages. 
   
   <strong>(Highlight)</strong>There is a problem that causes the counter to be 
inaccurate when the scheme future is incomplete.
   
   ### Modifications
   - Make that the counter is correct when exceptions occur or the 
`schemaFuture` is incomplete
   - Same change for `ShadowReplicator`
   
   ### Documentation
   - [ ] `doc` <!-- Your PR contains doc changes. Please attach the local 
preview screenshots (run `sh start.sh` at `pulsar/site2/website`) to your PR 
description, or else your PR might not get merged. -->
   - [ ] `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:
   - https://github.com/poorbarcode/pulsar/pull/52
   


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