315157973 commented on pull request #11691:
URL: https://github.com/apache/pulsar/pull/11691#issuecomment-900911001


   The main reason for this to be locked is the following two pieces of logic:
   `pendingBatchReceiveTask` is run by the timed thread pool of ConsumerBase, 
and pollNextBatchReceive needs to be called
   `notifyPendingBatchReceivedCallBack` is run by the internalPinnedExecutor of 
each Consumer, and pollNextBatchReceive needs to be called
   
   Can we set an abstract batchReceiveTimeout() on the base; So that peek and 
poll can be run in the internalPinnedExecutor, and there is no need to lock 
multiple times. Or any other suggestions?
   
   @codelipenghui 


-- 
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-unsubscr...@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to