You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2009/06/23 10:33:35 UTC

[jira] Created: (CAMEL-1744) ScheduledPollConsumer - Should not throw polled exception on stop

ScheduledPollConsumer - Should not throw polled exception on stop
-----------------------------------------------------------------

                 Key: CAMEL-1744
                 URL: https://issues.apache.org/activemq/browse/CAMEL-1744
             Project: Apache Camel
          Issue Type: Improvement
          Components: camel-core
    Affects Versions: 2.0-M2
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen
             Fix For: 2.0.0


See CAMEL-501

And nabble:
http://www.nabble.com/Bug-in-ScheduledPollingConsumer--td24151070s22882.html

If an exception occured during a poll Camel will handle it by a ExceptionHandler you can set on the DefaultConsumer. The default impl will log it at WARN level.

But the ScheduledPollingConsumer will remember this and when it does a doStop in case of shutdown or the likes it will throw the first exception occurred during a poll.
This will indicate in an ERROR when doing a shtudown and its not really related as the poll error could have happened like 3 months ago.

We should not do this. But only handle the poll exception when it occurred. End users can configure their own ExceptionHandler if they want to do something differently than logging.

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


[jira] Resolved: (CAMEL-1744) ScheduledPollConsumer - Should not throw polled exception on stop

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

Claus Ibsen resolved CAMEL-1744.
--------------------------------

    Resolution: Fixed

trunk: 787735.

> ScheduledPollConsumer - Should not throw polled exception on stop
> -----------------------------------------------------------------
>
>                 Key: CAMEL-1744
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1744
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.0-M2
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>
> See CAMEL-501
> And nabble:
> http://www.nabble.com/Bug-in-ScheduledPollingConsumer--td24151070s22882.html
> If an exception occured during a poll Camel will handle it by a ExceptionHandler you can set on the DefaultConsumer. The default impl will log it at WARN level.
> But the ScheduledPollingConsumer will remember this and when it does a doStop in case of shutdown or the likes it will throw the first exception occurred during a poll.
> This will indicate in an ERROR when doing a shtudown and its not really related as the poll error could have happened like 3 months ago.
> We should not do this. But only handle the poll exception when it occurred. End users can configure their own ExceptionHandler if they want to do something differently than logging.

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