Issue Details (XML | Word | Printable)

Key: HADOOP-3161
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Nigel Daley
Reporter: Nigel Daley
Votes: 0
Watchers: 0
Operations

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

TestFileAppend fails on Mac since HADOOP-2655 was committed

Created: 03/Apr/08 04:14 AM   Updated: 21/May/08 08:06 PM
Return to search
Component/s: test
Affects Version/s: 0.17.0
Fix Version/s: 0.17.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works HADOOP-3161.patch 2008-04-03 04:20 AM Nigel Daley 1 kB
Issue Links:
Blocker
 

Hadoop Flags: Reviewed
Resolution Date: 04/Apr/08 03:40 AM


 Description  « Hide
org.apache.hadoop.dfs.TestFileAppend.testCopyOnWrite fails with this exception:

java.io.IOException: stat: illegal option – c
at org.apache.hadoop.fs.FileUtil$HardLink.getLinkCount(FileUtil.java:557)
at org.apache.hadoop.dfs.DatanodeBlockInfo.detachBlock(DatanodeBlockInfo.java:117)
at org.apache.hadoop.dfs.FSDataset.detachBlock(FSDataset.java:652)
at org.apache.hadoop.dfs.TestFileAppend.testCopyOnWrite(TestFileAppend.java:188)

Mac command should be
stat -f$l



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Nigel Daley added a comment - 03/Apr/08 04:20 AM
Adds OS_TYPE_MAC to FileUtil so file system commands can be properly specified for the Mac.

Without this patch, TestFileAppend fails (since Feb 26). With this patch that test passes.


Nigel Daley added a comment - 03/Apr/08 04:22 AM
Dhruba, can you review this?

dhruba borthakur added a comment - 03/Apr/08 05:26 AM
CopyOnWrite is needed for appends.

Hadoop QA added a comment - 03/Apr/08 04:53 PM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12379228/HADOOP-3161.patch
against trunk revision 643282.

@author +1. The patch does not contain any @author tags.

tests included -1. The patch doesn't appear to include any new or modified tests.
Please justify why no tests are needed for this patch.

javadoc +1. The javadoc tool did not generate any warning messages.

javac +1. The applied patch does not generate any new javac compiler warnings.

release audit +1. The applied patch does not generate any new release audit warnings.

findbugs +1. The patch does not introduce any new Findbugs warnings.

core tests +1. The patch passed core unit tests.

contrib tests +1. The patch passed contrib unit tests.

Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2140/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2140/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2140/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2140/console

This message is automatically generated.


dhruba borthakur added a comment - 03/Apr/08 05:48 PM
+1. Code looks good.

Owen O'Malley added a comment - 04/Apr/08 03:40 AM
I just committed this. Thanks, Nigel!

Hudson added a comment - 05/Apr/08 12:13 PM