[ 
https://issues.apache.org/jira/browse/CONNECTORS-590?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13537637#comment-13537637
 ] 

Karl Wright commented on CONNECTORS-590:
----------------------------------------

The document is in the "Pending" state, according to the document status field. 
 It was, however, queued, and so must have been marked "Active".  Unless 
there's another thread around that is capable of turning "Active" into 
"Pending", either the update at the time the document was queued didn't save, 
or the read-for-update at the time of the update got an incorrect value from 
the database.

A logic error in ManifoldCF is possible, but if it were present I would expect 
to see it on other databases as well.  A similar problem on HSQLDB turned out 
to be a bug in the database software (CONNECTORS-246), for instance.  Since 
that fix only MySQL has continued to have very occasional errors of this kind.

                
> 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

Reply via email to