Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0A1C7200C38 for ; Wed, 15 Mar 2017 18:54:48 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 08D2D160B8D; Wed, 15 Mar 2017 17:54:48 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4F38A160B60 for ; Wed, 15 Mar 2017 18:54:47 +0100 (CET) Received: (qmail 31619 invoked by uid 500); 15 Mar 2017 17:54:46 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 31595 invoked by uid 99); 15 Mar 2017 17:54:45 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Mar 2017 17:54:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 70E8B1818CF for ; Wed, 15 Mar 2017 17:54:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.651 X-Spam-Level: X-Spam-Status: No, score=0.651 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id i4dLaSQp0eh5 for ; Wed, 15 Mar 2017 17:54:44 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id ECD005F295 for ; Wed, 15 Mar 2017 17:54:43 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 47500E030C for ; Wed, 15 Mar 2017 17:54:42 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id B5224243A6 for ; Wed, 15 Mar 2017 17:54:41 +0000 (UTC) Date: Wed, 15 Mar 2017 17:54:41 +0000 (UTC) From: "Mukul Kumar Singh (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HDFS-11533) reuseAddress option should be used for child channels in Portmap and SimpleTcpServer MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 15 Mar 2017 17:54:48 -0000 Mukul Kumar Singh created HDFS-11533: ---------------------------------------- Summary: reuseAddress option should be used for child channels= in Portmap and SimpleTcpServer Key: HDFS-11533 URL: https://issues.apache.org/jira/browse/HDFS-11533 Project: Hadoop HDFS Issue Type: Bug Components: nfs Reporter: Mukul Kumar Singh Assignee: Mukul Kumar Singh Bind can fail in SimpleTcpServer because reuseAddress option is not used fo= r child channels. Binding to the port for child channels can fail because t= his option is currently only set for parent channel. This options is not needed in SimpleUdpServer, Portmap(udpServer) as they use ConnectionlessBootstrap, where the child option is not needed https://docs.jboss.org/netty/3.2/api/org/jboss/netty/bootstrap/Connectionle= ssBootstrap.html However Portmap(tcpServer) and SimpleTcpServer uses ServerBootstrap, where the child option is needed https://docs.jboss.org/netty/3.2/api/org/jboss/netty/bootstrap/ServerBootst= rap.html {noformat} Started listening to UDP requests at port 4242 for Rpc program: mountd at l= ocalhost:4242 with workerCount 1\n2017-03-13 07:11:52,970 FATAL mount.Mount= dBase (MountdBase.java:startTCPServer(85)) - Failed to start the TCP server= .\norg.jboss.netty.channel.ChannelException: Failed to bind to: 0.0.0.0/0.0= .0.0:4242\n\tat org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootst= rap.java:272)\n\tat org.apache.hadoop.oncrpc.SimpleTcpServer.run(SimpleTcpS= erver.java:87)\n\tat org.apache.hadoop.mount.MountdBase.startTCPServer(Moun= tdBase.java:83)\n\tat org.apache.hadoop.mount.MountdBase.start(MountdBase.j= ava:98)\n\tat org.apache.hadoop.hdfs.nfs.nfs3.Nfs3.startServiceInternal(Nfs= 3.java:56)\n\tat org.apache.hadoop.hdfs.nfs.nfs3.Nfs3.startService(Nfs3.jav= a:69)\n\tat org.apache.hadoop.hdfs.nfs.nfs3.PrivilegedNfsGatewayStarter.sta= rt(PrivilegedNfsGatewayStarter.java:71)\n\tat sun.reflect.NativeMethodAcces= sorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.i= nvoke(NativeMethodAccessorImpl.java:62)\n\tat sun.reflect.DelegatingMethodA= ccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.re= flect.Method.invoke(Method.java:498)\n\tat org.apache.commons.daemon.suppor= t.DaemonLoader.start(DaemonLoader.java:243)\nCaused by: java.net.BindExcept= ion: Address already in use\n\tat sun.nio.ch.Net.bind0(Native Method)\n\tat= sun.nio.ch.Net.bind(Net.java:433)\n\tat sun.nio.ch.Net.bind(Net.java:425)\= n\tat sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:= 223)\n\tat sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)= \n\tat org.jboss.netty.channel.socket.nio.NioServerBoss$RegisterTask.run(Ni= oServerBoss.java:193)\n\tat org.jboss.netty.channel.socket.nio.AbstractNioS= elector.processTaskQueue(AbstractNioSelector.java:366)\n\tat org.jboss.nett= y.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:290)\= n\tat org.jboss.netty.channel.socket.nio.NioServerBoss.run(NioServerBoss.ja= va:42)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolEx= ecutor.java:1142)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(= ThreadPoolExecutor.java:617)\n\tat java.lang.Thread.run(Thread.java:745)\n2= 017-03-13 07:11:52,984 INFO util.ExitUtil (ExitUtil.java:terminate(124)) -= Exiting with status 1\n2017-03-13 07:11:52,987 INFO nfs3.Nfs3Base (LogAda= pter.java:info(45)) - SHUTDOWN_MSG:=20 {noformat} -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org