Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
0.20.1, 0.23.0
-
None
-
None
-
Reviewed
Description
In doGet Method,
final DFSInputStream in = dfs.open(filename);
final long fileLen = in.getFileLength();
OutputStream os = response.getOutputStream();
Here this lines are present at out side of the try block.
If response.getOutputStream() throws any exception then DFSInputStream will not be closed.So, better to move response.getOutputStream() into try block.
Attachments
Attachments
Issue Links
- is related to
-
MAPREDUCE-2631 Potential resource leaks in BinaryProtocol$TeeOutputStream.java
- Resolved