Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 394 invoked from network); 19 Sep 2010 17:46:12 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Sep 2010 17:46:12 -0000 Received: (qmail 36717 invoked by uid 500); 19 Sep 2010 17:46:12 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 36702 invoked by uid 500); 19 Sep 2010 17:46:12 -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 36694 invoked by uid 99); 19 Sep 2010 17:46:12 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Sep 2010 17:46:12 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Sep 2010 17:45:54 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8JHjX4t025522 for ; Sun, 19 Sep 2010 17:45:33 GMT Message-ID: <2304237.283951284918333187.JavaMail.jira@thor> Date: Sun, 19 Sep 2010 13:45:33 -0400 (EDT) From: "Stu Hood (JIRA)" To: commits@cassandra.apache.org Subject: [jira] Commented: (CASSANDRA-1434) ColumnFamilyOutputFormat performs blocking writes for large batches In-Reply-To: <26949102.572491282778419356.JavaMail.jira@thor> 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-1434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12912263#action_12912263 ] Stu Hood commented on CASSANDRA-1434: ------------------------------------- * ArrayBlockingQueue.isEmpty will kill client threads if their queue is ever empty * Interrupt handling doesn't seem like a clearer solution for killing client threads: what happens when an interrupt in received during a mutation? * I don't like the idea of indefinite retries: pretending that the cluster is never unavailable sidesteps Hadoop's own retry system * As mentioned in IRC, batchSize == 1 does not seem like a good value to hardcode. Any amount of overhead becomes measurable when you are sending small enough values: mutations containing a single integer might increase in size X fold for instance > ColumnFamilyOutputFormat performs blocking writes for large batches > ------------------------------------------------------------------- > > Key: CASSANDRA-1434 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1434 > Project: Cassandra > Issue Type: Bug > Components: Hadoop > Reporter: Stu Hood > Assignee: Stu Hood > Fix For: 0.7 beta 2 > > Attachments: 0001-Switch-away-from-Multimap-and-fix-regression-introdu.patch, 0002-Improve-concurrency-and-add-basic-retries-by-attempt.patch, 0003-Switch-RingCache-back-to-multimap.patch, 0004-Replace-Executor-with-map-of-threads.patch, 1434-v3.txt > > > By default, ColumnFamilyOutputFormat batches {{mapreduce.output.columnfamilyoutputformat.batch.threshold}} or {{Long.MAX_VALUE}} mutations, and then performs a blocking write. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.