Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
0.22.0, 0.23.0
-
None
-
NA
-
Reviewed
Description
In the following classes streams should be closed in finally block to avoid their leakage in the exceptional cases.
CompletedJobStatusStore.java
------------------------------------------
dataOut.writeInt(events.length);
for (TaskCompletionEvent event : events)
dataOut.close() ;
EventWriter.java
----------------------
encoder.flush();
out.close();
MapTask.java
-------------------
splitMetaInfo.write(out);
out.close();
TaskLog
------------
1) str = fis.readLine();
fis.close();
2) dos.writeBytes(Long.toString(new File(logLocation, LogName.SYSLOG
.toString()).length() - prevLogLength) + "\n");
dos.close();
TotalOrderPartitioner.java
-----------------------------------
while (reader.next(key, value))
reader.close();