Issue Details (XML | Word | Printable)

Key: HADOOP-2658
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: dhruba borthakur
Reporter: dhruba borthakur
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Hadoop Common

Design and Implement a Test Plan to support appends to HDFS files

Created: 18/Jan/08 06:14 PM   Updated: 08/Jul/09 04:42 PM
Return to search
Component/s: test
Affects Version/s: None
Fix Version/s: 0.19.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works 20081008testplan.txt 2008-10-08 11:41 PM Tsz Wo (Nicholas), SZE 4 kB
Text File Licensed for inclusion in ASF works 20081017testplan.txt 2008-10-17 09:07 PM Tsz Wo (Nicholas), SZE 5 kB
Text File append_testplan.txt 2008-09-26 05:59 PM Nigel Daley 4 kB
Microsoft Word Licensed for inclusion in ASF works AppendTestCase.doc 2008-09-25 04:50 PM dhruba borthakur 107 kB
Microsoft Word Licensed for inclusion in ASF works AppendTestCase.doc 2008-09-22 11:41 PM dhruba borthakur 106 kB
Java Source File Licensed for inclusion in ASF works TestFileAppend3_TC7.java 2008-10-15 01:19 AM Tsz Wo (Nicholas), SZE 4 kB
Issue Links:
Blocker
 
Dependants
 
Reference
 

Resolution Date: 21/Oct/08 07:00 PM


 Description  « Hide
HADOOP-1700 describes the design of supporting appends to HDFS files. This feature needs extensive testing, especially because the design explicitly analyzes many failure scenarios. A detailed test plan and test cases are needed to make this feature a reality.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Nigel Daley added a comment - 19/Sep/08 07:28 PM
Dhruba, weren't you going to write a test plan?

dhruba borthakur added a comment - 19/Sep/08 07:36 PM
Test Plan in the works, but not ready yet. Will post in the next 4 days.

stack added a comment - 23/Sep/08 09:43 PM
+1 on the appendtestcase.doc (You might want to add author, date, and link to this issue Dhruba).

dhruba borthakur added a comment - 25/Sep/08 04:50 PM
Incorporated feedback from Stack. Thanks.

Tsz Wo (Nicholas), SZE added a comment - 25/Sep/08 08:17 PM
There are a few append-related tests failed occasionally. Linking the to this issue.

Nigel Daley added a comment - 26/Sep/08 05:59 PM
Attaching latest test plan in a non-proprietary file format.

Tsz Wo (Nicholas), SZE added a comment - 08/Oct/08 11:41 PM
20081008testplan.txt

I went thought each test in the test plan. We already have unit tests for some of the items. Some items need new unit tests. The remaining items need manual tests.


Chris Douglas added a comment - 10/Oct/08 12:49 AM - edited
[ edit - sorry, wrong JIRA ]

Chris Douglas added a comment - 13/Oct/08 04:58 AM
Manual tests for items 4 and 14 passed, but 7 failed with the following exception:
08/10/13 04:53:20 WARN hdfs.DFSClient: DFSOutputStream ResponseProcessor exception  for block blk_-2897952013639714624_1002java.io.IOException: Connection reset by peer
        at sun.nio.ch.FileDispatcher.read0(Native Method)
        at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21)
        at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233)
        at sun.nio.ch.IOUtil.read(IOUtil.java:206)
        at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:236)
        at org.apache.hadoop.net.SocketInputStream$Reader.performIO(SocketInputStream.java:55)
        at org.apache.hadoop.net.SocketIOWithTimeout.doIO(SocketIOWithTimeout.java:140)
        at org.apache.hadoop.net.SocketInputStream.read(SocketInputStream.java:150)
        at org.apache.hadoop.net.SocketInputStream.read(SocketInputStream.java:123)
        at java.io.DataInputStream.readFully(DataInputStream.java:178)
        at java.io.DataInputStream.readLong(DataInputStream.java:399)
        at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream$ResponseProcessor.run(DFSClient.java:2307)

08/10/13 04:53:20 WARN hdfs.DFSClient: Error Recovery for block blk_-2897952013639714624_1002 bad datanode[0] 67.195.209.61:50010
08/10/13 04:53:20 WARN hdfs.DFSClient: Error Recovery for block blk_-2897952013639714624_1002 in pipeline 67.195.209.61:50010, 67.195.209.109:50010: bad datanode 67.195.209.61:50010
08/10/13 04:53:20 WARN hdfs.DFSClient: DFSOutputStream ResponseProcessor exception  for block blk_-2897952013639714624_1003java.io.IOException: Connection reset by peer
        at sun.nio.ch.FileDispatcher.read0(Native Method)
        at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21)
        at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233)
        at sun.nio.ch.IOUtil.read(IOUtil.java:206)
        at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:236)
        at org.apache.hadoop.net.SocketInputStream$Reader.performIO(SocketInputStream.java:55)
        at org.apache.hadoop.net.SocketIOWithTimeout.doIO(SocketIOWithTimeout.java:140)
        at org.apache.hadoop.net.SocketInputStream.read(SocketInputStream.java:150)
        at org.apache.hadoop.net.SocketInputStream.read(SocketInputStream.java:123)
        at java.io.DataInputStream.readFully(DataInputStream.java:178)
        at java.io.DataInputStream.readLong(DataInputStream.java:399)
        at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream$ResponseProcessor.run(DFSClient.java:2307)

08/10/13 04:53:20 WARN hdfs.DFSClient: Error Recovery for block blk_-2897952013639714624_1003 bad datanode[0] 67.195.209.109:50010

The remaining, good replica was lost.


Tsz Wo (Nicholas), SZE added a comment - 15/Oct/08 01:19 AM
TestFileAppend3_TC7.java: implemented TC7. Trunk cannot pass this test.

Tsz Wo (Nicholas), SZE added a comment - 15/Oct/08 08:45 PM
TC7 failed is because DataNode.getBlockMetaDataInfo(Block) does not aware the block is corrupted and it returns a BlockMetaDataInfo with the corrupted information.

Tsz Wo (Nicholas), SZE added a comment - 17/Oct/08 09:07 PM
The problem discovered by TC7 is now fixed by HADOOP-4423.

See 20081017testplan.txt for the test plan updates.


Robert Chansler added a comment - 21/Oct/08 07:00 PM
OK by Nigel and I!