@ -32,7 +32,9 @@ default_params = {
" cache_index_and_filter_blocks " : lambda : random . randint ( 0 , 1 ) ,
" cache_size " : 1048576 ,
" checkpoint_one_in " : 1000000 ,
" compression_type " : " snappy " ,
" compression_type " : lambda : random . choice (
[ " snappy " , " none " , " zlib " ] ) ,
" checksum_type " : lambda : random . choice ( [ " kCRC32c " , " kxxHash " , " kxxHash64 " ] ) ,
" compression_max_dict_bytes " : lambda : 16384 * random . randint ( 0 , 1 ) ,
" compression_zstd_max_train_bytes " : lambda : 65536 * random . randint ( 0 , 1 ) ,
" clear_column_family_one_in " : 0 ,
@ -81,7 +83,19 @@ default_params = {
# Test small max_manifest_file_size in a smaller chance, as most of the
# time we wnat manifest history to be preserved to help debug
" max_manifest_file_size " : lambda : random . choice (
[ t * 16384 if t < 3 else 1024 * 1024 * 1024 for t in range ( 1 , 30 ) ] )
[ t * 16384 if t < 3 else 1024 * 1024 * 1024 for t in range ( 1 , 30 ) ] ) ,
# Sync mode might make test runs slower so running it in a smaller chance
" sync " : lambda : random . choice (
[ 0 if t == 0 else 1 for t in range ( 1 , 20 ) ] ) ,
" compaction_readahead_size " : lambda : random . choice (
[ 0 , 0 , 1024 * 1024 ] ) ,
" db_write_buffer_size " : lambda : random . choice (
[ 0 , 0 , 0 , 1024 * 1024 , 8 * 1024 * 1024 , 128 * 1024 * 1024 ] ) ,
" avoid_unnecessary_blocking_io " : random . randint ( 0 , 1 ) ,
" write_dbid_to_manifest " : random . randint ( 0 , 1 ) ,
" max_write_batch_group_size_bytes " : lambda : random . choice (
[ 16 , 64 , 1024 * 1024 , 16 * 1024 * 1024 ] ) ,
" level_compaction_dynamic_level_bytes " : True ,
}
_TEST_DIR_ENV_VAR = ' TEST_TMPDIR '
@ -139,6 +153,7 @@ simple_default_params = {
" target_file_size_multiplier " : 1 ,
" test_batches_snapshots " : 0 ,
" write_buffer_size " : 32 * 1024 * 1024 ,
" level_compaction_dynamic_level_bytes " : False ,
}
blackbox_simple_default_params = {