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

Split proceeds even if onPrepare throws Exception

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.16.2
    • Fix Version/s: None
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      With the splitter you can set an onPrepareRef to allow custom preprocessing.
      If this processor fails with an exception, the splitting still proceeds leading to hard to track problems becuase the splitter receives messages that are not (or only partially) prepared! Even setting an exception does not let camel fail the split.

      If the prepare step fails camel should fail the split with the exception thrown from onPrepare.

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              laeubi Christoph Läubrich
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: