hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sailesh Patel (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-12339) NFS Gateway on Shutdown Gives Unregistration Failure. Does Not Unregister with rpcbind Portmapper
Date Wed, 23 Aug 2017 03:19:00 GMT

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

Sailesh Patel commented on HDFS-12339:
--------------------------------------

2017-08-22 18:40:02,817 TRACE org.apache.hadoop.oncrpc.RpcCall: Xid:-2139249408, messageType:RPC_CALL,
rpcVersion:2, program:100000, version:2, procedure:2, credential:(AuthFlavor:AUTH_NONE), verifier:(AuthFlavor:AUTH_NONE)
2017-08-22 18:40:02,818 ERROR org.apache.hadoop.oncrpc.RpcProgram: Unregistration failure
with localhost:2049, portmap entry: (PortmapMapping-100003:3:6:2049)
2017-08-22 18:40:02,820 WARN org.apache.hadoop.util.ShutdownHookManager: ShutdownHook 'NfsShutdownHook'
failed, java.lang.RuntimeException: Unregistration failure
java.lang.RuntimeException: Unregistration failure
at org.apache.hadoop.oncrpc.RpcProgram.register(RpcProgram.java:135)
at org.apache.hadoop.oncrpc.RpcProgram.unregister(RpcProgram.java:118)
at org.apache.hadoop.nfs.nfs3.Nfs3Base$NfsShutdownHook.run(Nfs3Base.java:80)
at org.apache.hadoop.util.ShutdownHookManager$1.run(ShutdownHookManager.java:54)
Caused by: java.net.SocketException: Socket is closed
at java.net.DatagramSocket.send(DatagramSocket.java:641)
at org.apache.hadoop.oncrpc.SimpleUdpClient.run(SimpleUdpClient.java:62)
at org.apache.hadoop.oncrpc.RpcProgram.register(RpcProgram.java:130)
... 3 more
2017-08-22 18:40:02,898 TRACE org.apache.hadoop.oncrpc.RpcCall: Xid:-690614368, messageType:RPC_CALL,
rpcVersion:2, program:100000, version:2, procedure:2, credential:(AuthFlavor:AUTH_NONE), verifier:(AuthFlavor:AUTH_NONE)
2017-08-22 18:40:02,899 ERROR org.apache.hadoop.oncrpc.RpcProgram: Unregistration failure
with localhost:4242, portmap entry: (PortmapMapping-100005:1:17:4242)
2017-08-22 18:40:02,899 WARN org.apache.hadoop.util.ShutdownHookManager: ShutdownHook 'Unregister'
failed, java.lang.RuntimeException: Unregistration failure
java.lang.RuntimeException: Unregistration failure
at org.apache.hadoop.oncrpc.RpcProgram.register(RpcProgram.java:135)
at org.apache.hadoop.oncrpc.RpcProgram.unregister(RpcProgram.java:118)
at org.apache.hadoop.mount.MountdBase$Unregister.run(MountdBase.java:100)
at org.apache.hadoop.util.ShutdownHookManager$1.run(ShutdownHookManager.java:54)
Caused by: java.net.SocketException: Socket is closed
at java.net.DatagramSocket.send(DatagramSocket.java:641)
at org.apache.hadoop.oncrpc.SimpleUdpClient.run(SimpleUdpClient.java:62)
at org.apache.hadoop.oncrpc.RpcProgram.register(RpcProgram.java:130)
... 3 more
2017-08-22 18:40:02,900 INFO org.apache.hadoop.nfs.nfs3.Nfs3Base: SHUTDOWN_MSG:
 

Further testing:
----------------
1. service rpcbind stop
2. start rpcbind in debug mode in foreground: rpcbind -d
3. start NFS Gateway 
4. rpcbind will show the registrations calls made similar to:

PMAP_SET request for (100005, 1) : Checking caller's adress (port = 40)
PMAP_SET request for (100005, 2) : Checking caller's adress (port = 40)
PMAP_SET request for (100005, 3) : Checking caller's adress (port = 40)
PMAP_SET request for (100005, 1) : Checking caller's adress (port = 40)
PMAP_SET request for (100005, 2) : Checking caller's adress (port = 40)
PMAP_SET request for (100005, 3) : Checking caller's adress (port = 40)
PMAP_SET request for (100003, 3) : Checking caller's adress (port = 40)

rpcinfo -p shows:
100005 1 udp 4242 mountd
100005 2 udp 4242 mountd
100005 3 udp 4242 mountd
100005 1 tcp 4242 mountd
100005 2 tcp 4242 mountd
100005 3 tcp 4242 mountd
100003 3 tcp 2049 nfs

5. Stop NFS Gateway 

    Notice the errors in NFS Gateway Role log
    Notice no unregistration calls arrived to rpcbind


> NFS Gateway on Shutdown Gives Unregistration Failure. Does Not Unregister with rpcbind
Portmapper
> -------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-12339
>                 URL: https://issues.apache.org/jira/browse/HDFS-12339
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 2.6.0
>            Reporter: Sailesh Patel
>
> When stopping NFS Gateway the following error is thrown in the NFS gateway role logs.
> 2017-08-17 18:09:16,529 ERROR org.apache.hadoop.oncrpc.RpcProgram: Unregistration failure
with localhost:2049, portmap entry: (PortmapMapping-100003:3:6:2049)
> 2017-08-17 18:09:16,531 WARN org.apache.hadoop.util.ShutdownHookManager: ShutdownHook
'NfsShutdownHook' failed, java.lang.RuntimeException: Unregistration failure
> java.lang.RuntimeException: Unregistration failure
> ..
> Caused by: java.net.SocketException: Socket is closed
> at java.net.DatagramSocket.send(DatagramSocket.java:641)
> at org.apache.hadoop.oncrpc.SimpleUdpClient.run(SimpleUdpClient.java:62)
> Checking rpcinfo -p : the following entry is still there:
> " 100003 3 tcp 2049 nfs"



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message