hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mukul Kumar Singh (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-12339) NFS Gateway on Shutdown Gives Unregistration Failure. Does Not Unregister with rpcbind Portmapper
Date Fri, 01 Sep 2017 16:56:00 GMT

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

Mukul Kumar Singh commented on HDFS-12339:
------------------------------------------

The issue in the current code is that for {{PrivilegedNfsGatewayStarter}}, the registration
socket is closed as part of destroy.

{code}
  @Override
  public void destroy() {
    if (registrationSocket != null && !registrationSocket.isClosed()) {
      registrationSocket.close();
    }
  }
{code}

Where as the shutdown hook later uses this closed port to unregister the services. Hence causing
the error in the logs.

> 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
>          Components: nfs
>    Affects Versions: 2.6.0
>            Reporter: Sailesh Patel
>            Assignee: Mukul Kumar Singh
>         Attachments: HDFS-12339.001.patch
>
>
> 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