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 2019/08/18 11:45:45 UTC

[GitHub] [pulsar] sijie commented on issue #4954: 'msgBacklog' is wrong when use Producer.sendAsync() send message

sijie commented on issue #4954: 'msgBacklog' is wrong when use Producer.sendAsync() send message
URL: https://github.com/apache/pulsar/issues/4954#issuecomment-522314574
 
 
   @benxinglong I am not sure if this is a problem. Because sendAsync are async operations. There is no guarantee that all 10 messages are sent to the topic. You have to wait on the futures returned by sendAsync to make sure all 10 messages are produced to the topic.
   
   Please try to wait for the last sendAsync and check if you can get the right `msgBacklog`.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services