Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

stevenzwu
Copy link
Contributor

Twice, I have ran into OOMError with gradle build

https://github.com/apache/iceberg/actions/runs/15146709248/job/42584083395
https://github.com/apache/iceberg/actions/runs/15146709248/job/42590212786


Unexpected exception thrown.
org.gradle.internal.remote.internal.MessageIOException: Could not read message from '/127.0.0.1:40376'.
	at org.gradle.internal.remote.internal.inet.SocketConnection.receive(SocketConnection.java:96)
	at org.gradle.internal.remote.internal.hub.MessageHub$ConnectionReceive.run(MessageHub.java:270)
	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
	at org.gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:48)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)

	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: java.lang.OutOfMemoryError: Java heap space
> Task :iceberg-spark:iceberg-spark-4.0_2.13:compileTestJava FAILED
> Task :iceberg-spark:iceberg-spark-extensions-4.0_2.13:compileJava FAILED

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':iceberg-spark:iceberg-spark-4.0_2.13:compileTestJava'.
> Java heap space: failed reallocation of scalar replaced objects

@stevenzwu stevenzwu requested a review from nastra May 20, 2025 23:40
@github-actions github-actions bot added the build label May 20, 2025
Copy link
Member

@ajantha-bhat ajantha-bhat left a comment

Choose a reason for hiding this comment

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

I have faced the same error just now
https://github.com/apache/iceberg/actions/runs/15161880384

Maybe we need to investigate what has changed. Maybe because of addition of spark4, we need more heap space to compile all modules now.

Changes LGTM.

@stevenzwu stevenzwu merged commit e139dbc into apache:main May 21, 2025
43 checks passed
@stevenzwu
Copy link
Contributor Author

thanks @nastra @ajantha-bhat @singhpk234 for the review

@stevenzwu stevenzwu deleted the increase-gradle-heap-size branch May 21, 2025 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants