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

Multicast parallel processing with timeout: Stream Cache file not deleted if CachedOutputStream created before timeout and writing to CachedOutputStream happens after timeout

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.25.2, 3.4.3
    • 3.4.4, 3.6.0, 2.25.3
    • camel-core
    • None
    • Patch Available
    • Unknown
    • Patch

    Description

      If you have a route with a Multicast with parallel processing and a timeout and a sub-route in the multicast which is creating an OutputStreamCache before the timeout and is writing to the OutputStreamCache after the timeout then the created file is never deleted from the file system.

       

      Similar situation as described in https://issues.apache.org/jira/browse/CAMEL-15532. The difference to https://issues.apache.org/jira/browse/CAMEL-15532 is that the OutputStreamCache is created before the timeout; in CAMEL-15532 the OutputStreamCache was created after the timeout and also the writing to the OutputStreamCache happened after the timeout.

      With our current concept to determine the UnitOfWork which removes via the onDone event the created file, we can only determine the described situation and throw an exception. See provided patch.

      Attachments

        Activity

          People

            Unassigned Unassigned
            forsthofer Franz Forsthofer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: