Hi Luca has been improving those for 2.19.0 release. I wonder if Luca you you could peak at the latest code and maybe we can make possible to suppress these kind of situation? Maybe we could have a option users can turn on|off etc, to ignore or suppress the error.
On Fri, Nov 11, 2016 at 4:56 PM, a746076drdrb <[email protected]> wrote: > Hello, > > I'm using ZooKeeperRoutePolicy to select the leader and on non-leader > members I get of course the exception, which I'd like to suppress and just > log something like "skipping exchange on non-leader node" > > Now, I know I could use onException clause but it would potentially catch > all others IllegalStateException's. It would be nice to have either an > option to throw more specific exception or route it somewhere else? > > It's not a big deal, but just wonder if it is possible > > 15:44:16 [Camel (camel-1) thread #1 - timer://fire] ERROR deadletter - > Exchange[ExchangePattern: InOnly, BodyType: null, CaughtExceptionType: > java.lang.IllegalStateException, CaughtExceptionMessage: Zookeeper based > route policy prohibits processing exchanges, stopping route and failing the > exchange, StackTrace: java.lang.IllegalStateException: Zookeeper based route > policy prohibits processing exchanges, stopping route and failing the > exchange > at > org.apache.camel.component.zookeeper.policy.ZooKeeperRoutePolicy.onExchangeBegin(ZooKeeperRoutePolicy.java:88) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/suppress-zookeeper-leader-selection-exception-tp5790063.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2
