badalprasadsingh commented on code in PR #2777:
URL: https://github.com/apache/iceberg-go/pull/2777#discussion_r4751242774
##########
dev/check-license:
##########
@@ -27,9 +27,9 @@ acquire_rat_jar () {
printf "Attempting to fetch rat\n"
JAR_DL="${JAR}.part"
if [ $(command -v curl) ]; then
- curl -L --silent "${URL}" > "$JAR_DL" && mv "$JAR_DL" "$JAR"
+ curl -L --silent --show-error --fail --retry 3 --retry-all-errors -o
"$JAR_DL" "${URL}" && mv "$JAR_DL" "$JAR"
Review Comment:
I think we should cap the wait here: --retry-max-time to 60
##########
dev/check-license:
##########
@@ -27,9 +27,9 @@ acquire_rat_jar () {
printf "Attempting to fetch rat\n"
JAR_DL="${JAR}.part"
if [ $(command -v curl) ]; then
- curl -L --silent "${URL}" > "$JAR_DL" && mv "$JAR_DL" "$JAR"
+ curl -L --silent --show-error --fail --retry 3 --retry-all-errors -o
"$JAR_DL" "${URL}" && mv "$JAR_DL" "$JAR"
elif [ $(command -v wget) ]; then
- wget --quiet ${URL} -O "$JAR_DL" && mv "$JAR_DL" "$JAR"
+ wget --quiet --tries=3 ${URL} -O "$JAR_DL" && mv "$JAR_DL" "$JAR"
Review Comment:
gnu wget already retires 20 times by default, we should remove limiting to 3
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]