Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 81376 invoked from network); 12 Apr 2011 00:16:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Apr 2011 00:16:46 -0000 Received: (qmail 28616 invoked by uid 500); 12 Apr 2011 00:16:46 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 28580 invoked by uid 500); 12 Apr 2011 00:16:45 -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 28572 invoked by uid 99); 12 Apr 2011 00:16:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Apr 2011 00:16:45 +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; Tue, 12 Apr 2011 00:16: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 BE06B9D8D8 for ; Tue, 12 Apr 2011 00:16:05 +0000 (UTC) Date: Tue, 12 Apr 2011 00:16:05 +0000 (UTC) From: "Josep M. Blanquer (JIRA)" To: commits@cassandra.apache.org Message-ID: <1595622236.51165.1302567365774.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (CASSANDRA-2456) using NTS, you get a an error (datacenter has no more endpoints) when there are no nodes in a DC 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 using NTS, you get a an error (datacenter has no more endpoints) when there are no nodes in a DC ------------------------------------------------------------------------------------------------ Key: CASSANDRA-2456 URL: https://issues.apache.org/jira/browse/CASSANDRA-2456 Project: Cassandra Issue Type: Bug Components: Core Affects Versions: 0.7.4 Reporter: Josep M. Blanquer If one creates a brand new DC in the NTS (NetworkTopologyStrategy) for which no node has been seen, you'll get exceptions for any write consistency level after that. Note that you don't get the problem if you have a DC for which you have all nodes marked 'down'. It seems just a bug when there are 0 nodes seen in the DC. To reproduce: 1- Go to a running NTS cluster, and add a new DC in the strategy options. I.e., from the console, assuming you have DC1 and DC2 normally, add a DC3: update keyspace WhateverKeyspace with strategy_options=[{DC1:2,DC2:1,DC3:1}]; 2- Try to write...and you'll get: java.lang.IllegalStateException: datacenter (DC3) has no more endpoints, (1) replicas still needed but if you boot a node in DC3, and then stop it...the writes will succeed. I believe it should always succeed to be consistent? Otherwise one needs to boot nodes in the right DCs, get the snitches propagated and all...all before changing the NTS strategy options. Maybe that's fine...but it feels inconsistent with succeeding when a whole DC is down. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira