MAPREDUCE-6528. Memory leak for HistoryFileManager.getJobSummary(). Contributed by Junping Du
(cherry picked from commit 6344b6a769
)
This commit is contained in:
parent
055e11c53e
commit
a7d8895b60
|
@ -390,6 +390,9 @@ Release 2.7.2 - UNRELEASED
|
||||||
avoid FileNotFoundException causing HistoryFileInfo into MOVE_FAILED state.
|
avoid FileNotFoundException causing HistoryFileInfo into MOVE_FAILED state.
|
||||||
(zhihai xu via devaraj)
|
(zhihai xu via devaraj)
|
||||||
|
|
||||||
|
MAPREDUCE-6528. Memory leak for HistoryFileManager.getJobSummary()
|
||||||
|
(Junping Du via jlowe)
|
||||||
|
|
||||||
Release 2.7.1 - 2015-07-06
|
Release 2.7.1 - 2015-07-06
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
@ -620,6 +623,9 @@ Release 2.6.3 - UNRELEASED
|
||||||
avoid FileNotFoundException causing HistoryFileInfo into MOVE_FAILED state.
|
avoid FileNotFoundException causing HistoryFileInfo into MOVE_FAILED state.
|
||||||
(zhihai xu via devaraj)
|
(zhihai xu via devaraj)
|
||||||
|
|
||||||
|
MAPREDUCE-6528. Memory leak for HistoryFileManager.getJobSummary()
|
||||||
|
(Junping Du via jlowe)
|
||||||
|
|
||||||
Release 2.6.2 - 2015-10-21
|
Release 2.6.2 - 2015-10-21
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -966,9 +966,16 @@ public class HistoryFileManager extends AbstractService {
|
||||||
|
|
||||||
private String getJobSummary(FileContext fc, Path path) throws IOException {
|
private String getJobSummary(FileContext fc, Path path) throws IOException {
|
||||||
Path qPath = fc.makeQualified(path);
|
Path qPath = fc.makeQualified(path);
|
||||||
FSDataInputStream in = fc.open(qPath);
|
FSDataInputStream in = null;
|
||||||
String jobSummaryString = in.readUTF();
|
String jobSummaryString = null;
|
||||||
|
try {
|
||||||
|
in = fc.open(qPath);
|
||||||
|
jobSummaryString = in.readUTF();
|
||||||
|
} finally {
|
||||||
|
if (in != null) {
|
||||||
in.close();
|
in.close();
|
||||||
|
}
|
||||||
|
}
|
||||||
return jobSummaryString;
|
return jobSummaryString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue