I closed the JIRA ticket I added initially.
Claus Ibsen-2 wrote: > > On Mon, Oct 12, 2009 at 10:15 AM, Vladimir Okhotnikov > <[email protected]> wrote: >> >> Yes, I known about the readLockTimeout option. The problem with this >> option >> is that by a) default it waits forever and b) while it waits for one file >> it >> does not process others. That's what made me spend 2 days wondering about >> the behavior described in the thread almost without clues, and it will >> made >> others. > > You did not mention that you knew this option and why have you not > tried using it? > > Camel does TRACE / DEBUG logging which you could have enabled. > > Which is also written on the file component wiki page > http://camel.apache.org/file2.html > > Debug logging > This component has log level TRACE that can be helpful if you have > problems. > > So if you have done that you would NOT have been in the dark for 2 days. > > > > The file consumer is NOT concurrent. So yes it will wait. > > If you want concurrency then define multiple routes with a file > consumer. Which btw is not fun as file system is not transactional and > having multiple consumers racing for the same files is not fun. > > > Good idea about the default timeout which I have created a ticket for > https://issues.apache.org/activemq/browse/CAMEL-2062 > > > >> >> As is pretty well explained in the "Release It" book, infinite waits are >> bad. Infinite waits by default are very bad, especially in integration >> software - it virtually guarantees that at least one will slip into your >> live system, then it's just a matter of time until it blocks critical >> function or critical amount of resources - and you're waken in the middle >> of >> the night to deal with it. >> >> What do you think? >> >> >> >> Claus Ibsen-2 wrote: >>> >>> >>> You can already do this by the readLockTimeout option. See more details >>> here: >>> http://camel.apache.org/file2.html >>> >>> For example you can set it to 10000 as 10 seconds and if Camel cannot >>> acquire the lock within that period it will skip this file and try the >>> next one. >>> >>> -- >>> Claus Ibsen >>> Apache Camel Committer >>> >>> Open Source Integration: http://fusesource.com >>> Blog: http://davsclaus.blogspot.com/ >>> Twitter: http://twitter.com/davsclaus >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/File-component-blocked-by-existing-files-tp25803233p25851978.html >> Sent from the Camel - Users mailing list archive at Nabble.com. >> >> > > > > -- > Claus Ibsen > Apache Camel Committer > > Open Source Integration: http://fusesource.com > Blog: http://davsclaus.blogspot.com/ > Twitter: http://twitter.com/davsclaus > > -- View this message in context: http://www.nabble.com/File-component-blocked-by-existing-files-tp25803233p25853796.html Sent from the Camel - Users mailing list archive at Nabble.com.
