To view this discussion on the web visit https://groups.google.com/d/msgid/masstransit-discuss/11d11daf-5d13-4c0a-acf7-9bf2c7409a68%40googlegroups.com.--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-dis...@googlegroups.com.
To post to this group, send email to masstrans...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-dis...@googlegroups.com.
To post to this group, send email to masstrans...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/masstransit-discuss/02f334d0-48ee-48e3-b838-c81acd959322%40googlegroups.com.
Perfect, do you have a pull request so I can test it on my end?
On Fri, Oct 18, 2013 at 12:55 PM, George <scant...@gmail.com> wrote:
I modified the "catch(AggregateException)" handler in OutboundRabbitMqTransport.Send to throw the InnerException rather than a new InvalidConnectionException. So now when I receive a nack from Rabbit my publisher is notified immediately of the exception rather than going through the reconnect scenario I described in my earlier post.Again, thanks for looking at this!
On Friday, 18 October 2013 14:45:17 UTC-5, George wrote:Thanks Chris,I also noticed that if a nack is received a AggregateException is caught in OutboundRabbitMqTransport and rethrown as a InvalidConnectionException.The InvalidConnectionException is then handled by DefaultConnectionPolicy.Execute (I have not added any policies of my own) and the message is resent.The net result is that if the first send resulted in a nack, the framework will try to resend one more time before propagating the exception. My assumption is that this was not by design, but more of a side effect.
On Friday, 18 October 2013 11:53:08 UTC-5, George wrote:Hi,I am in the process of evaluating MassTransit / RabbitMq and I am testing the scenario where the ack from Rabbit is lost before it gets to the publishing application.I am trying to emulate the scenario where a network connection gets dropped after the publish but before the ack is received be the caller.I can see in RabbitMqProducer that a task is started and is either completed (when the ack is received) or an exception is raised (when the nack is received).OutboundRabbitMqTransport will initiate the task using the producer and then Wait for the task to complete.I am trying to simulate a network cable becoming unplugged so that the ack and/or nack never arrive.My first attempt to simulate this was to simply comment out the RabbitMqProducer code that gets executed when the ack is received (IE simulate a lost ack).Of course when I do this my publisher will hang because OutboundRabbitMqTransport is waiting forever for the task to complete.I am going to run another simulation where I actually unplug the network cable to see what happens (IE see if the channel gets broken and an error raised or if the publisher will simply hang).Has anyone run into this situation before? If so, how did you deal with it? (ideally I would like some kind of timeout on the Wait that I can configure).Thanks
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-discuss+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/masstransit-discuss/703c5ac2-6beb-49e2-9112-f3db7436380b%40googlegroups.com.
I modified RabbitMqProducer to simulate a nack (every second ack is treated as a nack).I modified OutboundRabbitMqTransport so that it throws a TransportException instead of a InvalidConnectException when an AggregateException is handled. This prevents a second attempt of a resend when a nack is received.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-discuss+unsubscribe...@googlegroups.com.
To post to this group, send email to masstrans...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/masstransit-discuss/02f334d0-48ee-48e3-b838-c81acd959322%40googlegroups.com.For more options, visit https://groups.google.com/groups/opt_out.
--You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-discuss+unsub...@googlegroups.com.To post to this group, send email to masstrans...@googlegroups.com.