cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Saurabh Sethi <>
Subject Unable to create a keyspace
Date Thu, 29 Jan 2015 02:19:49 GMT
I have a 3 node Cassandra 2.1.0 cluster and I am using datastax 2.1.4 driver to create a keyspace
followed by creating a column family within that keyspace from my unit test.

But I do not see the keyspace getting created and the code for creating column family fails
because it cannot find the keyspace. I see the following in the system.log file:

INFO  [SharedPool-Worker-1] 2015-01-28 17:59:08,472 - Create new
Keyspace: KSMetaData{name=testmaxcolumnskeyspace, strategyClass=SimpleStrategy, strategyOptions={replication_factor=1},
cfMetaData={}, durableWrites=true, userTypes=org.apache.cassandra.config.UTMetaData@370ad1d3}
INFO  [MigrationStage:1] 2015-01-28 17:59:08,476 - Enqueuing flush
of schema_keyspaces: 512 (0%) on-heap, 0 (0%) off-heap
INFO  [MemtableFlushWriter:22] 2015-01-28 17:59:08,477 - Writing Memtable-schema_keyspaces@1664717092(138
serialized bytes, 3 ops, 0%/0% of on/off-heap limit)
INFO  [MemtableFlushWriter:22] 2015-01-28 17:59:08,486 - Completed flushing
(175 bytes) for commitlog position ReplayPosition(segmentId=1422485457803, position=10514)

This issue doesn’t happen always. My test runs fine sometimes but once it gets into this
state, it remains there for a while and I can constantly reproduce this.

Also, when this issue happens for the first time, I also see the following error message in
system.log file:

ERROR [SharedPool-Worker-1] 2015-01-28 15:08:24,286 - Unexpected exception
during request Connection reset by peer
        at Method) ~[na:1.8.0_05]
        at ~[na:1.8.0_05]
        at ~[na:1.8.0_05]
        at ~[na:1.8.0_05]
        at ~[na:1.8.0_05]
        at io.netty.buffer.PooledUnsafeDirectByteBuf.setBytes(
        at io.netty.buffer.AbstractByteBuf.writeBytes( ~[netty-all-4.0.20.Final.jar:4.0.20.Final]
        at ~[netty-all-4.0.20.Final.jar:4.0.20.Final]
        at ~[netty-all-4.0.20.Final.jar:4.0.20.Final]
        at ~[netty-all-4.0.20.Final.jar:4.0.20.Final]
        at io.netty.util.concurrent.SingleThreadEventExecutor$
        at [na:1.8.0_05]

Anyone has any idea what might be going on here?


View raw message