Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-3673

Expire builds throws SQLIntegrityConstraintViolationException

    XMLWordPrintable

Details

    Description

      Recently for many customers build expiry did not work because of foreign key constraint violation:
      mainly for table user_commit.

      Hibernate operation: could not delete: com.atlassian.bamboo.resultsummary.BuildResultsSummaryImpl#11042858; SQL []; Cannot delete or update a parent row: a foreign key
       constraint fails (`bamboo/user_commit`, CONSTRAINT `FKF8936C2BA958B29F` FOREIGN KEY (`BUILDRESULTSUMMARY_ID`) REFERENCES `buildresultsummary
      ` (`BUILDRESULTSUMMARY_ID`)); nested exception is com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Cannot delete or update a parent row: a 
      foreign key constraint fails (`bamboo/user_commit`, CONSTRAINT `FKF8936C2BA958B29F` FOREIGN KEY (`BUILDRESULTSUMMARY_ID`) REFERENCES 
      `buildresultsummary` (`BUILDRESULTSUMMARY_ID`))
      

      Attachments

        Activity

          People

            kbrazulewicz Krystian Brazulewicz
            ukuhnhardt Ulrich Kuhnhardt [Atlassian]
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 12h
                12h