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

Review request for Ambari, Jonathan Hurley, Myroslav Papirkovskyy, and Sumit 
Mohanty.


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


Repository: ambari


Description
-------

Issue: Ambari upgrade is failing from 2.2.0 to 2.2.1.1 with below error:

{code}

ambari-server upgrade 
Using python /usr/bin/python 
Upgrading ambari-server 
Updating properties in ambari.properties ... 
WARNING: Can not find ambari.properties.rpmsave file from previous version, 
skipping import of settings 
WARNING: Can not find ambari-env.sh.rpmsave file from previous version, 
skipping restore of environment settings 
Fixing database objects owner 
Ambari Server configured for MySQL. Confirm you have made a backup of the 
Ambari Server database [y/n] (y)? y 
Upgrading database schema 
Error output from schema upgrade command: 
Exception in thread "main" org.apache.ambari.server.AmbariException: Exception 
[EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): 
org.eclipse.persistence.exceptions.DatabaseException 
Internal Exception: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: 
Table 'ambari.TL_alert_notice' doesn't exist 
Error Code: 1146

{code}


Diffs
-----

  
ambari-server/src/main/java/org/apache/ambari/server/events/listeners/alerts/AlertReceivedListener.java
 a3befa6 
  
ambari-server/src/main/java/org/apache/ambari/server/events/listeners/alerts/AlertStateChangedListener.java
 08563e3 
  
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/AlertDefinitionDAO.java
 82fa48a 
  
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/AlertDispatchDAO.java
 1f1aa45 
  ambari-server/src/main/java/org/apache/ambari/server/orm/dao/AlertsDAO.java 
781d4cf 
  
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertCurrentEntity.java
 604b00e 
  
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertHistoryEntity.java
 03ffcde 
  
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertNoticeEntity.java
 ae7495d 
  
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertResourceProviderTest.java
 d611fe8 
  
ambari-server/src/test/java/org/apache/ambari/server/orm/dao/AlertDefinitionDAOTest.java
 36e75e7 
  
ambari-server/src/test/java/org/apache/ambari/server/orm/dao/AlertsDAOTest.java 
10f099e 
  
ambari-server/src/test/java/org/apache/ambari/server/state/cluster/AlertDataManagerTest.java
 e8ecd09 

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


Testing
-------

All alert unit test passed.

mvn clean test -Dtest=Alert* -Drat.ignoreErrors -DfailIfNoTests=false


Thanks,

Sid Wagle

Reply via email to