Siddharth Wagle created AMBARI-14025:
----------------------------------------

             Summary: Deleting host from cluster does not work on bleprint 
deployed cluster
                 Key: AMBARI-14025
                 URL: https://issues.apache.org/jira/browse/AMBARI-14025
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
    Affects Versions: 2.1.2
            Reporter: Siddharth Wagle
            Assignee: Siddharth Wagle
            Priority: Critical
             Fix For: 2.1.2


_STR:_
1. Decommission node managers
2. Decommission data nodes
3. Stop all components on the host being removed
4. Delete all components on the host being removed
5. Delete the host from the cluster

The last step fails with Internal Server Error.
{code}
Caused by: javax.persistence.RollbackException: Exception [EclipseLink-4002] 
(Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): 
org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.BatchUpdateException: The DELETE statement 
conflicted with the REFERENCE constraint "FK_ltask_hrc_id". The conflict 
occurred in database "v328ade4c5c99344203aca00abaed19feb5AmbariDb", table 
"dbo.topology_logical_task", column 'physical_task_id'.
Error Code: 547
        at 
org.eclipse.persistence.internal.jpa.transaction.EntityTransactionImpl.commit(EntityTransactionImpl.java:157)
        at 
org.apache.ambari.server.orm.AmbariJpaLocalTxnInterceptor.invoke(AmbariJpaLocalTxnInterceptor.java:91)
        at 
org.apache.ambari.server.state.cluster.ClustersImpl.deleteHostEntityRelationships(ClustersImpl.java:840)
        ... 94 more
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to