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
16a8a241
Commit
16a8a241
authored
May 14, 2018
by
Sergei Petrunia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-14375: rocksdb.bulk_load_unsorted fails
Down-scale the test by a factor of 2.
parent
7e7592ad
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
67 deletions
+46
-67
storage/rocksdb/mysql-test/rocksdb/include/bulk_load_unsorted.inc
...rocksdb/mysql-test/rocksdb/include/bulk_load_unsorted.inc
+4
-7
storage/rocksdb/mysql-test/rocksdb/r/bulk_load_unsorted.result
...ge/rocksdb/mysql-test/rocksdb/r/bulk_load_unsorted.result
+21
-30
storage/rocksdb/mysql-test/rocksdb/r/bulk_load_unsorted_rev.result
...ocksdb/mysql-test/rocksdb/r/bulk_load_unsorted_rev.result
+21
-30
No files found.
storage/rocksdb/mysql-test/rocksdb/include/bulk_load_unsorted.inc
View file @
16a8a241
...
...
@@ -84,7 +84,7 @@ perl;
my
$fn
=
$ENV
{
'ROCKSDB_INFILE'
};
open
(
my
$fh
,
'>'
,
$fn
)
||
die
"perl open(
$fn
): $!"
;
binmode
$fh
;
my
$max
=
50
00000
;
my
$max
=
25
00000
;
my
$sign
=
1
;
for
(
my
$ii
=
0
;
$ii
<
$max
;
$ii
++
)
{
...
...
@@ -129,12 +129,9 @@ ANALYZE TABLE t1, t2, t3;
SHOW
TABLE
STATUS
WHERE
name
LIKE
't%'
;
# Make sure all the data is there.
select
count
(
a
)
from
t1
;
select
count
(
b
)
from
t1
;
select
count
(
a
)
from
t2
;
select
count
(
b
)
from
t2
;
select
count
(
a
)
from
t3
;
select
count
(
b
)
from
t3
;
select
count
(
a
),
count
(
b
)
from
t1
;
select
count
(
a
),
count
(
b
)
from
t2
;
select
count
(
a
),
count
(
b
)
from
t3
;
SELECT
*
FROM
t1
FORCE
INDEX
(
PRIMARY
)
LIMIT
3
;
SELECT
*
FROM
t2
FORCE
INDEX
(
PRIMARY
)
LIMIT
3
;
...
...
storage/rocksdb/mysql-test/rocksdb/r/bulk_load_unsorted.result
View file @
16a8a241
...
...
@@ -75,9 +75,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_swedish_ci NULL
t2 ROCKSDB 10 Fixed
50
00000 # # # # 0 NULL NULL NULL NULL latin1_swedish_ci NULL
t3 ROCKSDB 10 Fixed
50
00000 # # # # 0 NULL NULL NULL NULL latin1_swedish_ci NULL partitioned
t1 ROCKSDB 10 Fixed
25
00000 # # # # 0 NULL NULL NULL NULL latin1_swedish_ci NULL
t2 ROCKSDB 10 Fixed
25
00000 # # # # 0 NULL NULL NULL NULL latin1_swedish_ci NULL
t3 ROCKSDB 10 Fixed
25
00000 # # # # 0 NULL NULL NULL NULL latin1_swedish_ci NULL partitioned
ANALYZE TABLE t1, t2, t3;
Table Op Msg_type Msg_text
test.t1 analyze status OK
...
...
@@ -85,36 +85,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_swedish_ci NULL
t2 ROCKSDB 10 Fixed 5000000 # # # # 0 NULL NULL NULL NULL latin1_swedish_ci NULL
t3 ROCKSDB 10 Fixed 5000000 # # # # 0 NULL NULL NULL NULL latin1_swedish_ci NULL partitioned
select count(a) from t1;
count(a)
5000000
select count(b) from t1;
count(b)
5000000
select count(a) from t2;
count(a)
5000000
select count(b) from t2;
count(b)
5000000
select count(a) from t3;
count(a)
5000000
select count(b) from t3;
count(b)
5000000
t1 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL NULL NULL NULL latin1_swedish_ci NULL
t2 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL NULL NULL NULL latin1_swedish_ci NULL
t3 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL NULL NULL NULL latin1_swedish_ci NULL partitioned
select count(a),count(b) from t1;
count(a) count(b)
2500000 2500000
select count(a),count(b) from t2;
count(a) count(b)
2500000 2500000
select count(a),count(b) from t3;
count(a) count(b)
2500000 2500000
SELECT * FROM t1 FORCE INDEX (PRIMARY) LIMIT 3;
a b
-
4999998 50
00000
-
4999996 49
99998
-
4999994 49
99996
-
2499998 25
00000
-
2499996 24
99998
-
2499994 24
99996
SELECT * FROM t2 FORCE INDEX (PRIMARY) LIMIT 3;
a b
4999999 -49
99997
4999997 -49
99995
4999995 -49
99993
2499999 -24
99997
2499997 -24
99995
2499995 -24
99993
disconnect other;
DROP TABLE t1, t2, t3;
storage/rocksdb/mysql-test/rocksdb/r/bulk_load_unsorted_rev.result
View file @
16a8a241
...
...
@@ -75,9 +75,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_swedish_ci NULL
t2 ROCKSDB 10 Fixed
50
00000 # # # # 0 NULL NULL NULL NULL latin1_swedish_ci NULL
t3 ROCKSDB 10 Fixed
50
00000 # # # # 0 NULL NULL NULL NULL latin1_swedish_ci NULL partitioned
t1 ROCKSDB 10 Fixed
25
00000 # # # # 0 NULL NULL NULL NULL latin1_swedish_ci NULL
t2 ROCKSDB 10 Fixed
25
00000 # # # # 0 NULL NULL NULL NULL latin1_swedish_ci NULL
t3 ROCKSDB 10 Fixed
25
00000 # # # # 0 NULL NULL NULL NULL latin1_swedish_ci NULL partitioned
ANALYZE TABLE t1, t2, t3;
Table Op Msg_type Msg_text
test.t1 analyze status OK
...
...
@@ -85,36 +85,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_swedish_ci NULL
t2 ROCKSDB 10 Fixed 5000000 # # # # 0 NULL NULL NULL NULL latin1_swedish_ci NULL
t3 ROCKSDB 10 Fixed 5000000 # # # # 0 NULL NULL NULL NULL latin1_swedish_ci NULL partitioned
select count(a) from t1;
count(a)
5000000
select count(b) from t1;
count(b)
5000000
select count(a) from t2;
count(a)
5000000
select count(b) from t2;
count(b)
5000000
select count(a) from t3;
count(a)
5000000
select count(b) from t3;
count(b)
5000000
t1 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL NULL NULL NULL latin1_swedish_ci NULL
t2 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL NULL NULL NULL latin1_swedish_ci NULL
t3 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL NULL NULL NULL latin1_swedish_ci NULL partitioned
select count(a),count(b) from t1;
count(a) count(b)
2500000 2500000
select count(a),count(b) from t2;
count(a) count(b)
2500000 2500000
select count(a),count(b) from t3;
count(a) count(b)
2500000 2500000
SELECT * FROM t1 FORCE INDEX (PRIMARY) LIMIT 3;
a b
4999999 -49
99997
4999997 -49
99995
4999995 -49
99993
2499999 -24
99997
2499997 -24
99995
2499995 -24
99993
SELECT * FROM t2 FORCE INDEX (PRIMARY) LIMIT 3;
a b
-
4999998 50
00000
-
4999996 49
99998
-
4999994 49
99996
-
2499998 25
00000
-
2499996 24
99998
-
2499994 24
99996
disconnect other;
DROP TABLE t1, t2, t3;
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