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] [Updated] (HDFS-12339) NFS Gateway on Shutdown Gives Unregistration Failure. Does Not Unregister with rpcbind Portmapper
Date Fri, 01 Sep 2017 16:27:00 GMT

     [ https://issues.apache.org/jira/browse/HDFS-12339?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mukul Kumar Singh updated HDFS-12339:
-------------------------------------
    Attachment: HDFS-12339.001.patch

Please find the attached patch which fixes this issue.

I have tested this my starting a nfs server using ambari. Without this patch I was able to
reproduce the issue.

Also after the patch, the nfs and mountd daemon are un-regisered.

{code}
[vagrant@c6803 ~]$ rpcinfo -p
   program vers proto   port  service
    100000    4   tcp    111  portmapper
    100000    3   tcp    111  portmapper
    100000    2   tcp    111  portmapper
    100000    4   udp    111  portmapper
    100000    3   udp    111  portmapper
    100000    2   udp    111  portmapper
    100024    1   udp  48682  status
    100024    1   tcp  60059  status
{code}

Following is the snippet of the nfs3 logs after the fix.
{code}
2017-09-01 16:06:39,902 INFO  http.HttpServer2 (HttpServer2.java:bindListener(989)) - Jetty
bound to port 50079                                                                      
                  
2017-09-01 16:06:39,907 INFO  mortbay.log (Slf4jLog.java:info(67)) - jetty-6.1.26.hwx    
                                                                                         
                    
2017-09-01 16:06:41,397 INFO  mortbay.log (Slf4jLog.java:info(67)) - Started HttpServer2$SelectChannelConnectorWithSafeStartup@0.0.0.0:50079
                                                           
2017-09-01 16:06:41,413 INFO  oncrpc.SimpleTcpServer (SimpleTcpServer.java:run(92)) - Started
listening to TCP requests at port 2049 for Rpc program: NFS3 at localhost:2049 with workerCount
0         
2017-09-01 16:12:08,534 INFO  nfs3.AsyncDataService (AsyncDataService.java:shutdown(85)) -
Shutting down all async data service threads...                                          
                   
2017-09-01 16:12:08,535 INFO  nfs3.AsyncDataService (AsyncDataService.java:shutdown(90)) -
All async data service threads have been shut down                                       
                   
2017-09-01 16:12:08,535 INFO  nfs3.OpenFileCtxCache (OpenFileCtxCache.java:run(265)) - StreamMonitor
got interrupted                                                                          
         
2017-09-01 16:12:08,549 INFO  mortbay.log (Slf4jLog.java:info(67)) - Stopped HttpServer2$SelectChannelConnectorWithSafeStartup@0.0.0.0:50079
                                                           
2017-09-01 16:12:08,550 WARN  http.HttpServer2 (HttpServer2.java:isRunning(544)) - HttpServer
Acceptor: isRunning is false. Rechecking.                                                
                
2017-09-01 16:12:08,552 WARN  http.HttpServer2 (HttpServer2.java:isRunning(553)) - HttpServer
Acceptor: isRunning is false                                                             
                
2017-09-01 16:12:08,700 INFO  nfs3.Nfs3Base (LogAdapter.java:info(45)) - SHUTDOWN_MSG:   
          
/************************************************************                            
          
SHUTDOWN_MSG: Shutting down Nfs3 at c6803.ambari.apache.org/192.168.68.103               
          
************************************************************/ 
{code}

> 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