camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Holzmann (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-9876) Error handling in splitter is broken with version 2.17.0
Date Mon, 18 Apr 2016 09:42:25 GMT
Oliver Holzmann created CAMEL-9876:
--------------------------------------

             Summary: Error handling in splitter is broken with version 2.17.0
                 Key: CAMEL-9876
                 URL: https://issues.apache.org/jira/browse/CAMEL-9876
             Project: Camel
          Issue Type: Bug
          Components: camel-core
    Affects Versions: 2.17.0
            Reporter: Oliver Holzmann
            Priority: Critical


With version 2.17.0 error handling is not triggering route specific error handler any more.

I changed {{org.apache.camel.processor.SplitSubUnitOfWorkTest}} and defined the global error
handler as route specific and amended the global error handler:
{code}
      public void configure() throws Exception {
        // START SNIPPET: e1
        errorHandler(deadLetterChannel("mock:log").useOriginalMessage()
            .maximumRedeliveries(3).redeliveryDelay(0));

        from("direct:start")
            .errorHandler(
                deadLetterChannel("mock:dead").useOriginalMessage()
                    .maximumRedeliveries(3).redeliveryDelay(0)).to("mock:a")
            .split(body().tokenize(",")).shareUnitOfWork().to("mock:b")
            .to("direct:line").end().to("mock:result");

        from("direct:line").inheritErrorHandler(true).to("log:line")
            .process(new MyProcessor()).to("mock:line");
        // END SNIPPET: e1
      }
{code}

The expectation is, that this shouldn't change the test results. 

But {{testError}} fails because {{mock:dead}} is not triggered any more.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message