ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doroszlai, Attila (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-21362) Ambari upgrade not idempotent due to moveClusterHostColumnFromStageToRequest
Date Wed, 28 Jun 2017 08:38:01 GMT
Doroszlai, Attila created AMBARI-21362:
------------------------------------------

             Summary: 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


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