Hadoop Map/Reduce
  1. Hadoop Map/Reduce
  2. MAPREDUCE-5748

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

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor 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.

      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

        No work has yet been logged on this issue.

          People

          • Assignee:
            Varun Saxena
            Reporter:
            Ted Yu
          • Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development