Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-10541

InputStream in MiniKdc#initKDCServer for minikdc.ldiff is not closed

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.0, 3.0.0-alpha1
    • Fix Version/s: 2.5.0
    • Component/s: test
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      The same InputStream variable is used for minikdc.ldiff and minikdc-krb5.conf :

          InputStream is = cl.getResourceAsStream("minikdc.ldiff");
      ...
          is = cl.getResourceAsStream("minikdc-krb5.conf");
      

      Before the second assignment, is should be closed.

        Attachments

        1. HADOOP-10541.1.patch.txt
          2 kB
          Swarnim Kulkarni
        2. HADOOP-10541.2.patch.txt
          3 kB
          Swarnim Kulkarni
        3. HADOOP-10541.3.patch.txt
          3 kB
          Swarnim Kulkarni
        4. HADOOP-10541.4.patch
          3 kB
          Chris Nauroth

          Activity

            People

            • Assignee:
              swarnim Swarnim Kulkarni
              Reporter:
              yuzhihong@gmail.com Ted Yu
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: