Wednesday, June 17, 2009

OpenSymphony Quartz clustering issue

Problem:
Starting up another node causes the following warning:

Jun 17, 2009 10:56:10 AM org.quartz.impl.jdbcjobstore.JobStoreSupport findFailedInstances
WARNING: This scheduler instance (node-1) is still active but was recovered by another instance in the cluster. This may cause inconsistent behavior.

Jun 17, 2009 10:56:30 AM org.quartz.impl.jdbcjobstore.JobStoreSupport logWarnIfNonZero
INFO: ClusterManager: detected 1 failed or restarted instances.

Jun 17, 2009 10:56:30 AM org.quartz.impl.jdbcjobstore.JobStoreSupport clusterRecover
INFO: ClusterManager: Scanning for instance "node-2"'s failed in-progress jobs.

Jun 17, 2009 10:56:30 AM org.quartz.impl.jdbcjobstore.JobStoreSupport logWarnIfNonZero
INFO: ClusterManager: ......Freed 1 acquired trigger(s).

Solution: Synchronize the clock on both nodes