cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tyler Hobbs (JIRA)" <>
Subject [jira] [Created] (CASSANDRA-6592) IllegalArgumentException when Preparing Statements
Date Wed, 15 Jan 2014 21:01:19 GMT
Tyler Hobbs created CASSANDRA-6592:

             Summary: IllegalArgumentException when Preparing Statements
                 Key: CASSANDRA-6592
             Project: Cassandra
          Issue Type: Bug
          Components: Core
            Reporter: Tyler Hobbs
            Priority: Minor

When preparing a lot of statements with the python native driver, I occasionally get an error
response with an error that corresponds to the following stacktrace in the cassandra logs:

ERROR [Native-Transport-Requests:126] 2014-01-11 13:58:05,503 (line 210)
Unexpected exception during request
        at com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap.checkArgument(
        at com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap$BoundedEntryWeigher.weightOf(
        at com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap.put(
        at com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap.put(
        at org.apache.cassandra.cql3.QueryProcessor.storePreparedStatement(
        at org.apache.cassandra.cql3.QueryProcessor.prepare(
        at org.apache.cassandra.transport.messages.PrepareMessage.execute(
        at org.apache.cassandra.transport.Message$Dispatcher.messageReceived(
        at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
        at java.util.concurrent.ThreadPoolExecutor$

Looking at the CLHM source, this means we're giving the statement a weight that's less than
1.  I'll also note that these errors frequently happen in clumps of 2 or 3 at a time.

This message was sent by Atlassian JIRA

View raw message