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

Potential NullPointerException in MRClientProtocol interface implementation.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: