Commit f62f9d66 authored by Sergei Petrunia's avatar Sergei Petrunia

Fix rocksdb.perf_context test

The part of the test that counts IO should be run with default
rocksdb_flush_log_at_trx_commt.
parent 6ff8d571
...@@ -127,6 +127,8 @@ AND STAT_TYPE in ('INTERNAL_KEY_SKIPPED_COUNT', 'INTERNAL_DELETE_SKIPPED_COUNT') ...@@ -127,6 +127,8 @@ AND STAT_TYPE in ('INTERNAL_KEY_SKIPPED_COUNT', 'INTERNAL_DELETE_SKIPPED_COUNT')
TABLE_SCHEMA TABLE_NAME PARTITION_NAME STAT_TYPE VALUE TABLE_SCHEMA TABLE_NAME PARTITION_NAME STAT_TYPE VALUE
test t1 NULL INTERNAL_KEY_SKIPPED_COUNT 10 test t1 NULL INTERNAL_KEY_SKIPPED_COUNT 10
test t1 NULL INTERNAL_DELETE_SKIPPED_COUNT 0 test t1 NULL INTERNAL_DELETE_SKIPPED_COUNT 0
set @tmp_flush_log= @@rocksdb_flush_log_at_trx_commit;
set global rocksdb_flush_log_at_trx_commit=1;
BEGIN; BEGIN;
INSERT INTO t2 VALUES (1), (2); INSERT INTO t2 VALUES (1), (2);
INSERT INTO t2 VALUES (3), (4); INSERT INTO t2 VALUES (3), (4);
...@@ -158,3 +160,4 @@ true ...@@ -158,3 +160,4 @@ true
DROP TABLE t1; DROP TABLE t1;
DROP TABLE t2; DROP TABLE t2;
SET GLOBAL rocksdb_perf_context_level = @prior_rocksdb_perf_context_level; SET GLOBAL rocksdb_perf_context_level = @prior_rocksdb_perf_context_level;
set global rocksdb_flush_log_at_trx_commit= @tmp_flush_log;
...@@ -56,6 +56,8 @@ AND STAT_TYPE in ('INTERNAL_KEY_SKIPPED_COUNT', 'INTERNAL_DELETE_SKIPPED_COUNT') ...@@ -56,6 +56,8 @@ AND STAT_TYPE in ('INTERNAL_KEY_SKIPPED_COUNT', 'INTERNAL_DELETE_SKIPPED_COUNT')
# Statistics for multi-statement transactions cannot be attributed to # Statistics for multi-statement transactions cannot be attributed to
# individual tables but should show up in global perf context stats # individual tables but should show up in global perf context stats
set @tmp_flush_log= @@rocksdb_flush_log_at_trx_commit;
set global rocksdb_flush_log_at_trx_commit=1;
BEGIN; BEGIN;
INSERT INTO t2 VALUES (1), (2); INSERT INTO t2 VALUES (1), (2);
...@@ -90,3 +92,5 @@ SELECT CASE WHEN @b - @a > 0 THEN 'true' ELSE 'false' END; ...@@ -90,3 +92,5 @@ SELECT CASE WHEN @b - @a > 0 THEN 'true' ELSE 'false' END;
DROP TABLE t1; DROP TABLE t1;
DROP TABLE t2; DROP TABLE t2;
SET GLOBAL rocksdb_perf_context_level = @prior_rocksdb_perf_context_level; SET GLOBAL rocksdb_perf_context_level = @prior_rocksdb_perf_context_level;
set global rocksdb_flush_log_at_trx_commit= @tmp_flush_log;
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