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 0A1001069 for ; Wed, 20 Apr 2011 17:54:45 +0000 (UTC) Received: (qmail 18821 invoked by uid 500); 20 Apr 2011 17:54:44 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 18799 invoked by uid 500); 20 Apr 2011 17:54:44 -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 18791 invoked by uid 99); 20 Apr 2011 17:54:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Apr 2011 17:54:44 +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, 20 Apr 2011 17:54:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 28540AB92B for ; Wed, 20 Apr 2011 17:54:06 +0000 (UTC) Date: Wed, 20 Apr 2011 17:54:06 +0000 (UTC) From: "Narendra Sharma (JIRA)" To: commits@cassandra.apache.org Message-ID: <328768295.70555.1303322046161.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1077123770.68669.1303259406103.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CASSANDRA-2514) batch_mutate operations with CL=LOCAL_QUORUM throw TimeOutException when there aren't sufficient live nodes 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-2514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13022258#comment-13022258 ] Narendra Sharma commented on CASSANDRA-2514: -------------------------------------------- Got it. In my setup I had HH disabled. So I overlooked the rest of the getHintedEndpoints. The change looks good to me now. Thanks! > batch_mutate operations with CL=LOCAL_QUORUM throw TimeOutException when there aren't sufficient live nodes > ----------------------------------------------------------------------------------------------------------- > > Key: CASSANDRA-2514 > URL: https://issues.apache.org/jira/browse/CASSANDRA-2514 > Project: Cassandra > Issue Type: Bug > Components: Core > Affects Versions: 0.7.0 > Environment: 1. Cassandra 0.7.4 running on RHEL 5.5 > 2. 2 DC setup > 3. RF = 4 (DC1 = 2, DC2 = 2) > 4. CL = LOCAL_QUORUM > Reporter: Narendra Sharma > Priority: Minor > Fix For: 0.7.5 > > Attachments: 2514-v2.txt, CASSANDRA-2514.patch > > > We have a 2 DC setup with RF = 4. There are 2 nodes in each DC. Following is the keyspace definition: > > keyspaces: > - name: KeyspaceMetadata > replica_placement_strategy: org.apache.cassandra.locator.NetworkTopologyStrategy > strategy_options: > DC1 : 2 > DC2 : 2 > replication_factor: 4 > > I shutdown all except one node and waited for the live node to recognize that other nodes are dead. Following is the nodetool ring output on the live node: > Address Status State Load Owns Token > 169579575332184635438912517119426957796 > 10.17.221.19 Down Normal ? 29.20% 49117425183422571410176530597442406739 > 10.17.221.17 Up Normal 81.64 KB 4.41% 56615248844645582918169246064691229930 > 10.16.80.54 Down Normal ? 21.13% 92563519227261352488017033924602789201 > 10.17.221.18 Down Normal ? 45.27% 169579575332184635438912517119426957796 > I expect UnavailableException when I send batch_mutate request to node that is up. However, it returned TimeOutException: > TimedOutException() > at org.apache.cassandra.thrift.Cassandra$batch_mutate_result.read(Cassandra.java:16493) > at org.apache.cassandra.thrift.Cassandra$Client.recv_batch_mutate(Cassandra.java:916) > at org.apache.cassandra.thrift.Cassandra$Client.batch_mutate(Cassandra.java:890) > Following is the cassandra-topology.properties > # Cassandra Node IP=Data Center:Rack > 10.17.221.17=DC1:RAC1 > 10.17.221.19=DC1:RAC2 > 10.17.221.18=DC2:RAC1 > 10.16.80.54=DC2:RAC2 -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira