You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cassandra.apache.org by Jonathan Ellis <jb...@gmail.com> on 2010/08/11 06:13:51 UTC

Re: Create then Delete KS without putting anything in it causes exception

Can you create a JIRA ticket?  Thanks!

On Tue, Aug 10, 2010 at 6:16 PM, Jeremiah Jordan
<JE...@morningstar.com> wrote:
> The following from python causes an exception on
> apache-cassandra-2010-08-10_13-08-19-bin.tar.gz and a bunch of earlier
> builds in the 0.7 line:
>        socket = TSocket.TSocket(host, 9160)
>        transport = TTransport.TFramedTransport(socket)
>        protocol = TBinaryProtocol.TBinaryProtocolAccelerated(transport)
>        client = Cassandra.Client(protocol)
>        transport.open()
>        try:
>            client.describe_keyspace(dbName)
>        except NotFoundException, e:
>            keyspaceDef = KsDef(name=dbName,
>
> strategy_class='org.apache.cassandra.locator.RackUnawareStrategy',
>                                replication_factor=replicationFactor,
>                                cf_defs=[])
>            client.set_keyspace('system')
>            client.system_add_keyspace(keyspaceDef)
>
>        try:
>            client.describe_keyspace(dbName)
>            client.set_keyspace('system')
>            client.system_drop_keyspace(dbName)
>        except NotFoundException, e:
>            pass
>
> The system_drop_keyspace throws:
> InvalidRequestException(why='java.util.concurrent.ExecutionException:
> java.lang.NullPointerException')
>
> If I put a system_add_column_family in the middle it doesn't crash.
> This broke sometime after apache-cassandra-2010-07-06_13-27-21
>
> -Jeremiah
>
> ________________________________
> Jeremiah Jordan
> Application Developer
> Morningstar, Inc.
>
> Morningstar. Illuminating investing worldwide.
>
> +1 312 696-6128 voice
> jeremiah.jordan@morningstar.com
>
> www.morningstar.com
>
> This e-mail contains privileged and confidential information and is
> intended only for the use of the person(s) named above. Any
> dissemination, distribution, or duplication of this communication
> without prior written consent from Morningstar is strictly prohibited.
> If you have received this message in error, please contact the sender
> immediately and delete the materials from any computer.
>
>



-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of Riptano, the source for professional Cassandra support
http://riptano.com