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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
