Hi Try without your custom processor, eg remove this > .process("someprocessor")
You may accidently cause a lock on the file to not be released in your custom code. So try as simple as possible On Thu, Aug 7, 2014 at 6:34 AM, Chirag Dewan <chirag.dewa...@yahoo.in> wrote: > I am running on Linux(red hat). > > > > ________________________________ > From: Claus Ibsen <claus.ib...@gmail.com> > To: "users@camel.apache.org" <users@camel.apache.org> > Sent: Wednesday, 6 August 2014 7:20 PM > Subject: Re: Cached temp files not deleted when StreamCaching is enabled > > > What OS are you using? Are you running on window or something else? > > On Wed, Aug 6, 2014 at 12:47 PM, Chirag Dewan <chirag.dewa...@yahoo.in> wrote: >> Hi Claus, >> >> I have stopped my application,thus stopping CamelContext. But still I can >> see the Spool directory. >> >> >> Dont know if I am doing something wrong. Can this be a permissions issue? >> Would it help if I configure my Spool diectory to somewhere other than tmp ? >> >> Thanks! >> >> Chirag >> >> >> >> ________________________________ >> From: Claus Ibsen <claus.ib...@gmail.com> >> To: "users@camel.apache.org" <users@camel.apache.org> >> Sent: Wednesday, 6 August 2014 2:28 PM >> Subject: Re: Cached temp files not deleted when StreamCaching is enabled >> >> >> The spool directory is only removed when CamelContext is stopped. >> >> See documentation at >> http://camel.apache.org/stream-caching.html >> >> You can turn this off with removeSpoolDirectoryWhenStopping >> >> >> >> On Wed, Aug 6, 2014 at 10:25 AM, Chirag Dewan <chirag.dewa...@yahoo.in> >> wrote: >>> Hi Claus, >>> >>> Sorry for the delay to try the fix and revert. >>> >>> I actually upgraded the camel to 2.13.0. And switched from hdfs2 to file >>> component(cannot try with log as you suggested,as that would require a lot >>> of changes) the issue is still there. The only difference I can observe is >>> that,the cached diectory is now generated inside temp with the pattern >>> camel-tmp-#uuid,earlier it was created in root with tmpcamel-temp-#uuid >>> which might be due to missing file separator. >>> >>> But this directory is not deleted,which is desired. >>> >>> Thanks! >>> >>> Chirag >>> >>> >>> >>> ________________________________ >>> From: Claus Ibsen <claus.ib...@gmail.com> >>> To: "users@camel.apache.org" <users@camel.apache.org> >>> Sent: Wednesday, 30 July 2014 10:28 PM >>> Subject: Re: Cached temp files not deleted when StreamCaching is enabled >>> >>> >>> Hi >>> >>> Have you tried with a newer 2.12.x release or even a 2.13.x ? >>> >>> If you have a test environment then give that a test to see if its been >>> fixed. >>> Also can you try from the ftp but route to something else than hdfs2, >>> such as just a "log" or something. Just to figure out if camel-hdfs2 >>> causes this. >>> >>> And btw you do not have other Camel apps using the same cache dir? >>> There was a bug in 2.12.0 i think about the cache dir setting -- can't >>> quite recall what the bug was, but just that it was in the .0 release. >>> >>> >>> >>> >>> On Wed, Jul 30, 2014 at 11:10 AM, Chirag Dewan <chirag.dewa...@yahoo.in> >>> wrote: >>>> Hi Camel Riders, >>>> >>>> I have a route like : >>>> >>>> from("ftp:someip").process("someprocessor").streamCaching().to("hdfs2:someip"); >>>> >>>> Now I can see that there are a lot of temp files being created in the root >>>> directory for caching which are not deleted even after a 1000's of files >>>> are picked from FTP server. >>>> >>>> I did ran through a couple of earlier mails and JIRA as well regarding the >>>> same issue. Is this thing fixed? >>>> >>>> I am using Camel 2.12.0 >>>> >>>> Thanks! >>>> >>>> Chirag >>> >>> >>> >>> -- >>> Claus Ibsen >>> ----------------- >>> Red Hat, Inc. >>> Email: cib...@redhat.com >>> Twitter: davsclaus >>> Blog: http://davsclaus.com >>> Author of Camel in Action: http://www.manning.com/ibsen >>> hawtio: http://hawt.io/ >>> fabric8: http://fabric8.io/ > > > >> >> >> >> >> >> >> -- >> Claus Ibsen >> ----------------- >> Red Hat, Inc. >> Email: cib...@redhat.com >> Twitter: davsclaus >> Blog: http://davsclaus.com >> Author of Camel in Action: http://www.manning.com/ibsen >> hawtio: http://hawt.io/ >> fabric8: http://fabric8.io/ > > > > -- > Claus Ibsen > ----------------- > Red Hat, Inc. > Email: cib...@redhat.com > Twitter: davsclaus > Blog: http://davsclaus.com > Author of Camel in Action: http://www.manning.com/ibsen > hawtio: http://hawt.io/ > fabric8: http://fabric8.io/ -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/