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 report] Out of memory of grade run tests #4871

Closed
diqiu50 opened this issue Sep 6, 2024 · 0 comments · Fixed by #4872
Closed

[Bug report] Out of memory of grade run tests #4871

diqiu50 opened this issue Sep 6, 2024 · 0 comments · Fixed by #4872
Assignees
Labels
0.7.0 Release v0.7.0 bug Something isn't working

Comments

@diqiu50
Copy link
Contributor

diqiu50 commented Sep 6, 2024

Version

main branch

Describe what's wrong

Could not complete execution for Gradle Test Executor XX. Caused by: java.lang.OutOfMemoryError: Java heap space

Error message and/or stacktrace

org.gradle.api.internal.tasks.testing.TestSuiteExecutionException: Could not complete execution for Gradle Test Executor 14.
at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:64)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:569)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
at jdk.proxy2.$Proxy5.stop(Unknown Source)
at org.gradle.api.internal.tasks.testing.worker.TestWorker$3.run(TestWorker.java:193)
at org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:129)
at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:100)
at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:60)
at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56)
at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:113)
at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:65)
at worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
at worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)
Caused by: java.lang.OutOfMemoryError: Java heap space
at io.trino.tpch.TextPool$ByteArrayBuilder.(TextPool.java:190)
at io.trino.tpch.TextPool.(TextPool.java:51)
at io.trino.tpch.TextPool.(TextPool.java:43)
at io.trino.tpch.TextPool.lambda$static$0(TextPool.java:31)
at io.trino.tpch.TextPool$$Lambda$3239/0x00007af7b0fd8dc0.get(Unknown Source)
at com.google.common.base.Suppliers$NonSerializableMemoizingSupplier.get(Suppliers.java:181)
at io.trino.tpch.TextPool.getDefaultTextPool(TextPool.java:35)
at io.trino.tpch.OrderGenerator.(OrderGenerator.java:65)
at io.trino.tpch.TpchTable$2.createGenerator(TpchTable.java:40)
at io.trino.plugin.tpch.TpchRecordSet.createTpchRecordSet(TpchRecordSet.java:71)
at io.trino.plugin.tpch.TpchRecordSet.createTpchRecordSet(TpchRecordSet.java:48)
at io.trino.testing.H2QueryRunner.insertRows(H2QueryRunner.java:181)
at io.trino.testing.H2QueryRunner.(H2QueryRunner.java:113)
at io.trino.testing.AbstractTestQueryFramework.init(AbstractTestQueryFramework.java:113)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:569)
at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:728)
at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:156)
at org.junit.jupiter.engine.extension.TimeoutExtension.interceptLifecycleMethod(TimeoutExtension.java:128)
at org.junit.jupiter.engine.extension.TimeoutExtension.interceptBeforeAllMethod(TimeoutExtension.java:70)
at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor$$Lambda$422/0x00007af7b0182510.apply(Unknown Source)
at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(InterceptingExecutableInvoker.java:103)
at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall$$Lambda$205/0x00007af7b013e958.apply(Unknown Source)
at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.lambda$invoke$0(InterceptingExecutableInvoker.java:93)
at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$$Lambda$375/0x00007af7b016e678.apply(Unknown Source)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)

How to reproduce

The error is not stable

Additional context

No response

@diqiu50 diqiu50 added the bug Something isn't working label Sep 6, 2024
github-actions bot pushed a commit that referenced this issue Sep 8, 2024
…rwrite by the `extraJvmArgs`. (#4872)

### What changes were proposed in this pull request?

Fix the oom error when run the gradle test.

### Why are the changes needed?

Fix: #4871 

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

Manually

Co-authored-by: Jerry Shao <[email protected]>
@jerryshao jerryshao added 0.6.1 0.7.0 Release v0.7.0 labels Sep 8, 2024
jerryshao added a commit that referenced this issue Sep 8, 2024
…rwrite by the `extraJvmArgs`. (#4878)

### What changes were proposed in this pull request?

Fix the oom error when run the gradle test.

### Why are the changes needed?

Fix: #4871 

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

Manually

Co-authored-by: Yuhui <[email protected]>
Co-authored-by: Jerry Shao <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.7.0 Release v0.7.0 bug Something isn't working
Projects
None yet
2 participants