MAPREDUCE-7156. NullPointerException when reaching max shuffle connections. Contributed by Peter Bacsko
This commit is contained in:
parent
08d69d91f2
commit
ba1f9d66d9
@ -910,6 +910,8 @@ private List<String> splitMaps(List<String> mapq) {
|
||||
@Override
|
||||
public void channelOpen(ChannelHandlerContext ctx, ChannelStateEvent evt)
|
||||
throws Exception {
|
||||
super.channelOpen(ctx, evt);
|
||||
|
||||
if ((maxShuffleConnections > 0) && (accepted.size() >= maxShuffleConnections)) {
|
||||
LOG.info(String.format("Current number of shuffle connections (%d) is " +
|
||||
"greater than or equal to the max allowed shuffle connections (%d)",
|
||||
@ -925,8 +927,6 @@ public void channelOpen(ChannelHandlerContext ctx, ChannelStateEvent evt)
|
||||
return;
|
||||
}
|
||||
accepted.add(evt.getChannel());
|
||||
super.channelOpen(ctx, evt);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user