Guojun Li created FLINK-33922: --------------------------------- Summary: table-planner jar will be removed as it is created at /tmp by default Key: FLINK-33922 URL: https://issues.apache.org/jira/browse/FLINK-33922 Project: Flink Issue Type: Improvement Components: Table SQL / Planner Affects Versions: 1.17.0 Reporter: Guojun Li Attachments: image-2023-12-21-17-31-29-220.png
Table-planner jar is created at "/tmp" folder, and generally there is a clean mechanism for the "/tmp" folder. We have a sql-gateway deployed, sometimes when we want to start a sql-client session and connect to the gateway, we'll encounter an exception as below Caused by: java.util.ServiceConfigurationError: org.apache.flink.table.factories.Factory: Error accessing configuration file at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:586) at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.parse(ServiceLoader.java:1180) at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.nextProviderClass(ServiceLoader.java:1213) at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1228) at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1273) at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1309) at java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1393) at org.apache.flink.table.factories.FactoryUtil.discoverFactories(FactoryUtil.java:829)... 68 more Caused by: java.nio.file.NoSuchFileException:/tmp/flink-table-planner_f342decd-593a-4d9e-890c-d204bbd2dd5f.jar at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92) at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106) at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) at java.base/sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55) at java.base/sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:148) at java.base/sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99) at java.base/java.nio.file.Files.readAttributes(Files.java:1851) at java.base/java.util.zip.zipFile$Source.get(zipFile.java:1264) at java.base/java.util.zip.zipFile$CleanableResource.<init>(ZipFile.java:709) at java.base/java.util.zip.zipFile.<init>(zipFile.java:243) at java.base/java.util.zip.zipFile.<init>(zipFile.java:172) at java.base/java.util.jar.JarFile.<init>(JarFile.java:347) at java.base/sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:103) at java.base/sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:72) at java.base/sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:168) at java.base/sun.net.www.protocol.jar.JarFileFactory.getOrCreate(JarFileFactory.java:91) at java.base/sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:132) at java.base/sun.net.www.protocol.jar.JarURLConnection.getInputStream( JarURLConnection.java:175) at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.parse(ServiceLoader.java:1172)... 74 more -- This message was sent by Atlassian Jira (v8.20.10#820010)