RawRabbit: Failure Recovery Issue with PublishAsync
When using PublishAsync and the broker goes down, I get System.Exception:
Unable to retreive channel. All existing channels are closed and none of them are recoverable.
at RawRabbit.Channel.ChannelFactory.EnsureRequestsAreHandled()
at RawRabbit.Channel.ChannelFactory.GetChannelAsync()
at RawRabbit.Operations.Publisher`1.PublishAsync[TMessage](TMessage message, Guid globalMessageId, PublishConfiguration config)
at RawRabbit.Common.BaseBusClient`1.PublishAsync[T](T message, Guid globalMessageId, Action`1 configuration)
at MyNamespace.MyProducer.Send(Object state)
This is fine, and I can handle retries myself, but it would be nice if something less generic than System.Exception was thrown.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 21 (11 by maintainers)
Commits related to this issue
- (#143) Throw ChannelAvailabilityException — committed to pardahlman/RawRabbit by pardahlman 8 years ago
- (#143) Setup Connection Recovery in ChannelFactory In case the connection to the broker is lost, the channel factory should return a task that is not processed. The when the recovery event is fired, ... — committed to pardahlman/RawRabbit by pardahlman 8 years ago
I’ll give this a try tonight and let you know the results!