hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vinayakumar B (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-14427) Avoid reloading of Configuration in ViewFileSystem creation.
Date Tue, 16 May 2017 17:08:04 GMT
Vinayakumar B created HADOOP-14427:
--------------------------------------

             Summary: Avoid reloading of Configuration in ViewFileSystem creation.
                 Key: HADOOP-14427
                 URL: https://issues.apache.org/jira/browse/HADOOP-14427
             Project: Hadoop Common
          Issue Type: Bug
          Components: viewfs
            Reporter: Vinayakumar B
            Assignee: Vinayakumar B


Avoid {{new Configuration()}} in below code. during viewfilesystem creation
{code}    public InternalDirOfViewFs(final InodeTree.INodeDir<FileSystem> dir,
        final long cTime, final UserGroupInformation ugi, URI uri)
      throws URISyntaxException {
      myUri = uri;
      try {
        initialize(myUri, new Configuration());
      } catch (IOException e) {
        throw new RuntimeException("Cannot occur");
      }
      theInternalDir = dir;
      creationTime = cTime;
      this.ugi = ugi;
    }{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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


Mime
View raw message