Hadoop Common
  1. Hadoop Common
  2. HADOOP-10541

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0, 2.4.0
    • 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.

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

        Activity

          People

          • Assignee:
            Swarnim Kulkarni
            Reporter:
            Ted Yu
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development