github-actions[bot] commented on code in PR #41779:
URL: https://github.com/apache/beam/pull/41779#discussion_r4741632375


##########
runners/spark/job-server/container/Dockerfile:
##########
@@ -19,7 +19,18 @@
 FROM eclipse-temurin:11
 MAINTAINER "Apache Beam <[email protected]>"
 
-RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y 
libltdl7 \
+# Retry apt-get update/install with backoff to tolerate transient Ubuntu 
mirror outages.
+RUN for attempt in 1 2 3 4 5; do \
+      if apt-get update -o Acquire::Retries=3 -o Acquire::http::Timeout=30 \
+        && DEBIAN_FRONTEND=noninteractive apt-get install -y libltdl7; then \

Review Comment:
   **🟢 Low**: Passing `-o Acquire::Retries=3 -o Acquire::http::Timeout=30` to 
`apt-get install` as well will allow APT to retry transient HTTP failures 
during `.deb` package download without needing to re-run `apt-get update`.
   
   ```suggestion
           && DEBIAN_FRONTEND=noninteractive apt-get install -y -o 
Acquire::Retries=3 -o Acquire::http::Timeout=30 libltdl7; then \
   ```



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