Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D27A89CD6 for ; Thu, 11 Oct 2012 17:46:47 +0000 (UTC) Received: (qmail 30634 invoked by uid 500); 11 Oct 2012 17:46:43 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 30599 invoked by uid 500); 11 Oct 2012 17:46:43 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 30562 invoked by uid 99); 11 Oct 2012 17:46:43 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Oct 2012 17:46:43 +0000 Date: Thu, 11 Oct 2012 17:46:43 +0000 (UTC) From: "Arun C Murthy (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <337936874.28751.1349977603783.JavaMail.jiratomcat@arcas> In-Reply-To: <1688297757.38296.1345604917971.JavaMail.jiratomcat@arcas> Subject: [jira] [Closed] (HADOOP-8718) org.apache.hadoop.fs.viewfs.InodeTree.createLink(...) may throw java.lang.ArrayIndexOutOfBoundsException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-8718?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Arun C Murthy closed HADOOP-8718. --------------------------------- > org.apache.hadoop.fs.viewfs.InodeTree.createLink(...) may throw java.lang.ArrayIndexOutOfBoundsException > -------------------------------------------------------------------------------------------------------- > > Key: HADOOP-8718 > URL: https://issues.apache.org/jira/browse/HADOOP-8718 > Project: Hadoop Common > Issue Type: Bug > Components: viewfs > Affects Versions: 0.23.0, 2.0.0-alpha > Environment: OS: CentOS 6.2 32bit > Reporter: linwukang > Labels: ArrayIndexOutOfBoundsException, InodeTree, viewfs > Fix For: 0.23.2, 2.0.2-alpha > > Original Estimate: 504h > Remaining Estimate: 504h > > org.apache.hadoop.fs.viewfs.InodeTree.createLink(...) may throw java.lang.ArrayIndexOutOfBoundsException as breakIntoPathComponents(src) may return Empty Array "[]". this happened when run the test case of viewfs on my jenkins server. In my situation, "/" is passed into breakIntoPathComponents() as its param "src". > Here is the Message given by Jenkins: > java.lang.ArrayIndexOutOfBoundsException: 1 > at org.apache.hadoop.fs.viewfs.InodeTree.createLink(InodeTree.java:237) > at org.apache.hadoop.fs.viewfs.InodeTree.(InodeTree.java:334) > at org.apache.hadoop.fs.viewfs.ViewFileSystem$1.(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-08-22 10:31:40,487 INFO mortbay.log (Slf4jLog.java:info(67)) - Home dir base / -- 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