hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-5788) listLocatedStatus response can be very large
Date Sat, 25 Jan 2014 13:40:24 GMT

    [ https://issues.apache.org/jira/browse/HDFS-5788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13881885#comment-13881885
] 

Hudson commented on HDFS-5788:
------------------------------

SUCCESS: Integrated in Hadoop-Hdfs-trunk #1653 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk/1653/])
HDFS-5788. listLocatedStatus response can be very large. Contributed by Nathan Roberts. (kihwal:
http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1560750)
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirectory.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestINodeFile.java


> listLocatedStatus response can be very large
> --------------------------------------------
>
>                 Key: HDFS-5788
>                 URL: https://issues.apache.org/jira/browse/HDFS-5788
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: namenode
>    Affects Versions: 3.0.0, 0.23.10, 2.2.0
>            Reporter: Nathan Roberts
>            Assignee: Nathan Roberts
>             Fix For: 3.0.0, 2.4.0
>
>         Attachments: HDFS-5788.patch
>
>
> Currently we limit the size of listStatus requests to a default of 1000 entries. This
works fine except in the case of listLocatedStatus where the location information can be quite
large. As an example, a directory with 7000 entries, 4 blocks each, 3 way replication - a
listLocatedStatus response is over 1MB. This can chew up very large amounts of memory in the
NN if lots of clients try to do this simultaneously.
> Seems like it would be better if we also considered the amount of location information
being returned when deciding how many files to return.
> Patch will follow shortly.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message