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

InputStream is not closed in AzureNativeFileSystemStore#retrieve()

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.0
    • Component/s: tools
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      In the catch block:

              if(in != null){
                inDataStream.close();
              }
      

      We check against in but try to close inDataStream which should have been closed by the if statement above.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                airbots Chen He
                Reporter:
                yuzhihong@gmail.com Ted Yu
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: