Description
Starting with 1.2.11 calling statement.prepare() when running EmbeddedCassandraService causes an exception due to missing Java agent. Prior to 1.2.11 this never caused an exception, though there were warnings in the logs about the missing agent.
2013-11-01 11:14:06,508 ERROR Native-Transport-Requests:109 org.apache.cassandra.transport.messages.ErrorMessage - Unexpected exception during request
java.lang.IllegalStateException: Instrumentation is not set; Jamm must be set as -javaagent
at org.github.jamm.MemoryMeter.measure(MemoryMeter.java:70)
at org.github.jamm.MemoryMeter.measureDeep(MemoryMeter.java:102)
at org.apache.cassandra.cql3.QueryProcessor.storePreparedStatement(QueryProcessor.java:214)
at org.apache.cassandra.cql3.QueryProcessor.prepare(QueryProcessor.java:202)
at org.apache.cassandra.transport.messages.PrepareMessage.execute(PrepareMessage.java:77)
at org.apache.cassandra.transport.Message$Dispatcher.messageReceived(Message.java:287)
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:43)
at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:67)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
Attachments
Attachments
Issue Links
- is broken by
-
CASSANDRA-6107 CQL3 Batch statement memory leak
- Resolved