Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CAD6D288D for ; Thu, 5 May 2011 19:35:10 +0000 (UTC) Received: (qmail 99855 invoked by uid 500); 5 May 2011 19:35:08 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 99818 invoked by uid 500); 5 May 2011 19:35:08 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 99810 invoked by uid 99); 5 May 2011 19:35:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2011 19:35:08 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of keteracel@gmail.com designates 209.85.220.172 as permitted sender) Received: from [209.85.220.172] (HELO mail-vx0-f172.google.com) (209.85.220.172) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2011 19:35:02 +0000 Received: by vxg33 with SMTP id 33so3118567vxg.31 for ; Thu, 05 May 2011 12:34:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=hdpw0GsArN2RrmiIDn4Ar7SZot3VCrcOJ1AnZEKa6Cs=; b=E2v1YO/Qb1MavUpvAzJLSFEmGWrJJeQMZ5BOmaiKUjYNAhuoEtEyx8Z5zgrNYCz0RM ztGI9a8P6de7ttRf0WAG+qOk/2BAMtUGxb6XZU1PhWNeq/GSvcfEnYsyInTcK+GekJr6 KYrbNJ/riDMPq60BiBmEMqfQZT4sqgghFUKcw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=i74QFYGQ66LkL9pDoDJqwoX3NSl2AMUduh8sv4rO4u7aZnE1Ns+/iS8xg2kHT5RJSO lc8p29E/+1z4aL30yXtPAA/noaf5JVXrdzorpWCC2EYv9nL0yjn27LXlFbWVyEJ0UFYc P+SEap2Cr+s2n4B+pgNcfLHtT5GNu7bpOFa04= MIME-Version: 1.0 Received: by 10.52.73.65 with SMTP id j1mr37969vdv.248.1304624081739; Thu, 05 May 2011 12:34:41 -0700 (PDT) Received: by 10.52.155.102 with HTTP; Thu, 5 May 2011 12:34:41 -0700 (PDT) Date: Thu, 5 May 2011 12:34:41 -0700 Message-ID: Subject: caching change between 0.7.0 and 0.7.5 From: Paul Loy To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=20cf3071d088f5214504a28c7695 X-Virus-Checked: Checked by ClamAV on apache.org --20cf3071d088f5214504a28c7695 Content-Type: text/plain; charset=ISO-8859-1 Hi all, so I just updated Cassandra from 0.7.0 to 0.7.5. I embed Cassandra in my app and use StorageProxy for querying. In one of my unit tests I write a column to Cassandra and then read it out again twice in quick succession. The second time I now get the same ByteBuffer (i.e. same id - same 'physical' HeapByteBuffer) as the first call. But as I have consumed this, the position == capacity. I have fixed this in my code by simply using ByteBuffer#duplicate, however I'm concerned that caching may have changed between versions and want to know what the implications of that change may be. So my questions are: 1) is the Row Cache now enabled by default? 2) or is there now some other form of caching that is causing this to happen that I should be aware of? We're pretty close to deploying into production when we came across a critical bug in 0.7.0 (infinite loop in HashMap) which means we have to upgrade but I'm concerned that the changes mean our load/stress tests will not be valid so just need some info to put my mind at ease! Many thanks, Paul. -- --------------------------------------------- Paul Loy paul@keteracel.com http://uk.linkedin.com/in/paulloy --20cf3071d088f5214504a28c7695 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi all,

so I just updated Cassandra from 0.7.0 to 0.7.5. I embed Cas= sandra in my app and use StorageProxy for querying.

In one of my uni= t tests I write a column to Cassandra and then read it out again twice in q= uick succession. The second time I now get the same ByteBuffer (i.e. same i= d - same 'physical' HeapByteBuffer) as the first call. But as I hav= e consumed this, the position =3D=3D capacity.

I have fixed this in my code by simply using ByteBuffer#duplicate, howe= ver I'm concerned that caching may have changed between versions and wa= nt to know what the implications of that change may be.

So my questi= ons are:

1) is the Row Cache now enabled by default?
2) or is there now some = other form of caching that is causing this to happen that I should be aware= of?

We're pretty close to deploying into production when we cam= e across a critical bug in 0.7.0 (infinite loop in HashMap) which means we = have to upgrade but I'm concerned that the changes mean our load/stress= tests will not be valid so just need some info to put my mind at ease!

Many thanks,

Paul.

--
-----------------= ----------------------------
Paul Loy
paul@keteracel.com
http://uk.linkedin.com/in/paulloy
--20cf3071d088f5214504a28c7695--