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

Close of ObjectOutputStream should be enclosed in finally block in FsStateBackend

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.0.0
    • None
    • None

    Description

            ObjectOutputStream os = new ObjectOutputStream(outStream);
            os.writeObject(state);
            os.close();
      

      If IOException is thrown out of writeObject(), the close() call would be skipped.

      Attachments

        Activity

          People

            yuzhihong@gmail.com Ted Yu
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: