Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-3641

The DBCleaner fail purging the project_measures table when there are more than 2'000 rows in the characteristics table

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3
    • Component/s: Database
    • Labels:

      Description

      05:02:53.009 INFO  o.s.c.purge.PurgeDao - <- Clean snapshot 470917
        05:02:53.072 ERROR p.d.DefaultPurgeTask - Fail to purge data [id=1]
        org.apache.ibatis.exceptions.PersistenceException:
        ### Error updating database.  Cause: java.sql.SQLException: Prepared or callable statement has more than 2000 parameter markers.
        ### The error may exist in org.sonar.core.purge.PurgeMapper
        ### The error may involve org.sonar.core.purge.PurgeMapper.deleteSnapshotMeasuresOnCharacteristics
        ### The error occurred while executing an update
        ### SQL: delete from project_measures where snapshot_id=?     and (          characteristic_id=?  OR  characteristic_id=?  OR  characteristic_id=?  OR 
      

        Attachments

          Activity

            People

            Assignee:
            dgageot David Gageot
            Reporter:
            freddy.mallet Freddy Mallet (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: