You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "christian-ledesma (via GitHub)" <gi...@apache.org> on 2024/05/23 08:24:44 UTC
[I] Producer trying to send message for an indefinite amount of time [pulsar-dotpulsar]
christian-ledesma opened a new issue, #218:
URL: https://github.com/apache/pulsar-dotpulsar/issues/218
Hi guys, this is really a question
The thing is, everytime my producer is unable to reach a pulsar instance, `Send()` takes forever and never throws an exception. Is there anyway I can handle this situation or change this behaviour?
We're currently using version 3.1.1
--
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.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Producer trying to send message for an indefinite amount of time [pulsar-dotpulsar]
Posted by "blankensteiner (via GitHub)" <gi...@apache.org>.
blankensteiner closed issue #218: Producer trying to send message for an indefinite amount of time
URL: https://github.com/apache/pulsar-dotpulsar/issues/218
--
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
Re: [I] Producer trying to send message for an indefinite amount of time [pulsar-dotpulsar]
Posted by "blankensteiner (via GitHub)" <gi...@apache.org>.
blankensteiner commented on issue #218:
URL: https://github.com/apache/pulsar-dotpulsar/issues/218#issuecomment-2144512745
Hi @christian-ledesma
Just to add to David's answer: If the producer can't connect, then as long as the Producer is not Faulted it will try to reconnect, meaning that your Send operation will continue. The Send operation will only throw an exception if the cancellation token you provide times out or the producer is faulted.
--
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
Re: [I] Producer trying to send message for an indefinite amount of time [pulsar-dotpulsar]
Posted by "entvex (via GitHub)" <gi...@apache.org>.
entvex commented on issue #218:
URL: https://github.com/apache/pulsar-dotpulsar/issues/218#issuecomment-2128942080
Hi @christian-ledesma ,
Thank you for your question. While you didn't provide a code snippet, I'll make some assumptions based on your context.
If you're using `Send` without a cancellation token, and it fails to connect, your application will wait indefinitely. To avoid this, consider creating a token that cancels after a specified time span.
For handling state changes, refer to the wiki on [monitoring](https://github.com/apache/pulsar-dotpulsar/wiki/Monitoring) in Pulsar.
If you're interested in specific exceptions, explore the [Resilience](https://github.com/apache/pulsar-dotpulsar/wiki/Resilience) section in the wiki.
I hope this helps! Let me know if you have any further questions.
--
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