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
39fbafbc
Commit
39fbafbc
authored
Apr 19, 2018
by
Sergei Petrunia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Post-merge fixes: make rocksdb.allow_to_start_after_corruption pass
parent
95523325
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
storage/rocksdb/mysql-test/rocksdb/r/allow_to_start_after_corruption.result
...sql-test/rocksdb/r/allow_to_start_after_corruption.result
+5
-2
storage/rocksdb/mysql-test/rocksdb/t/allow_to_start_after_corruption.test
...mysql-test/rocksdb/t/allow_to_start_after_corruption.test
+4
-4
No files found.
storage/rocksdb/mysql-test/rocksdb/r/allow_to_start_after_corruption.result
View file @
39fbafbc
...
...
@@ -12,9 +12,10 @@ insert into t1 values (1,1),(2,2),(3,3);
select * from t1 where pk=1;
pk col1
1 1
set session debug= "+d,rocksdb_return_status_corrupted";
set session debug
_dbug
= "+d,rocksdb_return_status_corrupted";
select * from t1 where pk=1;
ERROR HY000: Lost connection to MySQL server during query
FOUND 1 /data corruption detected/ in allow_to_start_after_corruption_debug.err
#
# The same for scan queries
#
...
...
@@ -23,12 +24,14 @@ pk col1
1 1
2 2
3 3
set session debug= "+d,rocksdb_return_status_corrupted";
set session debug
_dbug
= "+d,rocksdb_return_status_corrupted";
select * from t1;
ERROR HY000: Lost connection to MySQL server during query
FOUND 1 /data corruption detected/ in allow_to_start_after_corruption_debug.err
#
# Test restart failure. The server is shutdown at this point.
#
FOUND 1 /The server will exit normally and stop restart attempts/ in allow_to_start_after_corruption_debug.err
#
# Remove corruption file and restart cleanly
#
...
...
storage/rocksdb/mysql-test/rocksdb/t/allow_to_start_after_corruption.test
View file @
39fbafbc
...
...
@@ -26,7 +26,7 @@ create table t1 (
insert
into
t1
values
(
1
,
1
),(
2
,
2
),(
3
,
3
);
select
*
from
t1
where
pk
=
1
;
set
session
debug
=
"+d,rocksdb_return_status_corrupted"
;
set
session
debug
_dbug
=
"+d,rocksdb_return_status_corrupted"
;
--
exec
echo
"wait"
>
$MYSQLTEST_VARDIR
/
tmp
/
mysqld
.
1.
expect
--
error
2013
select
*
from
t1
where
pk
=
1
;
...
...
@@ -41,7 +41,7 @@ select * from t1 where pk=1;
--
source
include
/
start_mysqld_with_option
.
inc
select
*
from
t1
;
set
session
debug
=
"+d,rocksdb_return_status_corrupted"
;
set
session
debug
_dbug
=
"+d,rocksdb_return_status_corrupted"
;
--
exec
echo
"wait"
>
$_expect_file_name
--
error
2013
select
*
from
t1
;
...
...
@@ -57,7 +57,7 @@ select * from t1;
# remove flag to ignore corruption
--
let
$_mysqld_option
=--
log
-
error
=
$LOG
--
error
0
--
exec
$MYSQLD_CMD
$_mysqld_option
--
exec
$MYSQLD_CMD
--
plugin_load
=
$HA_ROCKSDB_SO
$_mysqld_option
--
let
SEARCH_PATTERN
=
The
server
will
exit
normally
and
stop
restart
attempts
--
source
include
/
search_pattern_in_file
.
inc
--
remove_file
$LOG
...
...
@@ -66,7 +66,7 @@ select * from t1;
--
echo
# Remove corruption file and restart cleanly
--
echo
#
--
exec
rm
$MYSQLTEST_VARDIR
/
mysqld
.
$_server_id
/
data
/
.
rocksdb
/
ROCKSDB_CORRUPTED
--
exec
rm
$MYSQLTEST_VARDIR
/
mysqld
.
$_server_id
/
data
/
#
rocksdb/ROCKSDB_CORRUPTED
--
source
include
/
start_mysqld_with_option
.
inc
drop
table
t1
;
...
...
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