[
https://issues.apache.org/jira/browse/CONNECTORS-590?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13537655#comment-13537655
]
Karl Wright commented on CONNECTORS-590:
----------------------------------------
It looks like the long-running query was the result of a job coming to an end.
That, in turn, is because there are no active documents left for the job. The
job documents' docpriorities are all cleared, and then the job is put into the
inactive state:
{code}
// All the job's documents need to have their docpriority set to null, to
clear dead wood out of the docpriority index.
// See CONNECTORS-290.
// We do this BEFORE updating the job state.
jobQueue.clearDocPriorities(jobID);
IJobDescription jobDesc = jobs.load(jobID,true);
modifiedJobs.add(jobDesc);
jobs.finishStopJob(jobID,timestamp);
{code}
The finishStopJob() method is taking the job from shutting down to notification.
> ManifoldCF sometimes throws an unexpected state exception under MySQL
> ---------------------------------------------------------------------
>
> Key: CONNECTORS-590
> URL: https://issues.apache.org/jira/browse/CONNECTORS-590
> Project: ManifoldCF
> Issue Type: Bug
> Components: Framework core
> Affects Versions: ManifoldCF 1.0.1, ManifoldCF 1.1
> Environment: MySQL 5.5.28, for Linux (x86_64), ManifoldCF 1.1-dev
> Reporter: Karl Wright
> Assignee: Karl Wright
> Fix For: ManifoldCF 1.1
>
>
> The following exception occurred under this setup:
> {code}
> 2012/12/21 10:09:37 ERROR (Worker thread '78') - Exception tossed: Unexpected
> jobqueue status - record id 1356045273314, expecting active status, saw 0
> org.apache.manifoldcf.core.interfaces.ManifoldCFException: Unexpected
> jobqueue status - record id 1356045273314, expecting active status, saw 0
> at
> org.apache.manifoldcf.crawler.jobs.JobQueue.updateCompletedRecord(JobQueue.java:742)
> at
> org.apache.manifoldcf.crawler.jobs.JobManager.markDocumentCompletedMultiple(JobManager.java:2438)
> at
> org.apache.manifoldcf.crawler.system.WorkerThread.run(WorkerThread.java:765)
> {code}
--
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