[
https://issues.apache.org/jira/browse/AMBARI-24547?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dmytro Grinenko reassigned AMBARI-24547:
----------------------------------------
Assignee: Dmytro Grinenko
> A foreign key constraint fails when deleting a cluster from ambari
> ------------------------------------------------------------------
>
> Key: AMBARI-24547
> URL: https://issues.apache.org/jira/browse/AMBARI-24547
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 2.5.0
> Reporter: yangqk
> Assignee: Dmytro Grinenko
> Priority: Critical
> Labels: ambari-server, pull-request-available
> Attachments: 0001-AMBARI-24547.patch
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> when deleting a cluster which has been called someĀ schedule requests, ambari
> server will reponse 500 , ambari-server.log hasĀ a exception like this:
> {code:java}
> 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]
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)