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

Karl Wright commented on CONNECTORS-1191:
-----------------------------------------

Arcadius,

Your analysis is flawed.  Here's the code:

{code}
    if (transactionType == TRANSACTION_ENCLOSING)
    {
      transactionType = getCurrentTransactionType();
    }

    switch (transactionType)
    {
    case TRANSACTION_REPEATABLEREAD:
      if (transactionType != getActualTransactionType())
        // Must precede actual transaction start
        performModification("SET TRANSACTION ISOLATION LEVEL REPEATABLE 
READ",null,null);
      super.beginTransaction(transactionType);
      break;
    case TRANSACTION_READCOMMITTED:
      if (transactionType != getActualTransactionType())
        // Must precede actual transaction start
        performModification("SET TRANSACTION ISOLATION LEVEL READ 
COMMITTED",null,null);
      super.beginTransaction(transactionType);
      break;
    case TRANSACTION_SERIALIZED:
      if (transactionType != getActualTransactionType())
        // Must precede actual transaction start
        performModification("SET TRANSACTION ISOLATION LEVEL 
SERIALIZABLE",null,null);
      super.beginTransaction(TRANSACTION_SERIALIZED);
      break;
    default:
      throw new ManifoldCFException("Bad transaction type: 
"+Integer.toString(transactionType));
    }
{code}

and

{code}
  /** Get the current transaction type.  Returns "READCOMMITTED"
  * outside of a transaction.
  */
  public int getCurrentTransactionType()
  {
    if (th == null)
      return IDBInterface.TRANSACTION_READCOMMITTED;
    return th.getTransactionType();
  }
{code}


> ManifoldCFException: Unexpected job status encountered
> ------------------------------------------------------
>
>                 Key: CONNECTORS-1191
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-1191
>             Project: ManifoldCF
>          Issue Type: Bug
>          Components: Web connector
>    Affects Versions: ManifoldCF 2.0.2
>         Environment: - Debian 7.8 x86_64 GNU/Linux
> - Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)
> - Server version: 5.5.41-0+wheezy1 (Debian)
>            Reporter: Arcadius Ahouansou
>            Assignee: Karl Wright
>            Priority: Critical
>             Fix For: ManifoldCF 1.9, ManifoldCF 2.1
>
>         Attachments: 1433374857580-jobs.png, 1433374857580-schedule.png, 
> CONNECTORS-1191-2.patch, CONNECTORS-1191.patch, manifoldcf2.0.2.log, 
> stuffer-thread-manifoldcf.log, unexpected-jobqueue.png
>
>
> Hello.
> I am running the latest ManifoldCF 2.0.2 and my log is filled of 
> {code}
> org.apache.manifoldcf.core.interfaces.ManifoldCFException: Unexpected job 
> status encountered: 34
>       at 
> org.apache.manifoldcf.crawler.jobs.Jobs.returnJobToActive(Jobs.java:2073)
>       at 
> org.apache.manifoldcf.crawler.jobs.JobManager.resetJobs(JobManager.java:8261)
>       at 
> org.apache.manifoldcf.crawler.system.JobResetThread.run(JobResetThread.java:91)
> {code}
> I have attached full log for more detail.
> Note that I am running against MySQL.
> Thanks.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to