Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 56610 invoked from network); 2 Feb 2011 22:51:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Feb 2011 22:51:53 -0000 Received: (qmail 91795 invoked by uid 500); 2 Feb 2011 22:51:53 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 91642 invoked by uid 500); 2 Feb 2011 22:51:52 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 91626 invoked by uid 99); 2 Feb 2011 22:51:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Feb 2011 22:51:52 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Feb 2011 22:51:50 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 559BE18A5EB for ; Wed, 2 Feb 2011 22:51:29 +0000 (UTC) Date: Wed, 2 Feb 2011 22:51:29 +0000 (UTC) From: "Matthew F. Dennis (JIRA)" To: commits@cassandra.apache.org Message-ID: <1182798892.6153.1296687089347.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1856211205.6139.1296686609061.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Updated: (CASSANDRA-2102) saved row cache doesn't save the cache 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-2102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Matthew F. Dennis updated CASSANDRA-2102: ----------------------------------------- Affects Version/s: 0.7.0 Fix Version/s: 0.7.2 > saved row cache doesn't save the cache > -------------------------------------- > > Key: CASSANDRA-2102 > URL: https://issues.apache.org/jira/browse/CASSANDRA-2102 > Project: Cassandra > Issue Type: Bug > Affects Versions: 0.7.0 > Reporter: Matthew F. Dennis > Assignee: Matthew F. Dennis > Fix For: 0.7.2 > > > saving row caches works by periodically iterating of the keySet() on the caches and writing the keys for the cached contents to disk. The cache keys are DecoratedKeys. DecoratedKeys contain a Token token and a ByteBuffer key. The underlying buffer on the key gets reused so the contents change. This means that all the cache entries have distinct tokens but only a handful of distinct key values. This means that when the cache is loaded you only end up loading a handful of keys instead of the ones actually in your cache. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira