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

Flush in ScalaCsvOutputFormat before close method

    XMLWordPrintableJSON

Details

    Description

      Because not every stream's close method will flush, in order to ensure the stability of continuous integration, we need to manually call flush() before close().

      I noticed that CsvOutputFormat (Java API) has done this. As follows. 

      //CsvOutputFormat
      public void close() throws IOException {
      if (wrt != null) {
      this.wrt.flush();
      this.wrt.close();
      }
      super.close();
      }
      

       

      Attachments

        Issue Links

          Activity

            People

              wind_ljy Jiayi Liao
              taoran Ran Tao
              Votes:
              0 Vote for this issue
              Watchers:
              5 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 - 0.5h
                  0.5h