cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven Lowenthal (JIRA)" <>
Subject [jira] [Created] (CASSANDRA-7256) Error when dropping keyspace.
Date Sat, 17 May 2014 01:21:14 GMT
Steven Lowenthal created CASSANDRA-7256:

             Summary: Error when dropping keyspace.  
                 Key: CASSANDRA-7256
             Project: Cassandra
          Issue Type: Bug
          Components: Core
         Environment: ubuntu 3 nodes (had 3 more in 2nd datacenter but removed it)
            Reporter: Steven Lowenthal

created a 3 node datacenter  called existing.

ran cassandra-stress:

cassandra-stress -R NetworkTopologyStrategy -O existing:2 -d existing0 -n 2000000 -k

Added a 2nd datacenter called new with 3 nodes started it with auto_bootstrap: false

alter keyspace "Keyspace1" with replication = {'class':'NetworkTopologyStrategy','existing':2,'new':2};

I then discovered that cassandra-stress --operation=read failed with LOCAL_QUORUM if a node
was down in the local datacenter - this occured in both, but should not have, so decided to
try again.

I shut down the new datacenter and removed all 3 nodes.  I then tried to drop the Keyspace1
keyspace.  cqlsh disconnected, and the log shows the error below.

ERROR [MigrationStage:1] 2014-05-16 23:57:03,085 (line 198) Exception
in thread Thread[MigrationStage:1,5,main]
java.lang.IllegalStateException: One row required, 0 found
at org.apache.cassandra.config.KSMetaData.fromSchema(
at org.apache.cassandra.db.DefsTables.mergeKeyspaces(
at org.apache.cassandra.db.DefsTables.mergeSchema(
at org.apache.cassandra.service.MigrationManager$2.runMayThrow(
at java.util.concurrent.Executors$
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$

This message was sent by Atlassian JIRA

View raw message