Hi all,

I think the current 3.14.1 streamcache implementation is not working as
expected.

Please see the following example of our streambased Route

.from("timer:reserveRows?period={{pollInterval}}&synchronous=true")
   .to("{{selectStmt}}")
   .marshal(new ParquetFileDataFormat())
     .to("direct:upload")

from("direct:upload")
     .recipientlist("file://folder1,file://folder2)
     .parallelProcessing()

*Sidenote:*
In our logs we see active StreamCaching
...... o.a.c.i.e.DefaultStreamCachingStrategy   : Should spool cache 14532
-> false

*Outcome:*
The File in folder2 is empty! File in folder 1 is valid.


I have debuged FileOperations.writeFileByStream
Both calls are useing the same "InputStreamCache@13081"

I expect that this lead to the interferenced Inputstreams

------------
springboot 2.6.2
camel 3.14.1

Reply via email to