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 0ADCFD0D9 for ; Fri, 21 Sep 2012 14:07:09 +0000 (UTC) Received: (qmail 27456 invoked by uid 500); 21 Sep 2012 14:07:08 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 27361 invoked by uid 500); 21 Sep 2012 14:07:08 -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 27308 invoked by uid 99); 21 Sep 2012 14:07:08 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Sep 2012 14:07:08 +0000 Date: Sat, 22 Sep 2012 01:07:08 +1100 (NCT) From: "Steve Arch (JIRA)" To: commits@cassandra.apache.org Message-ID: <115431519.107703.1348236428393.JavaMail.jiratomcat@arcas> In-Reply-To: <345844078.9468.1343986264840.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Comment Edited] (CASSANDRA-4486) UnavailableException when setting up a keyspace without a replication factor 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-4486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13460503#comment-13460503 ] Steve Arch edited comment on CASSANDRA-4486 at 9/22/12 1:06 AM: ---------------------------------------------------------------- I'm going to re-open this bug. Copying all the commands from the cassandra tutorial on the datastax website I still get an Unavailable exception with 1.1.5: create keyspace Twissandra; use Twissandra; create column family User with comparator = UTF8Type; update column family User with column_metadata = [ {column_name: first, validation_class: UTF8Type}, {column_name: last, validation_class: UTF8Type}, {column_name: age, validation_class: UTF8Type, index_type: KEYS} ]; assume User keys as utf8; set User['jsmith']['first'] = 'John'; output of last command: null UnavailableException() at org.apache.cassandra.thrift.Cassandra$insert_result.read(Cassandra.java:15982) at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78) at org.apache.cassandra.thrift.Cassandra$Client.recv_insert(Cassandra.java:797) at org.apache.cassandra.thrift.Cassandra$Client.insert(Cassandra.java:781) at org.apache.cassandra.cli.CliClient.executeSet(CliClient.java:909) at org.apache.cassandra.cli.CliClient.executeCLIStatement(CliClient.java:222) at org.apache.cassandra.cli.CliMain.processStatementInteractive(CliMain.java:219) at org.apache.cassandra.cli.CliMain.main(CliMain.java:346) Regardless of your choice of behaviour as to what is 'intend', you have instructions on your website that result in an exception being thrown. was (Author: archs): I'm going to re-open this bug. Copying all the commands from the cassandra tutorial on the datastax website I still get an Unavailable exception with 1.1.5: drop keyspace Twissandra; create keyspace Twissandra; use Twissandra; create column family User with comparator = UTF8Type; update column family User with column_metadata = [ {column_name: first, validation_class: UTF8Type}, {column_name: last, validation_class: UTF8Type}, {column_name: age, validation_class: UTF8Type, index_type: KEYS} ]; assume User keys as utf8; set User['jsmith']['first'] = 'John'; output of last command: null UnavailableException() at org.apache.cassandra.thrift.Cassandra$insert_result.read(Cassandra.java:15982) at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78) at org.apache.cassandra.thrift.Cassandra$Client.recv_insert(Cassandra.java:797) at org.apache.cassandra.thrift.Cassandra$Client.insert(Cassandra.java:781) at org.apache.cassandra.cli.CliClient.executeSet(CliClient.java:909) at org.apache.cassandra.cli.CliClient.executeCLIStatement(CliClient.java:222) at org.apache.cassandra.cli.CliMain.processStatementInteractive(CliMain.java:219) at org.apache.cassandra.cli.CliMain.main(CliMain.java:346) Regardless of your choice of behaviour as to what is 'intend', you have instructions on your website that result in an exception being thrown. > UnavailableException when setting up a keyspace without a replication factor > ---------------------------------------------------------------------------- > > Key: CASSANDRA-4486 > URL: https://issues.apache.org/jira/browse/CASSANDRA-4486 > Project: Cassandra > Issue Type: Bug > Components: Core > Affects Versions: 1.0.10 > Environment: ubuntu 12.04 > Reporter: Steve Arch > Priority: Minor > > We have a cassandra cluster of 4 nodes. When I use cassandra cli to set up a keyspace without explicitely setting a replication factor, trying to add a CF fails with an UnavailableException: > [default@unknown] create keyspace foo; > ae639ba0-d4b8-11e1-0000-424d3d43a8df > Waiting for schema agreement... > schemas agree across the cluster > [default@unknown] use foo; > Authenticated to keyspace: foo > [default@foo] create column family User with comparator = UTF8Type; > b4608180-d4b8-11e1-0000-424d3d43a8df > Waiting for schema agreement... > schemas agree across the cluster > [default@foo] update column family User with > ... column_metadata = > ... [ > ... {column_name: first, validation_class: UTF8Type}, > ... {column_name: last, validation_class: UTF8Type}, > ... {column_name: age, validation_class: UTF8Type, index_type: KEYS} > ... ]; > b70562c0-d4b8-11e1-0000-424d3d43a8df > Waiting for schema agreement... > schemas agree across the cluster > [default@foo] set User['jsmith']['first'] = 'John'; > null > UnavailableException() > at org.apache.cassandra.thrift.Cassandra$insert_result.read(Cassandra.java:15206) > at org.apache.cassandra.thrift.Cassandra$Client.recv_insert(Cassandra.java:858) > at org.apache.cassandra.thrift.Cassandra$Client.insert(Cassandra.java:830) > at org.apache.cassandra.cli.CliClient.executeSet(CliClient.java:901) > at org.apache.cassandra.cli.CliClient.executeCLIStatement(CliClient.java:218) > at org.apache.cassandra.cli.CliMain.processStatementInteractive(CliMain.java:220) > at org.apache.cassandra.cli.CliMain.main(CliMain.java:348) > Either this should work fine (and no unavailableException shoud be thrown) or an exception should be thrown when I create the keyspace because I have set it up wrong. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira