You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Andrew Onischuk (JIRA)" <ji...@apache.org> on 2016/05/31 11:13:12 UTC

[jira] [Created] (AMBARI-16964) Upgrade Catalog 2.4 is not idempotent

Andrew Onischuk created AMBARI-16964:
----------------------------------------

             Summary: Upgrade Catalog 2.4 is not idempotent
                 Key: AMBARI-16964
                 URL: https://issues.apache.org/jira/browse/AMBARI-16964
             Project: Ambari
          Issue Type: Bug
            Reporter: Andrew Onischuk
            Assignee: Andrew Onischuk
             Fix For: 2.4.0
         Attachments: AMBARI-16964.patch

**STR:**  
Run ambrai-server upgrade twice (a with metainfo change).  
**Result:**
    
    
    30 May 2016 14:21:20,392 ERROR [main] DBAccessorImpl:803 - Error executing query: UPDATE viewinstance SET cluster_handle_dummy = 2 WHERE cluster_handle = 'cl1'
    org.postgresql.util.PSQLException: ERROR: invalid input syntax for integer: "cl1"
      Position: 73
            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.execute(AbstractJdbc2Statement.java:395)
            at org.apache.ambari.server.orm.DBAccessorImpl.executeQuery(DBAccessorImpl.java:800)
            at org.apache.ambari.server.orm.DBAccessorImpl.executeQuery(DBAccessorImpl.java:792)
            at org.apache.ambari.server.upgrade.UpgradeCatalog240.updateViewInstanceTable(UpgradeCatalog240.java:2352)
            at org.apache.ambari.server.upgrade.UpgradeCatalog240.executeDDLUpdates(UpgradeCatalog240.java:277)
            at org.apache.ambari.server.upgrade.AbstractUpgradeCatalog.upgradeSchema(AbstractUpgradeCatalog.java:699)
            at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executeUpgrade(SchemaUpgradeHelper.java:201)
            at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.main(SchemaUpgradeHelper.java:302)
    30 May 2016 14:21:20,424 ERROR [main] SchemaUpgradeHelper:203 - Upgrade failed.
    





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