Skip to content

Commit

Permalink
HIVE-16737: LLAP: Shuffle handler TCP listen queue overflows (Prasant…
Browse files Browse the repository at this point in the history
…h Jayachandran reviewed by Rajesh Balamohan)
  • Loading branch information
prasanthj committed May 24, 2017
1 parent f81031c commit 1bdc541
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@
import org.jboss.netty.util.HashedWheelTimer;
import org.jboss.netty.util.Timer;

import io.netty.util.NetUtil;

public class ShuffleHandler implements AttemptRegistrationListener {

private static final Logger LOG = LoggerFactory.getLogger(ShuffleHandler.class);
Expand Down Expand Up @@ -327,6 +329,7 @@ public void start() throws Exception {
throw new RuntimeException(ex);
}
bootstrap.setPipelineFactory(pipelineFact);
bootstrap.setOption("backlog", NetUtil.SOMAXCONN);
port = conf.getInt(SHUFFLE_PORT_CONFIG_KEY, DEFAULT_SHUFFLE_PORT);
Channel ch = bootstrap.bind(new InetSocketAddress(port));
accepted.add(ch);
Expand All @@ -336,7 +339,8 @@ public void start() throws Exception {
if (dirWatcher != null) {
dirWatcher.start();
}
LOG.info("LlapShuffleHandler" + " listening on port " + port);
LOG.info("LlapShuffleHandler" + " listening on port " + port + " (SOMAXCONN: " + bootstrap.getOption("backlog")
+ ")");
}

public static void initializeAndStart(Configuration conf) throws Exception {
Expand Down

0 comments on commit 1bdc541

Please sign in to comment.