Prabhu Joseph created FLINK-28102:
-------------------------------------

             Summary: 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


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:*

1. /tmp is a symlink points to actual directory /mnt/tmp

{code}
[root@prabhuHost log]# ls -lrt /tmp
lrwxrwxrwx 1 root root 8 Jun 15 07:51 /tmp -> /mnt/tmp
{code}

2. Start Cluster

./bin/start-cluster.sh






--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to