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
4afe9d4b
Commit
4afe9d4b
authored
Sep 20, 2019
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-16222: Move the test to gcol.innodb_virtual_debug_purge
parent
c0db3fe6
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
89 additions
and
98 deletions
+89
-98
mysql-test/suite/gcol/r/innodb_virtual_debug_purge.result
mysql-test/suite/gcol/r/innodb_virtual_debug_purge.result
+27
-0
mysql-test/suite/gcol/t/innodb_virtual_debug_purge.opt
mysql-test/suite/gcol/t/innodb_virtual_debug_purge.opt
+1
-0
mysql-test/suite/gcol/t/innodb_virtual_debug_purge.test
mysql-test/suite/gcol/t/innodb_virtual_debug_purge.test
+61
-0
mysql-test/suite/innodb/r/purge_secondary_mdev-16222.result
mysql-test/suite/innodb/r/purge_secondary_mdev-16222.result
+0
-30
mysql-test/suite/innodb/t/purge_secondary_mdev-16222.opt
mysql-test/suite/innodb/t/purge_secondary_mdev-16222.opt
+0
-1
mysql-test/suite/innodb/t/purge_secondary_mdev-16222.test
mysql-test/suite/innodb/t/purge_secondary_mdev-16222.test
+0
-67
No files found.
mysql-test/suite/gcol/r/innodb_virtual_debug_purge.result
View file @
4afe9d4b
...
...
@@ -204,5 +204,32 @@ connection truncate;
disconnect truncate;
connection default;
DROP TABLE t1, t2;
#
# MDEV-16222 Assertion `0' failed in row_purge_remove_sec_if_poss_leaf
# on table with virtual columns and indexes
#
set @saved_dbug= @@global.debug_dbug;
set global debug_dbug= "+d,ib_purge_virtual_mdev_16222_1,ib_purge_virtual_mdev_16222_2";
create table t1 (
pk serial, vb tinyblob as (b) virtual, b tinyblob,
primary key(pk), index (vb(64)))
engine innodb;
insert ignore into t1 (b) values ('foo');
select * into outfile 'load.data' from t1;
load data infile 'load.data' replace into table t1;
set debug_sync= "now WAIT_FOR latch_released TIMEOUT 1";
set global debug_dbug= "-d,ib_purge_virtual_mdev_16222_1";
drop table t1;
set debug_sync= "now SIGNAL drop_started WAIT_FOR got_no_such_table TIMEOUT 1";
create table t1 (
pk serial, vb tinyblob as (b) virtual, b tinyblob,
primary key(pk), index (vb(64)))
engine innodb;
insert ignore into t1 (b) values ('foo');
select * into outfile 'load.data' from t1;
load data infile 'load.data' replace into table t1;
set debug_sync= "now WAIT_FOR got_no_such_table TIMEOUT 1";
set global debug_dbug= @saved_dbug;
drop table t1;
set debug_sync=reset;
SET GLOBAL innodb_purge_rseg_truncate_frequency = @saved_frequency;
mysql-test/suite/gcol/t/innodb_virtual_debug_purge.opt
View file @
4afe9d4b
--loose-innodb-safe-truncate=1
--innodb-purge-threads=1
mysql-test/suite/gcol/t/innodb_virtual_debug_purge.test
View file @
4afe9d4b
...
...
@@ -259,6 +259,67 @@ disconnect truncate;
connection
default
;
DROP
TABLE
t1
,
t2
;
--
echo
#
--
echo
# MDEV-16222 Assertion `0' failed in row_purge_remove_sec_if_poss_leaf
--
echo
# on table with virtual columns and indexes
--
echo
#
--
let
$datadir
=
`select @@datadir`
set
@
saved_dbug
=
@@
global
.
debug_dbug
;
set
global
debug_dbug
=
"+d,ib_purge_virtual_mdev_16222_1,ib_purge_virtual_mdev_16222_2"
;
create
table
t1
(
pk
serial
,
vb
tinyblob
as
(
b
)
virtual
,
b
tinyblob
,
primary
key
(
pk
),
index
(
vb
(
64
)))
engine
innodb
;
insert
ignore
into
t1
(
b
)
values
(
'foo'
);
select
*
into
outfile
'load.data'
from
t1
;
load
data
infile
'load.data'
replace
into
table
t1
;
# FIXME: case does not work on 10.2 as it does not pass this condition:
#
# if (!*table)
# *table= innodb_find_table_for_vc(thd, index->table);
#
# in innobase_allocate_row_for_vcol()
--
disable_warnings
set
debug_sync
=
"now WAIT_FOR latch_released TIMEOUT 1"
;
--
enable_warnings
set
global
debug_dbug
=
"-d,ib_purge_virtual_mdev_16222_1"
;
drop
table
t1
;
--
remove_file
$datadir
/
test
/
load
.
data
--
disable_warnings
set
debug_sync
=
"now SIGNAL drop_started WAIT_FOR got_no_such_table TIMEOUT 1"
;
--
enable_warnings
create
table
t1
(
pk
serial
,
vb
tinyblob
as
(
b
)
virtual
,
b
tinyblob
,
primary
key
(
pk
),
index
(
vb
(
64
)))
engine
innodb
;
insert
ignore
into
t1
(
b
)
values
(
'foo'
);
select
*
into
outfile
'load.data'
from
t1
;
load
data
infile
'load.data'
replace
into
table
t1
;
--
disable_warnings
set
debug_sync
=
"now WAIT_FOR got_no_such_table TIMEOUT 1"
;
--
enable_warnings
# FIXME: Race condition here:
# 1. purge thread goes into sending got_no_such_table
# 2. test thread finishes debug_sync= "RESET" below
# 3. purge thread sends got_no_such_table
set
global
debug_dbug
=
@
saved_dbug
;
# cleanup
drop
table
t1
;
--
remove_file
$datadir
/
test
/
load
.
data
--
source
include
/
wait_until_count_sessions
.
inc
set
debug_sync
=
reset
;
SET
GLOBAL
innodb_purge_rseg_truncate_frequency
=
@
saved_frequency
;
mysql-test/suite/innodb/r/purge_secondary_mdev-16222.result
deleted
100644 → 0
View file @
c0db3fe6
#
# MDEV-16222 Assertion `0' failed in row_purge_remove_sec_if_poss_leaf on table with virtual columns and indexes
#
set @saved_frequency= @@global.innodb_purge_rseg_truncate_frequency;
set global innodb_purge_rseg_truncate_frequency= 1;
set @saved_dbug= @@global.debug_dbug;
set global debug_dbug= "+d,ib_purge_virtual_mdev_16222_1,ib_purge_virtual_mdev_16222_2";
create table t1 (
pk serial, vb tinyblob as (b) virtual, b tinyblob,
primary key(pk), index (vb(64)))
engine innodb;
insert ignore into t1 (b) values ('foo');
select * into outfile 'load.data' from t1;
load data infile 'load.data' replace into table t1;
set debug_sync= "now WAIT_FOR latch_released TIMEOUT 1";
set global debug_dbug= "-d,ib_purge_virtual_mdev_16222_1";
drop table t1;
set debug_sync= "now SIGNAL drop_started WAIT_FOR got_no_such_table TIMEOUT 1";
create table t1 (
pk serial, vb tinyblob as (b) virtual, b tinyblob,
primary key(pk), index (vb(64)))
engine innodb;
insert ignore into t1 (b) values ('foo');
select * into outfile 'load.data' from t1;
load data infile 'load.data' replace into table t1;
set debug_sync= "now WAIT_FOR got_no_such_table TIMEOUT 1";
set global debug_dbug= @saved_dbug;
drop table t1;
set global innodb_purge_rseg_truncate_frequency= @saved_frequency;
set debug_sync= "RESET";
mysql-test/suite/innodb/t/purge_secondary_mdev-16222.opt
deleted
100644 → 0
View file @
c0db3fe6
--innodb-purge-threads=1
mysql-test/suite/innodb/t/purge_secondary_mdev-16222.test
deleted
100644 → 0
View file @
c0db3fe6
--
source
include
/
have_debug
.
inc
--
source
include
/
have_innodb
.
inc
--
echo
#
--
echo
# MDEV-16222 Assertion `0' failed in row_purge_remove_sec_if_poss_leaf on table with virtual columns and indexes
--
echo
#
--
let
$datadir
=
`select @@datadir`
set
@
saved_frequency
=
@@
global
.
innodb_purge_rseg_truncate_frequency
;
set
global
innodb_purge_rseg_truncate_frequency
=
1
;
set
@
saved_dbug
=
@@
global
.
debug_dbug
;
set
global
debug_dbug
=
"+d,ib_purge_virtual_mdev_16222_1,ib_purge_virtual_mdev_16222_2"
;
create
table
t1
(
pk
serial
,
vb
tinyblob
as
(
b
)
virtual
,
b
tinyblob
,
primary
key
(
pk
),
index
(
vb
(
64
)))
engine
innodb
;
insert
ignore
into
t1
(
b
)
values
(
'foo'
);
select
*
into
outfile
'load.data'
from
t1
;
load
data
infile
'load.data'
replace
into
table
t1
;
# FIXME: case does not work on 10.2 as it does not pass this condition:
#
# if (!*table)
# *table= innodb_find_table_for_vc(thd, index->table);
#
# in innobase_allocate_row_for_vcol()
--
disable_warnings
set
debug_sync
=
"now WAIT_FOR latch_released TIMEOUT 1"
;
--
enable_warnings
set
global
debug_dbug
=
"-d,ib_purge_virtual_mdev_16222_1"
;
drop
table
t1
;
--
remove_file
$datadir
/
test
/
load
.
data
--
disable_warnings
set
debug_sync
=
"now SIGNAL drop_started WAIT_FOR got_no_such_table TIMEOUT 1"
;
--
enable_warnings
create
table
t1
(
pk
serial
,
vb
tinyblob
as
(
b
)
virtual
,
b
tinyblob
,
primary
key
(
pk
),
index
(
vb
(
64
)))
engine
innodb
;
insert
ignore
into
t1
(
b
)
values
(
'foo'
);
select
*
into
outfile
'load.data'
from
t1
;
load
data
infile
'load.data'
replace
into
table
t1
;
--
disable_warnings
set
debug_sync
=
"now WAIT_FOR got_no_such_table TIMEOUT 1"
;
--
enable_warnings
# FIXME: Racing condition here:
# 1. purge thread goes into sending got_no_such_table
# 2. test thread finishes debug_sync= "RESET" below
# 3. purge thread sends got_no_such_table
set
global
debug_dbug
=
@
saved_dbug
;
# cleanup
drop
table
t1
;
--
remove_file
$datadir
/
test
/
load
.
data
set
global
innodb_purge_rseg_truncate_frequency
=
@
saved_frequency
;
set
debug_sync
=
"RESET"
;
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