Return-Path: Delivered-To: apmail-incubator-cassandra-commits-archive@minotaur.apache.org Received: (qmail 75691 invoked from network); 17 Nov 2009 14:32:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Nov 2009 14:32:03 -0000 Received: (qmail 26335 invoked by uid 500); 17 Nov 2009 14:32:02 -0000 Delivered-To: apmail-incubator-cassandra-commits-archive@incubator.apache.org Received: (qmail 26301 invoked by uid 500); 17 Nov 2009 14:32:02 -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 26125 invoked by uid 99); 17 Nov 2009 14:32:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Nov 2009 14:32:02 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI 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; Tue, 17 Nov 2009 14:31:59 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B138D234C1F1 for ; Tue, 17 Nov 2009 06:31:39 -0800 (PST) Message-ID: <1563286483.1258468299724.JavaMail.jira@brutus> Date: Tue, 17 Nov 2009 14:31:39 +0000 (UTC) From: "Jaakko Laine (JIRA)" To: cassandra-commits@incubator.apache.org Subject: [jira] Commented: (CASSANDRA-558) optimize local writes In-Reply-To: <1699112947.1258391499589.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12778902#action_12778902 ] Jaakko Laine commented on CASSANDRA-558: ---------------------------------------- 1) I was thinking of having some helper function doTheStuff(WriteResponseHandler responseHandler) and then set the responsehandler if it was not null. Don't know if this would be enough, though. 3) It can be local if cluster size is only slightly bigger than replication factor: (a) Suppose we have a cluster of four nodes (1, 2, 3 and 4) with replication factor 3. (b) Suppose that write is done, for which 1, 2 and 3 are responsible for storing replicas. (c) Suppose that this write is directed to node 4, and nodes 2 and 3 are down at this time. In this case one write will go to node 1, and node 4 will store hinted replicas for 2 and 3. Even if only one of these nodes (1, 2 or 3) is down, the hinted replica will go to the local node to which write operation was directed. This is because getHintedMapForEndpoints fills the list of endpoints with local endpoint in case it cannot get enough of unused live endpoints. But as mentioned, this is a very rare case, so probably not worth the trouble. 5) I'll test this more in the morning. > optimize local writes > --------------------- > > Key: CASSANDRA-558 > URL: https://issues.apache.org/jira/browse/CASSANDRA-558 > Project: Cassandra > Issue Type: Improvement > Reporter: Jonathan Ellis > Assignee: Jonathan Ellis > Priority: Minor > Fix For: 0.5 > > Attachments: 0001-CASSANDRA-558-make-local-insert-skip-MessagingServic.txt, 0002-add-WriteResponseHandler-combining-the-important-parts.txt, 0003-rename.txt, 0004-two-trivial-changes.patch > > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.