You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Kyle Gordon (Created) (JIRA)" <ji...@apache.org> on 2012/04/02 19:05:23 UTC
[jira] [Created] (CAMEL-5137) Timer component does not suspend
Timer component does not suspend
--------------------------------
Key: CAMEL-5137
URL: https://issues.apache.org/jira/browse/CAMEL-5137
Project: Camel
Issue Type: Bug
Components: camel-core
Affects Versions: 2.9.1
Environment: Windows XP and RedHat Linux
Reporter: Kyle Gordon
Priority: Minor
A route which begins with a Timer consumer does not suspend the consumer when the route is suspended.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-5137) Timer component does not suspend
Posted by "Kyle Gordon (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kyle Gordon updated CAMEL-5137:
-------------------------------
Attachment: TimerTestOutput.txt
TimerTest.java
Here is a simple test case which has a route started by a timer every second and just logs a message. After running a time or two, we suspend the CamelContext and wait as we observe the timer continues to fire and the route executes despite being suspended.
> Timer component does not suspend
> --------------------------------
>
> Key: CAMEL-5137
> URL: https://issues.apache.org/jira/browse/CAMEL-5137
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.9.1
> Environment: Windows XP and RedHat Linux
> Reporter: Kyle Gordon
> Priority: Minor
> Attachments: TimerTest.java, TimerTestOutput.txt
>
>
> A route which begins with a Timer consumer does not suspend the consumer when the route is suspended.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-5137) Timer component does not suspend
Posted by "Claus Ibsen (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13247372#comment-13247372 ]
Claus Ibsen commented on CAMEL-5137:
------------------------------------
Ah thanks, we needed some logic in TimerConsumer to detect the suspend/resume.
> Timer component does not suspend
> --------------------------------
>
> Key: CAMEL-5137
> URL: https://issues.apache.org/jira/browse/CAMEL-5137
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.9.1
> Environment: Windows XP and RedHat Linux
> Reporter: Kyle Gordon
> Assignee: Claus Ibsen
> Priority: Minor
> Attachments: TimerTest.java, TimerTestOutput.txt
>
>
> A route which begins with a Timer consumer does not suspend the consumer when the route is suspended.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-5137) Timer component does not suspend
Posted by "Claus Ibsen (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13247101#comment-13247101 ]
Claus Ibsen commented on CAMEL-5137:
------------------------------------
Can you provide more details?
The timer consumer will cancel the task, when the consumer is suspended or stopped
and therefore the timer tasks stops firing. This is the expected behavior.
> Timer component does not suspend
> --------------------------------
>
> Key: CAMEL-5137
> URL: https://issues.apache.org/jira/browse/CAMEL-5137
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.9.1
> Environment: Windows XP and RedHat Linux
> Reporter: Kyle Gordon
> Priority: Minor
>
> A route which begins with a Timer consumer does not suspend the consumer when the route is suspended.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (CAMEL-5137) Timer component does not suspend
Posted by "Claus Ibsen (Assigned) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen reassigned CAMEL-5137:
----------------------------------
Assignee: Claus Ibsen
> Timer component does not suspend
> --------------------------------
>
> Key: CAMEL-5137
> URL: https://issues.apache.org/jira/browse/CAMEL-5137
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.9.1
> Environment: Windows XP and RedHat Linux
> Reporter: Kyle Gordon
> Assignee: Claus Ibsen
> Priority: Minor
> Attachments: TimerTest.java, TimerTestOutput.txt
>
>
> A route which begins with a Timer consumer does not suspend the consumer when the route is suspended.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CAMEL-5137) Timer component does not suspend
Posted by "Claus Ibsen (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-5137.
--------------------------------
Resolution: Fixed
Fix Version/s: 2.9.2
2.10.0
Thanks for reporting.
> Timer component does not suspend
> --------------------------------
>
> Key: CAMEL-5137
> URL: https://issues.apache.org/jira/browse/CAMEL-5137
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.9.1
> Environment: Windows XP and RedHat Linux
> Reporter: Kyle Gordon
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 2.10.0, 2.9.2
>
> Attachments: TimerTest.java, TimerTestOutput.txt
>
>
> A route which begins with a Timer consumer does not suspend the consumer when the route is suspended.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira