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

Potential resource leak due to unclosed ObjectInputStream in FileSerializableStateHandle

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.10.0
    • None
    • None

    Description

      Here is related code:

        public T getState(ClassLoader classLoader) throws Exception {
          FSDataInputStream inStream = getFileSystem().open(getFilePath());
          ObjectInputStream ois = new InstantiationUtil.ClassLoaderObjectInputStream(inStream, classLoader);
          return (T) ois.readObject();
      

      ObjectInputStream should be closed upon exit from the method

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: