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

History server - wrong default directory

    XMLWordPrintableJSON

Details

    Description

      When the history server is started without a directory specified in the configuration file, it will use some random directory located in the Java Temp directory. Unfortunately, a file separator is missing:

      HistoryServer.java@L139-L143
      String webDirectory = config.getString(HistoryServerOptions.HISTORY_SERVER_WEB_DIR);
      if (webDirectory == null) {
      	webDirectory = System.getProperty("java.io.tmpdir") + "flink-web-history-" + UUID.randomUUID();
      }
      webDir = new File(webDirectory);
      

      It should be

      webDirectory = System.getProperty("java.io.tmpdir") + File.separator +  "flink-web-history-" + UUID.randomUUID();
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              LorenzB Lorenz Bühmann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: