Hi

Thanks for reporting. I managed  to track down the issue and its fixed
in the next releases of Camel, eg 2.8.3 and 2.9.0.


On Sat, Nov 5, 2011 at 11:57 AM, Claus Ibsen <claus.ib...@gmail.com> wrote:
> Hi
>
> I can reproduce the issue, will try to dig into what happens. Suspect
> that the batch consumer is off by one in a counter and will signal
> back there is no more pending exchanges which there is still one left.
>
>
>
> On Sat, Nov 5, 2011 at 11:41 AM, Claus Ibsen <claus.ib...@gmail.com> wrote:
>> You should increase the 10 sec timeout on the cron scheduled policy as
>> its too low.
>> IMHO it should actually use the default of 300 sec, to ensure a better 
>> shutdown.
>>
>>
>>
>> On Sat, Nov 5, 2011 at 9:36 AM, Claus Ibsen <claus.ib...@gmail.com> wrote:
>>> On Thu, Nov 3, 2011 at 11:06 PM, alexey-s <alex...@mail.ru> wrote:
>>>> Hi
>>>>
>>>> I localized the error.
>>>> Object DefaultShutdownStrategy$ShutdownTask call
>>>>    ((ShutdownAware) consumer).deferShutdown(shutdownRunningTask)
>>>>
>>>> The method of the object GenericFileConsumer always returns false.
>>>> I redefined the method of the FtpConsumer
>>>>
>>>> Now DefaultShutdownStrategy waits until the process.
>>>>
>>>> As you can see, the waiting time starts at 300 seconds, and should be 10
>>>> seconds.
>>>> For details, see page http://camel.apache.org/cronscheduledroutepolicy.html
>>>> .
>>>> Parameter routeStopGracePeriod = 10 seconds. The time period to wait before
>>>> initiating graceful route stop
>>>>
>>>
>>> When a route is stopped using a scheduled route policy it should log
>>> the timeout it used such as
>>> INFO  DefaultShutdownStrategy        - Starting to graceful shutdown 1
>>> routes (timeout 10000 milliseconds)
>>>
>>> Do you see 300 sec instead?
>>>
>>>
>>>> --
>>>> View this message in context: 
>>>> http://camel.465427.n5.nabble.com/Camel-ftp-read-next-file-after-close-connection-tp4952369p4962474.html
>>>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>>>
>>>
>>>
>>>
>>> --
>>> Claus Ibsen
>>> -----------------
>>> FuseSource
>>> Email: cib...@fusesource.com
>>> Web: http://fusesource.com
>>> Twitter: davsclaus, fusenews
>>> Blog: http://davsclaus.blogspot.com/
>>> Author of Camel in Action: http://www.manning.com/ibsen/
>>>
>>
>>
>>
>> --
>> Claus Ibsen
>> -----------------
>> FuseSource
>> Email: cib...@fusesource.com
>> Web: http://fusesource.com
>> Twitter: davsclaus, fusenews
>> Blog: http://davsclaus.blogspot.com/
>> Author of Camel in Action: http://www.manning.com/ibsen/
>>
>
>
>
> --
> Claus Ibsen
> -----------------
> FuseSource
> Email: cib...@fusesource.com
> Web: http://fusesource.com
> Twitter: davsclaus, fusenews
> Blog: http://davsclaus.blogspot.com/
> Author of Camel in Action: http://www.manning.com/ibsen/
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to