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 "Andras Bokor (JIRA)" <ji...@apache.org> on 2018/04/10 11:35:00 UTC

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

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

Andras Bokor resolved HADOOP-7031.
----------------------------------
    Resolution: Won't Fix

There was no activity or at least new watcher on this issue in the last 7 years so closing for now.

> 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
>            Priority: Major
>
> 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 was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org