[ 
https://issues.apache.org/jira/browse/HADOOP-20077?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18144783#comment-18144783
 ] 

ASF GitHub Bot commented on HADOOP-20077:
-----------------------------------------

slfan1989 commented on code in PR #8963:
URL: https://github.com/apache/hadoop/pull/8963#discussion_r4572939586


##########
dev-support/docker/pkg-resolver/install-spotbugs.sh:
##########
@@ -40,7 +40,7 @@ fi
 
 if [ "$version_to_install" == "4.2.2" ]; then
   mkdir -p /opt/spotbugs &&
-    curl -L -s -S 
https://github.com/spotbugs/spotbugs/releases/download/4.2.2/spotbugs-4.2.2.tgz 
\
+    curl -f -L -s -S --retry 5 --retry-delay 5 
https://github.com/spotbugs/spotbugs/releases/download/4.2.2/spotbugs-4.2.2.tgz 
\

Review Comment:
   Thanks for making download failures report the HTTP status. The Rocky Linux 
8 image also uses this installer, and its curl 7.61.1 package does not retry 
HTTP 429 with `--retry`.
   
   Could you verify a `429` → `200` response sequence on that image and either 
handle it there or document the version-dependent retry behavior? This would 
also give Yetus a concrete manual validation step.





>  Make curl downloads in docker pkg-resolver scripts fail on HTTP errors and 
> retry
> ---------------------------------------------------------------------------------
>
>                 Key: HADOOP-20077
>                 URL: https://issues.apache.org/jira/browse/HADOOP-20077
>             Project: Hadoop Common
>          Issue Type: Improvement
>            Reporter: dzcxzl
>            Priority: Minor
>              Labels: pull-request-available
>




--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to