[
https://issues.apache.org/jira/browse/AMBARI-12083?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alejandro Fernandez updated AMBARI-12083:
-----------------------------------------
Attachment: AMBARI-12083.patch
AMBARI-12083.branch-2.1patch
> 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.1patch, 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)