-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/44714/
-----------------------------------------------------------

Review request for Ambari and Dmitro Lisnichenko.


Bugs: AMBARI-15391
    https://issues.apache.org/jira/browse/AMBARI-15391


Repository: ambari


Description
-------

**STR**  
1) Install Ambari-2.2.1  
2) Deploy Zookeeper only  
3) Upgrade to Ambari-2.2.2

**Result**:
    
    
    ERROR: Error executing schema upgrade, please check the server logs.
    ERROR: Ambari server upgrade failed. Please look at 
/var/log/ambari-server/ambari-server.log, for more details.
    ERROR: Exiting with exit code 11. 
    REASON: Schema upgrade failed.
    
    
    
    11 Mar 2016 13:54:08,586  INFO [main] UpgradeCatalog222:357 - Updating HDFS 
widget definition.
    11 Mar 2016 13:54:08,590 ERROR [main] SchemaUpgradeHelper:230 - Upgrade 
failed.
    java.util.NoSuchElementException
            at java.util.Vector$Itr.next(Vector.java:1140)
            at 
org.apache.ambari.server.upgrade.UpgradeCatalog222.updateHDFSWidgetDefinition(UpgradeCatalog222.java:380)
            at 
org.apache.ambari.server.upgrade.UpgradeCatalog222.executeDMLUpdates(UpgradeCatalog222.java:152)
            at 
org.apache.ambari.server.upgrade.AbstractUpgradeCatalog.upgradeData(AbstractUpgradeCatalog.java:662)
            at 
org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executeDMLUpdates(SchemaUpgradeHelper.java:228)
            at 
org.apache.ambari.server.upgrade.SchemaUpgradeHelper.main(SchemaUpgradeHelper.java:305)
    11 Mar 2016 13:54:08,600 ERROR [main] SchemaUpgradeHelper:316 - Exception 
occurred during upgrade, failed
    org.apache.ambari.server.AmbariException
            at 
org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executeDMLUpdates(SchemaUpgradeHelper.java:231)
            at 
org.apache.ambari.server.upgrade.SchemaUpgradeHelper.main(SchemaUpgradeHelper.java:305)
    Caused by: java.util.NoSuchElementException
            at java.util.Vector$Itr.next(Vector.java:1140)
            at 
org.apache.ambari.server.upgrade.UpgradeCatalog222.updateHDFSWidgetDefinition(UpgradeCatalog222.java:380)
            at 
org.apache.ambari.server.upgrade.UpgradeCatalog222.executeDMLUpdates(UpgradeCatalog222.java:152)
            at 
org.apache.ambari.server.upgrade.AbstractUpgradeCatalog.upgradeData(AbstractUpgradeCatalog.java:662)
            at 
org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executeDMLUpdates(SchemaUpgradeHelper.java:228)
            ... 1 more


Diffs
-----

  
ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog222.java
 78cf8bd 
  
ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog222Test.java
 7a95721 

Diff: https://reviews.apache.org/r/44714/diff/


Testing
-------

mvn clean test


Thanks,

Andrew Onischuk

Reply via email to