You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Chuan Liu (JIRA)" <ji...@apache.org> on 2012/11/03 00:10:13 UTC
[jira] [Created] (HADOOP-9007)
TestJobStatusPersistency.testJobStoreDisablingWithInvalidPath failure
Chuan Liu created HADOOP-9007:
---------------------------------
Summary: TestJobStatusPersistency.testJobStoreDisablingWithInvalidPath failure
Key: HADOOP-9007
URL: https://issues.apache.org/jira/browse/HADOOP-9007
Project: Hadoop Common
Issue Type: Bug
Reporter: Chuan Liu
Priority: Minor
We have the unit test failure.
org.apache.hadoop.mapred.TestJobStatusPersistency.testJobStoreDisablingWithInvalidPath
Error Message
{noformat}
Cannot chmod parent!
Stacktrace
junit.framework.AssertionFailedError: Cannot chmod parent!
at org.apache.hadoop.mapred.TestJobStatusPersistency.testJobStoreDisablingWithInvalidPath(TestJobStatusPersistency.java:161)
{noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (HADOOP-9007)
TestJobStatusPersistency.testJobStoreDisablingWithInvalidPath failure
Posted by "Suresh Srinivas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-9007?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Suresh Srinivas resolved HADOOP-9007.
-------------------------------------
Resolution: Fixed
Hadoop Flags: Reviewed
I committed the patch to branch-1-win.
Thank you Chuan. Thank you Ivan for the code review.
> TestJobStatusPersistency.testJobStoreDisablingWithInvalidPath failure
> ---------------------------------------------------------------------
>
> Key: HADOOP-9007
> URL: https://issues.apache.org/jira/browse/HADOOP-9007
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 1-win
> Reporter: Chuan Liu
> Assignee: Chuan Liu
> Priority: Minor
> Fix For: 1-win
>
> Attachments: HADOOP-9007-branch-1-win.patch
>
>
> We have the following unit test failure on Windows.
> org.apache.hadoop.mapred.TestJobStatusPersistency.testJobStoreDisablingWithInvalidPath
> Error Message
> {noformat}
> Cannot chmod parent!
> Stacktrace
> junit.framework.AssertionFailedError: Cannot chmod parent!
> at org.apache.hadoop.mapred.TestJobStatusPersistency.testJobStoreDisablingWithInvalidPath(TestJobStatusPersistency.java:161)
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-9007)
TestJobStatusPersistency.testJobStoreDisablingWithInvalidPath failure
Posted by "Suresh Srinivas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-9007?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13490264#comment-13490264 ]
Suresh Srinivas commented on HADOOP-9007:
-----------------------------------------
+1 for the patch. I ran test on my Mac to ensure with the changes the test passes.
> TestJobStatusPersistency.testJobStoreDisablingWithInvalidPath failure
> ---------------------------------------------------------------------
>
> Key: HADOOP-9007
> URL: https://issues.apache.org/jira/browse/HADOOP-9007
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 1-win
> Reporter: Chuan Liu
> Assignee: Chuan Liu
> Priority: Minor
> Fix For: 1-win
>
> Attachments: HADOOP-9007-branch-1-win.patch
>
>
> We have the following unit test failure on Windows.
> org.apache.hadoop.mapred.TestJobStatusPersistency.testJobStoreDisablingWithInvalidPath
> Error Message
> {noformat}
> Cannot chmod parent!
> Stacktrace
> junit.framework.AssertionFailedError: Cannot chmod parent!
> at org.apache.hadoop.mapred.TestJobStatusPersistency.testJobStoreDisablingWithInvalidPath(TestJobStatusPersistency.java:161)
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HADOOP-9007)
TestJobStatusPersistency.testJobStoreDisablingWithInvalidPath failure
Posted by "Chuan Liu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-9007?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chuan Liu updated HADOOP-9007:
------------------------------
Attachment: HADOOP-9007-branch-1-win.patch
The root cause is due to the following Java bug:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6728842
After the bug fix, setWritable() will return false on directories on Windows.
In my testing, Java version <= 1.6.0_31 will return true; thus the test will pass.
In Java version >= 1.6.0_32, the method will always return false on Windows; thus the test will fail.
Attach a simple fix by simply switching to use FileUtil.chmod() method to set permissions.
> TestJobStatusPersistency.testJobStoreDisablingWithInvalidPath failure
> ---------------------------------------------------------------------
>
> Key: HADOOP-9007
> URL: https://issues.apache.org/jira/browse/HADOOP-9007
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 1-win
> Reporter: Chuan Liu
> Assignee: Chuan Liu
> Priority: Minor
> Fix For: 1-win
>
> Attachments: HADOOP-9007-branch-1-win.patch
>
>
> We have the unit test failure on Windows.
> org.apache.hadoop.mapred.TestJobStatusPersistency.testJobStoreDisablingWithInvalidPath
> Error Message
> {noformat}
> Cannot chmod parent!
> Stacktrace
> junit.framework.AssertionFailedError: Cannot chmod parent!
> at org.apache.hadoop.mapred.TestJobStatusPersistency.testJobStoreDisablingWithInvalidPath(TestJobStatusPersistency.java:161)
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HADOOP-9007)
TestJobStatusPersistency.testJobStoreDisablingWithInvalidPath failure
Posted by "Chuan Liu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-9007?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chuan Liu updated HADOOP-9007:
------------------------------
Description:
We have the unit test failure on Windows.
org.apache.hadoop.mapred.TestJobStatusPersistency.testJobStoreDisablingWithInvalidPath
Error Message
{noformat}
Cannot chmod parent!
Stacktrace
junit.framework.AssertionFailedError: Cannot chmod parent!
at org.apache.hadoop.mapred.TestJobStatusPersistency.testJobStoreDisablingWithInvalidPath(TestJobStatusPersistency.java:161)
{noformat}
was:
We have the unit test failure.
org.apache.hadoop.mapred.TestJobStatusPersistency.testJobStoreDisablingWithInvalidPath
Error Message
{noformat}
Cannot chmod parent!
Stacktrace
junit.framework.AssertionFailedError: Cannot chmod parent!
at org.apache.hadoop.mapred.TestJobStatusPersistency.testJobStoreDisablingWithInvalidPath(TestJobStatusPersistency.java:161)
{noformat}
Affects Version/s: 1-win
Fix Version/s: 1-win
Assignee: Chuan Liu
> TestJobStatusPersistency.testJobStoreDisablingWithInvalidPath failure
> ---------------------------------------------------------------------
>
> Key: HADOOP-9007
> URL: https://issues.apache.org/jira/browse/HADOOP-9007
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 1-win
> Reporter: Chuan Liu
> Assignee: Chuan Liu
> Priority: Minor
> Fix For: 1-win
>
>
> We have the unit test failure on Windows.
> org.apache.hadoop.mapred.TestJobStatusPersistency.testJobStoreDisablingWithInvalidPath
> Error Message
> {noformat}
> Cannot chmod parent!
> Stacktrace
> junit.framework.AssertionFailedError: Cannot chmod parent!
> at org.apache.hadoop.mapred.TestJobStatusPersistency.testJobStoreDisablingWithInvalidPath(TestJobStatusPersistency.java:161)
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-9007)
TestJobStatusPersistency.testJobStoreDisablingWithInvalidPath failure
Posted by "Ivan Mitic (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-9007?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13489848#comment-13489848 ]
Ivan Mitic commented on HADOOP-9007:
------------------------------------
Thanks Chuan, seems like a simple fix, +1
> TestJobStatusPersistency.testJobStoreDisablingWithInvalidPath failure
> ---------------------------------------------------------------------
>
> Key: HADOOP-9007
> URL: https://issues.apache.org/jira/browse/HADOOP-9007
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 1-win
> Reporter: Chuan Liu
> Assignee: Chuan Liu
> Priority: Minor
> Fix For: 1-win
>
> Attachments: HADOOP-9007-branch-1-win.patch
>
>
> We have the following unit test failure on Windows.
> org.apache.hadoop.mapred.TestJobStatusPersistency.testJobStoreDisablingWithInvalidPath
> Error Message
> {noformat}
> Cannot chmod parent!
> Stacktrace
> junit.framework.AssertionFailedError: Cannot chmod parent!
> at org.apache.hadoop.mapred.TestJobStatusPersistency.testJobStoreDisablingWithInvalidPath(TestJobStatusPersistency.java:161)
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HADOOP-9007)
TestJobStatusPersistency.testJobStoreDisablingWithInvalidPath failure
Posted by "Chuan Liu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-9007?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chuan Liu updated HADOOP-9007:
------------------------------
Description:
We have the following unit test failure on Windows.
org.apache.hadoop.mapred.TestJobStatusPersistency.testJobStoreDisablingWithInvalidPath
Error Message
{noformat}
Cannot chmod parent!
Stacktrace
junit.framework.AssertionFailedError: Cannot chmod parent!
at org.apache.hadoop.mapred.TestJobStatusPersistency.testJobStoreDisablingWithInvalidPath(TestJobStatusPersistency.java:161)
{noformat}
was:
We have the unit test failure on Windows.
org.apache.hadoop.mapred.TestJobStatusPersistency.testJobStoreDisablingWithInvalidPath
Error Message
{noformat}
Cannot chmod parent!
Stacktrace
junit.framework.AssertionFailedError: Cannot chmod parent!
at org.apache.hadoop.mapred.TestJobStatusPersistency.testJobStoreDisablingWithInvalidPath(TestJobStatusPersistency.java:161)
{noformat}
> TestJobStatusPersistency.testJobStoreDisablingWithInvalidPath failure
> ---------------------------------------------------------------------
>
> Key: HADOOP-9007
> URL: https://issues.apache.org/jira/browse/HADOOP-9007
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 1-win
> Reporter: Chuan Liu
> Assignee: Chuan Liu
> Priority: Minor
> Fix For: 1-win
>
> Attachments: HADOOP-9007-branch-1-win.patch
>
>
> We have the following unit test failure on Windows.
> org.apache.hadoop.mapred.TestJobStatusPersistency.testJobStoreDisablingWithInvalidPath
> Error Message
> {noformat}
> Cannot chmod parent!
> Stacktrace
> junit.framework.AssertionFailedError: Cannot chmod parent!
> at org.apache.hadoop.mapred.TestJobStatusPersistency.testJobStoreDisablingWithInvalidPath(TestJobStatusPersistency.java:161)
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira