[
https://issues.apache.org/jira/browse/CASSANDRA-1378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12898585#action_12898585
]
Hudson commented on CASSANDRA-1378:
-----------------------------------
Integrated in Cassandra #514 (See
[http://hudson.zones.apache.org/hudson/job/Cassandra/514/])
handle graveyard cleanups gracefully when there is nothing to delete. patch
by gdusbabek, reviewed by jbellis. CASSANDRA-1378
trap ConfigExceptions so they don't become RTEs. patch by gdusbabek, reviewed
by jbellis. CASSANDRA-1378
> 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
> Fix For: 0.7 beta 2
>
> Attachments:
> v1-0001-handle-graveyard-cleanups-gracefully-when-there-is-not.txt
>
>
> 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.