ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-12287) 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 12:44:05 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-12287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14614980#comment-14614980
] 

Hudson commented on AMBARI-12287:
---------------------------------

SUCCESS: Integrated in Ambari-trunk-Commit #3055 (See [https://builds.apache.org/job/Ambari-trunk-Commit/3055/])
AMBARI-12287. 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).(vbrodetskyi)
(vbrodetskyi: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=84b21baff8b2d553317af36d4310753fb08dc1c2)
* ambari-server/src/main/java/org/apache/ambari/server/orm/helpers/dbms/DerbyHelper.java
* ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeTest.java
* ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog210.java
* ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog.java
* ambari-server/src/main/java/org/apache/ambari/server/upgrade/AbstractUpgradeCatalog.java
* ambari-server/src/main/java/org/apache/ambari/server/upgrade/SchemaUpgradeHelper.java


> 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)
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-12287
>                 URL: https://issues.apache.org/jira/browse/AMBARI-12287
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.1.0
>            Reporter: Vitaly Brodetskyi
>            Assignee: Vitaly Brodetskyi
>            Priority: Critical
>             Fix For: 2.1.0
>
>         Attachments: AMBARI-12287.patch
>
>
> 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)



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

Mime
View raw message