Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 619671025D for ; Tue, 13 Jan 2015 21:50:38 +0000 (UTC) Received: (qmail 99906 invoked by uid 500); 13 Jan 2015 21:50:36 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 99842 invoked by uid 500); 13 Jan 2015 21:50:36 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 99690 invoked by uid 99); 13 Jan 2015 21:50:36 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Jan 2015 21:50:36 +0000 Date: Tue, 13 Jan 2015 21:50:35 +0000 (UTC) From: "Hudson (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-9073) Rolling Upgrade - Finalize needs to complete upgrade states in DB MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-9073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14276009#comment-14276009 ] Hudson commented on AMBARI-9073: -------------------------------- FAILURE: Integrated in Ambari-trunk-Commit-docker #744 (See [https://builds.apache.org/job/Ambari-trunk-Commit-docker/744/]) AMBARI-9073. Rolling Upgrade - Finalize needs to complete upgrade states in DB (Yurii Shylov via ncole) (ncole: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=fb947b0cce36c53d10ad94e9d1056f6f6a01f5f1) * ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog200.java * ambari-server/src/main/java/org/apache/ambari/server/agent/HeartBeatHandler.java * ambari-server/src/main/java/org/apache/ambari/server/state/Cluster.java * ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql * ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql * ambari-server/src/main/resources/Ambari-DDL-SQLServer-CREATE.sql * ambari-server/src/main/java/org/apache/ambari/server/state/ServiceComponentHost.java * ambari-server/src/main/resources/Ambari-DDL-Oracle-CREATE.sql * ambari-server/src/main/java/org/apache/ambari/server/orm/entities/HostComponentStateEntity.java * ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClusterImpl.java * ambari-server/src/main/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql * ambari-server/src/main/java/org/apache/ambari/server/serveraction/upgrades/FinalizeUpgradeAction.java * ambari-server/src/main/java/org/apache/ambari/server/state/svccomphost/ServiceComponentHostImpl.java * ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog200Test.java > Rolling Upgrade - Finalize needs to complete upgrade states in DB > ----------------------------------------------------------------- > > Key: AMBARI-9073 > URL: https://issues.apache.org/jira/browse/AMBARI-9073 > Project: Ambari > Issue Type: Task > Components: ambari-server > Affects Versions: 2.0.0 > Reporter: Yurii Shylov > Assignee: Yurii Shylov > Fix For: 2.0.0 > > > This will only make transitions in the DB. > cluster_version needs to be correct at all times. After the normal execution steps of the runbook finish, the cluster_version needs to have a state of UPGRADED. > Similarly, host_version and hostcomponentstate's upgrade_state column need to be correct at all times. The host_version should have a state of UPGRADED when it has been successful on a host (because all components on that host have been updated). On the agent hearbeat, the status command needs to update the currently running version of a component on a host, in order to update the hostcomponentstate's upgrade_state column (which should only be updated during an Upgrade); this is needed because the user can ignore errors that occur during the Rolling Upgrade, so a host may be partially updated. -- This message was sent by Atlassian JIRA (v6.3.4#6332)