You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "yangqk (JIRA)" <ji...@apache.org> on 2018/08/29 02:12:00 UTC
[jira] [Comment Edited] (AMBARI-24547) A foreign key constraint
fails when deleting a cluster from ambari
[ https://issues.apache.org/jira/browse/AMBARI-24547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16594934#comment-16594934 ]
yangqk edited comment on AMBARI-24547 at 8/29/18 2:11 AM:
----------------------------------------------------------
there is no active job when i deleting a cluster and all services are stopped. if i send a schedule batch request ,like a NODEMANAGER DECOMMISSION ,wait until the request is complete, this error will happen when i removing the cluster via API request
was (Author: yangqk):
there is no active job when i deleting a cluster and all services are stopped. if i called a schedule batch request ,like a NODEMANAGER DECOMMISSION , this error will happen when i removing it via API request
> 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
> Priority: Critical
> Labels: ambari-server
>
> 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)