You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Amith D K <am...@huawei.com> on 2012/06/07 16:27:53 UTC

ArrayIndexOutOfBounds in TestFSMainOperationsLocalFileSystem

Hi



Currently I am using Hadoop 2.0.1, when I run the TestFSMainOperationsLocalFileSystem test class I am getting



org.apache.hadoop.fs.viewfs.TestFSMainOperationsLocalFileSystem.testWDAbsolute
java.lang.ArrayIndexOutOfBoundsException: 1
                at org.apache.hadoop.fs.viewfs.InodeTree.createLink(InodeTree.java:237)
                at org.apache.hadoop.fs.viewfs.InodeTree.<init>(InodeTree.java:334)
                at org.apache.hadoop.fs.viewfs.ViewFileSystem$1.<init>(ViewFileSystem.java:178)
                at org.apache.hadoop.fs.viewfs.ViewFileSystem.initialize(ViewFileSystem.java:178)
                at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2150)
                at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:80)
                at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2184)
                at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2166)
                at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:302)
                at org.apache.hadoop.fs.viewfs.ViewFileSystemTestSetup.setupForViewFileSystem(ViewFileSystemTestSetup.java:64)
                at org.apache.hadoop.fs.viewfs.TestFSMainOperationsLocalFileSystem.setUp(TestFSMainOperationsLocalFileSystem.java:40)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
                at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
                at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
                at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
                at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
                at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
                at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
                at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
                at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
                at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
                at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
                at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
                at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
                at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
                at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:236)
                at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:134)
                at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:113)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
                at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
                at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
                at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
                at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)

Standard Output
2012-06-07 15:11:09,325 INFO  mortbay.log (Slf4jLog.java:info(67)) - Logging to org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog
2012-06-07 15:11:09,328 INFO  mortbay.log (Slf4jLog.java:info(67)) - Home dir base /

I am running the tests in SuSE 11,



can anyone please tell me what could be the problem



Thanks and Regards

Amith

RE: ArrayIndexOutOfBounds in TestFSMainOperationsLocalFileSystem

Posted by Amith D K <am...@huawei.com>.
Thanks Harsh

The problem is, testcase will fail when we run the testcase as a root user which our jenkins used to do.
I dont know whether its a problem?

Amith
________________________________________
From: Harsh J [harsh@cloudera.com]
Sent: Monday, June 11, 2012 8:50 PM
To: common-user@hadoop.apache.org
Subject: Re: ArrayIndexOutOfBounds in TestFSMainOperationsLocalFileSystem

Hi,

Both of these tests seem to pass for me on current trunk, on CentOS6
(ext4) and OSX (hfs):

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.hadoop.fs.TestFSMainOperationsLocalFileSystem
Tests run: 49, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.828 sec
Running org.apache.hadoop.fs.viewfs.TestFSMainOperationsLocalFileSystem
Tests run: 49, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.719 sec

Results :

Tests run: 98, Failures: 0, Errors: 0, Skipped: 0

On Thu, Jun 7, 2012 at 7:57 PM, Amith D K <am...@huawei.com> wrote:
> Hi
>
>
>
> Currently I am using Hadoop 2.0.1, when I run the TestFSMainOperationsLocalFileSystem test class I am getting
>
>
>
> org.apache.hadoop.fs.viewfs.TestFSMainOperationsLocalFileSystem.testWDAbsolute
> java.lang.ArrayIndexOutOfBoundsException: 1
>                at org.apache.hadoop.fs.viewfs.InodeTree.createLink(InodeTree.java:237)
>                at org.apache.hadoop.fs.viewfs.InodeTree.<init>(InodeTree.java:334)
>                at org.apache.hadoop.fs.viewfs.ViewFileSystem$1.<init>(ViewFileSystem.java:178)
>                at org.apache.hadoop.fs.viewfs.ViewFileSystem.initialize(ViewFileSystem.java:178)
>                at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2150)
>                at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:80)
>                at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2184)
>                at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2166)
>                at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:302)
>                at org.apache.hadoop.fs.viewfs.ViewFileSystemTestSetup.setupForViewFileSystem(ViewFileSystemTestSetup.java:64)
>                at org.apache.hadoop.fs.viewfs.TestFSMainOperationsLocalFileSystem.setUp(TestFSMainOperationsLocalFileSystem.java:40)
>                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>                at java.lang.reflect.Method.invoke(Method.java:597)
>                at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
>                at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
>                at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
>                at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
>                at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
>                at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
>                at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
>                at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
>                at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
>                at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
>                at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
>                at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
>                at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
>                at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
>                at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:236)
>                at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:134)
>                at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:113)
>                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>                at java.lang.reflect.Method.invoke(Method.java:597)
>                at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
>                at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
>                at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
>                at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
>                at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
>
> Standard Output
> 2012-06-07 15:11:09,325 INFO  mortbay.log (Slf4jLog.java:info(67)) - Logging to org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog
> 2012-06-07 15:11:09,328 INFO  mortbay.log (Slf4jLog.java:info(67)) - Home dir base /
>
> I am running the tests in SuSE 11,
>
>
>
> can anyone please tell me what could be the problem
>
>
>
> Thanks and Regards
>
> Amith



--
Harsh J

Re: ArrayIndexOutOfBounds in TestFSMainOperationsLocalFileSystem

Posted by Harsh J <ha...@cloudera.com>.
Hi,

Both of these tests seem to pass for me on current trunk, on CentOS6
(ext4) and OSX (hfs):

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.hadoop.fs.TestFSMainOperationsLocalFileSystem
Tests run: 49, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.828 sec
Running org.apache.hadoop.fs.viewfs.TestFSMainOperationsLocalFileSystem
Tests run: 49, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.719 sec

Results :

Tests run: 98, Failures: 0, Errors: 0, Skipped: 0

On Thu, Jun 7, 2012 at 7:57 PM, Amith D K <am...@huawei.com> wrote:
> Hi
>
>
>
> Currently I am using Hadoop 2.0.1, when I run the TestFSMainOperationsLocalFileSystem test class I am getting
>
>
>
> org.apache.hadoop.fs.viewfs.TestFSMainOperationsLocalFileSystem.testWDAbsolute
> java.lang.ArrayIndexOutOfBoundsException: 1
>                at org.apache.hadoop.fs.viewfs.InodeTree.createLink(InodeTree.java:237)
>                at org.apache.hadoop.fs.viewfs.InodeTree.<init>(InodeTree.java:334)
>                at org.apache.hadoop.fs.viewfs.ViewFileSystem$1.<init>(ViewFileSystem.java:178)
>                at org.apache.hadoop.fs.viewfs.ViewFileSystem.initialize(ViewFileSystem.java:178)
>                at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2150)
>                at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:80)
>                at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2184)
>                at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2166)
>                at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:302)
>                at org.apache.hadoop.fs.viewfs.ViewFileSystemTestSetup.setupForViewFileSystem(ViewFileSystemTestSetup.java:64)
>                at org.apache.hadoop.fs.viewfs.TestFSMainOperationsLocalFileSystem.setUp(TestFSMainOperationsLocalFileSystem.java:40)
>                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>                at java.lang.reflect.Method.invoke(Method.java:597)
>                at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
>                at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
>                at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
>                at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
>                at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
>                at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
>                at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
>                at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
>                at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
>                at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
>                at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
>                at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
>                at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
>                at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
>                at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:236)
>                at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:134)
>                at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:113)
>                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>                at java.lang.reflect.Method.invoke(Method.java:597)
>                at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
>                at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
>                at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
>                at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
>                at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
>
> Standard Output
> 2012-06-07 15:11:09,325 INFO  mortbay.log (Slf4jLog.java:info(67)) - Logging to org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog
> 2012-06-07 15:11:09,328 INFO  mortbay.log (Slf4jLog.java:info(67)) - Home dir base /
>
> I am running the tests in SuSE 11,
>
>
>
> can anyone please tell me what could be the problem
>
>
>
> Thanks and Regards
>
> Amith



-- 
Harsh J