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/02/11 11:56:08 UTC

[GitHub] [pulsar] codelipenghui commented on pull request #14231: Fix race condition of OpSendMsgQueue when publishing messages

codelipenghui commented on pull request #14231:
URL: https://github.com/apache/pulsar/pull/14231#issuecomment-1036140120


   @lhotari Yes, I have tried to synchronize the `getPendingQueueSize`, but looks like we don't have to synchronize here because we accept the incorrect pending messages at a moment? so we can avoid the print stats task will hold the lock if there are many pending messages.
   
   And yes, getDelayInMillis also have the thread safety issue, but looks only affects the accuracy of replication delay.


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