hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yiqun Lin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-12802) RBF: Control MountTableResolver cache size
Date Fri, 05 Jan 2018 06:58:01 GMT

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

Yiqun Lin commented on HDFS-12802:
----------------------------------

[~elgoiri], I have one another thought: Can we use the util class {{com.google.common.cache.Cache}}
in guava for control this? It will simplify the code a bunch I think. The maximum number size
and expire time of cache can be set in guava Cache.

> RBF: Control MountTableResolver cache size
> ------------------------------------------
>
>                 Key: HDFS-12802
>                 URL: https://issues.apache.org/jira/browse/HDFS-12802
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: Íñigo Goiri
>            Assignee: Íñigo Goiri
>         Attachments: HDFS-12802.000.patch, HDFS-12802.001.patch, HDFS-12802.002.patch
>
>
> Currently, the {{MountTableResolver}} caches the resolutions for the {{PathLocation}}.
However, this cache can grow with no limits if there are a lot of unique paths. Some of these
cached resolutions might not be used at all.
> The {{MountTableResolver}} should clean the {{locationCache}} periodically.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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


Mime
View raw message