Return-Path: Delivered-To: apmail-hadoop-hbase-dev-archive@locus.apache.org Received: (qmail 30402 invoked from network); 12 Feb 2008 18:59:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Feb 2008 18:59:33 -0000 Received: (qmail 43578 invoked by uid 500); 12 Feb 2008 18:59:23 -0000 Delivered-To: apmail-hadoop-hbase-dev-archive@hadoop.apache.org Received: (qmail 43567 invoked by uid 500); 12 Feb 2008 18:59:23 -0000 Mailing-List: contact hbase-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-dev@hadoop.apache.org Delivered-To: mailing list hbase-dev@hadoop.apache.org Received: (qmail 43547 invoked by uid 99); 12 Feb 2008 18:59:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Feb 2008 10:59:22 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Feb 2008 18:59:00 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AA50E714079 for ; Tue, 12 Feb 2008 10:59:08 -0800 (PST) Message-ID: <22785613.1202842748695.JavaMail.jira@brutus> Date: Tue, 12 Feb 2008 10:59:08 -0800 (PST) From: "Bryan Duxbury (JIRA)" To: hbase-dev@hadoop.apache.org Subject: [jira] Updated: (HBASE-407) Client should cache region locations in an LRU structure In-Reply-To: <24623258.1202174347918.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bryan Duxbury updated HBASE-407: -------------------------------- Attachment: 407-v4.patch Removed unneeded imports and comments from HConnectionManager, moved declaration of cachedRegionLocations all to one place. Cleaned bookend debug logging from SoftSortedMap, and improved get and remove so that they can handle nulls better. If the GC nulls a reference between checkReferences and the actual get, it doesn't matter; the SoftValue will still be in the map, and get() will return null. However, I wasn't taking into account the situation when the key being checked for actually wasn't in the map, so that could have let to some NPEs. > Client should cache region locations in an LRU structure > -------------------------------------------------------- > > Key: HBASE-407 > URL: https://issues.apache.org/jira/browse/HBASE-407 > Project: Hadoop HBase > Issue Type: Improvement > Components: client > Reporter: Bryan Duxbury > Assignee: Bryan Duxbury > Attachments: 407-v2.patch, 407-v3.patch, 407-v4.patch, 407.patch > > > Instead of keeping the region locations cached client side in a TreeMap, we should use an LRU mechanism to help manage memory more dynamically. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.