Name | Status | Type | Time(s) |
test_prevent_circular_grants | Success | | 31.059 |
test_batchlog_replay_compatibility_4 | Skipped | ported to in-JVM from 4.0 >= 5.1
/home/cassandra/cassandra-dtest/conftest.py:526: ported to in-JVM from 4.0 >= 5.1 | 0.503 |
test_compaction_throughput | Failure | AssertionError: assert (5.0 + 0.5) >= 5.612
+ where 5.0 = float('5')
self = <compaction_test.TestCompaction object at 0x7ff14f573520>
def test_compaction_throughput(self):
"""
Test setting compaction throughput.
Set throughput, insert data and ensure compaction performance corresponds.
"""
cluster = self.cluster
cluster.populate(1).start()
[node1] = cluster.nodelist()
# disableautocompaction only disables compaction for existing tables,
# so initialize stress tables with stress first
stress_write(node1, keycount=1)
node1.nodetool('disableautocompaction')
stress_write(node1, keycount=200000 * cluster.data_dir_count)
threshold = "5"
node1.nodetool('setcompactionthroughput -- ' + threshold)
node1.flush()
if node1.get_cassandra_version() < '2.2':
log_file = 'system.log'
else:
log_file = 'debug.log'
mark = node1.mark_log(filename=log_file)
node1.compact()
matches = node1.watch_log_for('Compacted', from_mark=mark, filename=log_file)
stringline = matches[0]
throughput_pattern = '{}={avgthroughput:f}{units}/s'
m = parse.search(throughput_pattern, stringline)
avgthroughput = m.named['avgthroughput']
found_units = m.named['units']
unit_conversion_dct = {
"MB": 1,
"MiB": 1,
"KiB": 1. / 1024,
"GiB": 1024,
"B": 1. / (1024 * 1024),
}
units = ['MB'] if cluster.version() < LooseVersion('3.6') else ['B', 'KiB', 'MiB', 'GiB']
assert found_units in units
logger.debug(avgthroughput)
avgthroughput_mb = unit_conversion_dct[found_units] * float(avgthroughput)
# The throughput in the log is computed independantly from the throttling and on the output files while
# throttling is on the input files, so while that throughput shouldn't be higher than the one set in
# principle, a bit of wiggle room is expected
> assert float(threshold) + 0.5 >= avgthroughput_mb
E AssertionError: assert (5.0 + 0.5) >= 5.612
E + where 5.0 = float('5')
compaction_test.py:302: AssertionError | 112.356 |
test_counter_consistency | Success | | 129.587 |
test_hintedhandoff_dc_disabled | Success | | 60.437 |
test_mv_with_default_ttl_with_flush | Success | | 262.290 |
test_group_by_with_range_name_query_paging | Success | | 38.006 |
test_tombstone_failure_v4 | Success | | 37.771 |
test_complementary_deletion_with_limit_on_partition_key_column_with_empty_partitions | Success | | 76.081 |
test_nodetool_scrub | Success | | 50.963 |
test_sstableloader_compression_none_to_snappy | Skipped | Don't need to run base class test, only derived classes
/home/cassandra/cassandra-dtest/sstable_generation_loading_test.py:47: Don't need to run base class test, only derived classes | 0.480 |
test_super_cql_write_compatibility | Skipped | 5.1 > 4
/home/cassandra/cassandra-dtest/conftest.py:468: 5.1 > 4 | 0.212 |
test_multi_slice | Skipped | 5.1 > 4
/home/cassandra/cassandra-dtest/conftest.py:468: 5.1 > 4 | 0.212 |
test_collection_set_ttl | Success | | 31.902 |
test_describe_describes_non_default_compaction_parameters | Success | | 20.395 |
test_null_as_null_indicator | Success | | 23.905 |
test_reading_empty_strings_for_different_types | Success | | 23.902 |
test_failure_during_anticompaction | Skipped | 5.1 > 4
/home/cassandra/cassandra-dtest/conftest.py:468: 5.1 > 4 | 0.236 |