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

Potential resource leak in TwitterSource#loadAuthenticationProperties()

    XMLWordPrintableJSON

Details

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

    Description

      Here is related code:

                      Properties properties = new Properties();
                      try {
                              InputStream input = new FileInputStream(authPath);
                              properties.load(input);
                              input.close();
                      } catch (Exception e) {
                              throw new RuntimeException("Cannot open .properties file: " + authPath, e);
                      }
      

      If there is exception coming out of properties.load() call, input would be left open.

      Attachments

        Activity

          People

            ssaumitra Saumitra Shahapure
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: