Önder Sezgin created CAMEL-13060:
------------------------------------

             Summary: camel-file component : while doing pollEnrich from a file 
when noop=true and idempotent is not set, do poll in GenericFilePollingConsumer 
less (considering timeout)
                 Key: CAMEL-13060
                 URL: https://issues.apache.org/jira/browse/CAMEL-13060
             Project: Camel
          Issue Type: Improvement
            Reporter: Önder Sezgin


[https://github.com/onderson/camel/tree/pollenrich_file_noop]

this unit test is well. 

however if idempotent is not set(which means true due to noop=true),

(by changing this line 
[https://github.com/onderson/camel/commit/36537607c879522917434c547264396fb2cff639#diff-149418967fb132f43ca384f96879ca49R53]

 
{code:java}
simple("file:target/pollenrich?noop=true&include=${in.header.test_file_name}.txt"){code}
or
{code:java}
simple("file:target/pollenrich?noop=true&idempotent=true&include=${in.header.test_file_name}.txt"){code}
)

 

GenericFilePollingConsumer polls quite long as timeout is not set and defaulted 
to be Long.MAX_VALUE and idempotent is true and ignores file with the same name 
even if the file is existing and modified after first poll.

This could be enhanced considering other file attributes...



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to