Hello,

I’m in the situation where we have an application that has multiple deployed 
instances.

Since all linux nodes are identical, they all share a common route.

This route watches a mounted folder on their locally installed server which for 
all instances have the same origin.



The issue we have is that the routes pick up all the files, in the mounted 
folder, but after they are processed we get an exception that Camel
is unable to move the processed files.

We only want one node to pick up the file

2014-02-12 11:21:41,003 | ERROR | patatoes/in/1000 | GenericFileOnCompletion    
      | 53 - org.apache.camel.camel-core - 2.8.0.fuse-06-11 | Caused by: 
[org.apache.camel.component.file.GenericFileOperationFailedException - Cannot 
rename file: 
GenericFile[/mnt/patatoes/in/1000/inprogress/StatisticReport_2014-02-11_00-23-30.txt]
 to: 
GenericFile[/mnt/patatoes/in/1000/inprogress/.camel/StatisticReport_2014-02-11_00-23-30.txt]]
org.apache.camel.component.file.GenericFileOperationFailedException: Cannot 
rename file: 
GenericFile[/mnt/patatoes/in/1000/inprogress/StatisticReport_2014-02-11_00-23-30.txt]
 to: 
GenericFile[/mnt/patatoes/in/1000/inprogress/.camel/StatisticReport_2014-02-11_00-23-30.txt]


We’ve tried fiddling with the preMove, readLockCheckInterval=5000, 
readLock=changed and readLock=markerFile route url parameters without any 
success.

Our current route has been defined as:  
uri="file://${patatoeservice.1000.in.new}?preMove=inprogress&readLock=markerFile∓moveFailed=${apeservice.1000.error}&sortBy=reverse:file:name&readLockCheckInterval=5000"
 />



I’m starting to doubt that what we are trying to accomplish is not fully 
supported by camel, might this be true ?



Thanks in advance,

Jonas.

Reply via email to