Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 14BDA90FE for ; Mon, 13 Feb 2012 13:31:24 +0000 (UTC) Received: (qmail 42301 invoked by uid 500); 13 Feb 2012 13:31:23 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 42211 invoked by uid 500); 13 Feb 2012 13:31:23 -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 42192 invoked by uid 99); 13 Feb 2012 13:31:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Feb 2012 13:31:22 +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; Mon, 13 Feb 2012 13:31:20 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D53091B4F4D for ; Mon, 13 Feb 2012 13:30:59 +0000 (UTC) Date: Mon, 13 Feb 2012 13:30:59 +0000 (UTC) From: "Sylvain Lebresne (Updated) (JIRA)" To: commits@cassandra.apache.org Message-ID: <863314139.31616.1329139859874.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <2075749982.2672.1328548679307.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (CASSANDRA-3862) RowCache misses Updates 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-3862?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sylvain Lebresne updated CASSANDRA-3862: ---------------------------------------- Attachment: 3862_v3.patch > RowCache misses Updates > ----------------------- > > Key: CASSANDRA-3862 > URL: https://issues.apache.org/jira/browse/CASSANDRA-3862 > Project: Cassandra > Issue Type: Bug > Components: Core > Affects Versions: 1.0.7 > Reporter: Daniel Doubleday > Attachments: 3862-v2.patch, 3862.patch, 3862_v3.patch, include_memtables_in_rowcache_read.patch > > > While performing stress tests to find any race problems for CASSANDRA-2864 I guess I (re-)found one for the standard on-heap row cache. > During my stress test I hava lots of threads running with some of them only reading other writing and re-reading the value. > This seems to happen: > - Reader tries to read row A for the first time doing a getTopLevelColumns > - Row A which is not in the cache yet is updated by Writer. The row is not eagerly read during write (because we want fast writes) so the writer cannot perform a cache update > - Reader puts the row in the cache which is now missing the update > I already asked this some time ago on the mailing list but unfortunately didn't dig after I got no answer since I assumed that I just missed something. In a way I still do but haven't found any locking mechanism that makes sure that this should not happen. > The problem can be reproduced with every run of my stress test. When I restart the server the expected column is there. It's just missing from the cache. > To test I have created a patch that merges memtables with the row cache. With the patch the problem is gone. > I can also reproduce in 0.8. Haven't checked 1.1 but I haven't found any relevant change their either so I assume the same aplies there. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira