You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@whirr.apache.org by "Karel Vervaeke (Updated) (JIRA)" <ji...@apache.org> on 2012/02/20 09:17:40 UTC
[jira] [Updated] (WHIRR-517) Add a retry loop around apt-get and
yum commands to overcome transient errors
[ https://issues.apache.org/jira/browse/WHIRR-517?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Karel Vervaeke updated WHIRR-517:
---------------------------------
Attachment: WHIRR-517-evaluation.patch
Attached a patch with proposed implementation.
It adds 3 functions: a generic 'retry' function, 'retry_apt_get' and 'retry_yum'.
For now, I've only changed the zookeeper-cdh implementation for evaluation. If no-one forsees major problems i'll start replacing all apt-get and yum calls.
I had to change the <filtering> in the pom because it would mess up expressions like $((tries-1)). (This also explains why JAVA_HOME wasn't being set properly).
> Add a retry loop around apt-get and yum commands to overcome transient errors
> -----------------------------------------------------------------------------
>
> Key: WHIRR-517
> URL: https://issues.apache.org/jira/browse/WHIRR-517
> Project: Whirr
> Issue Type: Improvement
> Reporter: Karel Vervaeke
> Attachments: WHIRR-517-evaluation.patch
>
>
> Often, installation on one or more nodes fails because of transient errors
> (mostly failed connection attempts).
> Therefore we should make use of command's built-in retry options and/or add our own retry loops.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira