Skip to content

Commit 22edfb4

Browse files
PS-9453: percona_telemetry causes a long wait on COND_thd_list due to the absence of the root user
https://perconadev.atlassian.net/browse/PS-9453 Adjusted MTR tests affected by the fix.
1 parent 27468f8 commit 22edfb4

14 files changed

+59
-26
lines changed

mysql-test/r/grant.result

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,9 @@ show grants for mysqltest_8;
831831
Grants for mysqltest_8@%
832832
GRANT USAGE ON *.* TO `mysqltest_8`@`%`
833833
GRANT UPDATE ON `test`.`t1` TO `mysqltest_8`@`%`
834-
select * from information_schema.table_privileges where table_schema NOT IN ('sys','mysql');
834+
select * from information_schema.table_privileges where table_schema NOT IN ('sys','mysql')
835+
and not (grantee = "'mysql.session'@'localhost'"
836+
and table_name in ('component', 'replication_group_members'));
835837
GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME PRIVILEGE_TYPE IS_GRANTABLE
836838
'mysqltest_8'@'%' def test t1 UPDATE NO
837839
'mysqltest_8'@'' def test t1 UPDATE NO
@@ -845,7 +847,9 @@ GRANT USAGE ON *.* TO `mysqltest_8`@``
845847
show grants for mysqltest_8;
846848
Grants for mysqltest_8@%
847849
GRANT USAGE ON *.* TO `mysqltest_8`@`%`
848-
select * from information_schema.table_privileges where table_schema NOT IN ('sys','mysql');
850+
select * from information_schema.table_privileges where table_schema NOT IN ('sys','mysql')
851+
and not (grantee = "'mysql.session'@'localhost'"
852+
and table_name in ('component', 'replication_group_members'));
849853
GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME PRIVILEGE_TYPE IS_GRANTABLE
850854
flush privileges;
851855
show grants for mysqltest_8@'';

mysql-test/r/information_schema_ci.result

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,9 @@ grant select (a) on test.t1 to joe@localhost with grant option;
544544
select * from INFORMATION_SCHEMA.COLUMN_PRIVILEGES WHERE table_schema != 'sys';
545545
GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME PRIVILEGE_TYPE IS_GRANTABLE
546546
'joe'@'localhost' def test t1 a SELECT YES
547-
select * from INFORMATION_SCHEMA.TABLE_PRIVILEGES WHERE table_schema NOT IN ('sys','mysql');
547+
select * from INFORMATION_SCHEMA.TABLE_PRIVILEGES WHERE table_schema NOT IN ('sys','mysql')
548+
and not (grantee = "'mysql.session'@'localhost'"
549+
and table_name in ('component', 'replication_group_members'));
548550
GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME PRIVILEGE_TYPE IS_GRANTABLE
549551
drop view v1, v2, v3;
550552
drop table t1;

mysql-test/r/information_schema_cs.result

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,9 @@ grant select (a) on test.t1 to joe@localhost with grant option;
544544
select * from INFORMATION_SCHEMA.COLUMN_PRIVILEGES WHERE table_schema != 'sys';
545545
GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME PRIVILEGE_TYPE IS_GRANTABLE
546546
'joe'@'localhost' def test t1 a SELECT YES
547-
select * from INFORMATION_SCHEMA.TABLE_PRIVILEGES WHERE table_schema NOT IN ('sys','mysql');
547+
select * from INFORMATION_SCHEMA.TABLE_PRIVILEGES WHERE table_schema NOT IN ('sys','mysql')
548+
and not (grantee = "'mysql.session'@'localhost'"
549+
and table_name in ('component', 'replication_group_members'));
548550
GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME PRIVILEGE_TYPE IS_GRANTABLE
549551
drop view v1, v2, v3;
550552
drop table t1;

mysql-test/r/transactional_acl_tables.result

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,7 +1342,9 @@ SELECT host, db, user, table_name, column_name, column_priv FROM mysql.columns_p
13421342
host db user table_name column_name column_priv
13431343
h test u1 t1 a Select,Insert,Update,References
13441344
h test u1 t2 a Insert
1345-
SELECT host, db, user, table_name, grantor, table_priv, column_priv FROM mysql.tables_priv;
1345+
SELECT host, db, user, table_name, grantor, table_priv, column_priv FROM mysql.tables_priv
1346+
WHERE NOT (user = 'mysql.session'
1347+
AND table_name IN ('component', 'replication_group_members'));
13461348
host db user table_name grantor table_priv column_priv
13471349
h test u1 t1 root@localhost Select,Insert,Update,References
13481350
h test u1 t2 root@localhost Insert
@@ -1354,7 +1356,9 @@ COMMIT;
13541356
REVOKE ALL PRIVILEGES, GRANT OPTION FROM u1@h;
13551357
SELECT host, db, user, table_name, column_name, column_priv FROM mysql.columns_priv;
13561358
host db user table_name column_name column_priv
1357-
SELECT host, db, user, table_name, grantor, table_priv, column_priv FROM mysql.tables_priv;
1359+
SELECT host, db, user, table_name, grantor, table_priv, column_priv FROM mysql.tables_priv
1360+
WHERE NOT (user = 'mysql.session'
1361+
AND table_name IN ('component', 'replication_group_members'));
13581362
host db user table_name grantor table_priv column_priv
13591363
localhost mysql mysql.session user root@localhost Select
13601364
localhost sys mysql.sys sys_config root@localhost Select

mysql-test/suite/funcs_1/r/is_table_privileges.result

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ TABLE_NAME varchar(64) NO
5353
PRIVILEGE_TYPE varchar(64) NO
5454
IS_GRANTABLE varchar(3) NO
5555
SELECT table_catalog, table_schema, table_name, privilege_type
56-
FROM information_schema.table_privileges WHERE table_catalog IS NOT NULL;
56+
FROM information_schema.table_privileges WHERE table_catalog IS NOT NULL
57+
AND NOT (grantee = "'mysql.session'@'localhost'"
58+
AND table_name IN ('component', 'replication_group_members'));
5759
table_catalog table_schema table_name privilege_type
5860
def mysql user SELECT
5961
def sys sys_config SELECT

mysql-test/suite/funcs_1/t/is_table_privileges.test

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ eval SHOW COLUMNS FROM information_schema.$is_table;
6464
# Show that TABLE_CATALOG is always NULL.
6565
--sorted_result
6666
SELECT table_catalog, table_schema, table_name, privilege_type
67-
FROM information_schema.table_privileges WHERE table_catalog IS NOT NULL;
67+
FROM information_schema.table_privileges WHERE table_catalog IS NOT NULL
68+
AND NOT (grantee = "'mysql.session'@'localhost'"
69+
AND table_name IN ('component', 'replication_group_members'));
6870

6971
--echo ######################################################################
7072
--echo # Testcase 3.2.11.2+3.2.11.3+3.2.11.4:

mysql-test/suite/innodb/r/log_first_rec_group.result

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,16 @@ include/assert.inc [All must happen within the single log block (this was requir
1717
# value of 5 in first pass, 4 in second).
1818
SELECT * FROM t;
1919
a b
20-
98 1
21-
99 2
22-
100 3
23-
101 4
24-
102 5
25-
103 6
20+
97 1
21+
98 2
22+
99 3
23+
100 4
24+
101 5
25+
102 6
26+
103 7
2627
SELECT AUTO_INCREMENT FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 't';
2728
AUTO_INCREMENT
28-
7
29+
8
2930
Pass: 1
3031
# Initialization - create table, resets autoincrement value.
3132
# 0. Move to the next log block.
@@ -42,14 +43,15 @@ include/assert.inc [All must happen within the single log block (this was requir
4243
# value of 5 in first pass, 4 in second).
4344
SELECT * FROM t;
4445
a b
45-
98 1
46-
99 2
47-
100 3
48-
101 4
49-
103 5
46+
97 1
47+
98 2
48+
99 3
49+
100 4
50+
101 5
51+
103 6
5052
SELECT AUTO_INCREMENT FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 't';
5153
AUTO_INCREMENT
52-
6
54+
7
5355
#
5456
# Scenario 2. Restart after writing full log block with record ending at boundary,
5557
# recovery should start in middle of the last written block (pass 0, 2)

mysql-test/suite/innodb/t/log_first_rec_group.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ while ($pass != 2) {
2727

2828
--echo # Initialization - create table, resets autoincrement value.
2929
CREATE TABLE t (a INT NOT NULL, b INT NOT NULL AUTO_INCREMENT PRIMARY KEY) ENGINE = InnoDB;
30+
INSERT INTO t (a) VALUES (97);
3031
INSERT INTO t (a) VALUES (98);
3132
INSERT INTO t (a) VALUES (99);
3233
INSERT INTO t (a) VALUES (100);
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--loose-percona-telemetry-disable=ON

mysql-test/t/grant.test

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,9 @@ flush privileges;
655655
show grants for mysqltest_8@'';
656656
show grants for mysqltest_8;
657657
--sorted_result
658-
select * from information_schema.table_privileges where table_schema NOT IN ('sys','mysql');
658+
select * from information_schema.table_privileges where table_schema NOT IN ('sys','mysql')
659+
and not (grantee = "'mysql.session'@'localhost'"
660+
and table_name in ('component', 'replication_group_members'));
659661
connect (conn5,localhost,mysqltest_8,,);
660662
select * from t1;
661663
disconnect conn5;
@@ -665,7 +667,9 @@ revoke update on t1 from mysqltest_8;
665667
show grants for mysqltest_8@'';
666668
show grants for mysqltest_8;
667669
--sorted_result
668-
select * from information_schema.table_privileges where table_schema NOT IN ('sys','mysql');
670+
select * from information_schema.table_privileges where table_schema NOT IN ('sys','mysql')
671+
and not (grantee = "'mysql.session'@'localhost'"
672+
and table_name in ('component', 'replication_group_members'));
669673
flush privileges;
670674
show grants for mysqltest_8@'';
671675
show grants for mysqltest_8;

0 commit comments

Comments
 (0)