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

InputStream is not closed at CliClient#executeFile

    XMLWordPrintableJSON

Details

    Description

      There is InputStream created however not closed

      https://github.com/apache/flink/blob/e2463ddace26601c6442dbaa68c198a27c9cfbcf/flink-table/flink-sql-client/src/main/java/org/apache/flink/table/client/cli/CliClient.java#L349-L364

      Another thing, which is easy to fix: it seems there is no need to create completer object for CliClient#executeFile since it makes sense only in interactive mode

      It seems the reason is https://github.com/apache/flink/pull/18363/files

      Attachments

        Issue Links

          Activity

            People

              Sergey Nuyanzin Sergey Nuyanzin
              Sergey Nuyanzin Sergey Nuyanzin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: