History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QUARTZ-88
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: James House
Reporter: Ralf Liebenow
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Quartz Scheduler

Wrong field is fetched into JobDetail when selectJobForTrigger is used

Created: 01/Nov/04 07:23 AM   Updated: 23/Nov/04 12:14 PM
Component/s: Job Stores
Affects Version/s: 1.4.2
Fix Version/s: 1.4.3


 Description  « Hide
StdJDBCDelegate's method selectJobForTrigger setup a JobDetail with this:
JobDetail job = new JobDetail();
job.setName(rs.getString(1));
job.setGroup(rs.getString(2));
job.setDurability(rs.getBoolean(3));
job.setRequestsRecovery(rs.getBoolean(4));

The corresponding Query from StdJDBCConstants:

public static final String SELECT_JOB_FOR_TRIGGER = "SELECT J."
            + COL_JOB_NAME + ", J." + COL_JOB_GROUP + ", J."
            + COL_IS_DURABLE
            + ", J." + COL_IS_STATEFUL + " FROM "
            + TABLE_PREFIX_SUBST
            + TABLE_TRIGGERS + " T, " + TABLE_PREFIX_SUBST
            + TABLE_JOB_DETAILS
            + " J WHERE T." + COL_TRIGGER_NAME + " = ? AND T."
            + COL_TRIGGER_GROUP + " = ? AND T." + COL_JOB_NAME + " = J."
            + COL_JOB_NAME + " AND T." + COL_JOB_GROUP + " = J."
            + COL_JOB_GROUP;

Is seems, the Column IS_STATEFUL is fetched into the RequestsRecovery Field of JobDetail. This seems to be a Bug or a dirty Hack.

 All   Comments   Change History      Sort Order:
James House - [22/Nov/04 04:49 PM ]
yikes. This would actually explain a few wierd things that have been seen by users.