Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
Description
In the implementation of MRClientProtocol, many methods can throw NullPointerExceptions. Instead of NullPointerExceptions, better to throw IOException with proper message.
In the HistoryClientService class and MRClientService class has #verifyAndGetJob() method that return job object as null.
getTaskReport(GetTaskReportRequest request) throws IOException; getTaskAttemptReport(GetTaskAttemptReportRequest request) throws IOException; getCounters(GetCountersRequest request) throws IOException; getTaskAttemptCompletionEvents(GetTaskAttemptCompletionEventsRequest request) throws IOException; getTaskReports(GetTaskReportsRequest request) throws IOException; getDiagnostics(GetDiagnosticsRequest request) throws IOException;