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

2014-06-03 Thread Brian Marick

On Jun 3, 2014, at 2:16 PM, Michael Klishin mklis...@gopivotal.com wrote:

 You can delete a queue and declare it with different attributes from out of 
 process.
 Then recovery will attempt to declare it with the original attributes and 
 fail. 

Thanks. 

Small note for anyone doing this: delete the queue, redeclare it differently, 
then shutdown and restart the server.


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.


[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.