From hdfs-issues-return-207135-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Fri Jan 5 07:58:07 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 864F6180647 for ; Fri, 5 Jan 2018 07:58:07 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 76065160C3C; Fri, 5 Jan 2018 06:58:07 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C2A36160C19 for ; Fri, 5 Jan 2018 07:58:06 +0100 (CET) Received: (qmail 51279 invoked by uid 500); 5 Jan 2018 06:58:05 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 51268 invoked by uid 99); 5 Jan 2018 06:58:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Jan 2018 06:58:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 59A8F1806E2 for ; Fri, 5 Jan 2018 06:58:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -108.011 X-Spam-Level: X-Spam-Status: No, score=-108.011 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id J5WsOqDU9pGk for ; Fri, 5 Jan 2018 06:58:04 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id F1E2E5F666 for ; Fri, 5 Jan 2018 06:58:03 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 3E887E04C7 for ; Fri, 5 Jan 2018 06:58:03 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id B8228240E6 for ; Fri, 5 Jan 2018 06:58:01 +0000 (UTC) Date: Fri, 5 Jan 2018 06:58:01 +0000 (UTC) From: "Yiqun Lin (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-12802) RBF: Control MountTableResolver cache size MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-12802?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1631= 2580#comment-16312580 ]=20 Yiqun Lin commented on HDFS-12802: ---------------------------------- [~elgoiri], I have one another thought: Can we use the util class {{com.goo= gle.common.cache.Cache}} in guava for control this? It will simplify the co= de 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: =C3=8D=C3=B1igo Goiri > Assignee: =C3=8D=C3=B1igo Goiri > Attachments: HDFS-12802.000.patch, HDFS-12802.001.patch, HDFS-128= 02.002.patch > > > Currently, the {{MountTableResolver}} caches the resolutions for the {{Pa= thLocation}}. However, this cache can grow with no limits if there are a lo= t of unique paths. Some of these cached resolutions might not be used at al= l. > The {{MountTableResolver}} should clean the {{locationCache}} periodicall= y. -- 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