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 8CA9A17238 for ; Tue, 23 Jun 2015 03:05:05 +0000 (UTC) Received: (qmail 20875 invoked by uid 500); 23 Jun 2015 03:05:00 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 20839 invoked by uid 500); 23 Jun 2015 03:05:00 -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 20826 invoked by uid 99); 23 Jun 2015 03:05:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jun 2015 03:05:00 +0000 Date: Tue, 23 Jun 2015 03:05:00 +0000 (UTC) From: "Alejandro Fernandez (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-12083) Installing Repo Packages needs to be more robust to handle the actual_version installed when the script is killed because of a timeout 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-12083?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alejandro Fernandez updated AMBARI-12083: ----------------------------------------- Attachment: (was: AMBARI-12083.patch) > Installing Repo Packages needs to be more robust to handle the actual_version installed when the script is killed because of a timeout > -------------------------------------------------------------------------------------------------------------------------------------- > > Key: AMBARI-12083 > URL: https://issues.apache.org/jira/browse/AMBARI-12083 > Project: Ambari > Issue Type: Bug > Components: ambari-server > Affects Versions: 2.1.0 > Reporter: Alejandro Fernandez > Assignee: Alejandro Fernandez > Priority: Critical > Fix For: 2.1.0 > > > When installing bits of a new repo to perform an RU, if the repo version does not contain a build number, then the actual_version has to be calculated. > The problem is that this information can only be retrieved by calculating the delta of the versions when calling "hdp-select versions", so the only the first time will return a value. If the script is killed, then the actual_version will never be calculated and returned to the server. > For this reason, the package installer must tolerate receiving a SIGINT or SIGTERM, and calculate the actual_version. Further, it helps to store it in a file, in case that the response or something upstream results in another failure. -- This message was sent by Atlassian JIRA (v6.3.4#6332)