ChenSammi opened a new pull request, #7057: URL: https://github.com/apache/hadoop/pull/7057
### Description of PR https://issues.apache.org/jira/browse/HADOOP-19261 Currently the DomainSocket#close will check the reference count to be 0 before it goes on to close the socket. In server service case, server calls DomainSocket#listen will add 1 to the reference count. When trying to close the server socket which is blocked by accept, the close call will doing endless count > 0 check, which prevent the server socket to be closed. ### How was this patch tested? Improved TestDomainSocket to test the new code. Before the patch, most of tests in TestDomainSocket will take 3 minutes and end up like this  With the patch applied, here is the execution result of TestDomainSocket  -- 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]
