[ 
https://issues.apache.org/jira/browse/CAMEL-12349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

abccbaandy updated CAMEL-12349:
-------------------------------
    Description: 
I test with these code and enable debug level log
{code:java}
from("timer?period=3s").pollEnrich().simple(sftpServer1);
from("timer?period=3s").pollEnrich().simple(sftpServer2);
{code}

it only log
{code:java}
Took 0.XXX seconds to poll: (the folder I set in sftpServer2)
{code}

But it should log
{code:java}
Took 0.XXX seconds to poll: (the folder I set in sftpServer1)
Took 0.XXX seconds to poll: (the folder I set in sftpServer2)
{code}



I can confirm both sftpServer1 & sftpServer2 config are right.
I test with these code
{code:java}
from(sftpServer1).log("${body}");
from(sftpServer2).log("${body}");
{code}

And got expect result
{code:java}
Took 0.XXX seconds to poll: (the folder I set in sftpServer1)
Took 0.XXX seconds to poll: (the folder I set in sftpServer2)
{code}

So it's probably not concurrency problem. 


  was:
I test with these code and enable debug level log
{code:java}
from("timer?period=3s").pollEnrich().simple(sftpServer1);
from("timer?period=3s").pollEnrich().simple(sftpServer2);
{code}

it only log
{code:java}
Took 0.XXX seconds to poll: (the folder I set in sftpServer2)
{code}

But it should log
{code:java}
Took 0.XXX seconds to poll: (the folder I set in sftpServer1)
Took 0.XXX seconds to poll: (the folder I set in sftpServer2)
{code}

I can confirm both sftpServer1 & sftpServer2 config are right.
I test with these code
{code:java}
from(sftpServer1).log("${body}");
from(sftpServer2).log("${body}");
{code}

And got expect result
{code:java}
Took 0.XXX seconds to poll: (the folder I set in sftpServer1)
Took 0.XXX seconds to poll: (the folder I set in sftpServer2)
{code}



> multiple pollEnrich with ftp component broken
> ---------------------------------------------
>
>                 Key: CAMEL-12349
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12349
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core, camel-ftp, camel-sftp
>    Affects Versions: 2.20.2
>            Reporter: abccbaandy
>            Priority: Major
>
> I test with these code and enable debug level log
> {code:java}
> from("timer?period=3s").pollEnrich().simple(sftpServer1);
> from("timer?period=3s").pollEnrich().simple(sftpServer2);
> {code}
> it only log
> {code:java}
> Took 0.XXX seconds to poll: (the folder I set in sftpServer2)
> {code}
> But it should log
> {code:java}
> Took 0.XXX seconds to poll: (the folder I set in sftpServer1)
> Took 0.XXX seconds to poll: (the folder I set in sftpServer2)
> {code}
> I can confirm both sftpServer1 & sftpServer2 config are right.
> I test with these code
> {code:java}
> from(sftpServer1).log("${body}");
> from(sftpServer2).log("${body}");
> {code}
> And got expect result
> {code:java}
> Took 0.XXX seconds to poll: (the folder I set in sftpServer1)
> Took 0.XXX seconds to poll: (the folder I set in sftpServer2)
> {code}
> So it's probably not concurrency problem. 



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

Reply via email to