MINOR: add retry to system test curl commands (#8961)

Reviewers: Konstantine Karantasis <konstantine@confluent.io>, Boyang Chen <boyang@confluent.io>
This commit is contained in:
John Roesler 2020-07-01 13:01:49 -05:00 committed by GitHub
parent 16eb9c0bfe
commit d1133bf7bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ fetch_jdk_tgz() {
if [ ! -e $path ]; then if [ ! -e $path ]; then
mkdir -p $(dirname $path) mkdir -p $(dirname $path)
curl -s -L "https://s3-us-west-2.amazonaws.com/kafka-packages/jdk-${jdk_version}.tar.gz" -o $path curl --retry 5 -s -L "https://s3-us-west-2.amazonaws.com/kafka-packages/jdk-${jdk_version}.tar.gz" -o $path
fi fi
} }
@ -79,8 +79,8 @@ get_kafka() {
url_streams_test=https://s3-us-west-2.amazonaws.com/kafka-packages/kafka-streams-$version-test.jar url_streams_test=https://s3-us-west-2.amazonaws.com/kafka-packages/kafka-streams-$version-test.jar
if [ ! -d /opt/kafka-$version ]; then if [ ! -d /opt/kafka-$version ]; then
pushd /tmp pushd /tmp
curl -O $url curl --retry 5 -O $url
curl -O $url_streams_test || true curl --retry 5 -O $url_streams_test || true
file_tgz=`basename $url` file_tgz=`basename $url`
file_streams_jar=`basename $url_streams_test` || true file_streams_jar=`basename $url_streams_test` || true
tar -xzf $file_tgz tar -xzf $file_tgz