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-12083) Installing Repo Packages needs to be more robust to handle the actual_version installed when the script is killed because of a timeout
Date Tue, 23 Jun 2015 21:21:45 GMT

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

Hudson commented on AMBARI-12083:
---------------------------------

SUCCESS: Integrated in Ambari-branch-2.1 #97 (See [https://builds.apache.org/job/Ambari-branch-2.1/97/])
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 (alejandro) (afernandez: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=4f06c859d436840a819f8b429eb66d662f5d1c96)
* ambari-server/src/test/python/custom_actions/TestInstallPackages.py
* ambari-server/src/main/resources/custom_actions/scripts/install_packages.py
* ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/datanode_upgrade.py
* ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/datanode.py


> 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
>
>         Attachments: AMBARI-12083.branch-2.1.patch, AMBARI-12083.patch
>
>
> 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)

Mime
View raw message