ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitro Lisnichenko" <dlysniche...@hortonworks.com>
Subject Re: Review Request 36194: Schema version of Ambari updated before actual end of DML queries (if a problem is encountered during upgrade, fixing issues and running it again did not drop obsolete columns)
Date Mon, 06 Jul 2015 10:59:54 GMT

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

Ship it!



ambari-server/src/main/java/org/apache/ambari/server/orm/helpers/dbms/DerbyHelper.java (line
66)
<https://reviews.apache.org/r/36194/#comment143530>

    formatting


- Dmitro Lisnichenko


On July 6, 2015, 10:52 a.m., Vitalyi Brodetskyi wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/36194/
> -----------------------------------------------------------
> 
> (Updated July 6, 2015, 10:52 a.m.)
> 
> 
> Review request for Ambari and Dmitro Lisnichenko.
> 
> 
> Bugs: AMBARI-12287
>     https://issues.apache.org/jira/browse/AMBARI-12287
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> The following was encountered while adding a host:
> Caused by: Exception EclipseLink-4002 (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd):
org.eclipse.persistence.exceptions.DatabaseException
> Internal Exception: java.sql.SQLException: Field 'desired_stack_version' doesn't have
a default value
> Error Code: 1364
> Call: INSERT INTO hostcomponentdesiredstate (admin_state, desired_state, maintenance_state,
restart_required, security_
> state, host_id, cluster_id, service_name, component_name, desired_stack_id) VALUES (?,
?, ?, ?, ?, ?, ?, ?, ?, ?)
> bind => 10 parameters bound
> Query: InsertObjectQuery(org.apache.ambari.server.orm.entities.HostComponentStateEntity@c448c71c)
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/orm/helpers/dbms/DerbyHelper.java
c012a77 
>   ambari-server/src/main/java/org/apache/ambari/server/upgrade/AbstractUpgradeCatalog.java
8c7f831 
>   ambari-server/src/main/java/org/apache/ambari/server/upgrade/SchemaUpgradeHelper.java
687569b 
>   ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog.java 976cc99

>   ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog210.java
47ddd7a 
>   ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeTest.java 9e516e7

> 
> Diff: https://reviews.apache.org/r/36194/diff/
> 
> 
> Testing
> -------
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Vitalyi Brodetskyi
> 
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message