This is an automated email from the ASF dual-hosted git repository. jolynch 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 da7fcef Fix compression_test.TestCompression regression da7fcef is described below commit da7fcefb16d16af8924cda35c0a6a63ad553694f Author: Joseph Lynch <joe.e.ly...@gmail.com> AuthorDate: Mon May 4 10:59:35 2020 -0700 Fix compression_test.TestCompression regression CASSANDRA-15379 changed behavior of how we flush for deflate, namely we flush LZ4 and then compact to deflate off the hot path. Updated this test to take this into account. Patch by Joseph Lynch; Reviewed by Berenguer Blasi for CASSANDRA-15782 --- compression_test.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/compression_test.py b/compression_test.py index d865ba2..4688b72 100644 --- a/compression_test.py +++ b/compression_test.py @@ -103,7 +103,11 @@ class TestCompression(TestHelper): for n in range(0, 100): session.execute("insert into compression_opts_table (id) values (uuid());") - sstables = self.flush('compression_opts_table') + self.flush('compression_opts_table') + # Due to CASSANDRA-15379 we have to compact to get the actual table + # compression to take effect since deflate is a slow compressor + self.perform_node_tool_cmd(cmd='compact', table='compression_opts_table', indexes=list()) + sstables = self.get_sstables(table='compression_opts_table', indexes=list()) sstable_paths = self.get_table_paths('compression_opts_table') found = False for sstable_path in sstable_paths: --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org