[
https://issues.apache.org/jira/browse/HDFS-5973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13905965#comment-13905965
]
Colin Patrick McCabe commented on HDFS-5973:
--------------------------------------------
This is a pretty simple one. Just exposing the existing code which calls
{{shutdown(2)}} on a socket.
This is to allow me to shutdown the UNIX domain socket associated with a shared
memory segment for error handling purposes. {{close}} could be used for this
purpose, but it's a little more heavyweight than what I need here, since
{{DomainSocket#close}} blocks until the fd is actually, well, closed. Since
the UNIX domain socket associated with a shared memory segment is inside a
{{DomainSocketWatcher}}, it can't be actually closed until the
{{DomainSocketWatcher}} lets go of it.
> add DomainSocket#shutdown method
> --------------------------------
>
> Key: HDFS-5973
> URL: https://issues.apache.org/jira/browse/HDFS-5973
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: hdfs-client
> Affects Versions: 2.4.0
> Reporter: Colin Patrick McCabe
> Assignee: Colin Patrick McCabe
> Attachments: HDFS-5973.001.patch
>
>
> Add a DomainSocket#shutdown method, that allows us to call shutdown on UNIX
> domain sockets.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)