Return-Path: X-Original-To: apmail-ambari-issues-archive@minotaur.apache.org Delivered-To: apmail-ambari-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2F42F19D36 for ; Thu, 31 Mar 2016 19:53:26 +0000 (UTC) Received: (qmail 35071 invoked by uid 500); 31 Mar 2016 19:53:26 -0000 Delivered-To: apmail-ambari-issues-archive@ambari.apache.org Received: (qmail 34970 invoked by uid 500); 31 Mar 2016 19:53:25 -0000 Mailing-List: contact issues-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 issues@ambari.apache.org Received: (qmail 34931 invoked by uid 99); 31 Mar 2016 19:53:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Mar 2016 19:53:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id BD2672C1F6F for ; Thu, 31 Mar 2016 19:53:25 +0000 (UTC) Date: Thu, 31 Mar 2016 19:53:25 +0000 (UTC) From: "Alejandro Fernandez (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-15637) If RU/EU is paused, services are restarted on the older version. EU is more complex since stopping services should use the original version. 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-15637?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alejandro Fernandez updated AMBARI-15637: ----------------------------------------- Attachment: (was: AMBARI-15637.branch-2.2.patch) > If RU/EU is paused, services are restarted on the older version. EU is more complex since stopping services should use the original version. > -------------------------------------------------------------------------------------------------------------------------------------------- > > Key: AMBARI-15637 > URL: https://issues.apache.org/jira/browse/AMBARI-15637 > Project: Ambari > Issue Type: Bug > Components: ambari-server > Affects Versions: 2.2.2 > Reporter: Alejandro Fernandez > Priority: Critical > Fix For: 2.2.2 > > Attachments: AMBARI-15637.branch-2.2.patch > > > Currently, if RU/EU is paused, then restarting services manually will use the version whose state is CURRENT. This means that services may be restarted on the wrong version, preventing Ambari from correctly Finalizing the upgrade. > Instead, the logic should be as follows during Upgrade: > RU: always use to_version > EU: if haven't completed the action "UPDATE_DESIRED_STACK_ID", then use the from_version, otherwise, use the to_version. > During Downgrade, both should use the original version, which is actually the to_version column in the upgrade table. > Assertions: > A: restart a service (should have version parameter, > B: run a service check (no version needed) > C: run HDFS Rebalance (should have version parameter). > Test Cases: > 1. Before stack upgrade, run A, B, and C, which should all use the current version > 2. EU, immediately click pause. Run A, B, and C, which should use the original version if it exists > 3. EU, after the services have been stopped and the stack has been upgraded. Run A, B, and C, which should use the new version since the services are now to be started. > 4. EU, click downgrade and pause. Run A, B, C, which should use the original version. > 5. RU, click pause whenever a manual task occurs. Run A, B, and C, which should use the destination version. > 6. RU, click downgrade. Run A, B, and C, which should use the original version. -- This message was sent by Atlassian JIRA (v6.3.4#6332)