[
https://issues.apache.org/jira/browse/CAMEL-6782?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13776867#comment-13776867
]
Babak Vahdat edited comment on CAMEL-6782 at 9/24/13 11:10 PM:
---------------------------------------------------------------
Now running the new test {{SpringQuartzTwoAppsClusteredFailoverTest}} one can
clearly see the failover taking place. See the last 6 lines from the log below
and most importantly the last line where the same route from the second App
automatically gets started after the crash of the first App:
{code}
2013-09-25 00:45:10,941 [main ] INFO SchedulerFactoryBean
:758 - Shutting down Quartz Scheduler
2013-09-25 00:45:10,941 [main ] INFO QuartzScheduler
:707 - Scheduler scheduler_$_app-one shutting down.
2013-09-25 00:45:10,941 [main ] INFO QuartzScheduler
:626 - Scheduler scheduler_$_app-one paused.
2013-09-25 00:45:10,942 [main ] INFO QuartzScheduler
:801 - Scheduler scheduler_$_app-one shutdown complete.
2013-09-25 00:45:10,943 [main ] INFO SpringCamelContext
:1706 - Apache Camel (CamelContext: camelContext) is shutting down
2013-09-25 00:45:10,943 [main ] INFO DefaultShutdownStrategy
:172 - Starting to graceful shutdown 1 routes (timeout 300 seconds)
2013-09-25 00:45:10,945 [ - ShutdownTask] INFO DefaultShutdownStrategy
:600 - Route: myRoute shutdown complete, was consuming from:
Endpoint[direct://start]
2013-09-25 00:45:10,946 [main ] INFO DefaultShutdownStrategy
:217 - Graceful shutdown of 1 routes completed in 0 seconds
2013-09-25 00:45:10,947 [main ] INFO QuartzComponent
:302 - Shutting down scheduler. (will wait for all jobs to complete first.)
2013-09-25 00:45:10,949 [main ] INFO SpringCamelContext
:1780 - Apache Camel (CamelContext: camelContext) uptime 5.854 seconds
2013-09-25 00:45:10,950 [main ] INFO SpringCamelContext
:1781 - Apache Camel (CamelContext: camelContext) is shutdown in 0.006 seconds
2013-09-25 00:45:10,950 [main ] WARN
tzTwoAppsClusteredFailoverTest:63 - Crashed...
2013-09-25 00:45:10,950 [main ] WARN
tzTwoAppsClusteredFailoverTest:64 - Crashed...
2013-09-25 00:45:10,950 [main ] WARN
tzTwoAppsClusteredFailoverTest:65 - Crashed...
2013-09-25 00:45:25,924 [_ClusterManager] INFO LocalDataSourceJobStore
:3535 - ClusterManager: detected 1 failed or restarted instances.
2013-09-25 00:45:25,924 [_ClusterManager] INFO LocalDataSourceJobStore
:3394 - ClusterManager: Scanning for instance "app-one"'s failed in-progress
jobs.
2013-09-25 00:45:25,947 [eduler_Worker-1] INFO SpringCamelContext
:2183 - Route: myRoute started and consuming from: Endpoint[direct://start]
{code}
was (Author: bvahdat):
Now running the new test {{SpringQuartzTwoAppsClusteredFailoverTest}} one
can clearly see the failover taking place. See the last 6 lines from the log
below and most importantly the last line where the same route from the second
App gets started after the crash of the first App:
{code}
2013-09-25 00:45:10,941 [main ] INFO SchedulerFactoryBean
:758 - Shutting down Quartz Scheduler
2013-09-25 00:45:10,941 [main ] INFO QuartzScheduler
:707 - Scheduler scheduler_$_app-one shutting down.
2013-09-25 00:45:10,941 [main ] INFO QuartzScheduler
:626 - Scheduler scheduler_$_app-one paused.
2013-09-25 00:45:10,942 [main ] INFO QuartzScheduler
:801 - Scheduler scheduler_$_app-one shutdown complete.
2013-09-25 00:45:10,943 [main ] INFO SpringCamelContext
:1706 - Apache Camel (CamelContext: camelContext) is shutting down
2013-09-25 00:45:10,943 [main ] INFO DefaultShutdownStrategy
:172 - Starting to graceful shutdown 1 routes (timeout 300 seconds)
2013-09-25 00:45:10,945 [ - ShutdownTask] INFO DefaultShutdownStrategy
:600 - Route: myRoute shutdown complete, was consuming from:
Endpoint[direct://start]
2013-09-25 00:45:10,946 [main ] INFO DefaultShutdownStrategy
:217 - Graceful shutdown of 1 routes completed in 0 seconds
2013-09-25 00:45:10,947 [main ] INFO QuartzComponent
:302 - Shutting down scheduler. (will wait for all jobs to complete first.)
2013-09-25 00:45:10,949 [main ] INFO SpringCamelContext
:1780 - Apache Camel (CamelContext: camelContext) uptime 5.854 seconds
2013-09-25 00:45:10,950 [main ] INFO SpringCamelContext
:1781 - Apache Camel (CamelContext: camelContext) is shutdown in 0.006 seconds
2013-09-25 00:45:10,950 [main ] WARN
tzTwoAppsClusteredFailoverTest:63 - Crashed...
2013-09-25 00:45:10,950 [main ] WARN
tzTwoAppsClusteredFailoverTest:64 - Crashed...
2013-09-25 00:45:10,950 [main ] WARN
tzTwoAppsClusteredFailoverTest:65 - Crashed...
2013-09-25 00:45:25,924 [_ClusterManager] INFO LocalDataSourceJobStore
:3535 - ClusterManager: detected 1 failed or restarted instances.
2013-09-25 00:45:25,924 [_ClusterManager] INFO LocalDataSourceJobStore
:3394 - ClusterManager: Scanning for instance "app-one"'s failed in-progress
jobs.
2013-09-25 00:45:25,947 [eduler_Worker-1] INFO SpringCamelContext
:2183 - Route: myRoute started and consuming from: Endpoint[direct://start]
{code}
> Quartz Scheduled Route Policy - Provide a proper test demonstrating a Quartz
> Clustering-Setup which can failover Camel routing for 2 Apps if one would die
> ----------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-6782
> URL: https://issues.apache.org/jira/browse/CAMEL-6782
> Project: Camel
> Issue Type: Test
> Components: camel-quartz, camel-quartz2
> Affects Versions: 2.12.1
> Reporter: Babak Vahdat
> Assignee: Babak Vahdat
> Fix For: 2.11.3, 2.12.2, 2.13.0
>
>
> The tests being provided for CAMEL-6686 as well as CAMEL-6773 don't really
> demonstrate a failover of Camel routing taking place inside a quartz cluster
> setup.
> It would be nice to show this in black & white.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira