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

Removed StreamCache when doing a Wiretap

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.15.1
    • Fix Version/s: 2.16.0
    • Component/s: camel-core
    • Labels:
      None

      Description

      Hi,

      I noticed a bug where the body (StreamCache) was already removed before the exchange reached the end (in the Wiretap route).

      I added a test as an attachment.

      f you run the test you can clearly see the temp file deletion followed by the closed stream exception:

      Tried 1 to delete file: /var/folders/db/brq60fqj4vb8mnx_5nlz36nw0000gn/T/camel/camel-tmp-00cd1ce2-7d44-47fe-b357-008e8146f770/cos8797132745923044996.tmp with result: true

      Cannot reset stream from file /var/folders/db/brq60fqj4vb8mnx_5nlz36nw0000gn/T/camel/camel-tmp-00cd1ce2-7d44-47fe-b357-008e8146f770/cos8797132745923044996.tmp

      I encountered the same issue during a more complex route that does some splitting (zip file) and multicasting. This occurred on Camel 2.14.1 so it could be fixed by https://issues.apache.org/jira/browse/CAMEL-8284 but I need to test this.

      Kind regards,

      Geert

        Attachments

        1. 0001-wire-tap-streaming-problem-camel-core.patch
          33 kB
          Franz Forsthofer
        2. WireTapTest.java
          2 kB
          Geert Vanheusden

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              geertvanheusden Geert Vanheusden
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: