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 E73911095F for ; Thu, 16 Jan 2014 10:21:22 +0000 (UTC) Received: (qmail 88525 invoked by uid 500); 16 Jan 2014 10:21:22 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 87876 invoked by uid 500); 16 Jan 2014 10:21:21 -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 87862 invoked by uid 99); 16 Jan 2014 10:21:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jan 2014 10:21:20 +0000 Date: Thu, 16 Jan 2014 10:21:20 +0000 (UTC) From: "Sylvain Lebresne (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CASSANDRA-6583) DROP TYPE complains no keyspace is active (when keyspace is active) 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-6583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sylvain Lebresne resolved CASSANDRA-6583. ----------------------------------------- Resolution: Fixed Fix Version/s: 2.1 Same problem than for CASSANDRA-6582, the keyspace preparation was missing for DropType. Ninja-committed the trivial fix here too (commit b8070ff). Sorry for not having checked those after CASSANDRA-6438. > DROP TYPE complains no keyspace is active (when keyspace is active) > ------------------------------------------------------------------- > > Key: CASSANDRA-6583 > URL: https://issues.apache.org/jira/browse/CASSANDRA-6583 > Project: Cassandra > Issue Type: Bug > Environment: trunk-4910ce8 > java version "1.7.0_45" > Reporter: Russ Hatch > Assignee: Sylvain Lebresne > Priority: Minor > Fix For: 2.1 > > > ALTER TYPE DROP complains that there is no active keyspace (even when the session has an active keyspace). The drop works when the prefix is provided. > steps to reproduce: > {noformat} > ccm create test_cluster > ccm populate -n 1 > ccm start > ccm node1 cqlsh > Connected to test_cluster at 127.0.0.1:9160. > [cqlsh 4.1.1 | Cassandra 2.1-SNAPSHOT | CQL spec 3.1.1 | Thrift protocol 19.39.0] > Use HELP for help. > cqlsh> create keyspace user_type_dropping with replication = {'class':'SimpleStrategy', 'replication_factor':1} ; > cqlsh> use user_type_dropping ; > cqlsh:user_type_dropping> CREATE TYPE simple_type ( > ... user_number int > ... ); > cqlsh:user_type_dropping> DROP TYPE simple_type; > Bad Request: You have not set a keyspace for this session > cqlsh:user_type_dropping> DROP TYPE user_type_dropping.simple_type; > {noformat} -- This message was sent by Atlassian JIRA (v6.1.5#6160)