voonhous commented on issue #21105:
URL: https://github.com/apache/hudi/issues/21105#issuecomment-7437055742

   The open question above has an answer: the failing jobs restore a cache that 
another workflow wrote.
   
   Every workflow that uses `actions/setup-java` with `cache: maven` gets the 
same key, `setup-java-Linux-x64-maven-<hash of **/pom.xml>`. The first job to 
finish saves the cache, and later saves under that key are skipped.
   
   On the fork, the cache the failing runs restored 
(`setup-java-Linux-x64-maven-7b0ad8...`, ~2 GB, saved 2026-12-02 on master) was 
written by `test-hudi-trino-plugin` in `hudi_trino_ci.yml`. That job builds 
`hudi-common` through `hudi-java-client` plus `hudi-trino`. It builds no Spark 
module and runs no `clean` goal.
   
   So the Spark 4.2 jobs restore a "warm" cache without `maven-clean-plugin` or 
their Spark / Scala 2.13 dependencies. Every one of them then downloads from 
Maven Central at the same time, which is where the 429 comes from.
   
   <!-- diagram: maven-cache-race.svg -->
   
   The repo already knows about this race: `validate_source.yml` opts out of 
`cache: maven` because "the first job to finish wins the write". Seven other 
workflows still share the key with `bot.yml`: the four Trino workflows, 
`agent_gateway_ci.yml`, `maven_artifact_validation.yml` and 
`release_candidate_validation.yml`.
   
   #21106 makes the retry settings take effect again, but retries only stretch 
the wait. The fix for the request volume is a cache that holds what the build 
jobs need:
   
   1. Give the non-`bot.yml` workflows their own key, for ex via 
`cache-dependency-path`, so they can no longer seal the cache the Spark jobs 
restore.
   2. Or let one job that builds the full reactor save the cache 
(`actions/cache/save`) and have the rest only restore it 
(`actions/cache/restore`).
   
   I checked this on the fork only. Upstream uses the same key, but I have not 
checked which job wrote upstream master's cache.
   


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

Reply via email to