hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harsh J (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HADOOP-1769) Possible StackOverflowError in FileSystem.get(Uri uri, Configuration conf) method
Date Sun, 17 Jul 2011 11:53:00 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-1769?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Harsh J resolved HADOOP-1769.
-----------------------------

    Resolution: Cannot Reproduce

Doesn't look like its a problem anymore.

Here's a simple test to guarantee (there may already exist something like this, but I did
not look)

{code}

  public void testStack() throws IOException, URISyntaxException {
    Configuration conf = new Configuration();
    String url = "/";
    URI uri = new URI(url);
    assertEquals(null, uri.getScheme());
    FileSystem fs = FileSystem.get(uri, conf);
  }

{code}

Marking as 'Cannot Reproduce' (now).

> Possible StackOverflowError in FileSystem.get(Uri uri, Configuration conf) method
> ---------------------------------------------------------------------------------
>
>                 Key: HADOOP-1769
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1769
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 0.14.0
>            Reporter: Thomas Friol
>
> When calling the method Filesytem.get(Uri uri, Configuration conf) with an URI without
scheme -> StackOverflowError
> {noformat}
> Exception in thread "Main Thread" java.lang.StackOverflowError:
>         at java.util.regex.Matcher.<init>(Matcher.java:201)
>         at java.util.regex.Pattern.matcher(Pattern.java:879)
>         at org.apache.hadoop.conf.Configuration.substituteVars(Configuration.java:182)
>         at org.apache.hadoop.conf.Configuration.get(Configuration.java:247)
>         at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:90)
>         at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:143)
>         at org.apache.hadoop.fs.FileSystem.getNamed(FileSystem.java:118)
>         at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:90)
>         at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:143)
>         at org.apache.hadoop.fs.FileSystem.getNamed(FileSystem.java:118)
>         at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:90)
>         at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:143)
>         at org.apache.hadoop.fs.FileSystem.getNamed(FileSystem.java:118)
>         at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:90)
>         at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:143)
>         at org.apache.hadoop.fs.FileSystem.getNamed(FileSystem.java:118)
>         at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:90)
>         at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:143)
>         at org.apache.hadoop.fs.FileSystem.getNamed(FileSystem.java:118)
>         at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:90)
>         at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:143)
>         at org.apache.hadoop.fs.FileSystem.getNamed(FileSystem.java:118)
>         at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:90)
>         at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:143)
>         at org.apache.hadoop.fs.FileSystem.getNamed(FileSystem.java:118)
>         at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:90)
>         at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:143)
> {noformat}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message