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
0d033b6d
Commit
0d033b6d
authored
May 14, 2018
by
Sergei Petrunia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Down-scale rocksdb.bulk_load* tests by 2x. This should fix MDEV-13904
parent
2879fb08
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
91 additions
and
130 deletions
+91
-130
storage/rocksdb/mysql-test/rocksdb/include/bulk_load.inc
storage/rocksdb/mysql-test/rocksdb/include/bulk_load.inc
+7
-10
storage/rocksdb/mysql-test/rocksdb/r/bulk_load.result
storage/rocksdb/mysql-test/rocksdb/r/bulk_load.result
+21
-30
storage/rocksdb/mysql-test/rocksdb/r/bulk_load_rev_cf.result
storage/rocksdb/mysql-test/rocksdb/r/bulk_load_rev_cf.result
+21
-30
storage/rocksdb/mysql-test/rocksdb/r/bulk_load_rev_cf_and_data.result
...sdb/mysql-test/rocksdb/r/bulk_load_rev_cf_and_data.result
+21
-30
storage/rocksdb/mysql-test/rocksdb/r/bulk_load_rev_data.result
...ge/rocksdb/mysql-test/rocksdb/r/bulk_load_rev_data.result
+21
-30
No files found.
storage/rocksdb/mysql-test/rocksdb/include/bulk_load.inc
View file @
0d033b6d
...
...
@@ -50,7 +50,7 @@ eval CREATE TABLE t3(
perl
;
my
$fn
=
$ENV
{
'ROCKSDB_INFILE'
};
open
(
my
$fh
,
'>'
,
$fn
)
||
die
"perl open(
$fn
): $!"
;
my
$max
=
50
00000
;
my
$max
=
25
00000
;
my
$desc
=
$ENV
{
'MTR_DATA_ORDER_DESC'
};
my
@
chars
=
(
"A"
..
"Z"
,
"a"
..
"z"
,
"0"
..
"9"
);
my
@
powers_of_26
=
(
26
*
26
*
26
*
26
,
26
*
26
*
26
,
26
*
26
,
26
,
1
);
...
...
@@ -118,15 +118,12 @@ ANALYZE TABLE t1, t2, t3;
SHOW
TABLE
STATUS
WHERE
name
LIKE
't%'
;
# Make sure all the data is there.
select
count
(
pk
)
from
t1
;
select
count
(
a
)
from
t1
;
select
count
(
b
)
from
t1
;
select
count
(
pk
)
from
t2
;
select
count
(
a
)
from
t2
;
select
count
(
b
)
from
t2
;
select
count
(
pk
)
from
t3
;
select
count
(
a
)
from
t3
;
select
count
(
b
)
from
t3
;
select
count
(
pk
),
count
(
a
)
from
t1
;
select
count
(
b
)
from
t1
;
select
count
(
pk
),
count
(
a
)
from
t2
;
select
count
(
b
)
from
t2
;
select
count
(
pk
),
count
(
a
)
from
t3
;
select
count
(
b
)
from
t3
;
# Create a dummy file with a bulk load extesion. It should be removed when
# the server starts
...
...
storage/rocksdb/mysql-test/rocksdb/r/bulk_load.result
View file @
0d033b6d
...
...
@@ -38,9 +38,9 @@ LOAD DATA INFILE <input_file> INTO TABLE t3;
set rocksdb_bulk_load=0;
SHOW TABLE STATUS WHERE name LIKE 't%';
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
t1 ROCKSDB 10 Fixed
50
00000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL
t2 ROCKSDB 10 Fixed
50
00000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL
t3 ROCKSDB 10 Fixed
50
00000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL partitioned
t1 ROCKSDB 10 Fixed
25
00000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL
t2 ROCKSDB 10 Fixed
25
00000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL
t3 ROCKSDB 10 Fixed
25
00000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL partitioned
ANALYZE TABLE t1, t2, t3;
Table Op Msg_type Msg_text
test.t1 analyze status OK
...
...
@@ -48,36 +48,27 @@ test.t2 analyze status OK
test.t3 analyze status OK
SHOW TABLE STATUS WHERE name LIKE 't%';
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
t1 ROCKSDB 10 Fixed 5000000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL
t2 ROCKSDB 10 Fixed 5000000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL
t3 ROCKSDB 10 Fixed 5000000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL partitioned
select count(pk) from t1;
count(pk)
5000000
select count(a) from t1;
count(a)
5000000
select count(b) from t1;
t1 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL
t2 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL
t3 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL partitioned
select count(pk),count(a) from t1;
count(pk) count(a)
2500000 2500000
select count(b) from t1;
count(b)
5000000
select count(pk) from t2;
count(pk)
5000000
select count(a) from t2;
count(a)
5000000
select count(b) from t2;
2500000
select count(pk),count(a) from t2;
count(pk) count(a)
2500000 2500000
select count(b) from t2;
count(b)
5000000
select count(pk) from t3;
count(pk)
5000000
select count(a) from t3;
count(a)
5000000
select count(b) from t3;
2500000
select count(pk),count(a) from t3;
count(pk) count(a)
2500000 2500000
select count(b) from t3;
count(b)
50
00000
25
00000
longfilenamethatvalidatesthatthiswillgetdeleted.bulk_load.tmp
test.bulk_load.tmp
disconnect other;
...
...
storage/rocksdb/mysql-test/rocksdb/r/bulk_load_rev_cf.result
View file @
0d033b6d
...
...
@@ -38,9 +38,9 @@ LOAD DATA INFILE <input_file> INTO TABLE t3;
set rocksdb_bulk_load=0;
SHOW TABLE STATUS WHERE name LIKE 't%';
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
t1 ROCKSDB 10 Fixed
50
00000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL
t2 ROCKSDB 10 Fixed
50
00000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL
t3 ROCKSDB 10 Fixed
50
00000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL partitioned
t1 ROCKSDB 10 Fixed
25
00000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL
t2 ROCKSDB 10 Fixed
25
00000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL
t3 ROCKSDB 10 Fixed
25
00000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL partitioned
ANALYZE TABLE t1, t2, t3;
Table Op Msg_type Msg_text
test.t1 analyze status OK
...
...
@@ -48,36 +48,27 @@ test.t2 analyze status OK
test.t3 analyze status OK
SHOW TABLE STATUS WHERE name LIKE 't%';
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
t1 ROCKSDB 10 Fixed 5000000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL
t2 ROCKSDB 10 Fixed 5000000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL
t3 ROCKSDB 10 Fixed 5000000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL partitioned
select count(pk) from t1;
count(pk)
5000000
select count(a) from t1;
count(a)
5000000
select count(b) from t1;
t1 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL
t2 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL
t3 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL partitioned
select count(pk),count(a) from t1;
count(pk) count(a)
2500000 2500000
select count(b) from t1;
count(b)
5000000
select count(pk) from t2;
count(pk)
5000000
select count(a) from t2;
count(a)
5000000
select count(b) from t2;
2500000
select count(pk),count(a) from t2;
count(pk) count(a)
2500000 2500000
select count(b) from t2;
count(b)
5000000
select count(pk) from t3;
count(pk)
5000000
select count(a) from t3;
count(a)
5000000
select count(b) from t3;
2500000
select count(pk),count(a) from t3;
count(pk) count(a)
2500000 2500000
select count(b) from t3;
count(b)
50
00000
25
00000
longfilenamethatvalidatesthatthiswillgetdeleted.bulk_load.tmp
test.bulk_load.tmp
disconnect other;
...
...
storage/rocksdb/mysql-test/rocksdb/r/bulk_load_rev_cf_and_data.result
View file @
0d033b6d
...
...
@@ -38,9 +38,9 @@ LOAD DATA INFILE <input_file> INTO TABLE t3;
set rocksdb_bulk_load=0;
SHOW TABLE STATUS WHERE name LIKE 't%';
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
t1 ROCKSDB 10 Fixed
50
00000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL
t2 ROCKSDB 10 Fixed
50
00000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL
t3 ROCKSDB 10 Fixed
50
00000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL partitioned
t1 ROCKSDB 10 Fixed
25
00000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL
t2 ROCKSDB 10 Fixed
25
00000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL
t3 ROCKSDB 10 Fixed
25
00000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL partitioned
ANALYZE TABLE t1, t2, t3;
Table Op Msg_type Msg_text
test.t1 analyze status OK
...
...
@@ -48,36 +48,27 @@ test.t2 analyze status OK
test.t3 analyze status OK
SHOW TABLE STATUS WHERE name LIKE 't%';
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
t1 ROCKSDB 10 Fixed 5000000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL
t2 ROCKSDB 10 Fixed 5000000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL
t3 ROCKSDB 10 Fixed 5000000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL partitioned
select count(pk) from t1;
count(pk)
5000000
select count(a) from t1;
count(a)
5000000
select count(b) from t1;
t1 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL
t2 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL
t3 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL partitioned
select count(pk),count(a) from t1;
count(pk) count(a)
2500000 2500000
select count(b) from t1;
count(b)
5000000
select count(pk) from t2;
count(pk)
5000000
select count(a) from t2;
count(a)
5000000
select count(b) from t2;
2500000
select count(pk),count(a) from t2;
count(pk) count(a)
2500000 2500000
select count(b) from t2;
count(b)
5000000
select count(pk) from t3;
count(pk)
5000000
select count(a) from t3;
count(a)
5000000
select count(b) from t3;
2500000
select count(pk),count(a) from t3;
count(pk) count(a)
2500000 2500000
select count(b) from t3;
count(b)
50
00000
25
00000
longfilenamethatvalidatesthatthiswillgetdeleted.bulk_load.tmp
test.bulk_load.tmp
disconnect other;
...
...
storage/rocksdb/mysql-test/rocksdb/r/bulk_load_rev_data.result
View file @
0d033b6d
...
...
@@ -38,9 +38,9 @@ LOAD DATA INFILE <input_file> INTO TABLE t3;
set rocksdb_bulk_load=0;
SHOW TABLE STATUS WHERE name LIKE 't%';
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
t1 ROCKSDB 10 Fixed
50
00000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL
t2 ROCKSDB 10 Fixed
50
00000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL
t3 ROCKSDB 10 Fixed
50
00000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL partitioned
t1 ROCKSDB 10 Fixed
25
00000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL
t2 ROCKSDB 10 Fixed
25
00000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL
t3 ROCKSDB 10 Fixed
25
00000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL partitioned
ANALYZE TABLE t1, t2, t3;
Table Op Msg_type Msg_text
test.t1 analyze status OK
...
...
@@ -48,36 +48,27 @@ test.t2 analyze status OK
test.t3 analyze status OK
SHOW TABLE STATUS WHERE name LIKE 't%';
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
t1 ROCKSDB 10 Fixed 5000000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL
t2 ROCKSDB 10 Fixed 5000000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL
t3 ROCKSDB 10 Fixed 5000000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL partitioned
select count(pk) from t1;
count(pk)
5000000
select count(a) from t1;
count(a)
5000000
select count(b) from t1;
t1 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL
t2 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL
t3 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL NULL NULL NULL latin1_bin NULL partitioned
select count(pk),count(a) from t1;
count(pk) count(a)
2500000 2500000
select count(b) from t1;
count(b)
5000000
select count(pk) from t2;
count(pk)
5000000
select count(a) from t2;
count(a)
5000000
select count(b) from t2;
2500000
select count(pk),count(a) from t2;
count(pk) count(a)
2500000 2500000
select count(b) from t2;
count(b)
5000000
select count(pk) from t3;
count(pk)
5000000
select count(a) from t3;
count(a)
5000000
select count(b) from t3;
2500000
select count(pk),count(a) from t3;
count(pk) count(a)
2500000 2500000
select count(b) from t3;
count(b)
50
00000
25
00000
longfilenamethatvalidatesthatthiswillgetdeleted.bulk_load.tmp
test.bulk_load.tmp
disconnect other;
...
...
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