Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-8105

FilterFileSystem should delegate initialize rather than use super

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Duplicate
    • Affects Version/s: 0.23.1
    • Fix Version/s: None
    • Component/s: fs
    • Labels:
      None

      Description

      The FilterFileSystem javadoc says "The class FilterFileSystem itself simply overrides all methods of FileSystem with versions that pass all requests to the contained file system." initialize(URI, Configuration) is part of the FileSystem API, and before HADOOP-8013 it simply called fs.initialize(). After HADOOP-8013 it calls super.initialize() rather than delegating. This breaks a number of the Hive tests. Hive's ProxyLocalFileSystem would be able to work around this problem by calling setConf, but unfortunately FilterFileSystem does not override that method. We need to make FilterFileSystem call fs.initialize (instead of using super) and also override setConf.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                eli2 Eli Collins
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: