Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-6293

CASSANDRA-6107 causes EmbeddedCassandraService to fail

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.2.12, 2.0.3
    • None
    • None

    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

        1. CASSANDRA-1.2-6293.patch
          5 kB
          Mikhail Stepura

        Issue Links

          Activity

            People

              mishail Mikhail Stepura
              mikeoz Michael Oczkowski
              Mikhail Stepura
              Jonathan Ellis
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: