Elffuss BraidHub

kikocis/java-driver public

Set batch_size_warn_threshold_in_kb explicitly

Motivation:

batch_size_warn_threshold_in_kb has a different default value in DSE
(64kb) than in Apache Cassandra (5kb).  Setting the value explicitly
produces consistent results when testing each.

Modifications:

Add @CCMConfig annotation to set batch_size_warn_threshold_in_kb to 5kb.

Result:

Test behaves correctly for both DSE and Cassandra.
Changesetded53c12ab719f02d9ed366ebc521c87fdd6c967afddc9fa59e814a54ddd88a9
AuthorAndrew Tolbert <andrew.tolbert@datastax.com> · 2016-12-06 17:13 -06:00
CommitterAndrew Tolbert <andrew.tolbert@datastax.com> · 2016-12-14 17:44 -06:00
Parents738a73e7064e

Browse the files at this changeset

1 file changed

modified driver-core/src/test/java/com/datastax/driver/core/WarningsTest.java +2 −1
@@ -23,6 +23,8 @@
2323
2424 import static org.assertj.core.api.Assertions.assertThat;
2525
26+@CCMConfig(config = {"batch_size_warn_threshold_in_kb:5"})
27+@CassandraVersion(major = 2.2)
2628 public class WarningsTest extends CCMTestsSupport {
2729
2830 @Override
@@ -30,7 +32,6 @@
3032 execute("CREATE TABLE foo(k int primary key, v text)");
3133 }
3234
33- @CassandraVersion(major = 2.2)
3435 @Test(groups = "short")
3536 public void should_expose_warnings_on_execution_info() {
3637 // the default batch size warn threshold is 5 * 1024 bytes, but after CASSANDRA-10876 there must be