ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-21362) Ambari upgrade not idempotent due to moveClusterHostColumnFromStageToRequest
Date Tue, 11 Jul 2017 17:22:01 GMT

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

Hudson commented on AMBARI-21362:
---------------------------------

FAILURE: Integrated in Jenkins build Ambari-branch-2.5 #1667 (See [https://builds.apache.org/job/Ambari-branch-2.5/1667/])
AMBARI-21362. Ambari upgrade not idempotent due to column move (swagle: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=c05393c921b8cc9c147b228e3b21a9935a148494])
* (edit) ambari-server/src/test/java/org/apache/ambari/server/orm/DBAccessorImplTest.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/orm/DBAccessorImpl.java


> Ambari upgrade not idempotent due to moveClusterHostColumnFromStageToRequest
> ----------------------------------------------------------------------------
>
>                 Key: AMBARI-21362
>                 URL: https://issues.apache.org/jira/browse/AMBARI-21362
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.5.1
>            Reporter: Doroszlai, Attila
>            Assignee: Doroszlai, Attila
>            Priority: Critical
>             Fix For: 2.5.2
>
>         Attachments: AMBARI-21362.patch
>
>
> Ambari upgrade to 2.5.1 or later from 2.5.0 or earlier fails ony retry at {{moveClusterHostColumnFromStageToRequest}}.
> Steps to simulate retry:
> # Install Ambari 2.5.1
> # {{UPDATE metainfo SET metainfo_value = '2.5.0';}}
> # {{ambari-server upgrade}}
> Expected result: "upgrade" succeeds.
> Actual result: schema upgrade fails due to exception below.
> {noformat}
> ERROR: Exception in thread "main" org.apache.ambari.server.AmbariException: ERROR: column
b.cluster_host_info does not exist
>   Position: 45
> 	at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executeUpgrade(SchemaUpgradeHelper.java:210)
> 	at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.main(SchemaUpgradeHelper.java:425)
> Caused by: org.postgresql.util.PSQLException: ERROR: column b.cluster_host_info does
not exist
>   Position: 45
> 	at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2161)
> 	at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1890)
> 	at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:255)
> 	at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:559)
> 	at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:403)
> 	at org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(AbstractJdbc2Statement.java:331)
> 	at org.apache.ambari.server.orm.DBAccessorImpl.executeUpdate(DBAccessorImpl.java:812)
> 	at org.apache.ambari.server.orm.DBAccessorImpl.moveColumnToAnotherTable(DBAccessorImpl.java:1335)
> 	at org.apache.ambari.server.upgrade.UpgradeCatalog251.moveClusterHostColumnFromStageToRequest(UpgradeCatalog251.java:131)
> 	at org.apache.ambari.server.upgrade.UpgradeCatalog251.executeDDLUpdates(UpgradeCatalog251.java:90)
> 	at org.apache.ambari.server.upgrade.AbstractUpgradeCatalog.upgradeSchema(AbstractUpgradeCatalog.java:925)
> 	at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executeUpgrade(SchemaUpgradeHelper.java:207)
> 	... 1 more
> {noformat}



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

Mime
View raw message