Ahmed Eldawy created HDFS-13409:

             Summary: FilterFileSystem#setConf does not update the configuration
                 Key: HDFS-13409
                 URL: https://issues.apache.org/jira/browse/HDFS-13409
             Project: Hadoop HDFS
          Issue Type: Bug
            Reporter: Ahmed Eldawy

FilterFileSystem keeps its own copy of Configuration which is separate from the 
underlying filtered file system. When you call FilterFileSystem#setConf, it 
updates its own private configuration which is not accessible. When you call 
FilterFileSystem#getConf, it returns the Configuration of the underlying 
FileSystem. Please look at the code snippet below.

Configuration conf = new Configuration();
FileSystem fs = FileSystem.get(conf);
FilterFileSystem ffs = new FilterFileSystem(fs);
Configuration conf2 = new Configuration();
conf2.set("foo", "bar");
assertEquals("bar", ffs.getConf().get("foo")); // This assertion should pass 
but it fails


To solve this problem, we need to implement the following function in 


public void setConf(Configuration conf) {

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to