Hadoop Common
  1. Hadoop Common
  2. HADOOP-10689

InputStream is not closed in AzureNativeFileSystemStore#retrieve()

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor 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.

        Issue Links

          Activity

            People

            • Assignee:
              Chen He
              Reporter:
              Ted Yu
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development