TestInjectionForSimulatedStorage only works on a clean directory structure
--------------------------------------------------------------------------
Key: HADOOP-3900
URL: https://issues.apache.org/jira/browse/HADOOP-3900
Project: Hadoop Core
Issue Type: Bug
Components: test
Reporter: Steve Loughran
I've been getting intermittent failures on
org.apache.hadoop.hdfs.TestInjectionForSimulatedStorage
Timedout while waiting for all blocks to be replicated for
/replication-test-file
java.io.IOException: Timedout while waiting for all blocks to be replicated for
/replication-test-file
at
org.apache.hadoop.hdfs.TestInjectionForSimulatedStorage.waitForBlockReplication(TestInjectionForSimulatedStorage.java:100)
at
org.apache.hadoop.hdfs.TestInjectionForSimulatedStorage.testInjection(TestInjectionForSimulatedStorage.java:151)
Here's how to replicate it: run the test twice.
When run the second time, the trace is full of log messages like :
2008-08-05 11:12:46,108 [EMAIL PROTECTED] INFO datanode.DataNode - Receiving
block blk_-5590567767202552997_1001 src: /127.0.0.1:41792 dest: /127.0.0.1:46976
2008-08-05 11:12:46,108 [EMAIL PROTECTED] INFO datanode.DataNode - writeBlock
blk_-5590567767202552997_1001 received exception java.io.IOException: Block
blk_-5590567767202552997_1001 is valid, and cannot be written to.
2008-08-05 11:12:46,108 [EMAIL PROTECTED] ERROR datanode.DataNode -
DatanodeRegistration(127.0.0.1:46976,
storageID=DS-1340877566-127.0.1.1-0-1217931159994, infoPort=56552,
ipcPort=60571):DataXceiver: java.io.IOException: Block
blk_-5590567767202552997_1001 is valid, and cannot be written to.
at
org.apache.hadoop.hdfs.server.datanode.SimulatedFSDataset.writeToBlock(SimulatedFSDataset.java:370)
at
org.apache.hadoop.hdfs.server.datanode.DataNode$BlockReceiver.<init>(DataNode.java:2405)
at
org.apache.hadoop.hdfs.server.datanode.DataNode$DataXceiver.writeBlock(DataNode.java:1266)
at
org.apache.hadoop.hdfs.server.datanode.DataNode$DataXceiver.run(DataNode.java:1124)
at java.lang.Thread.run(Thread.java:619)
Am I the only person seeing this?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.