Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8208457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T09:22:32+00:00 2026-06-07T09:22:32+00:00

Scenario: We have a scheduler which is using JDBC Job Store. Quartz version is

  • 0

Scenario:

  1. We have a scheduler which is using JDBC Job Store. Quartz version is 2.1.2.
  2. The job which is being scheduling is also updating a database.
  3. The database is same for both quartz and the job itself and is hosted in MySQL Server. Both application tables and quartz tables are stored in the same database.
  4. Connection pool is different for both application and quartz. In the application we are using spring for connection pooling and quartz is forced to use connection pooling via quartz.properties.
    Here is the snippet of quartz.properties

    org.quartz.dataSource.qzDS.driver = com.mysql.jdbc.Driver
    org.quartz.dataSource.qzDS.URL = jdbc:mysql://localhost:3306/dbname?autoReconnect=true
    org.quartz.dataSource.qzDS.user = dbuser
    org.quartz.dataSource.qzDS.password =dbpassword
    org.quartz.dataSource.qzDS.maxConnections = 30
    org.quartz.datasource.qzDS.validationQuery = select 1
    #org.quartz.datasource.qzDS.minEvictableIdleTimeMillis=21600000
    #org.quartz.datasource.qzDS.timeBetweenEvictionRunsMillis=1800000
    #org.quartz.datasource.qzDS.numTestsPerEviction=-1
    #org.quartz.datasource.qzDS.testWhileIdle=true
    org.quartz.datasource.qzDS.debugUnreturnedConnectionStackTraces=true
    org.quartz.datasource.qzDS.unreturnedConnectionTimeout=120
    org.quartz.datasource.qzDS.initialPoolSize=5
    org.quartz.datasource.qzDS.minPoolSize=5
    org.quartz.datasource.qzDS.maxPoolSize=30
    org.quartz.datasource.qzDS.acquireIncrement=5
    org.quartz.datasource.qzDS.maxIdleTime=120
    org.quartz.datasource.qzDS.validateOnCheckout=true
    
  5. Database is clustered with MASTER-MASTER replication on two servers and they are being used via virtual IP everywhere in the application and quartz.

  6. Scheduler i.e. quartz is also clustered on the same two machines where MySQL is clustered.

The problem:

One of the servers (till now we have got the problem with backup server machine) is occasionally throwing database connection error while calling notifyJobStoreJobComplete method. This is causing the job to stay in BLOCKED state even if the job itself has successfully completed but quartz was unable to update its status.

Questions:

  1. What can be the cause of the problem?
  2. How to move the BLOCKED jobs into WAITING state so that the jobs can be run on their next scheduled time at least. Direct editing the QRTZ_SIMPLE_TRIGGERS tables would not be a good solution, even if it works.

EDIT: To bump up the question.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T09:22:34+00:00Added an answer on June 7, 2026 at 9:22 am

    I think main problem was communication link failure by MySQL which we solved it by increasing ‘wait_timeout’ to 14 days and as our maintenance is scheduled in every 15 days, we restart the each of MySQL server is our DB cluster (We have Master-Master replication in place). With approach we haven’t get any communication link failure after that. In fact some time we don’t restart the server in every 15 days but still no error(touch wood). 🙂

    And as far as Quartz triggers being locked in BLOCKED state, we updated the quartz to 2.1.4 which possibly has the fix for the almost same problem. After the quartz update, we have faced the triggers being in BLOCKED state very very less frequent.

    We are still unable to find out how to get the trigger out of BLOCKED state without directly modifying the quartz tables. Whenever we face this problem, we manually remove the entry for BLOCKED trigger from the qrtz_fired_triggers table and it solves the problem. I think enterprise version of quartz may have this feature from some web UI.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Scenario I have a DevExpress DataGrid which is bound to a DataSet in C#.
I wonder if anyone can advise: I have a scenario where a scheduled job
So the scenario is this: I have a mySQL database on a local server
I am using Quartz.NET, and my scheduler relies heavily on the use of cron
Consider this scenario; suppose I have WPF window which have four objects bonded to
I have a php script which accesses a MSSQL2005 database, reads some data from
I am working on scheduling some jobs using Control-M. My scenario is as below:
Scenario I have an web application which needs some calculations and processing on data.
Beginner level question Scenario: Have simple string cocantation tool, that I might expand later
SCENARIO I have to access a web service with a .NET client. The service

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.