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

Log initial creation of upload directory on INFO

    XMLWordPrintableJSON

Details

    Description

      RestServerEndpoint.createUploadDir(Path, Logger) logs a warning if the upload directory does not exist.

      2018-09-26 15:32:31,732 WARN  org.apache.flink.runtime.dispatcher.DispatcherRestEndpoint    - Upload directory /var/folders/hr/cxn1_2y52qxf5nzyfq9h2scw0000gn/T/flink-web-2218b898-f245-4edf-b181-8f3bdc6014f3/flink-web-upload does not exist, or has been deleted externally. Previously uploaded files are no longer available.
      

      I found this warning confusing as it is always logged when relying on the default configuration (via WebOptions) that picks a random directory.

      Ideally, our default configurations should not result in warnings to be logged.

      Therefore, I propose to log the creation of the web directory on INFO instead of the warning.

      Attachments

        Issue Links

          Activity

            People

              tianchen92 Ji Liu
              uce Ufuk Celebi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m