codelipenghui opened a new issue #4648: [doc] cause deadlock while use 
subscribeAsync demo in java client doc.
URL: https://github.com/apache/pulsar/issues/4648
 
 
   Here is the example in 
http://pulsar.apache.org/docs/en/client-libraries-java/#multi-topic-subscriptions
   
![image](https://user-images.githubusercontent.com/12592133/60428130-c473e580-9c2a-11e9-9c2b-1539d7945b28.png)
   
   Use receive() to get message in subscribeAsync.thenAccept() will cause 
deadlock, because thread will block at receive() and can't call 
sendFlowPermitsToBroker(), so the thread will block forever.
   
   Need to update doc 
http://pulsar.apache.org/docs/en/client-libraries-java/#multi-topic-subscriptions

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to