You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/10/14 08:46:06 UTC

[GitHub] [pulsar-client-node] equanz commented on issue #78: Error: Failed to send message: AlreadyClosed

equanz commented on issue #78:
URL: https://github.com/apache/pulsar-client-node/issues/78#issuecomment-1278689559

   @jbmusso
   If batchingEnabled is false(default), Producer#flush does nothing.
   From C++ v2.8.2, pending messages fail when Producer#close is called.
   https://github.com/apache/pulsar/pull/11570
   https://github.com/apache/pulsar/blob/v2.8.2/pulsar-client-cpp/lib/ProducerImpl.cc#L609-L610
   
   To fix it, for example, simply await Producer#send.
   
   For more detail, please see: https://github.com/apache/pulsar-client-cpp/issues/51


-- 
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: dev-unsubscribe@pulsar.apache.org

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