Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-6160

Potential NullPointerException in MRClientProtocol interface implementation.

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.7.0
    • 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;
      

      Attachments

        1. MAPREDUCE-6160.1.patch
          24 kB
          Rohith Sharma K S
        2. MAPREDUCE-6160.2.patch
          15 kB
          Rohith Sharma K S
        3. MAPREDUCE-6160.3.patch
          14 kB
          Rohith Sharma K S
        4. MAPREDUCE-6160.patch
          15 kB
          Rohith Sharma K S
        5. MAPREDUCE-6160.patch
          12 kB
          Rohith Sharma K S

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            rohithsharma Rohith Sharma K S
            rohithsharma Rohith Sharma K S
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment