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

InputStream should be closed in EnvironmentInformation#getRevisionInformation()

    XMLWordPrintableJSON

Details

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

    Description

      Here is related code:

            InputStream propFile = EnvironmentInformation.class.getClassLoader().getResourceAsStream(".version.properties");
            if (propFile != null) {
              Properties properties = new Properties();
              properties.load(propFile);
      

      propFile should be closed upon leaving the method.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: