[ https://issues.apache.org/jira/browse/FLINK-28102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17555485#comment-17555485 ]
Weijie Guo edited comment on FLINK-28102 at 6/17/22 8:59 AM: ------------------------------------------------------------- We can handle symlinks correctly before FLINK-23500, but now it's broken, from my personal point of view, we should allow symlinks as before, what do you think [~chesnay] [~prabhujoseph] ,I can try to fix this if you guys think so too. was (Author: weijie guo): We can handle symlinks correctly before FLINK-23500, but now it's broken, from my personal point of view, we should allow symlinks as before, what do you think [~chesnay] [~prabhujoseph] > Flink AkkaRpcSystemLoader fails when temporary directory is a symlink > --------------------------------------------------------------------- > > Key: FLINK-28102 > URL: https://issues.apache.org/jira/browse/FLINK-28102 > Project: Flink > Issue Type: Bug > Components: Runtime / RPC > Affects Versions: 1.15.0 > Reporter: Prabhu Joseph > Priority: Minor > > Flink AkkaRpcSystemLoader fails when temporary directory is a symlink > *Error Message:* > {code} > Caused by: java.nio.file.FileAlreadyExistsException: /tmp > at > sun.nio.fs.UnixException.translateToIOException(UnixException.java:88) > ~[?:1.8.0_332] > at > sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) > ~[?:1.8.0_332] > at > sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) > ~[?:1.8.0_332] > at > sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384) > ~[?:1.8.0_332] > at java.nio.file.Files.createDirectory(Files.java:674) ~[?:1.8.0_332] > at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781) > ~[?:1.8.0_332] > at java.nio.file.Files.createDirectories(Files.java:727) > ~[?:1.8.0_332] > at > org.apache.flink.runtime.rpc.akka.AkkaRpcSystemLoader.loadRpcSystem(AkkaRpcSystemLoader.java:58) > ~[flink-dist-1.15.0.jar:1.15.0] > at org.apache.flink.runtime.rpc.RpcSystem.load(RpcSystem.java:101) > ~[flink-dist-1.15.0.jar:1.15.0] > at > org.apache.flink.runtime.taskexecutor.TaskManagerRunner.startTaskManagerRunnerServices(TaskManagerRunner.java:186) > ~[flink-dist-1.15.0.jar:1.15.0] > at > org.apache.flink.runtime.taskexecutor.TaskManagerRunner.start(TaskManagerRunner.java:288) > ~[flink-dist-1.15.0.jar:1.15.0] > at > org.apache.flink.runtime.taskexecutor.TaskManagerRunner.runTaskManager(TaskManagerRunner.java:481) > ~[flink-dist-1.15.0.jar:1.15.0] > {code} > *Repro:* > {code} > 1. /tmp is a symlink points to actual directory /mnt/tmp > [root@prabhuHost log]# ls -lrt /tmp > lrwxrwxrwx 1 root root 8 Jun 15 07:51 /tmp -> /mnt/tmp > 2. Start Cluster > ./bin/start-cluster.sh > {code} -- This message was sent by Atlassian Jira (v8.20.7#820007)