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 6748F10A49 for ; Thu, 19 Dec 2013 23:38:07 +0000 (UTC) Received: (qmail 92860 invoked by uid 500); 19 Dec 2013 23:38:07 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 92842 invoked by uid 500); 19 Dec 2013 23:38:07 -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 92833 invoked by uid 99); 19 Dec 2013 23:38:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Dec 2013 23:38:07 +0000 Date: Thu, 19 Dec 2013 23:38:07 +0000 (UTC) From: "Jonathan Ellis (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-5701) Apache.Cassandra.Cassandra.get_count will disconnect but not throw InvalidRequestException when column family is not exist. 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-5701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13853462#comment-13853462 ] Jonathan Ellis commented on CASSANDRA-5701: ------------------------------------------- Where were we on this? ISTR having some issues applying the patch. You were going to post a branch? > Apache.Cassandra.Cassandra.get_count will disconnect but not throw InvalidRequestException when column family is not exist. > --------------------------------------------------------------------------------------------------------------------------- > > Key: CASSANDRA-5701 > URL: https://issues.apache.org/jira/browse/CASSANDRA-5701 > Project: Cassandra > Issue Type: Bug > Components: API > Affects Versions: 1.2.4 > Environment: cassandra server : 1.2.4 > and cassandra1.2.5 has same bug. > client : C# client > Reporter: yuemaoxing > Assignee: Lyuben Todorov > Priority: Minor > Fix For: 1.2.13, 2.0.4 > > Attachments: 5701_cassandra-2.0.patch > > Original Estimate: 24h > Remaining Estimate: 24h > > When I use get_count interface which is defined in Cassandra.thrift, the Cassandra Server(1.2.4) close the connection from Client when column family is not exist in that keyspace but not throw InvalidRequestException. > It seemed the get_count method in cassandra.thrift.CassandraServer.java did not validate parameters(ThriftValidation.validateColumnFamily) in this method. > system.log: > ERROR [RPC-Thread:3373] 2013-06-26 14:23:09,264 TNonblockingServer.java (line 638) Unexpected exception while invoking! > java.lang.IllegalArgumentException: Unknown table/cf pair (Keyspace1.Standard) > at org.apache.cassandra.db.Table.getColumnFamilyStore(Table.java:165) > at org.apache.cassandra.thrift.CassandraServer.get_count(CassandraServer.java:471) > at org.apache.cassandra.thrift.Cassandra$Processor$get_count.getResult(Cassandra.java:3381) > at org.apache.cassandra.thrift.Cassandra$Processor$get_count.getResult(Cassandra.java:3369) > at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:32) > at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:34) > at org.apache.thrift.server.TNonblockingServer$FrameBuffer.invoke(TNonblockingServer.java:632) > at org.apache.cassandra.thrift.CustomTHsHaServer$Invocation.run(CustomTHsHaServer.java:109) > at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) > at java.lang.Thread.run(Unknown Source) > Please check this bug, thanks! -- This message was sent by Atlassian JIRA (v6.1.4#6159)