Description
.TestFiDataTransferProtocol2#pipeline_Fi_18 sometimes fails with the following error:
junit.framework.AssertionFailedError:
at org.apache.hadoop.hdfs.server.datanode.TestFiDataTransferProtocol2.runTest17_19(TestFiDataTransferProtocol2.java:139)
at org.apache.hadoop.hdfs.server.datanode.TestFiDataTransferProtocol2.pipeline_Fi_18(TestFiDataTransferProtocol2.java:186)
Which means that the test did not trigger pipeline recovery. The test log shows that there is no fault injected to the pipeline. It turns out there is a bug in the test code. Counting down 3 means inject a fault when receiving the fourth packet. But the code allows the file to have only 3 packets.
Attachments
Attachments
Issue Links
- relates to
-
HDFS-483 Data transfer (aka pipeline) implementation cannot tolerate exceptions
- Closed