Commit c010f063 authored by Sergei Petrunia's avatar Sergei Petrunia

MariaRocks: Run rocksdb testsuite with @@rocksdb_flush_log_at_trx_commit=0

The default value of 1 causes many tests to time out (primary reason is
that many tests populate tables with one-row INSERT statements that
run with autocommit=1).
parent bf578ff9
...@@ -9,3 +9,5 @@ sql-mode=NO_ENGINE_SUBSTITUTION ...@@ -9,3 +9,5 @@ sql-mode=NO_ENGINE_SUBSTITUTION
explicit-defaults-for-timestamp=1 explicit-defaults-for-timestamp=1
loose-rocksdb_lock_wait_timeout=1 loose-rocksdb_lock_wait_timeout=1
loose-rocksdb_strict_collation_check=0 loose-rocksdb_strict_collation_check=0
loose-rocksdb-flush-log-at-trx-commit=0
...@@ -910,7 +910,7 @@ rocksdb_enable_bulk_load_api ON ...@@ -910,7 +910,7 @@ rocksdb_enable_bulk_load_api ON
rocksdb_enable_thread_tracking OFF rocksdb_enable_thread_tracking OFF
rocksdb_enable_write_thread_adaptive_yield OFF rocksdb_enable_write_thread_adaptive_yield OFF
rocksdb_error_if_exists OFF rocksdb_error_if_exists OFF
rocksdb_flush_log_at_trx_commit 1 rocksdb_flush_log_at_trx_commit 0
rocksdb_flush_memtable_on_analyze ON rocksdb_flush_memtable_on_analyze ON
rocksdb_force_compute_memtable_stats ON rocksdb_force_compute_memtable_stats ON
rocksdb_force_flush_memtable_now OFF rocksdb_force_flush_memtable_now OFF
......
SET GLOBAL rocksdb_write_disable_wal=false; SET GLOBAL rocksdb_write_disable_wal=false;
SET GLOBAL rocksdb_write_ignore_missing_column_families=true; SET GLOBAL rocksdb_write_ignore_missing_column_families=true;
create table aaa (id int primary key, i int) engine rocksdb; create table aaa (id int primary key, i int) engine rocksdb;
set @save_rocksdb_flush_log_at_trx_commit= @@global.rocksdb_flush_log_at_trx_commit;
SET LOCAL rocksdb_flush_log_at_trx_commit=0; SET LOCAL rocksdb_flush_log_at_trx_commit=0;
select variable_value into @a from information_schema.global_status where variable_name='rocksdb_wal_synced'; select variable_value into @a from information_schema.global_status where variable_name='rocksdb_wal_synced';
insert aaa(id, i) values(1,1); insert aaa(id, i) values(1,1);
...@@ -33,7 +34,7 @@ SET LOCAL rocksdb_flush_log_at_trx_commit=0; ...@@ -33,7 +34,7 @@ SET LOCAL rocksdb_flush_log_at_trx_commit=0;
insert aaa(id, i) values(7,1); insert aaa(id, i) values(7,1);
truncate table aaa; truncate table aaa;
drop table aaa; drop table aaa;
SET GLOBAL rocksdb_flush_log_at_trx_commit=1; SET GLOBAL rocksdb_flush_log_at_trx_commit=@save_rocksdb_flush_log_at_trx_commit;
SET GLOBAL rocksdb_write_disable_wal=false; SET GLOBAL rocksdb_write_disable_wal=false;
SET GLOBAL rocksdb_write_ignore_missing_column_families=false; SET GLOBAL rocksdb_write_ignore_missing_column_families=false;
SET GLOBAL rocksdb_background_sync=off; SET GLOBAL rocksdb_background_sync=off;
...@@ -4,7 +4,7 @@ SET GLOBAL rocksdb_write_disable_wal=false; ...@@ -4,7 +4,7 @@ SET GLOBAL rocksdb_write_disable_wal=false;
SET GLOBAL rocksdb_write_ignore_missing_column_families=true; SET GLOBAL rocksdb_write_ignore_missing_column_families=true;
create table aaa (id int primary key, i int) engine rocksdb; create table aaa (id int primary key, i int) engine rocksdb;
set @save_rocksdb_flush_log_at_trx_commit= @@global.rocksdb_flush_log_at_trx_commit;
SET LOCAL rocksdb_flush_log_at_trx_commit=0; SET LOCAL rocksdb_flush_log_at_trx_commit=0;
--exec sleep 30 --exec sleep 30
select variable_value into @a from information_schema.global_status where variable_name='rocksdb_wal_synced'; select variable_value into @a from information_schema.global_status where variable_name='rocksdb_wal_synced';
...@@ -35,7 +35,7 @@ truncate table aaa; ...@@ -35,7 +35,7 @@ truncate table aaa;
# Cleanup # Cleanup
drop table aaa; drop table aaa;
SET GLOBAL rocksdb_flush_log_at_trx_commit=1; SET GLOBAL rocksdb_flush_log_at_trx_commit=@save_rocksdb_flush_log_at_trx_commit;
SET GLOBAL rocksdb_write_disable_wal=false; SET GLOBAL rocksdb_write_disable_wal=false;
SET GLOBAL rocksdb_write_ignore_missing_column_families=false; SET GLOBAL rocksdb_write_ignore_missing_column_families=false;
SET GLOBAL rocksdb_background_sync=off; SET GLOBAL rocksdb_background_sync=off;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment