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: 2.4.0, 3.0.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.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

        Allen Wittenauer made changes -
        Fix Version/s 3.0.0 [ 12320357 ]
        Karthik Kambatla (Inactive) made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Chris Nauroth made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Fix Version/s 3.0.0 [ 12320357 ]
        Fix Version/s 2.5.0 [ 12326263 ]
        Resolution Fixed [ 1 ]
        Chris Nauroth made changes -
        Attachment HADOOP-10541.4.patch [ 12643409 ]
        Chris Nauroth made changes -
        Hadoop Flags Reviewed [ 10343 ]
        Swarnim Kulkarni made changes -
        Attachment HADOOP-10541.3.patch.txt [ 12643318 ]
        Swarnim Kulkarni made changes -
        Attachment HADOOP-10541.2.patch.txt [ 12643251 ]
        Chris Nauroth made changes -
        Affects Version/s 2.4.0 [ 12326144 ]
        Affects Version/s 3.0.0 [ 12320357 ]
        Target Version/s 3.0.0, 2.5.0 [ 12320357, 12326263 ]
        Component/s test [ 12311440 ]
        Chris Nauroth made changes -
        Assignee Swarnim Kulkarni [ swarnim ]
        Swarnim Kulkarni made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Swarnim Kulkarni made changes -
        Field Original Value New Value
        Attachment HADOOP-10541.1.patch.txt [ 12642996 ]
        Ted Yu created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development