[ https://issues.apache.org/jira/browse/HADOOP-2346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12558709#action_12558709 ]
Doug Cutting commented on HADOOP-2346: -------------------------------------- This looks nice! How well does it work? SocketInputStream and SocketOutputStream seem like fine names, but should they be nested classes in IOUtils, or perhaps independent classes in the 'net' package? Also, we might make the error messages in the exceptions a bit more informative, e.g., including the address the socket is connected to, the timeout, etc. > DataNode should have timeout on socket writes. > ---------------------------------------------- > > Key: HADOOP-2346 > URL: https://issues.apache.org/jira/browse/HADOOP-2346 > Project: Hadoop > Issue Type: Bug > Components: dfs > Affects Versions: 0.15.1 > Reporter: Raghu Angadi > Assignee: Raghu Angadi > Attachments: HADOOP-2346.patch > > > If a client opens a file and stops reading in the middle, DataNode thread > writing the data could be stuck forever. For DataNode sockets we set read > timeout but not write timeout. I think we should add a write(data, timeout) > method in IOUtils that assumes it the underlying FileChannel is non-blocking. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.