You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "yaooqinn (via GitHub)" <gi...@apache.org> on 2025/02/28 09:17:25 UTC
[PR] [SPARK-51353][INFRA][BUILD]Retry dyn/closer.lua for mvn before falling back to archive.a.o [spark]
yaooqinn opened a new pull request, #50114:
URL: https://github.com/apache/spark/pull/50114
### What changes were proposed in this pull request?
This PR enables retry for dyn/closer.lua for mvn before falling back to archive.a.o.
Before this PR, we used `curl` w/o retry to download the whole maven tar ball once to check if we need to fall back to archive.a.o. This is unreliable and a bit wasteful.
In this PR, we enable retry to reduce service transient errors and only fetch asc to reduce network/time cost.
```
apache-maven-3.9.9-bin.tar.gz 2024-08-17 18:44 8.7M
apache-maven-3.9.9-bin.tar.gz.asc 2024-08-17 18:44 228
apache-maven-3.9.9-bin.tar.gz.sha512 2024-08-17 18:44 128
```
### Why are the changes needed?
Make dyn/closer.lua mirror first and reliable
### Does this PR introduce _any_ user-facing change?
no, dev only
### How was this patch tested?
```
build/mvn clean
exec: curl --retry 3 --silent --show-error -L https://www.apache.org/dyn/closer.lua/maven/maven-3/3.9.9/binaries/apache-maven-3.9.9-bin.tar.gz?action=download
exec: curl --retry 3 --silent --show-error -L https://www.apache.org/dyn/closer.lua/maven/maven-3/3.9.9/binaries/apache-maven-3.9.9-bin.tar.gz.sha512?action=download
Verifying checksum from /Users/hzyaoqin/spark/build/apache-maven-3.9.9-bin.tar.gz.sha512
Using `mvn` from path: /Users/hzyaoqin/spark/build/apache-maven-3.9.9/bin/mvn
```
### Was this patch authored or co-authored using generative AI tooling?
no
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-51353][INFRA][BUILD] Retry dyn/closer.lua for mvn before falling back to archive.a.o [spark]
Posted by "yaooqinn (via GitHub)" <gi...@apache.org>.
yaooqinn commented on PR #50114:
URL: https://github.com/apache/spark/pull/50114#issuecomment-2693347858
Merged to master/4.0/3.5
Thank you @LuciferYang
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-51353][INFRA][BUILD] Retry dyn/closer.lua for mvn before falling back to archive.a.o [spark]
Posted by "cxzl25 (via GitHub)" <gi...@apache.org>.
cxzl25 commented on code in PR #50114:
URL: https://github.com/apache/spark/pull/50114#discussion_r2378048179
##########
build/mvn:
##########
@@ -130,7 +130,7 @@ install_mvn() {
local MIRROR_URL_QUERY="?action=download"
if [ $(command -v curl) ]; then
- if ! curl -L --output /dev/null --silent --head --fail "${APACHE_MIRROR}/${FILE_PATH}${MIRROR_URL_QUERY}" ; then
+ if ! curl -L --output /dev/null --retry 3 --silent --head --fail "${APACHE_MIRROR}/${FILE_PATH}.asc${MIRROR_URL_QUERY}" ; then
Review Comment:
Can we only retain retry logic? Only `--head` is used here.
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-51353][INFRA][BUILD] Retry dyn/closer.lua for mvn before falling back to archive.a.o [spark]
Posted by "yaooqinn (via GitHub)" <gi...@apache.org>.
yaooqinn closed pull request #50114: [SPARK-51353][INFRA][BUILD] Retry dyn/closer.lua for mvn before falling back to archive.a.o
URL: https://github.com/apache/spark/pull/50114
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-51353][INFRA][BUILD] Retry dyn/closer.lua for mvn before falling back to archive.a.o [spark]
Posted by "yaooqinn (via GitHub)" <gi...@apache.org>.
yaooqinn commented on PR #50114:
URL: https://github.com/apache/spark/pull/50114#issuecomment-2693813332
I revert this as I found that the asc files for legacy versions might still be available from the mirrors
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-51353][INFRA][BUILD] Retry dyn/closer.lua for mvn before falling back to archive.a.o [spark]
Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #50114:
URL: https://github.com/apache/spark/pull/50114#issuecomment-2695351454
Thank you for reverting this from master/4.0/3.5, @yaooqinn .
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org