TechnologyFebruary 26, 2016

Cassandra Unit Testing with Byteman

Sam Tunnicliffe
Sam Tunnicliffe
Cassandra Unit Testing with Byteman
@Test
@BMRule(name = "Greatest name in the world",
        targetClass="HintsBufferPool",
        targetMethod="switchCurrentBuffer",
        targetLocation="AT INVOKE java.util.concurrent.BlockingQueue.take",
        action="org.apache.cassandra.hints.HintsBufferPoolTest.blockedOnBackpressure = true;")
public void testBackpressure() throws Exception
action="org.apache.cassandra.hints.HintsBufferPoolTest.blockedOnBackpressure = true
targetClass="HintsBufferPool",
targetMethod="switchCurrentBuffer",
targetLocation="AT INVOKE java.util.concurrent.BlockingQueue.take",
assertTrue(blockedOnBackpressure);
Discover more
Apache Cassandra™
Share

One-stop Data API for Production GenAI

Astra DB gives JavaScript developers a complete data API and out-of-the-box integrations that make it easier to build production RAG apps with high relevancy and low latency.