You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BUG#25846957: MYSQL STARTUP BLOCKED FOR 20 MINUTES
ON PARTITION-ENGINE-CHECK.
Analysis:
=========
From MySQL-5.7.17, during the server start up,
a check is performed to list the tables which
uses non native paritioning. This helps users
to prepare for upgrade to 8.0 where the support
for non native partitioning is removed. For large
databases with many such tables, this check
consumed a lot of time since a SELECT on I_S is
performed to fetch the information. By default,
the variable 'disable-partition-engine-check' is
disabled, which triggers the check for tables
using non-native partitioning at startup.
Fix:
====
The variable 'disable-partition-engine-check' is enabled
by default. Hence the check for non native partitioned
tables is skipped during the start up unless it is
explicitly disabled.
Copy file name to clipboardExpand all lines: mysql-test/r/partition_deprecation.result
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -92,11 +92,13 @@ TABLE_SCHEMA TABLE_NAME
92
92
test t1
93
93
Warnings:
94
94
Warning 1287 The partition engine, used by table 'test.t1', is deprecated and will be removed in a future release. Please use native partitioning instead.
95
-
# Verify that the startup option --disable-partition-engine-check skips the I_S query.
Thread handler id IS equal to session id returned by srv_session_info_get_session_id(Session_2)
32
32
33
-
SELECT name,type,processlist_id,processlist_user,processlist_host,processlist_db,processlist_command,processlist_state,processlist_info,role,instrumented,history,connection_type FROM performance_schema.threads WHERE processlist_id = 4
33
+
SELECT name,type,processlist_id,processlist_user,processlist_host,processlist_db,processlist_command,processlist_state,processlist_info,role,instrumented,history,connection_type FROM performance_schema.threads WHERE processlist_id = 3
34
34
name type processlist_id processlist_user processlist_host processlist_db processlist_command processlist_state processlist_info role instrumented history connection_type
35
-
thread/sql/one_connection FOREGROUND 4 root localhost test Query Sending data SELECT name,type,processlist_id,processlist_user,processlist_host,processlist_db,processlist_command,processlist_state,processlist_info,role,instrumented,history,connection_type FROM performance_schema.threads WHERE processlist_id = 4 [NULL] YES YES Plugin
35
+
thread/sql/one_connection FOREGROUND 3 root localhost test Query Sending data SELECT name,type,processlist_id,processlist_user,processlist_host,processlist_db,processlist_command,processlist_state,processlist_info,role,instrumented,history,connection_type FROM performance_schema.threads WHERE processlist_id = 3 [NULL] YES YES Plugin
36
36
37
37
num_cols : 13
38
38
nb rows : 1
39
39
affected rows : 0
40
40
server status : 34
41
41
warn count : 0
42
42
43
-
SELECT name,type,processlist_id,processlist_user,processlist_host,processlist_db,processlist_command,processlist_state,processlist_info,role,instrumented,history,connection_type FROM performance_schema.threads WHERE processlist_id = 5
43
+
SELECT name,type,processlist_id,processlist_user,processlist_host,processlist_db,processlist_command,processlist_state,processlist_info,role,instrumented,history,connection_type FROM performance_schema.threads WHERE processlist_id = 4
44
44
name type processlist_id processlist_user processlist_host processlist_db processlist_command processlist_state processlist_info role instrumented history connection_type
45
-
thread/sql/one_connection FOREGROUND 5 root localhost test Query Sending data SELECT name,type,processlist_id,processlist_user,processlist_host,processlist_db,processlist_command,processlist_state,processlist_info,role,instrumented,history,connection_type FROM performance_schema.threads WHERE processlist_id = 5 [NULL] YES YES Plugin
45
+
thread/sql/one_connection FOREGROUND 4 root localhost test Query Sending data SELECT name,type,processlist_id,processlist_user,processlist_host,processlist_db,processlist_command,processlist_state,processlist_info,role,instrumented,history,connection_type FROM performance_schema.threads WHERE processlist_id = 4 [NULL] YES YES Plugin
SELECT ID, USER, HOST, DB, COMMAND, INFO FROM INFORMATION_SCHEMA.PROCESSLIST WHERE info LIKE 'PLUGIN%' ORDER BY id
292
292
ID USER HOST DB COMMAND INFO
293
-
4 root localhost:100 test Query PLUGIN: SELECT ID, USER, HOST, DB, COMMAND, INFO FROM INFORMATION_SCHEMA.PROCESSLIST WHERE info LIKE 'PLUGIN%' ORDER BY id
294
-
5 root localhost:200 test Sleep PLUGIN
293
+
3 root localhost:100 test Query PLUGIN: SELECT ID, USER, HOST, DB, COMMAND, INFO FROM INFORMATION_SCHEMA.PROCESSLIST WHERE info LIKE 'PLUGIN%' ORDER BY id
/*Session 3*/SELECT ID, USER, HOST, DB, COMMAND, INFO FROM INFORMATION_SCHEMA.PROCESSLIST WHERE info LIKE 'PLUGIN%' ORDER BY id
357
357
ID USER HOST DB COMMAND INFO
358
-
5 root localhost:11111 test Killed PLUGIN
359
-
6 root localhost [NULL] Query PLUGIN: /*Session 3*/SELECT ID, USER, HOST, DB, COMMAND, INFO FROM INFORMATION_SCHEMA.PROCESSLIST WHERE info LIKE 'PLUGIN%' ORDER BY id
358
+
4 root localhost:11111 test Killed PLUGIN
359
+
5 root localhost [NULL] Query PLUGIN: /*Session 3*/SELECT ID, USER, HOST, DB, COMMAND, INFO FROM INFORMATION_SCHEMA.PROCESSLIST WHERE info LIKE 'PLUGIN%' ORDER BY id
360
360
361
361
num_cols : 6
362
362
nb rows : 2
@@ -381,19 +381,19 @@ Session 2 : srv_session_info_get_thd and srv_session_info_get_session_id
Thread handler id IS equal to session id returned by srv_session_info_get_session_id(Session_2)
383
383
384
-
SELECT name,type,processlist_id,processlist_user,processlist_host,processlist_db,processlist_command,processlist_state,processlist_info,role,instrumented,history,connection_type FROM performance_schema.threads WHERE processlist_id = 7
384
+
SELECT name,type,processlist_id,processlist_user,processlist_host,processlist_db,processlist_command,processlist_state,processlist_info,role,instrumented,history,connection_type FROM performance_schema.threads WHERE processlist_id = 6
385
385
name type processlist_id processlist_user processlist_host processlist_db processlist_command processlist_state processlist_info role instrumented history connection_type
386
-
thread/test_service_sql/session_info FOREGROUND 7 root localhost [NULL] Query Sending data SELECT name,type,processlist_id,processlist_user,processlist_host,processlist_db,processlist_command,processlist_state,processlist_info,role,instrumented,history,connection_type FROM performance_schema.threads WHERE processlist_id = 7 [NULL] YES YES Plugin
386
+
thread/test_service_sql/session_info FOREGROUND 6 root localhost [NULL] Query Sending data SELECT name,type,processlist_id,processlist_user,processlist_host,processlist_db,processlist_command,processlist_state,processlist_info,role,instrumented,history,connection_type FROM performance_schema.threads WHERE processlist_id = 6 [NULL] YES YES Plugin
387
387
388
388
num_cols : 13
389
389
nb rows : 1
390
390
affected rows : 0
391
391
server status : 34
392
392
warn count : 0
393
393
394
-
SELECT name,type,processlist_id,processlist_user,processlist_host,processlist_db,processlist_command,processlist_state,processlist_info,role,instrumented,history,connection_type FROM performance_schema.threads WHERE processlist_id = 8
394
+
SELECT name,type,processlist_id,processlist_user,processlist_host,processlist_db,processlist_command,processlist_state,processlist_info,role,instrumented,history,connection_type FROM performance_schema.threads WHERE processlist_id = 7
395
395
name type processlist_id processlist_user processlist_host processlist_db processlist_command processlist_state processlist_info role instrumented history connection_type
396
-
thread/test_service_sql/session_info FOREGROUND 8 root localhost [NULL] Query Sending data SELECT name,type,processlist_id,processlist_user,processlist_host,processlist_db,processlist_command,processlist_state,processlist_info,role,instrumented,history,connection_type FROM performance_schema.threads WHERE processlist_id = 8 [NULL] YES YES Plugin
396
+
thread/test_service_sql/session_info FOREGROUND 7 root localhost [NULL] Query Sending data SELECT name,type,processlist_id,processlist_user,processlist_host,processlist_db,processlist_command,processlist_state,processlist_info,role,instrumented,history,connection_type FROM performance_schema.threads WHERE processlist_id = 7 [NULL] YES YES Plugin
SELECT ID, USER, HOST, DB, COMMAND, INFO FROM INFORMATION_SCHEMA.PROCESSLIST WHERE info LIKE 'PLUGIN%' ORDER BY id
643
643
ID USER HOST DB COMMAND INFO
644
-
7 root localhost:100 test Query PLUGIN: SELECT ID, USER, HOST, DB, COMMAND, INFO FROM INFORMATION_SCHEMA.PROCESSLIST WHERE info LIKE 'PLUGIN%' ORDER BY id
645
-
8 root localhost:200 test Sleep PLUGIN
644
+
6 root localhost:100 test Query PLUGIN: SELECT ID, USER, HOST, DB, COMMAND, INFO FROM INFORMATION_SCHEMA.PROCESSLIST WHERE info LIKE 'PLUGIN%' ORDER BY id
/*Session 3*/SELECT ID, USER, HOST, DB, COMMAND, INFO FROM INFORMATION_SCHEMA.PROCESSLIST WHERE info LIKE 'PLUGIN%' ORDER BY id
708
708
ID USER HOST DB COMMAND INFO
709
-
8 root localhost:11111 test Killed PLUGIN
710
-
9 root localhost [NULL] Query PLUGIN: /*Session 3*/SELECT ID, USER, HOST, DB, COMMAND, INFO FROM INFORMATION_SCHEMA.PROCESSLIST WHERE info LIKE 'PLUGIN%' ORDER BY id
709
+
7 root localhost:11111 test Killed PLUGIN
710
+
8 root localhost [NULL] Query PLUGIN: /*Session 3*/SELECT ID, USER, HOST, DB, COMMAND, INFO FROM INFORMATION_SCHEMA.PROCESSLIST WHERE info LIKE 'PLUGIN%' ORDER BY id
0 commit comments