You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by al...@apache.org on 2019/06/21 11:52:15 UTC

[cassandra-dtest] branch master updated: Fix largecolumn_test.py

This is an automated email from the ASF dual-hosted git repository.

aleksey pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cassandra-dtest.git


The following commit(s) were added to refs/heads/master by this push:
     new 48ebe70  Fix largecolumn_test.py
48ebe70 is described below

commit 48ebe706a0e23b0a69db3fe7571f08d5098b51db
Author: Aleksey Yeschenko <al...@apple.com>
AuthorDate: Fri Jun 21 12:51:13 2019 +0100

    Fix largecolumn_test.py
---
 largecolumn_test.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/largecolumn_test.py b/largecolumn_test.py
index 97bb013..48ad0cd 100644
--- a/largecolumn_test.py
+++ b/largecolumn_test.py
@@ -45,9 +45,11 @@ class TestLargeColumn(Tester):
         cluster = self.cluster
         # Commit log segment size needs to increase for the database to be willing to accept columns that large
         # internode compression is disabled because the regression being tested occurs in NIO buffer pooling without compression
-        cluster.set_configuration_options({'commitlog_segment_size_in_mb': 128,
-                                           'internode_compression': 'none',
-                                           'internode_max_message_size_in_bytes': 128 * 1024 * 1024})
+        configuration = {'commitlog_segment_size_in_mb': 128, 'internode_compression': 'none'}
+        if cluster.version() < '4.0':
+            configuration['internode_max_message_size_in_bytes'] = 128 * 1024 * 1024
+        cluster.set_configuration_options(configuration)
+
         # Have Netty allocate memory on heap so it is clear if memory used for large columns is related to intracluster messaging
         cluster.populate(2).start(jvm_args=[" -Dcassandra.netty_use_heap_allocator=true "])
         node1, node2 = cluster.nodelist()


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org