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/08/10 13:53:55 UTC

[GitHub] [pulsar] lhotari opened a new pull request, #17043: [fix][broker] Increment topic stats outbound message counters and update rate after messages have been written to the TCP/IP connection

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

   ### Motivation
   
   - counters could get off a lot when many consumers are reconnecting from time to time
   
   ### Additional context
   
   Pulsar increments the counters when the sending is scheduled. Since the dispatching code is asynchronous, it behaves in a way that Pulsar will try to consume all permits and queue as much of messages as possible. Since the counters are incremented before the messages have been written to the TCP/IP socket, this will result in the counters getting out of sync when the connection is disconnected.
   
   ### Modifications
   
   - increment counters and update rate after the messages have been successfully written to the TCP/IP connection


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


[GitHub] [pulsar] mattisonchao commented on pull request #17043: [fix][broker] Increment topic stats outbound message counters and update rate after messages have been written to the TCP/IP connection

Posted by GitBox <gi...@apache.org>.
mattisonchao commented on PR #17043:
URL: https://github.com/apache/pulsar/pull/17043#issuecomment-1227043348

   Hi @lhotari 
   Would you like to help cherry-pick this PR to branch-2.9?


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


[GitHub] [pulsar] codelipenghui merged pull request #17043: [fix][broker] Increment topic stats outbound message counters and update rate after messages have been written to the TCP/IP connection

Posted by GitBox <gi...@apache.org>.
codelipenghui merged PR #17043:
URL: https://github.com/apache/pulsar/pull/17043


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