Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
c2d9a346
Commit
c2d9a346
authored
Mar 30, 2019
by
Sergei Petrunia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-19089 part #1: adapt rocksdb_stress suite for MariaDB
parent
76934212
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
61 additions
and
8 deletions
+61
-8
storage/rocksdb/mysql-test/rocksdb_stress/include/have_rocksdb.inc
...ocksdb/mysql-test/rocksdb_stress/include/have_rocksdb.inc
+10
-0
storage/rocksdb/mysql-test/rocksdb_stress/include/have_rocksdb.opt
...ocksdb/mysql-test/rocksdb_stress/include/have_rocksdb.opt
+12
-0
storage/rocksdb/mysql-test/rocksdb_stress/include/rocksdb_stress.inc
...ksdb/mysql-test/rocksdb_stress/include/rocksdb_stress.inc
+6
-5
storage/rocksdb/mysql-test/rocksdb_stress/my.cnf
storage/rocksdb/mysql-test/rocksdb_stress/my.cnf
+1
-1
storage/rocksdb/mysql-test/rocksdb_stress/suite.opt
storage/rocksdb/mysql-test/rocksdb_stress/suite.opt
+2
-0
storage/rocksdb/mysql-test/rocksdb_stress/suite.pm
storage/rocksdb/mysql-test/rocksdb_stress/suite.pm
+28
-0
storage/rocksdb/mysql-test/rocksdb_stress/t/rocksdb_stress.test
...e/rocksdb/mysql-test/rocksdb_stress/t/rocksdb_stress.test
+1
-1
storage/rocksdb/mysql-test/rocksdb_stress/t/rocksdb_stress_crash.test
...sdb/mysql-test/rocksdb_stress/t/rocksdb_stress_crash.test
+1
-1
No files found.
storage/rocksdb/mysql-test/rocksdb_stress/include/have_rocksdb.inc
0 → 100644
View file @
c2d9a346
if
(
`SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.ENGINES WHERE engine = 'rocksdb' AND support IN ('YES', 'DEFAULT', 'ENABLED')`
)
{
--
skip
Test
requires
engine
RocksDB
.
}
--
disable_query_log
# Table statistics can vary depending on when the memtables are flushed, so
# flush them at the beginning of the test to ensure the test runs consistently.
set
global
rocksdb_force_flush_memtable_now
=
true
;
--
enable_query_log
storage/rocksdb/mysql-test/rocksdb_stress/include/have_rocksdb.opt
0 → 100644
View file @
c2d9a346
--loose-enable-rocksdb
--loose-enable-rocksdb_global_info
--loose-enable-rocksdb_ddl
--loose-enable-rocksdb_cf_options
--loose-enable_rocksdb_perf_context
--loose-enable_rocksdb_perf_context_global
--loose-enable-rocksdb_index_file_map
--loose-enable-rocksdb_dbstats
--loose-enable-rocksdb_cfstats
--loose-enable-rocksdb_lock_info
--loose-enable-rocksdb_trx
--loose-enable-rocksdb_locks
storage/rocksdb/mysql-test/rocksdb_stress/include/rocksdb_stress.inc
View file @
c2d9a346
...
...
@@ -9,11 +9,12 @@
let
$MYSQL_BASEDIR
=
`SELECT @@BASEDIR`
;
let
$exec
=
python
$MYSQL_BASEDIR
/
mysql
-
test
/
suite
/
rocksdb_stress
/
t
/
load_generator
.
py
-
L
$MYSQL_TMP_DIR
/
load_generator
.
log
-
H
$master_host
-
t
$table
-
P
$MASTER_MYPORT
-
n
$num_records
-
m
$max_records
-
l
$num_loaders
-
c
$num_checkers
-
r
$num_requests
-
E
$MYSQLTEST_VARDIR
/
tmp
/
mysqld
.
1.
expect
python
$MYSQL_BASEDIR
/
storage
/
rocksdb
/
mysql
-
test
/
rocksdb_stress
/
t
/
load_generator
.
py
\
-
L
$MYSQL_TMP_DIR
/
load_generator
.
log
-
H
$master_host
-
t
$table
\
-
P
$MASTER_MYPORT
-
n
$num_records
-
m
$max_records
\
-
l
$num_loaders
-
c
$num_checkers
-
r
$num_requests
\
-
E
$MYSQLTEST_VARDIR
/
tmp
/
mysqld
.
1.
expect
\
-
D
$reap_delay
;
exec
$exec
;
...
...
storage/rocksdb/mysql-test/rocksdb_stress/my.cnf
View file @
c2d9a346
!include include/default_my.cnf
!include
suite
/rocksdb/my.cnf
!include
../storage/rocksdb/mysql-test
/rocksdb/my.cnf
!include suite/rpl/my.cnf
[mysqld.1]
...
...
storage/rocksdb/mysql-test/rocksdb_stress/suite.opt
0 → 100644
View file @
c2d9a346
--plugin-load=$HA_ROCKSDB_SO --default-storage-engine=rocksdb
storage/rocksdb/mysql-test/rocksdb_stress/suite.pm
0 → 100644
View file @
c2d9a346
package
My::Suite::
Rocksdb
;
use
My::
SysInfo
;
#
# Note: ../rocksdb_sys_vars/suite.pm file has a similar
# function. If you modify this file, consider modifying that one, too.
#
@ISA
=
qw(My::Suite)
;
use
My::
Find
;
use
File::
Basename
;
use
strict
;
sub
is_default
{
not
$::opt_embedded_server
}
my
$sst_dump
=
::
mtr_exe_maybe_exists
(
"
$::bindir/storage/rocksdb$::opt_vs_config/sst_dump
",
"
$::path_client_bindir/sst_dump
");
return
"
RocksDB is not compiled, no sst_dump
"
unless
$sst_dump
;
$ENV
{
MARIAROCKS_SST_DUMP
}
=
"
$sst_dump
";
# Temporarily disable testing under valgrind, due to MDEV-12439
return
"
RocksDB tests disabled under valgrind
"
if
(
$::opt_valgrind
);
bless
{
};
storage/rocksdb/mysql-test/rocksdb_stress/t/rocksdb_stress.test
View file @
c2d9a346
...
...
@@ -30,4 +30,4 @@ ENGINE=RocksDB DEFAULT CHARSET=latin1 COLLATE=latin1_bin;
--
let
$num_requests
=
10000
--
let
$reap_delay
=
0
--
source
suite
/
rocksdb_stress
/
include
/
rocksdb_stress
.
inc
--
source
include
/
rocksdb_stress
.
inc
storage/rocksdb/mysql-test/rocksdb_stress/t/rocksdb_stress_crash.test
View file @
c2d9a346
...
...
@@ -31,4 +31,4 @@ ENGINE=RocksDB DEFAULT CHARSET=latin1 COLLATE=latin1_bin;
--
let
$num_requests
=
10000
--
let
$reap_delay
=
180
--
source
suite
/
rocksdb_stress
/
include
/
rocksdb_stress
.
inc
--
source
include
/
rocksdb_stress
.
inc
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment