hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rohith (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MAPREDUCE-6160) Potential NullPointerException in MRClientProtocol interface implementation.
Date Wed, 12 Nov 2014 09:37:34 GMT
Rohith created MAPREDUCE-6160:

             Summary: Potential NullPointerException in MRClientProtocol interface implementation.
                 Key: MAPREDUCE-6160
                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-6160
             Project: Hadoop Map/Reduce
          Issue Type: Bug
            Reporter: Rohith
            Assignee: Rohith

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;

This message was sent by Atlassian JIRA

View raw message