Skip to content

RANGER-5605 : Fix Ranger build failure when triggered through Docker#960

Open
dineshkumar-yadav wants to merge 1 commit into
masterfrom
sandbox/dineshkumar-yadav/RANGER-5605
Open

RANGER-5605 : Fix Ranger build failure when triggered through Docker#960
dineshkumar-yadav wants to merge 1 commit into
masterfrom
sandbox/dineshkumar-yadav/RANGER-5605

Conversation

@dineshkumar-yadav
Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Fix Ranger build failure when triggered through Docker

(Please fill in changes proposed in this fix. Create an issue in ASF JIRA before opening a pull request and
set the title of the pull request which starts with
the corresponding JIRA issue number. (e.g. RANGER-XXXX: Fix a typo in YYY))

How was this patch tested?

Increased the Maven heap size from 2GB to 5GB (minimum requirement).
Tested the Docker build trigger locally.

@dineshkumar-yadav dineshkumar-yadav self-assigned this May 21, 2026
@dineshkumar-yadav dineshkumar-yadav force-pushed the sandbox/dineshkumar-yadav/RANGER-5605 branch from 6d3c34b to 5a3b901 Compare May 21, 2026 10:24
@dineshkumar-yadav dineshkumar-yadav force-pushed the sandbox/dineshkumar-yadav/RANGER-5605 branch from 5a3b901 to bcf1228 Compare May 21, 2026 11:28
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts JVM/Maven memory settings to prevent Ranger builds from failing due to insufficient heap when building via Docker, and updates documentation/CI configuration accordingly.

Changes:

  • Increase Maven JVM max heap for the Docker-based build container and add JVM tuning options.
  • Update Docker README to reflect a higher minimum Docker memory allocation.
  • Increase Maven JVM max heap in GitHub Actions CI via MAVEN_OPTS.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
dev-support/ranger-docker/scripts/build/ranger-build.sh Raises Maven JVM heap and adds additional JVM options for Docker-based builds.
dev-support/ranger-docker/README.md Updates stated minimum Docker memory allocation.
.github/workflows/ci.yml Sets a higher Maven JVM max heap for CI builds.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

fi

export MAVEN_OPTS="-Xms2g -Xmx2g"
export MAVEN_OPTS="-Xms512m -Xmx5g -XX:+UseG1GC -XX:+ExplicitGCInvokesConcurrent -XX:SoftRefLRUPolicyMSPerMB=50 ${JAVA_OPTS}"
Comment thread .github/workflows/ci.yml

env:
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3
MAVEN_OPTS: -Xmx5g -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3
Comment thread .github/workflows/ci.yml

env:
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3
MAVEN_OPTS: -Xmx5g -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants