You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "crossoverJie (via GitHub)" <gi...@apache.org> on 2023/04/12 16:50:05 UTC

[GitHub] [pulsar] crossoverJie commented on issue #20076: [Bug] When consuming messages using messageListener, the ConsumerStats#getMsgNumInReceiverQueue method always returns 0.

crossoverJie commented on issue #20076:
URL: https://github.com/apache/pulsar/issues/20076#issuecomment-1505603769

   > > `msgNumInReceiverQueue ` returns the actual number of messages that are blocking
   > 
   > I don't think so. When a message arrives to message listener, it's not in the queue. It's users responsibility to track the stats.
   
   The user is unable to track these messages as they are still stored in the queue of the `externalPinnedExecutor` thread pool, and the user has no way of knowing how many messages are yet to be consumed.
   
   This means moving the data from the `incomingMessages` queue to the `externalPinnedExecutor` queue.
   


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