Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-28102

Flink AkkaRpcSystemLoader fails when temporary directory is a symlink

    XMLWordPrintableJSON

Details

    Description

      Flink AkkaRpcSystemLoader fails when temporary directory is a symlink

      Error Message:

      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]
      

      Repro:

      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
      
      

      Attachments

        Issue Links

          Activity

            People

              Weijie Guo Weijie Guo
              prabhujoseph Prabhu Joseph
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: