You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Karl Palsson (JIRA)" <ji...@apache.org> on 2010/07/02 14:23:51 UTC

[jira] Created: (CAMEL-2900) if an ftp consumer gives up reconnecting, the consumer is still listed as "started" it should say "stopped retrying" or similar

if an ftp consumer gives up reconnecting, the consumer is still listed as "started" it should say "stopped retrying" or similar
-------------------------------------------------------------------------------------------------------------------------------

                 Key: CAMEL-2900
                 URL: https://issues.apache.org/activemq/browse/CAMEL-2900
             Project: Apache Camel
          Issue Type: Improvement
          Components: camel-ftp
    Affects Versions: 2.3.0
            Reporter: Karl Palsson
            Priority: Minor


when an ftp consumer gives up retrying connections, (because the default is 3) the consumer status (read via JMX) is still listed as "Started"  It would be nice, and certainly have helped debugging why things weren't working, if this said something like "Stopped-Retries Exceeded" or something.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CAMEL-2900) if an ftp consumer gives up reconnecting, the consumer is still listed as "started" it should say "stopped retrying" or similar

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2900?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-2900:
-------------------------------

    Fix Version/s: Future

> if an ftp consumer gives up reconnecting, the consumer is still listed as "started" it should say "stopped retrying" or similar
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2900
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2900
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-ftp
>    Affects Versions: 2.3.0
>            Reporter: Karl Palsson
>            Priority: Minor
>             Fix For: Future
>
>
> when an ftp consumer gives up retrying connections, (because the default is 3) the consumer status (read via JMX) is still listed as "Started"  It would be nice, and certainly have helped debugging why things weren't working, if this said something like "Stopped-Retries Exceeded" or something.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (CAMEL-2900) if an ftp consumer gives up reconnecting, the consumer is still listed as "started" it should say "stopped retrying" or similar

Posted by "Hadrian Zbarcea (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2900?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hadrian Zbarcea reassigned CAMEL-2900:
--------------------------------------

    Assignee: Hadrian Zbarcea

> if an ftp consumer gives up reconnecting, the consumer is still listed as "started" it should say "stopped retrying" or similar
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2900
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2900
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-ftp
>    Affects Versions: 2.3.0
>            Reporter: Karl Palsson
>            Assignee: Hadrian Zbarcea
>            Priority: Minor
>             Fix For: Future
>
>
> when an ftp consumer gives up retrying connections, (because the default is 3) the consumer status (read via JMX) is still listed as "Started"  It would be nice, and certainly have helped debugging why things weren't working, if this said something like "Stopped-Retries Exceeded" or something.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-2900) if an ftp consumer gives up reconnecting, the consumer is still listed as "started" it should say "stopped retrying" or similar

Posted by "Hadrian Zbarcea (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60669#action_60669 ] 

Hadrian Zbarcea commented on CAMEL-2900:
----------------------------------------

Thanks Karl. I will assign this to me and will keep an eye on it for a few weeks. If nothing comes up, I'd suggest we close it in a few weeks and we can reopen and create one again if/when more info is available.

> if an ftp consumer gives up reconnecting, the consumer is still listed as "started" it should say "stopped retrying" or similar
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2900
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2900
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-ftp
>    Affects Versions: 2.3.0
>            Reporter: Karl Palsson
>            Priority: Minor
>             Fix For: Future
>
>
> when an ftp consumer gives up retrying connections, (because the default is 3) the consumer status (read via JMX) is still listed as "Started"  It would be nice, and certainly have helped debugging why things weren't working, if this said something like "Stopped-Retries Exceeded" or something.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-2900) if an ftp consumer gives up reconnecting, the consumer is still listed as "started" it should say "stopped retrying" or similar

Posted by "Karl Palsson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60621#action_60621 ] 

Karl Palsson commented on CAMEL-2900:
-------------------------------------

I find that hard to believe.  If the consumer really was started, and was going to retry on the next poll, I would never have noticed a problem.  It would have  just retried 5 seconds later, and all would have been good.

The fact is it _didn't_ retry.  It just sat there, pretending to be "started" until I pressed stop/start again myself. (after noticing I wasn't getting any responses out of the system for an hour or so, and that response files were queueing up on the remote ftp server.

> if an ftp consumer gives up reconnecting, the consumer is still listed as "started" it should say "stopped retrying" or similar
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2900
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2900
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-ftp
>    Affects Versions: 2.3.0
>            Reporter: Karl Palsson
>            Priority: Minor
>             Fix For: Future
>
>
> when an ftp consumer gives up retrying connections, (because the default is 3) the consumer status (read via JMX) is still listed as "Started"  It would be nice, and certainly have helped debugging why things weren't working, if this said something like "Stopped-Retries Exceeded" or something.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-2900) if an ftp consumer gives up reconnecting, the consumer is still listed as "started" it should say "stopped retrying" or similar

Posted by "Hadrian Zbarcea (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60622#action_60622 ] 

Hadrian Zbarcea commented on CAMEL-2900:
----------------------------------------

Hi Karl,

At every poll(), the FtpConsumer will do a prePollCheck() which leads eventually to a connectIfNecessary(). That means that although not connected, it is still started and will attempt to fetch files and attempt to reconnect if necessary, which means that it is started. You are also correct that it only tries to connect endpoint.getMaximumReconnectAttempts() times. This is controlled by the {{int attempt}} variable which stars from 0 with every poll. The max reconnect attempts is per poll, not for the lifetime of the consumer.

Do you have a test case for that, or do you think it would be hard to put one together? There is a fair amount of tracing at debug level in that area, so at the very least logging at debug level and attaching the log would help. If there is an issue in that area we need to understand it better and fix it.


> if an ftp consumer gives up reconnecting, the consumer is still listed as "started" it should say "stopped retrying" or similar
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2900
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2900
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-ftp
>    Affects Versions: 2.3.0
>            Reporter: Karl Palsson
>            Priority: Minor
>             Fix For: Future
>
>
> when an ftp consumer gives up retrying connections, (because the default is 3) the consumer status (read via JMX) is still listed as "Started"  It would be nice, and certainly have helped debugging why things weren't working, if this said something like "Stopped-Retries Exceeded" or something.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CAMEL-2900) if an ftp consumer gives up reconnecting, the consumer is still listed as "started" it should say "stopped retrying" or similar

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2900?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-2900.
--------------------------------

    Fix Version/s: 2.5.0
                       (was: Future)
       Resolution: Cannot Reproduce

> if an ftp consumer gives up reconnecting, the consumer is still listed as "started" it should say "stopped retrying" or similar
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2900
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2900
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-ftp
>    Affects Versions: 2.3.0
>            Reporter: Karl Palsson
>            Assignee: Hadrian Zbarcea
>            Priority: Minor
>             Fix For: 2.5.0
>
>
> when an ftp consumer gives up retrying connections, (because the default is 3) the consumer status (read via JMX) is still listed as "Started"  It would be nice, and certainly have helped debugging why things weren't working, if this said something like "Stopped-Retries Exceeded" or something.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-2900) if an ftp consumer gives up reconnecting, the consumer is still listed as "started" it should say "stopped retrying" or similar

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60419#action_60419 ] 

Claus Ibsen commented on CAMEL-2900:
------------------------------------

The consumer is still started and will retry on next poll.

What you are looking for is notifications to be emitted when a consumer failed. For example to JMX or whatever.
For that we got the EventNotifier, which we maybe could extend to have a {{ConsumerFailedEvent}} which we can hook into the ExceptionHandler that the DefaultConsumer provides. Then we can let exceptions be handled by it and it can emit the notification.



> if an ftp consumer gives up reconnecting, the consumer is still listed as "started" it should say "stopped retrying" or similar
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2900
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2900
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-ftp
>    Affects Versions: 2.3.0
>            Reporter: Karl Palsson
>            Priority: Minor
>             Fix For: Future
>
>
> when an ftp consumer gives up retrying connections, (because the default is 3) the consumer status (read via JMX) is still listed as "Started"  It would be nice, and certainly have helped debugging why things weren't working, if this said something like "Stopped-Retries Exceeded" or something.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-2900) if an ftp consumer gives up reconnecting, the consumer is still listed as "started" it should say "stopped retrying" or similar

Posted by "Karl Palsson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60623#action_60623 ] 

Karl Palsson commented on CAMEL-2900:
-------------------------------------

I wish I could put a test case together, but I can't trigger this condition.  It's only happened a couple of times so far, and only in production, never in test.  Last time it happened, the config didn't allow me to turn debug on while it was still running. (I've fixed that now)

I know that 2.4.x included a raft of FTP fixes, but it wasn't ready by the time we went live.  I fully expect to update to 2.4 this week or next week, and will be keeping any eye on it.  If I see it again, I will enable debug for org.apache.camel.* and see what I see.



> if an ftp consumer gives up reconnecting, the consumer is still listed as "started" it should say "stopped retrying" or similar
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2900
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2900
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-ftp
>    Affects Versions: 2.3.0
>            Reporter: Karl Palsson
>            Priority: Minor
>             Fix For: Future
>
>
> when an ftp consumer gives up retrying connections, (because the default is 3) the consumer status (read via JMX) is still listed as "Started"  It would be nice, and certainly have helped debugging why things weren't working, if this said something like "Stopped-Retries Exceeded" or something.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.