Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-6287

UnknowHostException does not reach onCompletion() if consumer.bridgeErrorHandler is enabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 2.10.4, 2.10.5
    • 2.12.0
    • camel-core
    • None
    • Unknown

    Description

      consumer.bridgeErrorHandler is enabled on file or FTP.

      UnknownHostException or other GenericFileOperationFailedException are not routed to onCompletion().

      I understand the JavaDoc for onCompletion() that every exchange regardless if success or failed would be routed to onCompletion().

      In my case I have the need to aggregate every exchange to show a status of the camel route. Failed exchanges need to be inside this monitoring.

      See attached unit test.

      Attachments

        1. OnCompletionTest.java
          2 kB
          Thomas

        Activity

          People

            davsclaus Claus Ibsen
            t.gueldner Thomas
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: