[
https://issues.apache.org/jira/browse/HDFS-415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12731167#action_12731167
]
Konstantin Boudnik commented on HDFS-415:
-----------------------------------------
Late comment:
- this patch doesn't have new unit tests for its correctness is verifiable by
the existing test TestDirectoryScanner when BlockReceiver's fault throws
RuntimeException.
Test should fail in this case rather than merely hang forever. This method has
been used to verify the correctness of the patch.
> Unchecked exception thrown inside of BlockReceiver cause some threads hang
> --------------------------------------------------------------------------
>
> Key: HDFS-415
> URL: https://issues.apache.org/jira/browse/HDFS-415
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Konstantin Boudnik
> Assignee: Konstantin Boudnik
> Fix For: 0.21.0
>
> Attachments: copy.txt.log, HADOOP-6073.patch, HADOOP-6073.patch, x2
>
>
> One is able to inject all sorts of faults into Hadoop's classes using new
> fault injection framework (HADOOP-6003).
> I've been injecting unchecked exception (RuntimeException) into
> BlockReceiver.receivePacket() method before any
> of write() operations (e.g. line 401, 449, 463, 529) and running some of
> the existing HDFS tests. The injection of unchecked exceptions causes
> DataXceiver to die silently and without any traces.
> From a debugger run it seems like some threads are being left alive or not
> notified about the exception.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.