cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jose Martinez Poblete (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CASSANDRA-10165) Query fails when batch_size_warn_threshold_in_kb is not set on cassandra.yaml
Date Mon, 24 Aug 2015 15:19:45 GMT
Jose Martinez Poblete created CASSANDRA-10165:
-------------------------------------------------

             Summary: Query fails when batch_size_warn_threshold_in_kb is not set on cassandra.yaml
                 Key: CASSANDRA-10165
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10165
             Project: Cassandra
          Issue Type: Bug
          Components: Core
         Environment: C* 2.1.5
            Reporter: Jose Martinez Poblete


Jobs failed with the following error:

{noformat}
ERROR [SharedPool-Worker-1] 2015-08-21 18:06:42,759  ErrorMessage.java:244 - Unexpected exception
during request
java.lang.NullPointerException: null
        at org.apache.cassandra.config.DatabaseDescriptor.getBatchSizeWarnThreshold(DatabaseDescriptor.java:855)
~[cassandra-all-2.1.5.469.jar:2.1.5.469]
        at org.apache.cassandra.cql3.statements.BatchStatement.verifyBatchSize(BatchStatement.java:239)
~[cassandra-all-2.1.5.469.jar:2.1.5.469]
        at org.apache.cassandra.cql3.statements.BatchStatement.executeWithoutConditions(BatchStatement.java:311)
~[cassandra-all-2.1.5.469.jar:2.1.5.469]
        at org.apache.cassandra.cql3.statements.BatchStatement.execute(BatchStatement.java:296)
~[cassandra-all-2.1.5.469.jar:2.1.5.469]
        at org.apache.cassandra.cql3.statements.BatchStatement.execute(BatchStatement.java:282)
~[cassandra-all-2.1.5.469.jar:2.1.5.469]
        at org.apache.cassandra.cql3.QueryProcessor.processBatch(QueryProcessor.java:503)
~[cassandra-all-2.1.5.469.jar:2.1.5.469]
        at com.datastax.bdp.cassandra.cql3.DseQueryHandler$BatchStatementExecution.execute(DseQueryHandler.java:327)
~[dse.jar:4.7.0]
        at com.datastax.bdp.cassandra.cql3.DseQueryHandler$Operation.executeWithTiming(DseQueryHandler.java:223)
~[dse.jar:4.7.0]
        at com.datastax.bdp.cassandra.cql3.DseQueryHandler$Operation.executeWithAuditLogging(DseQueryHandler.java:259)
~[dse.jar:4.7.0]
        at com.datastax.bdp.cassandra.cql3.DseQueryHandler.processBatch(DseQueryHandler.java:110)
~[dse.jar:4.7.0]
        at org.apache.cassandra.transport.messages.BatchMessage.execute(BatchMessage.java:215)
~[cassandra-all-2.1.5.469.jar:2.1.5.469]
        at org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:439)
[cassandra-all-2.1.5.469.jar:2.1.5.469]
        at org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:335)
[cassandra-all-2.1.5.469.jar:2.1.5.469]
        at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
[netty-all-4.0.23.Final.jar:4.0.23.Final]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
[netty-all-4.0.23.Final.jar:4.0.23.Final]
        at io.netty.channel.AbstractChannelHandlerContext.access$700(AbstractChannelHandlerContext.java:32)
[netty-all-4.0.23.Final.jar:4.0.23.Final]
        at io.netty.channel.AbstractChannelHandlerContext$8.run(AbstractChannelHandlerContext.java:324)
[netty-all-4.0.23.Final.jar:4.0.23.Final]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_75]
        at org.apache.cassandra.concurrent.AbstractTracingAwareExecutorService$FutureTask.run(AbstractTracingAwareExecutorService.java:164)
[cassandra-all-2.1.5.469.jar:2.1.5.469]
        at org.apache.cassandra.concurrent.SEPWorker.run(SEPWorker.java:105) [cassandra-all-2.1.5.469.jar:2.1.5.469]
        at java.lang.Thread.run(Thread.java:745) [na:1.7.0_75]
{noformat}

It turns there was no entry for *batch_size_warn_threshold_in_kb* on cassandra.yaml

Once we set that parameter on the file, the error went away

Can we please have C* assume this setting defaults to 64Kb without prejudice on the job if
it's not specified on the yaml file?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message