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

NoSQL and Vector DB
for Generative AI,
Instantly, At Scale

Vector search capabilities on Astra DB enable complex, context-sensitive searches across diverse data formats for use in Generative AI applications, powered by Apache Cassandra®.