[ 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-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org