LiuGuH opened a new pull request, #6502:
URL: https://github.com/apache/hadoop/pull/6502

   <!--
     Thanks for sending a pull request!
       1. If this is your first time, please read our contributor guidelines: 
https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute
       2. Make sure your PR title starts with JIRA issue id, e.g., 
'HADOOP-17799. Your PR title ...'.
   -->
   
   ### Description of PR
   JIRA: [HDFS-17357](https://issues.apache.org/jira/browse/HDFS-17357)
   
   
   NioInetPeer.close()  now do not close socket connection.  
   
   
   In my environment,all data were stored with EC.
   
   And I found 3w+ connections leakage in datanode . And I found many warn 
message as blew.
   
   2024-01-22 15:27:57,500 WARN 
org.apache.hadoop.hdfs.server.datanode.DataNode: 
hostname:50010:DataXceiverServer
   
   
   When any Exception is found in DataXceiverServer, it will execute 
clostStream.
   
   IOUtils.closeStream(peer)    -> Peer.close() -> NioInetPeer.close() 
   
   But NioInetPeer.close()  is not invoked with  close socket connection. And 
this will lead to connection leakage.
   
   And Other subClass of Peer's close() is implemented with socket.close().  
See EncryptedPeer, DomainPeer, BasicInetPeer
   
   
   
   ### How was this patch tested?
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to