Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Java Heap Space Causing Gradle Check Failures #4907

Closed
stephen-crawford opened this issue Oct 25, 2022 · 5 comments
Closed

[BUG] Java Heap Space Causing Gradle Check Failures #4907

stephen-crawford opened this issue Oct 25, 2022 · 5 comments
Labels
bug Something isn't working CI CI related untriaged

Comments

@stephen-crawford
Copy link
Contributor

stephen-crawford commented Oct 25, 2022

When testing a change to the feature/identity repo, I encountered an issue with the gradle check Jenkins process. After the check running for 17 minutes, the build fails with approximately 30 instances of the failure "Java heap space" presumably relating to the heap memory allocation.

Full logs can be found here: https://build.ci.opensearch.org/job/gradle-check/5471/console

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://github.com/scrawfor99/OpenSearch/tree/feature/identity and clone the branch
  2. Create a new PR for the new code
  3. Wait for the automated processes to run on GitHub Actions
  4. Click the Jenkins link produced on failure
  5. Check the Jenkins console output for errors once the gradle-check fails.

Expected behavior
The check passes (or doesn't) regardless of memory allocation.

Screenshots
Here is a screenshot of the bottom part of the gradle-check console:
Screen Shot 2022-10-25 at 9 51 04 AM

@reta
Copy link
Collaborator

reta commented Oct 25, 2022

This is interesting, suppossed to be fixed by #3973 but ... Gradle cache?

> Task :plugins:repository-azure:compileInternalClusterTestJava
Exception in thread "/127.0.0.1:35375 to /127.0.0.1:42646 workers Thread 4" java.lang.OutOfMemoryError: Java heap space
> Task :qa:multi-cluster-search:jarHell

> Task :plugins:analysis-icu:compileTestJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

> Task :distribution:docker:compileTestJava
> Task :modules:ingest-user-agent:forbiddenApisYamlRestTest FAILED
> Task :libs:opensearch-nio:compileTestJava
> Task :libs:opensearch-grok:forbiddenApisTest FAILED
Failed to execute org.gradle.cache.internal.AsyncCacheAccessDecoratedCache$$Lambda$415/0x0000000801034000@6112ffa9.
java.lang.OutOfMemoryError: Java heap space

@peternied
Copy link
Member

We haven't merged from main in a little bit, will see if #4916 resolves this

@stephen-crawford
Copy link
Contributor Author

This is interesting, suppossed to be fixed by #3973 but ... Gradle cache?

> Task :plugins:repository-azure:compileInternalClusterTestJava
Exception in thread "/127.0.0.1:35375 to /127.0.0.1:42646 workers Thread 4" java.lang.OutOfMemoryError: Java heap space
> Task :qa:multi-cluster-search:jarHell

> Task :plugins:analysis-icu:compileTestJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

> Task :distribution:docker:compileTestJava
> Task :modules:ingest-user-agent:forbiddenApisYamlRestTest FAILED
> Task :libs:opensearch-nio:compileTestJava
> Task :libs:opensearch-grok:forbiddenApisTest FAILED
Failed to execute org.gradle.cache.internal.AsyncCacheAccessDecoratedCache$$Lambda$415/0x0000000801034000@6112ffa9.
java.lang.OutOfMemoryError: Java heap space

Thank you for the response. Apologies if I missed this or we are behind with our merges. I just wanted to raise it to your attention in case it was a persistent issue that was not on people's radar. We will keep you updated.

@peternied
Copy link
Member

@scrawfor99 Can you rebase and see if this issue is resolved?

@mch2 mch2 added the CI CI related label Oct 25, 2022
@mch2
Copy link
Member

mch2 commented Oct 25, 2022

Closing this as it seems to have been fixed. @scrawfor99 Please re-open if you still hit this issue.

@mch2 mch2 closed this as completed Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CI CI related untriaged
Projects
None yet
Development

No branches or pull requests

4 participants