hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sanjay Radia (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-6327) Fix build error for one of the FileContext errors
Date Thu, 22 Oct 2009 07:52:59 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-6327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12768596#action_12768596
] 

Sanjay Radia commented on HADOOP-6327:
--------------------------------------

The test fails probably because of left over from a previous runs of the same test which does
not cleanup /tmp/existingDir

There is another problem with the test. It replies on the system property test.build.data
- in its absence it sets the default 
test dir to /tmp like many of our other tests.
The default should  really be build/test/data relative to the working dir.

The attached patch fixes this and cleans up the testWorkingDir.
While testing this patch I ran into another bug in TEST_X_FILTER which is also fixed in the
patch.


This path REQUIRES a minior fix to the HDFS test that uses the same base class.
The attached patch should be followed by patch to HDFS (see attached).

> Fix build error for one of the FileContext errors
> -------------------------------------------------
>
>                 Key: HADOOP-6327
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6327
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Sanjay Radia
>            Assignee: Sanjay Radia
>         Attachments: buildError-hdfs.patch, buildError.patch
>
>
> The build fails in Hudson
> org.apache.hadoop.fs.TestLocalFSFileContextMainOperations.testWorkingDirectory  (from
TestLocalFSFileContextMainOperations)
> Failing for the past 5 builds (Since Failed#272 )
> Took 88 ms.
> add description
> Error Message
> chmod: changing permissions of `/tmp/existingDir': Operation not permitted 
> Stacktrace
> org.apache.hadoop.util.Shell$ExitCodeException: chmod: changing permissions of `/tmp/existingDir':
Operation not permitted
> 	at org.apache.hadoop.util.Shell.runCommand(Shell.java:243)
> 	at org.apache.hadoop.util.Shell.run(Shell.java:170)
> 	at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:363)
> 	at org.apache.hadoop.util.Shell.execCommand(Shell.java:449)
> 	at org.apache.hadoop.util.Shell.execCommand(Shell.java:432)
> 	at org.apache.hadoop.fs.RawLocalFileSystem.execCommand(RawLocalFileSystem.java:545)
> 	at org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:537)
> 	at org.apache.hadoop.fs.RawLocalFileSystem.mkdirs(RawLocalFileSystem.java:347)
> 	at org.apache.hadoop.fs.FilterFileSystem.mkdirs(FilterFileSystem.java:184)
> 	at org.apache.hadoop.fs.FileSystem.primitiveMkdir(FileSystem.java:769)
> 	at org.apache.hadoop.fs.FileContext.mkdir(FileContext.java:539)
> 	at org.apache.hadoop.fs.FileContextMainOperationsBaseTest.testWorkingDirectory(FileContextMainOperationsBaseTest.java:170)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message