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 "Krishna Ramachandran (JIRA)" <ji...@apache.org> on 2010/11/12 23:08:13 UTC

[jira] Created: (HADOOP-7031) Make DelegateToFileSystem constructor public to allow implementations from other packages for testing

Make DelegateToFileSystem constructor public to allow implementations from other packages for testing
-----------------------------------------------------------------------------------------------------

                 Key: HADOOP-7031
                 URL: https://issues.apache.org/jira/browse/HADOOP-7031
             Project: Hadoop Common
          Issue Type: Improvement
            Reporter: Krishna Ramachandran


Mapreduce tests use ileSystem APIs to implement a TestFileSystem to simulate various error and failure conditions. This is no longer possible with the new FileContext APIs

for example we would like to extend DelegateToFileSystem in unit testing framework 

  public static class TestFileSystem extends DelegateToFileSystem {
    public TestFileSystem(Configuration conf) throws IOException, URISyntaxException {
      super(URI.create("faildel:///"), new FakeFileSystem(conf), conf, "faildel",
          false);
    }

  }




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.