[ 
https://issues.apache.org/jira/browse/HDFS-6378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13995835#comment-13995835
 ] 

Brandon Li commented on HDFS-6378:
----------------------------------

Ctrl-C can’t kill NFS if portmap is not started:
{noformat}
14/05/08 15:58:06 INFO nfs3.IdUserGroup: Updated user map size:85
14/05/08 15:58:06 INFO nfs3.IdUserGroup: Updated group map size:110
14/05/08 15:58:06 INFO nfs3.WriteManager: Stream timeout is 1ms.
14/05/08 15:58:06 INFO nfs3.WriteManager: Reset stream timeout to minimum value 
10000ms.
14/05/08 15:58:06 INFO nfs3.WriteManager: Maximum open streams is 2
14/05/08 15:58:06 INFO nfs3.OpenFileCtxCache: Maximum open streams is 2
2014-05-08 15:58:07.119 java[19176:1003] Unable to load realm info from 
SCDynamicStore
14/05/08 15:58:07 WARN util.NativeCodeLoader: Unable to load native-hadoop 
library for your platform... using builtin-java classes where applicable
14/05/08 15:58:07 INFO nfs3.RpcProgramNfs3: Create new dump directory 
/tmp/.hdfs-nfs
14/05/08 15:58:07 INFO nfs3.Nfs3Base: NFS server port set to: 2049
14/05/08 15:58:07 INFO oncrpc.SimpleUdpServer: Started listening to UDP 
requests at port 9009 for Rpc program: mountd at localhost:9009 with 
workerCount 1
14/05/08 15:58:07 INFO oncrpc.SimpleTcpServer: Started listening to TCP 
requests at port 9009 for Rpc program: mountd at localhost:9009 with 
workerCount 1
^C14/05/08 15:58:57 ERROR nfs3.Nfs3Base: RECEIVED SIGNAL 2: SIGINT
^C14/05/08 15:59:00 ERROR nfs3.Nfs3Base: RECEIVED SIGNAL 2: SIGINT
^C14/05/08 15:59:03 ERROR nfs3.Nfs3Base: RECEIVED SIGNAL 2: SIGINT
{noformat}

The stack trace:
{noformat}
"main" prio=5 tid=7fe77c000800 nid=0x102a8e000 runnable [102a8d000]
   java.lang.Thread.State: RUNNABLE
        at java.net.PlainDatagramSocketImpl.receive0(Native Method)
        - locked <77df4def8> (a java.net.PlainDatagramSocketImpl)
        at 
java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:188)
        - locked <77df4def8> (a java.net.PlainDatagramSocketImpl)
        at java.net.DatagramSocket.receive(DatagramSocket.java:725)
        - locked <77df4e978> (a java.net.DatagramPacket)
        - locked <77df4cfb8> (a java.net.DatagramSocket)
        at org.apache.hadoop.oncrpc.SimpleUdpClient.run(SimpleUdpClient.java:65)
        at org.apache.hadoop.oncrpc.RpcProgram.register(RpcProgram.java:119)
        at org.apache.hadoop.oncrpc.RpcProgram.register(RpcProgram.java:90)
        at org.apache.hadoop.mount.MountdBase.start(MountdBase.java:77)
        at 
org.apache.hadoop.hdfs.nfs.nfs3.Nfs3.startServiceInternal(Nfs3.java:58)
        at org.apache.hadoop.hdfs.nfs.nfs3.Nfs3.startService(Nfs3.java:66)
        at org.apache.hadoop.hdfs.nfs.nfs3.Nfs3.main(Nfs3.java:70)
{noformat}

> NFS: when portmap/rpcbind is not available, NFS registration should timeout 
> instead of hanging 
> -----------------------------------------------------------------------------------------------
>
>                 Key: HDFS-6378
>                 URL: https://issues.apache.org/jira/browse/HDFS-6378
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: nfs
>            Reporter: Brandon Li
>




--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to