adoroszlai commented on PR #9014:
URL: https://github.com/apache/hadoop/pull/9014#issuecomment-7111743180

   Thanks @cxzl25 for working on this.
   
   I don't think retry solves the problem.  If download from Maven Central 
fails, retrying in short time is unlikely to succeed.  Example (from Ozone's 
workflow):
   
   ```
   [WARNING] GET request to 
https://repo.maven.apache.org/maven2/.meta/prefixes.txt failed (attempt 1 of 4) 
due to status 429. Retrying in 5000 ms (due to retryInterval 5000 ms multiplied 
by execution count 1)...
   [WARNING] GET request to 
https://repo.maven.apache.org/maven2/.meta/prefixes.txt failed (attempt 2 of 4) 
due to status 429. Retrying in 10000 ms (due to retryInterval 5000 ms 
multiplied by execution count 2)...
   [WARNING] GET request to 
https://repo.maven.apache.org/maven2/.meta/prefixes.txt failed (attempt 3 of 4) 
due to status 429. Retrying in 15000 ms (due to retryInterval 5000 ms 
multiplied by execution count 3)...
   [WARNING] Could not transfer metadata /.meta/prefixes.txt from/to central 
(https://repo.maven.apache.org/maven2): HTTP Status: 429
   ```
   
   Maven Wrapper is stored locally in `~/.m2/wrapper`, which should be saved 
and restored with `setup-java`'s 
[cache](https://github.com/actions/setup-java#caching) the workflow already has.
   
   The problem happens if the cache is [not 
found](https://github.com/cxzl25/hadoop/actions/runs/44979049518/job/137077903688#step:4:41)
 _and_ Maven Central rejects the request.
   
   I think the problem that needs to be checked is why the cache does not exist 
and how to ensure it does.


-- 
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]

Reply via email to