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

Potential null pointer dereference in ShuffleHandler#Shuffle#messageReceived()

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Not A Problem
    • Affects Version/s: 2.7.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Target Version/s:

      Description

      Starting around line 510:

            ChannelFuture lastMap = null;
            for (String mapId : mapIds) {
      ...
            }
            lastMap.addListener(metrics);
            lastMap.addListener(ChannelFutureListener.CLOSE);
      

      If mapIds is empty, lastMap would remain null, leading to NPE in addListener() call.

        Attachments

        1. MAPREDUCE-5748.03.patch
          5 kB
          Varun Saxena
        2. MAPREDUCE-5748.02.patch
          5 kB
          Varun Saxena
        3. 0001-MAPREDUCE-5748-Potential-null-pointer-deference-in-S.patch
          5 kB
          Hussein Baghdadi

          Activity

            People

            • Assignee:
              varun_saxena Varun Saxena
              Reporter:
              yuzhihong@gmail.com Ted Yu
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: