[
https://issues.apache.org/jira/browse/HADOOP-9079?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13657241#comment-13657241
]
Ted Yu commented on HADOOP-9079:
--------------------------------
I made modification in TestLocalDirAllocator#testRWBufferDirBecomesRO:
{code}
Index:
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestLocalDirAllocator.java
===================================================================
---
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestLocalDirAllocator.java
(revision 1482467)
+++
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestLocalDirAllocator.java
(working copy)
@@ -215,7 +215,9 @@
validateTempDirCreation(buildBufferDir(ROOT, nextDirIdx));
// change buffer directory 2 to be read only
- new File(new Path(dir4).toUri().getPath()).setReadOnly();
+ File f0 = new File(new Path(dir4).toUri().getPath());
+ f0.setReadable(false);
+ f0.setExecutable(false);
validateTempDirCreation(dir3);
validateTempDirCreation(dir3);
} finally {
{code}
When I ran the test, I got:
{code}
initializationError(org.apache.hadoop.fs.TestLocalDirAllocator) Time elapsed:
5 sec <<< FAILURE!
java.lang.AssertionError:
at org.junit.Assert.fail(Assert.java:91)
at org.junit.Assert.assertTrue(Assert.java:43)
at org.junit.Assert.assertTrue(Assert.java:54)
at
org.apache.hadoop.fs.TestLocalDirAllocator.rmBufferDirs(TestLocalDirAllocator.java:104)
at
org.apache.hadoop.fs.TestLocalDirAllocator.<clinit>(TestLocalDirAllocator.java:71)
{code}
> LocalDirAllocator throws ArithmeticException
> --------------------------------------------
>
> Key: HADOOP-9079
> URL: https://issues.apache.org/jira/browse/HADOOP-9079
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 2.0.3-alpha
> Reporter: Jimmy Xiang
> Priority: Minor
> Attachments: hadoop-9079-v2.txt, trunk-9079.patch
>
>
> 2012-11-19 22:07:41,709 WARN [IPC Server handler 0 on 38671]
> nodemanager.NMAuditLogger(150): USER=UnknownUser IP=****
> OPERATION=Stop Container Request TARGET=ContainerManagerImpl
> RESULT=FAILURE DESCRIPTION=Trying to stop unknown container!
> APPID=application_1353391620476_0001
> CONTAINERID=container_1353391620476_0001_01_000010
> java.lang.ArithmeticException: / by zero
> at
> org.apache.hadoop.fs.LocalDirAllocator$AllocatorPerContext.getLocalPathForWrite(LocalDirAllocator.java:368)
> at
> org.apache.hadoop.fs.LocalDirAllocator.getLocalPathForWrite(LocalDirAllocator.java:150)
> at
> org.apache.hadoop.fs.LocalDirAllocator.getLocalPathForWrite(LocalDirAllocator.java:131)
> at
> org.apache.hadoop.fs.LocalDirAllocator.getLocalPathForWrite(LocalDirAllocator.java:115)
> at
> org.apache.hadoop.yarn.server.nodemanager.LocalDirsHandlerService.getLocalPathForWrite(LocalDirsHandlerService.java:263)
> at
> org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer.ResourceLocalizationService$LocalizerRunner.run(ResourceLocalizationService.java:849)
--
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