You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Franz Forsthofer (Jira)" <ji...@apache.org> on 2020/09/20 10:55:00 UTC

[jira] [Created] (CAMEL-15557) Multicast parallel processing with timeout: Stream Cache file not deleted if CachedOutputStream created before timeout and writing to CachedOutputStream happens after timeout

Franz Forsthofer created CAMEL-15557:
----------------------------------------

             Summary: Multicast parallel processing with timeout: Stream Cache file not deleted if CachedOutputStream created before timeout and writing to CachedOutputStream happens after timeout
                 Key: CAMEL-15557
                 URL: https://issues.apache.org/jira/browse/CAMEL-15557
             Project: Camel
          Issue Type: Bug
          Components: camel-core
    Affects Versions: 3.4.3, 2.25.2
            Reporter: Franz Forsthofer
             Fix For: 3.4.4, 3.6.0, 2.25.3


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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)