cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mariusz (Created) (JIRA)" <>
Subject [jira] [Created] (CASSANDRA-4031) Exceptions during inserting emtpy string as column value on indexed column
Date Fri, 09 Mar 2012 13:10:57 GMT
Exceptions during inserting emtpy string as column value on indexed column

                 Key: CASSANDRA-4031
             Project: Cassandra
          Issue Type: Bug
            Reporter: Mariusz

I`m running one node cluster(issue occurs also on other cluster(which has 2 nodes)) on snapshot
from cassandra-1.1 branch(i used 449e037195c3c504d7aca5088e8bc7bd5a50e7d0 commit).
i have simple CF, definition of TestCF:
[default@test_keyspace] describe Test_CF;
    ColumnFamily: Test_CF
      Key Validation Class: org.apache.cassandra.db.marshal.UTF8Type
      Default column value validator: org.apache.cassandra.db.marshal.UTF8Type
      Columns sorted by: org.apache.cassandra.db.marshal.UTF8Type
      GC grace seconds: 864000
      Compaction min/max thresholds: 4/32
      Read repair chance: 1.0
      DC Local Read repair chance: 0.0
      Replicate on write: true
      Caching: KEYS_ONLY
      Bloom Filter FP chance: default
      Built indexes: [Test_CF.Test_CF_test_index_idx]
      Column Metadata:
        Column Name: test_index
          Validation Class: org.apache.cassandra.db.marshal.UTF8Type
          Index Name: Test_CF_test_index_idx
          Index Type: KEYS
      Compaction Strategy: org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy
      Compression Options:
I`m trying to add new row(log from cassandra-cli, note that there is index on test_index):
[default@test_keyspace] list Test_CF;              
Using default limit of 100

0 Row Returned.
Elapsed time: 31 msec(s).
[default@test_keyspace] set Test_CF[absdsad3][test_index]='';
	at org.apache.cassandra.thrift.Cassandra$
	at org.apache.thrift.TServiceClient.receiveBase(
	at org.apache.cassandra.thrift.Cassandra$Client.recv_insert(
	at org.apache.cassandra.thrift.Cassandra$Client.insert(
	at org.apache.cassandra.cli.CliClient.executeSet(
	at org.apache.cassandra.cli.CliClient.executeCLIStatement(
	at org.apache.cassandra.cli.CliMain.processStatementInteractive(
	at org.apache.cassandra.cli.CliMain.main(
[default@test_keyspace] list Test_CF;                        
Using default limit of 100
RowKey: absdsad3
=> (column=test_index, value=, timestamp=1331298173009000)

1 Row Returned.
Elapsed time: 7 msec(s).
Exception from system.log:
 INFO [FlushWriter:56] 2012-03-09 13:42:02,500 (line 291) Completed flushing
(2077 bytes)
ERROR [MutationStage:2291] 2012-03-09 13:42:22,232 (line 134)
Exception in thread Thread[MutationStage:2291,5,main]
        at org.apache.cassandra.db.DecoratedKey.<init>(
        at org.apache.cassandra.db.index.SecondaryIndexManager.getIndexKeyFor(
        at org.apache.cassandra.db.index.SecondaryIndexManager.applyIndexUpdates(
        at org.apache.cassandra.db.Table.apply(
        at org.apache.cassandra.db.Table.apply(
        at org.apache.cassandra.db.RowMutation.apply(
        at org.apache.cassandra.service.StorageProxy$6.runMayThrow(
        at org.apache.cassandra.service.StorageProxy$
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
        at java.util.concurrent.ThreadPoolExecutor$

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message