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


Ship it!




Ship It!

- Alejandro Fernandez


On March 15, 2016, 12:57 p.m., Dmytro Sen wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/44847/
> -----------------------------------------------------------
> 
> (Updated March 15, 2016, 12:57 p.m.)
> 
> 
> Review request for Ambari, Dmitro Lisnichenko, Jonathan Hurley, and Vitalyi 
> Brodetskyi.
> 
> 
> Bugs: AMBARI-15348
>     https://issues.apache.org/jira/browse/AMBARI-15348
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> If user copied hotfixed ambari-server.jar to /usr/lib/ambari-server and 
> didn't remove the hotfix, the upgrade will fails with error:
> 
> Internal Exception: Exception [EclipseLink-7250] (Eclipse Persistence 
> Services - 2.5.2.v20140319-9ad6abd): 
> org.eclipse.persistence.exceptions.ValidationException
> Exception Description: [class 
> org.apache.ambari.server.orm.entities.HostEntity] uses a non-entity [class 
> org.apache.ambari.server.orm.entities.HostVersionEntity] as target entity in 
> the relationship attribute [field hostVersionEntities].
>         at 
> org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.createPredeployFailedPersistenceException(EntityManagerSetupImpl.java:1954)
>         at 
> org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:1945)
>         at 
> org.eclipse.persistence.internal.jpa.deployment.JPAInitializer.callPredeploy(JPAInitializer.java:98)
>         at 
> org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactoryImpl(PersistenceProvider.java:96)
>         ... 15 more
> Caused by: Exception [EclipseLink-28018] (Eclipse Persistence Services - 
> 2.5.2.v20140319-9ad6abd): 
> org.eclipse.persistence.exceptions.EntityManagerSetupException
> Exception Description: Predeployment of PersistenceUnit [ambari-server] 
> failed.
> 
> As a workaround, user needs to restore all the database and configuration, 
> remove all the hotfix and run "ambari-server upgrade" again.
> 
> 
> Diffs
> -----
> 
>   ambari-server/pom.xml 83424c2 
>   ambari-server/src/main/package/deb/control/preinst eb94f95 
>   ambari-server/src/main/package/rpm/preinstall.sh a8e781e 
>   ambari-server/src/main/python/ambari_server/serverClassPath.py d3ade3e 
>   ambari-server/src/main/python/ambari_server/serverUpgrade.py b51a623 
>   ambari-server/src/main/python/ambari_server_main.py 8be3239 
>   ambari-server/src/test/python/TestServerClassPath.py 7ec36da 
> 
> Diff: https://reviews.apache.org/r/44847/diff/
> 
> 
> Testing
> -------
> 
> ----------------------------------------------------------------------
> Ran 257 tests in 8.222s
> 
> OK
> ----------------------------------------------------------------------
> Total run:926
> Total errors:0
> Total failures:0
> OK
> 
> 
> Thanks,
> 
> Dmytro Sen
> 
>

Reply via email to