Skip to content

Commit 1c3ac53

Browse files
authored
Add retry when downloading pulsar through apache in CI (#1636)
We have had lots of failures downloading pulsar recently. This PR adds --retry 10 to reduce the failure. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
1 parent 92b44e1 commit 1c3ac53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_pulsar/pulsar_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ TAR_FILE="apache-pulsar-${VERSION}-bin.tar.gz"
2222

2323
echo "Downloading pulsar ${VERSION}"
2424
if [[ ! -f ${TAR_FILE} ]]; then
25-
curl -sSOL "https://archive.apache.org/dist/pulsar/pulsar-${VERSION}/${TAR_FILE}"
25+
curl --retry 10 -sSOL "https://archive.apache.org/dist/pulsar/pulsar-${VERSION}/${TAR_FILE}"
2626
fi
2727

2828
tar -xzf ${TAR_FILE}

0 commit comments

Comments
 (0)