[ https://issues.apache.org/jira/browse/FLINK-22765?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17817683#comment-17817683 ]
Matthias Pohl edited comment on FLINK-22765 at 2/15/24 2:06 PM: ---------------------------------------------------------------- The following error is reported: {code} The system is out of resources. Consult the following stack trace for details. java.lang.OutOfMemoryError: Metaspace at jdk.compiler/com.sun.tools.javac.comp.Flow.analyzeTree(Flow.java:233) at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.flow(JavaCompiler.java:1419) at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.flow(JavaCompiler.java:1393) at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:976) at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:319) at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:178) at jdk.compiler/com.sun.tools.javac.Main.compile(Main.java:82) at jdk.compiler/com.sun.tools.javac.api.JavacTool.run(JavacTool.java:214) at org.apache.flink.testutils.ClassLoaderUtils.compileClass(ClassLoaderUtils.java:83) at org.apache.flink.testutils.ClassLoaderUtils.writeAndCompile(ClassLoaderUtils.java:62) at org.apache.flink.testutils.ClassLoaderUtils.access$100(ClassLoaderUtils.java:46) at org.apache.flink.testutils.ClassLoaderUtils$ClassLoaderBuilder.build(ClassLoaderUtils.java:163) at org.apache.flink.runtime.util.ExceptionUtilsITCase$DummyClassLoadingProgram.loadDummyClass(ExceptionUtilsITCase.java:180) at org.apache.flink.runtime.util.ExceptionUtilsITCase$DummyClassLoadingProgram.main(ExceptionUtilsITCase.java:159) {code} That explains why other sources (e.g. [this SO post|https://stackoverflow.com/a/39509720]) state that the error message "The system is out of resources." indicates an error while compiling the classes. That happens in the ClassloaderUtils. The heap size is just not sufficient for compiling the classes. was (Author: mapohl): The following error is reported: {code} The system is out of resources. Consult the following stack trace for details. java.lang.OutOfMemoryError: Metaspace at jdk.compiler/com.sun.tools.javac.comp.Flow.analyzeTree(Flow.java:233) at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.flow(JavaCompiler.java:1419) at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.flow(JavaCompiler.java:1393) at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:976) at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:319) at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:178) at jdk.compiler/com.sun.tools.javac.Main.compile(Main.java:82) at jdk.compiler/com.sun.tools.javac.api.JavacTool.run(JavacTool.java:214) at org.apache.flink.testutils.ClassLoaderUtils.compileClass(ClassLoaderUtils.java:83) at org.apache.flink.testutils.ClassLoaderUtils.writeAndCompile(ClassLoaderUtils.java:62) at org.apache.flink.testutils.ClassLoaderUtils.access$100(ClassLoaderUtils.java:46) at org.apache.flink.testutils.ClassLoaderUtils$ClassLoaderBuilder.build(ClassLoaderUtils.java:163) at org.apache.flink.runtime.util.ExceptionUtilsITCase$DummyClassLoadingProgram.loadDummyClass(ExceptionUtilsITCase.java:180) at org.apache.flink.runtime.util.ExceptionUtilsITCase$DummyClassLoadingProgram.main(ExceptionUtilsITCase.java:159) {code} > ExceptionUtilsITCase.testIsMetaspaceOutOfMemoryError is unstable > ---------------------------------------------------------------- > > Key: FLINK-22765 > URL: https://issues.apache.org/jira/browse/FLINK-22765 > Project: Flink > Issue Type: Bug > Components: Runtime / Coordination > Affects Versions: 1.14.0, 1.13.5, 1.15.0, 1.17.2, 1.19.0, 1.20.0 > Reporter: Robert Metzger > Assignee: Robert Metzger > Priority: Critical > Labels: pull-request-available, stale-assigned, test-stability > Fix For: 1.14.0, 1.16.0 > > > https://dev.azure.com/apache-flink/apache-flink/_build/results?buildId=18292&view=logs&j=39d5b1d5-3b41-54dc-6458-1e2ddd1cdcf3&t=a99e99c7-21cd-5a1f-7274-585e62b72f56 > {code} > May 25 00:56:38 java.lang.AssertionError: > May 25 00:56:38 > May 25 00:56:38 Expected: is "" > May 25 00:56:38 but: was "The system is out of resources.\nConsult the > following stack trace for details." > May 25 00:56:38 at > org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20) > May 25 00:56:38 at org.junit.Assert.assertThat(Assert.java:956) > May 25 00:56:38 at org.junit.Assert.assertThat(Assert.java:923) > May 25 00:56:38 at > org.apache.flink.runtime.util.ExceptionUtilsITCase.run(ExceptionUtilsITCase.java:94) > May 25 00:56:38 at > org.apache.flink.runtime.util.ExceptionUtilsITCase.testIsMetaspaceOutOfMemoryError(ExceptionUtilsITCase.java:70) > May 25 00:56:38 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > May 25 00:56:38 at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > May 25 00:56:38 at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > May 25 00:56:38 at java.lang.reflect.Method.invoke(Method.java:498) > May 25 00:56:38 at > org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) > May 25 00:56:38 at > org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) > May 25 00:56:38 at > org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) > May 25 00:56:38 at > org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) > May 25 00:56:38 at > org.apache.flink.util.TestNameProvider$1.evaluate(TestNameProvider.java:45) > May 25 00:56:38 at > org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55) > May 25 00:56:38 at org.junit.rules.RunRules.evaluate(RunRules.java:20) > May 25 00:56:38 at > org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) > May 25 00:56:38 at > org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) > May 25 00:56:38 at > org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) > May 25 00:56:38 at > org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) > May 25 00:56:38 at > org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) > May 25 00:56:38 at > org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) > May 25 00:56:38 at > org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) > May 25 00:56:38 at > org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) > May 25 00:56:38 at > org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48) > May 25 00:56:38 at org.junit.rules.RunRules.evaluate(RunRules.java:20) > May 25 00:56:38 at > org.junit.runners.ParentRunner.run(ParentRunner.java:363) > May 25 00:56:38 at > org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365) > May 25 00:56:38 at > org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273) > May 25 00:56:38 at > org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238) > May 25 00:56:38 at > org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159) > May 25 00:56:38 at > org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) > May 25 00:56:38 at > org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) > May 25 00:56:38 at > org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) > May 25 00:56:38 at > org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) > May 25 00:56:38 > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)