Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-24547

A foreign key constraint fails when deleting a cluster from ambari

    XMLWordPrintableJSON

Details

    Description

      when deleting a cluster which has been called someĀ schedule requests, ambari server will reponse 500 , ambari-server.log hasĀ a exception like this:

      org.eclipse.persistence.exceptions.DatabaseException
      Internal Exception: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot delete or update a parent row: a foreign ke
      y constraint fails (`aquila`.`request`, CONSTRAINT `FK_request_schedule_id` FOREIGN KEY (`request_schedule_id`) REFERENCES `requestschedule` (`schedule_id`))
      Error Code: 1451
      Call: DELETE FROM requestschedule WHERE (schedule_id = ?)
      bind => [1 parameter bound]
      

      Attachments

        Issue Links

          Activity

            People

              hapylestat Dmytro Grinenko
              yangqk yangqk
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 1h 40m
                  1h 40m