Re: [clojure-rabbitmq] Re: Can TopologyRecoveryException be simulated?

2014-06-04 Thread Brian Marick

On Jun 4, 2014, at 3:31 AM, Michael Klishin mklis...@gopivotal.com wrote:

 Feel free to contribute this feature:
 
 https://github.com/michaelklishin/langohr/issues/47 

I'll have the new guy do it when he starts in August.



Let us go then, TMI,
When their profiles are spread out against the sky,
Like a patient etherized upon a table.

The Love Song of J. Random Profile

-- 
You received this message because you are subscribed to the Google Groups 
clojure-rabbitmq group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure-rabbitmq+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [clojure-rabbitmq] Re: Can TopologyRecoveryException be simulated?

2014-06-04 Thread Michael Klishin
On 4 June 2014 at 18:21:51, Brian Marick (br...@getset.com) wrote:
  I'll have the new guy do it when he starts in August.

Hopefully it'll be done by then ;) 
--  
MK  

Software Engineer, Pivotal/RabbitMQ

-- 
You received this message because you are subscribed to the Google Groups 
clojure-rabbitmq group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure-rabbitmq+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[clojure-rabbitmq] Re: Can TopologyRecoveryException be simulated?

2014-06-03 Thread Brian Marick

On Jun 3, 2014, at 2:13 PM, Brian Marick br...@getset.com wrote:

 We had a situation this morning where automatic topology recovery failed with 
 this exception. I'd like to do something to my local rabbitmq server that 
 provokes this exeption, to see if my fix works. Is there a way?

Am I correct to think that there's no straightforward way of hooking into the 
autorecovery mechanism to handle a TopologyRecoveryException? In our case, the 
Ruby apps were written to exit and restart upon any AMQP problem. When they 
started in the normal way, the topology problem didn't stop them and all was 
well.

The Clojure apps tried the auto-recovery, got stuck with the topology 
exception, didn't exit, and so were hung up until manually restarted. 
(Fortunately, only two real users were affected.)

So what I'd like is for the Clojure apps to System/exit upon that exception. 
But it's swallowed (and printed) by beginAutomaticRecovery in Connection.java.

Is the only option to hand-roll non-automatic recovery?


Let us go then, TMI,
When their profiles are spread out against the sky,
Like a patient etherized upon a table.

The Love Song of J. Random Profile

-- 
You received this message because you are subscribed to the Google Groups 
clojure-rabbitmq group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure-rabbitmq+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.