You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2017/11/30 20:57:00 UTC

[jira] [Commented] (AMBARI-22544) Upgrade from Ambari 2.5.2 to 2.6.0 fails

    [ https://issues.apache.org/jira/browse/AMBARI-22544?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16273404#comment-16273404 ] 

Hudson commented on AMBARI-22544:
---------------------------------

FAILURE: Integrated in Jenkins build Ambari-branch-2.6 #511 (See [https://builds.apache.org/job/Ambari-branch-2.6/511/])
AMBARI-22544. Upgrade from Ambari 2.5.2 to 2.6.0 fails. (mpapirkovskyy) (mpapyrkovskyy: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=cc38ee8b75631da296a10cca22ff6abc25e9c5e8])
* (edit) ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog260.java
* (edit) ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog260Test.java


> Upgrade from Ambari 2.5.2 to 2.6.0 fails
> ----------------------------------------
>
>                 Key: AMBARI-22544
>                 URL: https://issues.apache.org/jira/browse/AMBARI-22544
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.6.1
>            Reporter: Myroslav Papirkovskyi
>            Assignee: Myroslav Papirkovskyi
>            Priority: Blocker
>             Fix For: 2.6.1
>
>
> When upgrading from Ambari 2.5.2 to Ambari 2.6.0, we hit this error preventing from completing the ambari-server upgrade.
> {noformat}
> 20 Nov 2017 11:39:08,115 ERROR [main] SchemaUpgradeHelper:202 - Upgrade failed.
> com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot delete or update a parent row: a foreign key constraint fails (`ambari_01`.`clusters`, CONSTRAINT `FK_clusters_upgrade_id` FOREIGN KEY (`upgrade_id`) REFERENCES `upgrade` (`upgrade_id`))
> {noformat}
> To get around this, he had to restore the db backup from 2.5.3 and adjust a table in mysql with ‘update clusters set upgrade_id = null’ so a record in the ‘upgrades’ table could be removed.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)