Uploaded image for project: 'Apache Fineract'
  1. Apache Fineract
  2. FINERACT-1936

StuckJob SQL is failing on Mysql & MariaDB

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.9.0
    • None

    Description

      {{Exception in thread "SimpleAsyncTaskExecutor-10" org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [SELECT DISTINCT(bji.JOB_NAME) as STUCK_JOB_NAMEFROM BATCH_JOB_INSTANCE bji
      INNER JOIN BATCH_JOB_EXECUTION bje
      ON bji.JOB_INSTANCE_ID = bje.JOB_INSTANCE_ID
      WHERE
      bje.STATUS IN
      AND
      bje.JOB_INSTANCE_ID NOT IN (
      SELECT bje.JOB_INSTANCE_ID
      FROM BATCH_JOB_INSTANCE bji
      INNER JOIN BATCH_JOB_EXECUTION bje
      ON bji.JOB_INSTANCE_ID = bje.JOB_INSTANCE_ID
      WHERE bje.STATUS IN (?, ?, ?)
      )
      GROUP BY BJI.JOB_INSTANCE_ID
      HAVING COUNT(BJI.JOB_INSTANCE_ID) <= ?
      ]; nested exception is java.sql.SQLSyntaxErrorException: (conn=112) Unknown column 'BJI.JOB_INSTANCE_ID' in 'group statement'}}
       

       

      Acceptance criteria

      • It should not fail with grammar error

      Attachments

        Issue Links

          Activity

            People

              taskain Norbert Táskai
              taskain7 Norbert Táskai
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: