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 "Chris Nauroth (JIRA)" <ji...@apache.org> on 2016/06/25 00:01:10 UTC

[jira] [Created] (HADOOP-13321) Deprecate FileSystem APIs that promote inefficient call patterns.

Chris Nauroth created HADOOP-13321:
--------------------------------------

             Summary: Deprecate FileSystem APIs that promote inefficient call patterns.
                 Key: HADOOP-13321
                 URL: https://issues.apache.org/jira/browse/HADOOP-13321
             Project: Hadoop Common
          Issue Type: Improvement
          Components: fs
            Reporter: Chris Nauroth


{{FileSystem}} contains several methods that act as convenience wrappers over calling {{getFileStatus}} and retrieving a single property of the returned {{FileStatus}}.  These methods have a habit of fostering inefficient call patterns in applications, resulting in multiple redundant {{getFileStatus}} calls.  For HDFS, this translates into wasteful NameNode RPC traffic.  For file systems backed by cloud object stores, this translates into wasteful HTTP traffic.  This issue proposes to deprecate these methods and instead encourage applications to call {{getFileStatus}} and then reuse the same {{FileStatus}} instance as needed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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