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

Camel tracer with stream caching should tracer after stream cache has been setup

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.17.1
    • 2.16.4, 2.17.3, 2.18.0
    • camel-core
    • None
    • Unknown

    Description

      When using tracer then it may run before stream caching gets kicked-in, which means the tracer may read the input stream causing the stream to not be re-readable by the stream caching, and therefore cause it to be empty.

      This only happens if you turn on stream cache bodies on the tracer, which is off by default. And if the input message is stream based that is no re-readable by itself.

      We should ensure the stream caching advice is run first so its applied before any tracer and other stuff going on.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: