You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by wbyoussef <wa...@gmail.com> on 2015/11/05 10:37:45 UTC

File Component : lost file and note consumed

Hello,

I have a route that consume xml files from directory :

<route id="myRoute">
			<from
			
uri="file:/home/sharedFolder?recursive=true&amp;delete=true&amp;consumer.delay=500&amp;maxMessagesPerPoll=20&readLock=change&readLockMinAge=2s"
/>
...

We have another application A1 that copy xml files on /home/sharedFolder.
The issue is that some files are not consumed and deleted when A1 copy a
high number of files in a few time.

To reproduce this bug we create this script :


mkdir -p /home/sharedFolder;for i in {1..100};do echo $i;date;cp
/home/temp/toto.xml  /home/sharedFolder`cat /proc/uptime | gawk -F" " '{
print $2 }'`.xml;sleep 0.1;done

OS : CENTOS 6.6
Camel version 2.15
Karaf 3.0.3


Thanks for your help !

Best regards,





--
View this message in context: http://camel.465427.n5.nabble.com/File-Component-lost-file-and-note-consumed-tp5773387.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: File Component : lost file and note consumed

Posted by Claus Ibsen <cl...@gmail.com>.
You very likely need to configure the read lock settings higher etc.

On Thu, Nov 5, 2015 at 10:37 AM, wbyoussef <wa...@gmail.com> wrote:
> Hello,
>
> I have a route that consume xml files from directory :
>
> <route id="myRoute">
>                         <from
>
> uri="file:/home/sharedFolder?recursive=true&amp;delete=true&amp;consumer.delay=500&amp;maxMessagesPerPoll=20&readLock=change&readLockMinAge=2s"
> />
> ...
>
> We have another application A1 that copy xml files on /home/sharedFolder.
> The issue is that some files are not consumed and deleted when A1 copy a
> high number of files in a few time.
>
> To reproduce this bug we create this script :
>
>
> mkdir -p /home/sharedFolder;for i in {1..100};do echo $i;date;cp
> /home/temp/toto.xml  /home/sharedFolder`cat /proc/uptime | gawk -F" " '{
> print $2 }'`.xml;sleep 0.1;done
>
> OS : CENTOS 6.6
> Camel version 2.15
> Karaf 3.0.3
>
>
> Thanks for your help !
>
> Best regards,
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/File-Component-lost-file-and-note-consumed-tp5773387.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2