cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Dusbabek (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (CASSANDRA-1378) add then drop Keyspace without putting anything in it causes exception
Date Thu, 12 Aug 2010 02:42:17 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-1378?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Gary Dusbabek reassigned CASSANDRA-1378:
----------------------------------------

    Assignee: Gary Dusbabek

> add then drop Keyspace without putting anything in it causes exception
> ----------------------------------------------------------------------
>
>                 Key: CASSANDRA-1378
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1378
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.7 beta 1
>         Environment: Single node.  Both Linux and Windows.
>            Reporter: Jeremiah Jordan
>            Assignee: Gary Dusbabek
>            Priority: Minor
>
> 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.
> I think this broke sometime after apache-cassandra-2010-07-06_13-27-21

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message