[
https://issues.apache.org/jira/browse/HDFS-5806?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13879273#comment-13879273
]
Nathan Roberts commented on HDFS-5806:
--------------------------------------
Andrew, thanks for taking a look. Sorry about not mentioning the testing.
Didn't have great ideas on how to test. Basically did the following
- Changed balancer so that sotimeout was 1 second
- Changed balancer so that sleeptime between iterations was 2 seconds
- Changed dispatch() within balancer to randomly not send the request - this
causes the response read to timeout due to sotimeout
- Made sure TestBalancer still worked
> balancer should set SoTimeout to avoid indefinite hangs
> -------------------------------------------------------
>
> Key: HDFS-5806
> URL: https://issues.apache.org/jira/browse/HDFS-5806
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: balancer
> Affects Versions: 3.0.0, 2.2.0
> Reporter: Nathan Roberts
> Assignee: Nathan Roberts
> Attachments: HDFS-5806.patch
>
>
> Simple patch to avoid the balancer hanging when datanode stops responding to
> requests.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)