hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allen Wittenauer (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (MAPREDUCE-5748) Potential null pointer deference in ShuffleHandler#Shuffle#messageReceived()
Date Wed, 06 May 2015 03:36:05 GMT

     [ https://issues.apache.org/jira/browse/MAPREDUCE-5748?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Allen Wittenauer updated MAPREDUCE-5748:
----------------------------------------
    Labels: BB2015-05-TBR  (was: )

> Potential null pointer deference in ShuffleHandler#Shuffle#messageReceived()
> ----------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-5748
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-5748
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Priority: Minor
>              Labels: BB2015-05-TBR
>         Attachments: 0001-MAPREDUCE-5748-Potential-null-pointer-deference-in-S.patch
>
>
> Starting around line 510:
> {code}
>       ChannelFuture lastMap = null;
>       for (String mapId : mapIds) {
> ...
>       }
>       lastMap.addListener(metrics);
>       lastMap.addListener(ChannelFutureListener.CLOSE);
> {code}
> If mapIds is empty, lastMap would remain null, leading to NPE in addListener() call.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message