Skip to content

Commit ce8716a

Browse files
committed
Merge 10.3 into 10.4
2 parents a00f8bc + 21069c5 commit ce8716a

File tree

16 files changed

+217
-111
lines changed

16 files changed

+217
-111
lines changed

mysql-test/main/connect.test

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -251,11 +251,8 @@ let $wait_condition =
251251

252252
--echo
253253
--echo # -- Waiting for connections to close...
254-
let $wait_condition =
255-
SELECT COUNT(*) = 1
256-
FROM information_schema.processlist
257-
WHERE db = 'test';
258-
--source include/wait_condition.inc
254+
let $count_sessions=1;
255+
--source include/wait_until_count_sessions.inc
259256

260257
--echo
261258
DROP USER mysqltest_u1@localhost;

mysql-test/main/stat_tables.result

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,25 @@ id select_type table type possible_keys key key_len ref rows Extra
591591
set @@optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
592592
set use_stat_tables=@save_use_stat_tables;
593593
#
594+
# MDEV-17734: AddressSanitizer: use-after-poison in create_key_parts_for_pseudo_indexes
595+
#
596+
set @@use_stat_tables= PREFERABLY;
597+
set @save_optimizer_use_condition_selectivity= @@optimizer_use_condition_selectivity;
598+
set @@optimizer_use_condition_selectivity=4;
599+
set @save_use_stat_tables= @@use_stat_tables;
600+
create table t1 (a int, b int);
601+
insert into t1(a,b) values (1,2),(1,3),(1,4),(1,5),(2,6),(2,7),(3,8),(3,9),(3,9),(4,10);
602+
analyze table t1 persistent for columns (a) indexes ();
603+
Table Op Msg_type Msg_text
604+
test.t1 analyze status Engine-independent statistics collected
605+
test.t1 analyze status OK
606+
select * from t1 where a=1 and b=3;
607+
a b
608+
1 3
609+
set @@optimizer_use_condition_selectivity= @save_optimizer_use_condition_selectivity;
610+
set use_stat_tables=@save_use_stat_tables;
611+
drop table t1;
612+
#
594613
# MDEV-16711:CREATE OR REPLACE TABLE introducing BLOB column
595614
#
596615
SET use_stat_tables= PREFERABLY;

mysql-test/main/stat_tables.test

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,23 @@ SELECT * FROM INFORMATION_SCHEMA.PROFILING, mysql.user;
369369
set @@optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
370370
set use_stat_tables=@save_use_stat_tables;
371371

372+
--echo #
373+
--echo # MDEV-17734: AddressSanitizer: use-after-poison in create_key_parts_for_pseudo_indexes
374+
--echo #
375+
376+
set @@use_stat_tables= PREFERABLY;
377+
set @save_optimizer_use_condition_selectivity= @@optimizer_use_condition_selectivity;
378+
set @@optimizer_use_condition_selectivity=4;
379+
set @save_use_stat_tables= @@use_stat_tables;
380+
create table t1 (a int, b int);
381+
insert into t1(a,b) values (1,2),(1,3),(1,4),(1,5),(2,6),(2,7),(3,8),(3,9),(3,9),(4,10);
382+
383+
analyze table t1 persistent for columns (a) indexes ();
384+
select * from t1 where a=1 and b=3;
385+
set @@optimizer_use_condition_selectivity= @save_optimizer_use_condition_selectivity;
386+
set use_stat_tables=@save_use_stat_tables;
387+
drop table t1;
388+
372389
--echo #
373390
--echo # MDEV-16711:CREATE OR REPLACE TABLE introducing BLOB column
374391
--echo #

mysql-test/main/stat_tables_innodb.result

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,25 @@ id select_type table type possible_keys key key_len ref rows Extra
618618
set @@optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
619619
set use_stat_tables=@save_use_stat_tables;
620620
#
621+
# MDEV-17734: AddressSanitizer: use-after-poison in create_key_parts_for_pseudo_indexes
622+
#
623+
set @@use_stat_tables= PREFERABLY;
624+
set @save_optimizer_use_condition_selectivity= @@optimizer_use_condition_selectivity;
625+
set @@optimizer_use_condition_selectivity=4;
626+
set @save_use_stat_tables= @@use_stat_tables;
627+
create table t1 (a int, b int);
628+
insert into t1(a,b) values (1,2),(1,3),(1,4),(1,5),(2,6),(2,7),(3,8),(3,9),(3,9),(4,10);
629+
analyze table t1 persistent for columns (a) indexes ();
630+
Table Op Msg_type Msg_text
631+
test.t1 analyze status Engine-independent statistics collected
632+
test.t1 analyze status OK
633+
select * from t1 where a=1 and b=3;
634+
a b
635+
1 3
636+
set @@optimizer_use_condition_selectivity= @save_optimizer_use_condition_selectivity;
637+
set use_stat_tables=@save_use_stat_tables;
638+
drop table t1;
639+
#
621640
# MDEV-16711:CREATE OR REPLACE TABLE introducing BLOB column
622641
#
623642
SET use_stat_tables= PREFERABLY;

mysql-test/suite/encryption/disabled.def

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@
1212

1313
innodb_scrub : MDEV-8139 scrubbing does not work reliably
1414
innodb_scrub_background : MDEV-8139 scrubbing does not work reliably
15+
innodb-redo-badkey : MDEV-13893/MDEV-12699 fix recovery of corrupted pages

mysql-test/suite/innodb_fts/r/create.result

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,3 +162,19 @@ SELECT len,COUNT(*) FROM INFORMATION_SCHEMA.INNODB_SYS_COLUMNS where name='word'
162162
len COUNT(*)
163163
84 6
164164
DROP TABLE t;
165+
#
166+
# MDEV-17923 Assertion memcmp(field, field_ref_zero, 7) failed in
167+
# trx_undo_page_report_modify upon optimizing table
168+
# under innodb_optimize_fulltext_only
169+
#
170+
CREATE TABLE t1 (f1 TEXT, f2 TEXT, FULLTEXT KEY (f2)) ENGINE=InnoDB;
171+
INSERT INTO t1 (f1) VALUES ('foo'),('bar');
172+
DELETE FROM t1 LIMIT 1;
173+
ALTER TABLE t1 ADD FULLTEXT KEY (f1);
174+
SET @optimize_fulltext.save= @@innodb_optimize_fulltext_only;
175+
SET GLOBAL innodb_optimize_fulltext_only= 1;
176+
OPTIMIZE TABLE t1;
177+
Table Op Msg_type Msg_text
178+
test.t1 optimize status OK
179+
DROP TABLE t1;
180+
SET GLOBAL innodb_optimize_fulltext_only= @optimize_fulltext.save;

mysql-test/suite/innodb_fts/t/create.test

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,19 @@ ENGINE=InnoDB;
9090
# The column length should be 84 bytes (84 characters * 1 byte/character).
9191
SELECT len,COUNT(*) FROM INFORMATION_SCHEMA.INNODB_SYS_COLUMNS where name='word' GROUP BY len;
9292
DROP TABLE t;
93+
94+
--echo #
95+
--echo # MDEV-17923 Assertion memcmp(field, field_ref_zero, 7) failed in
96+
--echo # trx_undo_page_report_modify upon optimizing table
97+
--echo # under innodb_optimize_fulltext_only
98+
--echo #
99+
100+
CREATE TABLE t1 (f1 TEXT, f2 TEXT, FULLTEXT KEY (f2)) ENGINE=InnoDB;
101+
INSERT INTO t1 (f1) VALUES ('foo'),('bar');
102+
DELETE FROM t1 LIMIT 1;
103+
ALTER TABLE t1 ADD FULLTEXT KEY (f1);
104+
SET @optimize_fulltext.save= @@innodb_optimize_fulltext_only;
105+
SET GLOBAL innodb_optimize_fulltext_only= 1;
106+
OPTIMIZE TABLE t1;
107+
DROP TABLE t1;
108+
SET GLOBAL innodb_optimize_fulltext_only= @optimize_fulltext.save;

mysql-test/suite/perfschema/r/socket_connect.result

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -167,19 +167,6 @@ connection default;
167167

168168
# 6.1 Verify that there are no TCP/IP connections in the socket instance table
169169

170-
SELECT COUNT(*) = 0 AS 'Expect 1'
171-
FROM performance_schema.socket_instances
172-
WHERE EVENT_NAME LIKE '%client_connection%'
173-
AND OBJECT_INSTANCE_BEGIN <> @default_object_instance_begin
174-
AND (IP LIKE '%127.0.0.1' OR IP LIKE '%::1');
175-
Expect 1
176-
1
177170

178171
# 6.2 Verify that there are no TCP/IP connections in the summary instance table
179172

180-
SELECT COUNT(*) = 0 AS 'Expect 1'
181-
FROM performance_schema.socket_summary_by_instance
182-
WHERE EVENT_NAME LIKE '%client_connection%'
183-
AND OBJECT_INSTANCE_BEGIN <> @default_object_instance_begin;
184-
Expect 1
185-
1

mysql-test/suite/perfschema/t/socket_connect.test

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,18 +273,21 @@ WHERE EVENT_NAME LIKE '%client_connection%'
273273
--echo
274274
--echo # 6.1 Verify that there are no TCP/IP connections in the socket instance table
275275
--echo
276-
eval SELECT COUNT(*) = 0 AS 'Expect 1'
276+
let $wait_condition=
277+
SELECT COUNT(*) = 0 AS 'Expect 1'
277278
FROM performance_schema.socket_instances
278279
WHERE EVENT_NAME LIKE '%client_connection%'
279280
AND OBJECT_INSTANCE_BEGIN <> @default_object_instance_begin
280281
AND $ip_localhost;
282+
--source include/wait_condition.inc
281283

282284
--echo
283285
--echo # 6.2 Verify that there are no TCP/IP connections in the summary instance table
284286
--echo
285-
eval SELECT COUNT(*) = 0 AS 'Expect 1'
287+
let $wait_condition=
288+
SELECT COUNT(*) = 0 AS 'Expect 1'
286289
FROM performance_schema.socket_summary_by_instance
287290
WHERE EVENT_NAME LIKE '%client_connection%'
288291
AND OBJECT_INSTANCE_BEGIN <> @default_object_instance_begin;
289-
292+
--source include/wait_condition.inc
290293
exit;
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
use mysql;
2+
insert db (db,user,select_priv) values ('foo','dwr_foo','Y'), ('bar','dwr_bar','Y');
3+
insert roles_mapping (user,role) values ('dwr_qux_dev','dwr_foo'),('dwr_qux_dev','dwr_bar');
4+
insert ignore user (user,show_db_priv,is_role) values ('dwr_foo','N','Y'), ('dwr_bar','N','Y'), ('dwr_qux_dev','Y','Y');
5+
Warnings:
6+
Warning 1364 Field 'ssl_cipher' doesn't have a default value
7+
Warning 1364 Field 'x509_issuer' doesn't have a default value
8+
Warning 1364 Field 'x509_subject' doesn't have a default value
9+
Warning 1364 Field 'authentication_string' doesn't have a default value
10+
flush privileges;
11+
drop role dwr_foo;
12+
drop role dwr_bar;
13+
drop role dwr_qux_dev;

0 commit comments

Comments
 (0)