Return-Path: Delivered-To: apmail-incubator-cassandra-commits-archive@minotaur.apache.org Received: (qmail 99248 invoked from network); 5 Sep 2009 05:41:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Sep 2009 05:41:22 -0000 Received: (qmail 83818 invoked by uid 500); 5 Sep 2009 05:41:22 -0000 Delivered-To: apmail-incubator-cassandra-commits-archive@incubator.apache.org Received: (qmail 83783 invoked by uid 500); 5 Sep 2009 05:41:21 -0000 Mailing-List: contact cassandra-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-dev@incubator.apache.org Delivered-To: mailing list cassandra-commits@incubator.apache.org Received: (qmail 83767 invoked by uid 99); 5 Sep 2009 05:41:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Sep 2009 05:41:21 +0000 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Sep 2009 05:41:18 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7B53C234C1F1 for ; Fri, 4 Sep 2009 22:40:57 -0700 (PDT) Message-ID: <497288909.1252129257491.JavaMail.jira@brutus> Date: Fri, 4 Sep 2009 22:40:57 -0700 (PDT) From: "Sammy Yu (JIRA)" To: cassandra-commits@incubator.apache.org Subject: [jira] Updated: (CASSANDRA-423) add new LRU cache In-Reply-To: <829923553.1252102137456.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CASSANDRA-423?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sammy Yu updated CASSANDRA-423: ------------------------------- Attachment: 0001-CASSANDRA-423-Committed-first-version-using-Solr-s-C.patch Attached first version using SOLR's LRUConcurrentCache. There are some opened questions. One regarding how to configure the cache, it has a lowWatermark and acceptableWaterMark, I've made some questionable code to allow this to use KeysCachedFraction. If size is less than 0, force key size to 1 and lowWaterMark to 0. There's also a second hack which calls destroy on construction of keycache this is because by default the finalize() method will log an error message if the destroy has been set. See code at http://svn.apache.org/viewvc/lucene/solr/trunk/src/common/org/apache/solr/common/util/ConcurrentLRUCache.java?view=markup > add new LRU cache > ----------------- > > Key: CASSANDRA-423 > URL: https://issues.apache.org/jira/browse/CASSANDRA-423 > Project: Cassandra > Issue Type: New Feature > Reporter: Jonathan Ellis > Fix For: 0.5 > > Attachments: 0001-CASSANDRA-423-Committed-first-version-using-Solr-s-C.patch, 423-v0.patch > > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.