==================== Test output for //server:server_test (shard 11 of 50): === RUN TestCursorFetchErrorInFetch [2024/05/06 16:29:04.721 +08:00] [INFO] [region_cache.go:2484] ["change store resolve state"] [store=1] [addr=store1] [from=unresolved] [to=resolved] [liveness-state=reachable] [2024/05/06 16:29:04.721 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:29:04.721 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:29:04.723 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:29:04.723 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:29:04.724 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:29:04.724 +08:00] [INFO] [tidb.go:77] ["new domain"] [store=877a7d46-88e6-410d-9473-4ecc2fc3e009] ["ddl lease"=500ms] ["stats lease"=-1ns] ["index usage sync lease"=0s] [2024/05/06 16:29:04.728 +08:00] [WARN] [domain.go:188] ["failed to get schema version"] [error="There is no Write MVCC info for the schema version"] [errorVerbose="There is no Write MVCC info for the schema version\ngithub.com/pingcap/tidb/domain.(*Domain).getTimestampForSchemaVersionWithNonEmptyDiff\n\tdomain/domain.go:261\ngithub.com/pingcap/tidb/domain.(*Domain).loadInfoSchema\n\tdomain/domain.go:186\ngithub.com/pingcap/tidb/domain.(*Domain).Reload\n\tdomain/domain.go:502\ngithub.com/pingcap/tidb/domain.(*Domain).Init\n\tdomain/domain.go:1074\ngithub.com/pingcap/tidb/session.(*domainMap).Get.func1\n\tsession/tidb.go:90\ngithub.com/pingcap/tidb/util.RunWithRetry\n\tutil/misc.go:69\ngithub.com/pingcap/tidb/session.(*domainMap).Get\n\tsession/tidb.go:76\ngithub.com/pingcap/tidb/session.createSessionWithOpt\n\tsession/session.go:3520\ngithub.com/pingcap/tidb/session.createSession\n\tsession/session.go:3516\ngithub.com/pingcap/tidb/session.runInBootstrapSession\n\tsession/session.go:3480\ngithub.com/pingcap/tidb/session.BootstrapSession\n\tsession/session.go:3309\ngithub.com/pingcap/tidb/testkit.bootstrap\n\ttestkit/mockstore.go:84\ngithub.com/pingcap/tidb/testkit.CreateMockStoreAndDomain\n\ttestkit/mockstore.go:69\ngithub.com/pingcap/tidb/server.TestCursorFetchErrorInFetch\n\tserver/conn_stmt_test.go:527\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1446\nruntime.goexit\n\tGOROOT/src/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:29:04.731 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=0] ["start time"=2.431125ms] [2024/05/06 16:29:04.731 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:29:04.731 +08:00] [INFO] [ddl.go:719] ["[ddl] start DDL"] [ID=b65c00d1-a377-497d-b336-70327024ad1d] [runWorker=true] [2024/05/06 16:29:04.731 +08:00] [INFO] [ddl.go:665] ["[ddl] start delRangeManager OK"] ["is a emulator"=true] [2024/05/06 16:29:04.732 +08:00] [INFO] [delete_range.go:158] ["[ddl] start delRange emulator"] [2024/05/06 16:29:04.732 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 1, tp general"] [2024/05/06 16:29:04.732 +08:00] [WARN] [env.go:52] ["[ddl-ingest] initialize environment failed"] ["storage limitation"="only support TiKV storage"] ["current storage"=unistore] ["lightning is initialized"=false] [2024/05/06 16:29:04.732 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 2, tp add index"] [2024/05/06 16:29:04.732 +08:00] [INFO] [env.go:108] ["[ddl-ingest] the lightning sorted dir"] ["data path:"=/tmp/tidb/tmp_ddl-4000] [2024/05/06 16:29:04.732 +08:00] [INFO] [env.go:75] ["[ddl-ingest] init global lightning backend environment finished"] ["memory limitation"=2147483648] ["sort path disk quota"=107374182400] ["max open file number"=1073741816] ["lightning is initialized"=true] [2024/05/06 16:29:04.732 +08:00] [WARN] [domain.go:1120] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 16:29:04.733 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=0] [cur_db=mysql] [sql="CREATE DATABASE IF NOT EXISTS test"] [user=] [2024/05/06 16:29:04.736 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:3, Type:create schema, State:queueing, SchemaState:none, SchemaID:2, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 16:29:04.735 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:04.736 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:3, Type:create schema, State:queueing, SchemaState:none, SchemaID:2, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 16:29:04.735 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE DATABASE IF NOT EXISTS test"] [2024/05/06 16:29:04.742 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 3, tp general"] [job="ID:3, Type:create schema, State:queueing, SchemaState:none, SchemaID:2, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:04.735 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:04.746 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=1] ["start time"=2.280981ms] [2024/05/06 16:29:04.746 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:29:04.782 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:04.782 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=3] [version=1] [2024/05/06 16:29:04.783 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=1] ["take time"=39.055902ms] [job="ID:3, Type:create schema, State:done, SchemaState:public, SchemaID:2, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 16:29:04.735 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:04.787 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 3, tp general"] [job="ID:3, Type:create schema, State:synced, SchemaState:public, SchemaID:2, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:04.735 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:04.790 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=3] [2024/05/06 16:29:04.790 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:04.791 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=1] [cur_db=mysql] [sql="CREATE DATABASE IF NOT EXISTS `mysql`"] [user=] [2024/05/06 16:29:04.792 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=1] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.user (\n\t\tHost\t\t\t\t\tCHAR(255),\n\t\tUser\t\t\t\t\tCHAR(32),\n\t\tauthentication_string\tTEXT,\n\t\tplugin\t\t\t\t\tCHAR(64),\n\t\tSelect_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tInsert_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tUpdate_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tDelete_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tDrop_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tProcess_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tGrant_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tReferences_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tAlter_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tShow_db_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tSuper_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_tmp_table_priv\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tLock_tables_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tExecute_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_view_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tShow_view_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_routine_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tAlter_routine_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tIndex_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_user_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tEvent_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tRepl_slave_priv\t \tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tRepl_client_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tTrigger_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_role_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tDrop_role_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tAccount_locked\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tShutdown_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tReload_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tFILE_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tConfig_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_Tablespace_Priv ENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tPassword_reuse_history smallint unsigned DEFAULT NULL,\n\t\tPassword_reuse_time smallint unsigned DEFAULT NULL,\n\t\tUser_attributes\t\t\tjson,\n\t\tToken_issuer\t\t\tVARCHAR(255),\n\t\tPassword_expired\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tPassword_last_changed\tTIMESTAMP DEFAULT CURRENT_TIMESTAMP(),\n\t\tPassword_lifetime\t\tSMALLINT UNSIGNED DEFAULT NULL,\n\t\tPRIMARY KEY (Host, User));"] [user=] [2024/05/06 16:29:04.797 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:5, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:4, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:04.793 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:04.797 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:5, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:4, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:04.793 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.user (\n\t\tHost\t\t\t\t\tCHAR(255),\n\t\tUser\t\t\t\t\tCHAR(32),\n\t\tauthentication_string\tTEXT,\n\t\tplugin\t\t\t\t\tCHAR(64),\n\t\tSelect_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tInsert_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tUpdate_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tDelete_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tDrop_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tProcess_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tGrant_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tReferences_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tAlter_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tShow_db_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tSuper_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_tmp_table_priv\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tLock_tables_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tExecute_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_view_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tShow_view_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_routine_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tAlter_routine_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tIndex_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_user_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tEvent_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tRepl_slave_priv\t \tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tRepl_client_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tTrigger_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_role_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tDrop_role_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tAccount_locked\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tShutdown_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tReload_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tFILE_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tConfig_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_Tablespace_Priv ENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tPassword_reuse_history smallint unsigned DEFAULT NULL,\n\t\tPassword_reuse_time smallint unsigned DEFAULT NULL,\n\t\tUser_attributes\t\t\tjson,\n\t\tToken_issuer\t\t\tVARCHAR(255),\n\t\tPassword_expired\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tPassword_last_changed\tTIMESTAMP DEFAULT CURRENT_TIMESTAMP(),\n\t\tPassword_lifetime\t\tSMALLINT UNSIGNED DEFAULT NULL,\n\t\tPRIMARY KEY (Host, User));"] [2024/05/06 16:29:04.803 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 3, tp general"] [job="ID:5, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:4, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:04.793 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:04.815 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=1] [neededSchemaVersion=2] ["start time"=923.067µs] [phyTblIDs="[4]"] [actionTypes="[8]"] [2024/05/06 16:29:04.832 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:04.832 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=5] [version=2] [2024/05/06 16:29:04.834 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=2] ["take time"=20.744488ms] [job="ID:5, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:4, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:04.793 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:04.839 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 3, tp general"] [job="ID:5, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:4, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:04.793 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:04.847 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=5] [2024/05/06 16:29:04.847 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:04.847 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=2] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.password_history (\n Host char(255) NOT NULL DEFAULT '',\n User char(32) NOT NULL DEFAULT '',\n Password_timestamp timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),\n Password text,\n PRIMARY KEY (Host,User,Password_timestamp )\n ) COMMENT='Password history for user accounts' "] [user=] [2024/05/06 16:29:04.851 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:7, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:6, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:04.849 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:04.851 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:7, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:6, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:04.849 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.password_history (\n Host char(255) NOT NULL DEFAULT '',\n User char(32) NOT NULL DEFAULT '',\n Password_timestamp timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),\n Password text,\n PRIMARY KEY (Host,User,Password_timestamp )\n ) COMMENT='Password history for user accounts' "] [2024/05/06 16:29:04.857 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 3, tp general"] [job="ID:7, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:6, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:04.849 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:04.859 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=2] [neededSchemaVersion=3] ["start time"=218.246µs] [phyTblIDs="[6]"] [actionTypes="[8]"] [2024/05/06 16:29:04.882 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:04.882 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=7] [version=3] [2024/05/06 16:29:04.883 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=3] ["take time"=24.454488ms] [job="ID:7, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:6, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:04.849 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:04.889 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 3, tp general"] [job="ID:7, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:6, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:04.849 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:04.891 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=7] [2024/05/06 16:29:04.892 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:04.892 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=3] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.global_priv (Host CHAR(255) NOT NULL DEFAULT '',User CHAR(80) NOT NULL DEFAULT '',Priv LONGTEXT NOT NULL DEFAULT '',PRIMARY KEY (Host, User))"] [user=] [2024/05/06 16:29:04.894 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:9, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:8, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:04.893 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:04.894 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:9, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:8, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:04.893 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.global_priv (Host CHAR(255) NOT NULL DEFAULT '',User CHAR(80) NOT NULL DEFAULT '',Priv LONGTEXT NOT NULL DEFAULT '',PRIMARY KEY (Host, User))"] [2024/05/06 16:29:04.900 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 3, tp general"] [job="ID:9, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:8, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:04.893 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:04.904 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=3] [neededSchemaVersion=4] ["start time"=250.357µs] [phyTblIDs="[8]"] [actionTypes="[8]"] [2024/05/06 16:29:04.933 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:04.933 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=9] [version=4] [2024/05/06 16:29:04.934 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=4] ["take time"=30.793834ms] [job="ID:9, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:8, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:04.893 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:04.938 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 3, tp general"] [job="ID:9, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:8, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:04.893 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:04.941 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=9] [2024/05/06 16:29:04.941 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:04.941 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=4] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.db (\n\t\tHost\t\t\t\t\tCHAR(255),\n\t\tDB\t\t\t\t\t\tCHAR(64),\n\t\tUser\t\t\t\t\tCHAR(32),\n\t\tSelect_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tInsert_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tUpdate_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tDelete_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tDrop_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tGrant_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tReferences_priv \t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tIndex_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tAlter_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_tmp_table_priv\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tLock_tables_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_view_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tShow_view_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_routine_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tAlter_routine_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tExecute_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tEvent_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tTrigger_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tPRIMARY KEY (Host, DB, User));"] [user=] [2024/05/06 16:29:04.945 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:11, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:10, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:04.943 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:04.945 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:11, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:10, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:04.943 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.db (\n\t\tHost\t\t\t\t\tCHAR(255),\n\t\tDB\t\t\t\t\t\tCHAR(64),\n\t\tUser\t\t\t\t\tCHAR(32),\n\t\tSelect_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tInsert_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tUpdate_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tDelete_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tDrop_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tGrant_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tReferences_priv \t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tIndex_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tAlter_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_tmp_table_priv\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tLock_tables_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_view_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tShow_view_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_routine_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tAlter_routine_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tExecute_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tEvent_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tTrigger_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tPRIMARY KEY (Host, DB, User));"] [2024/05/06 16:29:04.950 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 3, tp general"] [job="ID:11, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:10, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:04.943 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:04.956 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=4] [neededSchemaVersion=5] ["start time"=434.724µs] [phyTblIDs="[10]"] [actionTypes="[8]"] [2024/05/06 16:29:04.982 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:04.982 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=11] [version=5] [2024/05/06 16:29:04.983 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=5] ["take time"=28.015422ms] [job="ID:11, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:10, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:04.943 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:04.987 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 3, tp general"] [job="ID:11, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:10, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:04.943 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:04.992 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=11] [2024/05/06 16:29:04.992 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:04.993 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=5] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.tables_priv (\n\t\tHost\t\tCHAR(255),\n\t\tDB\t\t\tCHAR(64),\n\t\tUser\t\tCHAR(32),\n\t\tTable_name\tCHAR(64),\n\t\tGrantor\t\tCHAR(77),\n\t\tTimestamp\tTIMESTAMP DEFAULT CURRENT_TIMESTAMP,\n\t\tTable_priv\tSET('Select','Insert','Update','Delete','Create','Drop','Grant','Index','Alter','Create View','Show View','Trigger','References'),\n\t\tColumn_priv\tSET('Select','Insert','Update','References'),\n\t\tPRIMARY KEY (Host, DB, User, Table_name));"] [user=] [2024/05/06 16:29:04.996 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:13, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:12, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:04.995 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:04.996 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:13, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:12, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:04.995 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.tables_priv (\n\t\tHost\t\tCHAR(255),\n\t\tDB\t\t\tCHAR(64),\n\t\tUser\t\tCHAR(32),\n\t\tTable_name\tCHAR(64),\n\t\tGrantor\t\tCHAR(77),\n\t\tTimestamp\tTIMESTAMP DEFAULT CURRENT_TIMESTAMP,\n\t\tTable_priv\tSET('Select','Insert','Update','Delete','Create','Drop','Grant','Index','Alter','Create View','Show View','Trigger','References'),\n\t\tColumn_priv\tSET('Select','Insert','Update','References'),\n\t\tPRIMARY KEY (Host, DB, User, Table_name));"] [2024/05/06 16:29:05.001 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 3, tp general"] [job="ID:13, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:12, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:04.995 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.004 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=5] [neededSchemaVersion=6] ["start time"=291.503µs] [phyTblIDs="[12]"] [actionTypes="[8]"] [2024/05/06 16:29:05.032 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:05.032 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=13] [version=6] [2024/05/06 16:29:05.034 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=6] ["take time"=31.189972ms] [job="ID:13, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:12, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:04.995 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.038 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 3, tp general"] [job="ID:13, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:12, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:04.995 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.044 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=13] [2024/05/06 16:29:05.044 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:05.044 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=6] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.columns_priv(\n\t\tHost\t\tCHAR(255),\n\t\tDB\t\t\tCHAR(64),\n\t\tUser\t\tCHAR(32),\n\t\tTable_name\tCHAR(64),\n\t\tColumn_name\tCHAR(64),\n\t\tTimestamp\tTIMESTAMP DEFAULT CURRENT_TIMESTAMP,\n\t\tColumn_priv\tSET('Select','Insert','Update','References'),\n\t\tPRIMARY KEY (Host, DB, User, Table_name, Column_name));"] [user=] [2024/05/06 16:29:05.047 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:15, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:14, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.046 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:05.047 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:15, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:14, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.046 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.columns_priv(\n\t\tHost\t\tCHAR(255),\n\t\tDB\t\t\tCHAR(64),\n\t\tUser\t\tCHAR(32),\n\t\tTable_name\tCHAR(64),\n\t\tColumn_name\tCHAR(64),\n\t\tTimestamp\tTIMESTAMP DEFAULT CURRENT_TIMESTAMP,\n\t\tColumn_priv\tSET('Select','Insert','Update','References'),\n\t\tPRIMARY KEY (Host, DB, User, Table_name, Column_name));"] [2024/05/06 16:29:05.052 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 3, tp general"] [job="ID:15, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:14, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:05.046 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.055 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=6] [neededSchemaVersion=7] ["start time"=246.832µs] [phyTblIDs="[14]"] [actionTypes="[8]"] [2024/05/06 16:29:05.083 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:05.083 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=15] [version=7] [2024/05/06 16:29:05.085 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=7] ["take time"=30.366704ms] [job="ID:15, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:14, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.046 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.089 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 3, tp general"] [job="ID:15, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:14, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:05.046 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.091 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=15] [2024/05/06 16:29:05.092 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:05.092 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=7] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.GLOBAL_VARIABLES(\n\t\tVARIABLE_NAME VARCHAR(64) NOT NULL PRIMARY KEY,\n\t\tVARIABLE_VALUE VARCHAR(1024) DEFAULT NULL);"] [user=] [2024/05/06 16:29:05.094 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:17, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:16, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.093 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:05.094 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:17, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:16, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.093 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.GLOBAL_VARIABLES(\n\t\tVARIABLE_NAME VARCHAR(64) NOT NULL PRIMARY KEY,\n\t\tVARIABLE_VALUE VARCHAR(1024) DEFAULT NULL);"] [2024/05/06 16:29:05.099 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 3, tp general"] [job="ID:17, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:16, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:05.093 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.101 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=7] [neededSchemaVersion=8] ["start time"=159.469µs] [phyTblIDs="[16]"] [actionTypes="[8]"] [2024/05/06 16:29:05.133 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:05.133 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=17] [version=8] [2024/05/06 16:29:05.135 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=8] ["take time"=34.270891ms] [job="ID:17, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:16, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.093 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.138 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 3, tp general"] [job="ID:17, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:16, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:05.093 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.143 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=17] [2024/05/06 16:29:05.143 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:05.143 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=8] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.tidb(\n\t\tVARIABLE_NAME \tVARCHAR(64) NOT NULL PRIMARY KEY,\n\t\tVARIABLE_VALUE \tVARCHAR(1024) DEFAULT NULL,\n\t\tCOMMENT \t\tVARCHAR(1024));"] [user=] [2024/05/06 16:29:05.145 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:19, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:18, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.144 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:05.145 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:19, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:18, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.144 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.tidb(\n\t\tVARIABLE_NAME \tVARCHAR(64) NOT NULL PRIMARY KEY,\n\t\tVARIABLE_VALUE \tVARCHAR(1024) DEFAULT NULL,\n\t\tCOMMENT \t\tVARCHAR(1024));"] [2024/05/06 16:29:05.152 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 3, tp general"] [job="ID:19, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:18, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:05.144 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.154 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=8] [neededSchemaVersion=9] ["start time"=221.684µs] [phyTblIDs="[18]"] [actionTypes="[8]"] [2024/05/06 16:29:05.182 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:05.182 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=19] [version=9] [2024/05/06 16:29:05.184 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=9] ["take time"=30.158789ms] [job="ID:19, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:18, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.144 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.188 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 3, tp general"] [job="ID:19, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:18, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:05.144 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.191 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=19] [2024/05/06 16:29:05.191 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:05.192 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=9] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.help_topic (\n \t\thelp_topic_id \t\tINT(10) UNSIGNED NOT NULL,\n \t\tname \t\t\t\tCHAR(64) NOT NULL,\n \t\thelp_category_id \tSMALLINT(5) UNSIGNED NOT NULL,\n \t\tdescription \t\tTEXT NOT NULL,\n \t\texample \t\t\tTEXT NOT NULL,\n \t\turl \t\t\t\tTEXT NOT NULL,\n \t\tPRIMARY KEY (help_topic_id) clustered,\n \t\tUNIQUE KEY name (name)\n\t\t) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='help topics';"] [user=] [2024/05/06 16:29:05.194 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:21, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:20, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.193 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:05.194 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:21, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:20, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.193 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.help_topic (\n \t\thelp_topic_id \t\tINT(10) UNSIGNED NOT NULL,\n \t\tname \t\t\t\tCHAR(64) NOT NULL,\n \t\thelp_category_id \tSMALLINT(5) UNSIGNED NOT NULL,\n \t\tdescription \t\tTEXT NOT NULL,\n \t\texample \t\t\tTEXT NOT NULL,\n \t\turl \t\t\t\tTEXT NOT NULL,\n \t\tPRIMARY KEY (help_topic_id) clustered,\n \t\tUNIQUE KEY name (name)\n\t\t) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='help topics';"] [2024/05/06 16:29:05.198 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 3, tp general"] [job="ID:21, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:20, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:05.193 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.201 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=9] [neededSchemaVersion=10] ["start time"=256.792µs] [phyTblIDs="[20]"] [actionTypes="[8]"] [2024/05/06 16:29:05.234 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:05.234 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=21] [version=10] [2024/05/06 16:29:05.235 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=10] ["take time"=34.386656ms] [job="ID:21, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:20, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.193 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.242 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 3, tp general"] [job="ID:21, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:20, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:05.193 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.245 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=21] [2024/05/06 16:29:05.245 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:05.246 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=10] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.stats_meta (\n\t\tversion \t\tBIGINT(64) UNSIGNED NOT NULL,\n\t\ttable_id \t\tBIGINT(64) NOT NULL,\n\t\tmodify_count\tBIGINT(64) NOT NULL DEFAULT 0,\n\t\tcount \t\t\tBIGINT(64) UNSIGNED NOT NULL DEFAULT 0,\n\t\tsnapshot BIGINT(64) UNSIGNED NOT NULL DEFAULT 0,\n\t\tINDEX idx_ver(version),\n\t\tUNIQUE INDEX tbl(table_id)\n\t);"] [user=] [2024/05/06 16:29:05.248 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:23, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:22, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.247 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:05.248 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:23, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:22, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.247 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.stats_meta (\n\t\tversion \t\tBIGINT(64) UNSIGNED NOT NULL,\n\t\ttable_id \t\tBIGINT(64) NOT NULL,\n\t\tmodify_count\tBIGINT(64) NOT NULL DEFAULT 0,\n\t\tcount \t\t\tBIGINT(64) UNSIGNED NOT NULL DEFAULT 0,\n\t\tsnapshot BIGINT(64) UNSIGNED NOT NULL DEFAULT 0,\n\t\tINDEX idx_ver(version),\n\t\tUNIQUE INDEX tbl(table_id)\n\t);"] [2024/05/06 16:29:05.253 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 3, tp general"] [job="ID:23, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:22, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:05.247 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.256 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=10] [neededSchemaVersion=11] ["start time"=273.998µs] [phyTblIDs="[22]"] [actionTypes="[8]"] [2024/05/06 16:29:05.283 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:05.283 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=23] [version=11] [2024/05/06 16:29:05.285 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=11] ["take time"=29.065609ms] [job="ID:23, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:22, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.247 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.289 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 3, tp general"] [job="ID:23, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:22, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:05.247 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.291 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=23] [2024/05/06 16:29:05.291 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:05.291 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=11] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.stats_histograms (\n\t\ttable_id \t\t\tBIGINT(64) NOT NULL,\n\t\tis_index \t\t\tTINYINT(2) NOT NULL,\n\t\thist_id \t\t\tBIGINT(64) NOT NULL,\n\t\tdistinct_count \t\tBIGINT(64) NOT NULL,\n\t\tnull_count \t\t\tBIGINT(64) NOT NULL DEFAULT 0,\n\t\ttot_col_size \t\tBIGINT(64) NOT NULL DEFAULT 0,\n\t\tmodify_count \t\tBIGINT(64) NOT NULL DEFAULT 0,\n\t\tversion \t\t\tBIGINT(64) UNSIGNED NOT NULL DEFAULT 0,\n\t\tcm_sketch \t\t\tBLOB(6291456),\n\t\tstats_ver \t\t\tBIGINT(64) NOT NULL DEFAULT 0,\n\t\tflag \t\t\t\tBIGINT(64) NOT NULL DEFAULT 0,\n\t\tcorrelation \t\tDOUBLE NOT NULL DEFAULT 0,\n\t\tlast_analyze_pos \tLONGBLOB DEFAULT NULL,\n\t\tUNIQUE INDEX tbl(table_id, is_index, hist_id)\n\t);"] [user=] [2024/05/06 16:29:05.291 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(6291456) to MEDIUMBLOB"] [2024/05/06 16:29:05.293 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:25, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:24, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.292 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:05.293 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:25, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:24, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.292 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.stats_histograms (\n\t\ttable_id \t\t\tBIGINT(64) NOT NULL,\n\t\tis_index \t\t\tTINYINT(2) NOT NULL,\n\t\thist_id \t\t\tBIGINT(64) NOT NULL,\n\t\tdistinct_count \t\tBIGINT(64) NOT NULL,\n\t\tnull_count \t\t\tBIGINT(64) NOT NULL DEFAULT 0,\n\t\ttot_col_size \t\tBIGINT(64) NOT NULL DEFAULT 0,\n\t\tmodify_count \t\tBIGINT(64) NOT NULL DEFAULT 0,\n\t\tversion \t\t\tBIGINT(64) UNSIGNED NOT NULL DEFAULT 0,\n\t\tcm_sketch \t\t\tBLOB(6291456),\n\t\tstats_ver \t\t\tBIGINT(64) NOT NULL DEFAULT 0,\n\t\tflag \t\t\t\tBIGINT(64) NOT NULL DEFAULT 0,\n\t\tcorrelation \t\tDOUBLE NOT NULL DEFAULT 0,\n\t\tlast_analyze_pos \tLONGBLOB DEFAULT NULL,\n\t\tUNIQUE INDEX tbl(table_id, is_index, hist_id)\n\t);"] [2024/05/06 16:29:05.297 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 3, tp general"] [job="ID:25, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:24, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:05.292 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.300 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=11] [neededSchemaVersion=12] ["start time"=306.451µs] [phyTblIDs="[24]"] [actionTypes="[8]"] [2024/05/06 16:29:05.339 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:05.339 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=25] [version=12] [2024/05/06 16:29:05.340 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=12] ["take time"=40.540585ms] [job="ID:25, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:24, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.292 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.348 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 3, tp general"] [job="ID:25, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:24, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:05.292 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.352 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=25] [2024/05/06 16:29:05.352 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:05.352 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=12] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.stats_buckets (\n\t\ttable_id \tBIGINT(64) NOT NULL,\n\t\tis_index \tTINYINT(2) NOT NULL,\n\t\thist_id \tBIGINT(64) NOT NULL,\n\t\tbucket_id \tBIGINT(64) NOT NULL,\n\t\tcount \t\tBIGINT(64) NOT NULL,\n\t\trepeats \tBIGINT(64) NOT NULL,\n\t\tupper_bound LONGBLOB NOT NULL,\n\t\tlower_bound LONGBLOB ,\n\t\tndv BIGINT NOT NULL DEFAULT 0,\n\t\tUNIQUE INDEX tbl(table_id, is_index, hist_id, bucket_id)\n\t);"] [user=] [2024/05/06 16:29:05.354 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:27, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:26, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.353 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:05.355 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:27, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:26, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.353 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.stats_buckets (\n\t\ttable_id \tBIGINT(64) NOT NULL,\n\t\tis_index \tTINYINT(2) NOT NULL,\n\t\thist_id \tBIGINT(64) NOT NULL,\n\t\tbucket_id \tBIGINT(64) NOT NULL,\n\t\tcount \t\tBIGINT(64) NOT NULL,\n\t\trepeats \tBIGINT(64) NOT NULL,\n\t\tupper_bound LONGBLOB NOT NULL,\n\t\tlower_bound LONGBLOB ,\n\t\tndv BIGINT NOT NULL DEFAULT 0,\n\t\tUNIQUE INDEX tbl(table_id, is_index, hist_id, bucket_id)\n\t);"] [2024/05/06 16:29:05.361 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 3, tp general"] [job="ID:27, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:26, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:05.353 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.364 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=12] [neededSchemaVersion=13] ["start time"=325.326µs] [phyTblIDs="[26]"] [actionTypes="[8]"] [2024/05/06 16:29:05.383 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:05.383 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=27] [version=13] [2024/05/06 16:29:05.384 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=13] ["take time"=20.278117ms] [job="ID:27, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:26, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.353 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.388 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 3, tp general"] [job="ID:27, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:26, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:05.353 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.391 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=27] [2024/05/06 16:29:05.391 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:05.392 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=13] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.gc_delete_range (\n\t\tjob_id \t\tBIGINT NOT NULL COMMENT \"the DDL job ID\",\n\t\telement_id \tBIGINT NOT NULL COMMENT \"the schema element ID\",\n\t\tstart_key \tVARCHAR(255) NOT NULL COMMENT \"encoded in hex\",\n\t\tend_key \tVARCHAR(255) NOT NULL COMMENT \"encoded in hex\",\n\t\tts \t\t\tBIGINT NOT NULL COMMENT \"timestamp in uint64\",\n\t\tUNIQUE KEY delete_range_index (job_id, element_id)\n\t);"] [user=] [2024/05/06 16:29:05.395 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:29, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:28, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.393 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:05.395 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:29, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:28, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.393 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.gc_delete_range (\n\t\tjob_id \t\tBIGINT NOT NULL COMMENT \"the DDL job ID\",\n\t\telement_id \tBIGINT NOT NULL COMMENT \"the schema element ID\",\n\t\tstart_key \tVARCHAR(255) NOT NULL COMMENT \"encoded in hex\",\n\t\tend_key \tVARCHAR(255) NOT NULL COMMENT \"encoded in hex\",\n\t\tts \t\t\tBIGINT NOT NULL COMMENT \"timestamp in uint64\",\n\t\tUNIQUE KEY delete_range_index (job_id, element_id)\n\t);"] [2024/05/06 16:29:05.400 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 3, tp general"] [job="ID:29, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:28, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:05.393 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.403 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=13] [neededSchemaVersion=14] ["start time"=271.219µs] [phyTblIDs="[28]"] [actionTypes="[8]"] [2024/05/06 16:29:05.445 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:05.445 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=29] [version=14] [2024/05/06 16:29:05.447 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=14] ["take time"=44.177809ms] [job="ID:29, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:28, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.393 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.453 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 3, tp general"] [job="ID:29, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:28, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:05.393 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.456 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=29] [2024/05/06 16:29:05.456 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:05.456 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=14] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.gc_delete_range_done (\n\t\tjob_id \t\tBIGINT NOT NULL COMMENT \"the DDL job ID\",\n\t\telement_id \tBIGINT NOT NULL COMMENT \"the schema element ID\",\n\t\tstart_key \tVARCHAR(255) NOT NULL COMMENT \"encoded in hex\",\n\t\tend_key \tVARCHAR(255) NOT NULL COMMENT \"encoded in hex\",\n\t\tts \t\t\tBIGINT NOT NULL COMMENT \"timestamp in uint64\",\n\t\tUNIQUE KEY delete_range_done_index (job_id, element_id)\n\t);"] [user=] [2024/05/06 16:29:05.459 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:31, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:30, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.458 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:05.459 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:31, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:30, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.458 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.gc_delete_range_done (\n\t\tjob_id \t\tBIGINT NOT NULL COMMENT \"the DDL job ID\",\n\t\telement_id \tBIGINT NOT NULL COMMENT \"the schema element ID\",\n\t\tstart_key \tVARCHAR(255) NOT NULL COMMENT \"encoded in hex\",\n\t\tend_key \tVARCHAR(255) NOT NULL COMMENT \"encoded in hex\",\n\t\tts \t\t\tBIGINT NOT NULL COMMENT \"timestamp in uint64\",\n\t\tUNIQUE KEY delete_range_done_index (job_id, element_id)\n\t);"] [2024/05/06 16:29:05.464 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 3, tp general"] [job="ID:31, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:30, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:05.458 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.467 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=14] [neededSchemaVersion=15] ["start time"=199.101µs] [phyTblIDs="[30]"] [actionTypes="[8]"] [2024/05/06 16:29:05.483 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:05.483 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=31] [version=15] [2024/05/06 16:29:05.485 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=15] ["take time"=18.358984ms] [job="ID:31, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:30, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.458 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.489 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 3, tp general"] [job="ID:31, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:30, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:05.458 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.491 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=31] [2024/05/06 16:29:05.492 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:05.493 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=15] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.stats_feedback (\n\t\ttable_id \tBIGINT(64) NOT NULL,\n\t\tis_index \tTINYINT(2) NOT NULL,\n\t\thist_id \tBIGINT(64) NOT NULL,\n\t\tfeedback \tBLOB NOT NULL,\n\t\tINDEX hist(table_id, is_index, hist_id)\n\t);"] [user=] [2024/05/06 16:29:05.497 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:33, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:32, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.496 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:05.497 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:33, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:32, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.496 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.stats_feedback (\n\t\ttable_id \tBIGINT(64) NOT NULL,\n\t\tis_index \tTINYINT(2) NOT NULL,\n\t\thist_id \tBIGINT(64) NOT NULL,\n\t\tfeedback \tBLOB NOT NULL,\n\t\tINDEX hist(table_id, is_index, hist_id)\n\t);"] [2024/05/06 16:29:05.502 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 3, tp general"] [job="ID:33, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:32, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:05.496 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.504 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=15] [neededSchemaVersion=16] ["start time"=185.023µs] [phyTblIDs="[32]"] [actionTypes="[8]"] [2024/05/06 16:29:05.532 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:05.533 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=33] [version=16] [2024/05/06 16:29:05.535 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=16] ["take time"=30.717881ms] [job="ID:33, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:32, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.496 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.540 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 3, tp general"] [job="ID:33, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:32, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:05.496 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.543 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=33] [2024/05/06 16:29:05.543 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:05.543 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=16] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.role_edges (\n\t\tFROM_HOST \t\t\tCHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tFROM_USER \t\t\tCHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tTO_HOST \t\t\tCHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tTO_USER \t\t\tCHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tWITH_ADMIN_OPTION \tENUM('N','Y') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'N',\n\t\tPRIMARY KEY (FROM_HOST,FROM_USER,TO_HOST,TO_USER)\n\t);"] [user=] [2024/05/06 16:29:05.546 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:35, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:34, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.545 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:05.546 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:35, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:34, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.545 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.role_edges (\n\t\tFROM_HOST \t\t\tCHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tFROM_USER \t\t\tCHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tTO_HOST \t\t\tCHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tTO_USER \t\t\tCHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tWITH_ADMIN_OPTION \tENUM('N','Y') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'N',\n\t\tPRIMARY KEY (FROM_HOST,FROM_USER,TO_HOST,TO_USER)\n\t);"] [2024/05/06 16:29:05.552 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 3, tp general"] [job="ID:35, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:34, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:05.545 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.555 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=16] [neededSchemaVersion=17] ["start time"=218.176µs] [phyTblIDs="[34]"] [actionTypes="[8]"] [2024/05/06 16:29:05.582 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:05.582 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=35] [version=17] [2024/05/06 16:29:05.583 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=17] ["take time"=28.919939ms] [job="ID:35, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:34, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.545 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.587 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 3, tp general"] [job="ID:35, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:34, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:05.545 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.590 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=35] [2024/05/06 16:29:05.590 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:05.591 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=17] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.default_roles (\n\t\tHOST \t\t\t\tCHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tUSER \t\t\t\tCHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tDEFAULT_ROLE_HOST \tCHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '%',\n\t\tDEFAULT_ROLE_USER \tCHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tPRIMARY KEY (HOST,USER,DEFAULT_ROLE_HOST,DEFAULT_ROLE_USER)\n\t)"] [user=] [2024/05/06 16:29:05.593 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:37, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:36, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.592 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:05.593 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:37, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:36, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.592 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.default_roles (\n\t\tHOST \t\t\t\tCHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tUSER \t\t\t\tCHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tDEFAULT_ROLE_HOST \tCHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '%',\n\t\tDEFAULT_ROLE_USER \tCHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tPRIMARY KEY (HOST,USER,DEFAULT_ROLE_HOST,DEFAULT_ROLE_USER)\n\t)"] [2024/05/06 16:29:05.597 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 3, tp general"] [job="ID:37, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:36, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:05.592 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.600 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=17] [neededSchemaVersion=18] ["start time"=218.579µs] [phyTblIDs="[36]"] [actionTypes="[8]"] [2024/05/06 16:29:05.637 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:05.637 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=37] [version=18] [2024/05/06 16:29:05.638 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=18] ["take time"=38.033967ms] [job="ID:37, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:36, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.592 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.644 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 3, tp general"] [job="ID:37, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:36, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:05.592 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.647 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=37] [2024/05/06 16:29:05.647 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:05.647 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=18] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.bind_info (\n\t\toriginal_sql TEXT NOT NULL,\n\t\tbind_sql TEXT NOT NULL,\n\t\tdefault_db TEXT NOT NULL,\n\t\tstatus TEXT NOT NULL,\n\t\tcreate_time TIMESTAMP(3) NOT NULL,\n\t\tupdate_time TIMESTAMP(3) NOT NULL,\n\t\tcharset TEXT NOT NULL,\n\t\tcollation TEXT NOT NULL,\n\t\tsource VARCHAR(10) NOT NULL DEFAULT 'unknown',\n\t\tsql_digest varchar(64),\n\t\tplan_digest varchar(64),\n\t\tINDEX sql_index(original_sql(700),default_db(68)) COMMENT \"accelerate the speed when add global binding query\",\n\t\tINDEX time_index(update_time) COMMENT \"accelerate the speed when querying with last update time\"\n\t) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;"] [user=] [2024/05/06 16:29:05.651 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:39, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:38, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.649 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:05.651 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:39, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:38, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.649 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.bind_info (\n\t\toriginal_sql TEXT NOT NULL,\n\t\tbind_sql TEXT NOT NULL,\n\t\tdefault_db TEXT NOT NULL,\n\t\tstatus TEXT NOT NULL,\n\t\tcreate_time TIMESTAMP(3) NOT NULL,\n\t\tupdate_time TIMESTAMP(3) NOT NULL,\n\t\tcharset TEXT NOT NULL,\n\t\tcollation TEXT NOT NULL,\n\t\tsource VARCHAR(10) NOT NULL DEFAULT 'unknown',\n\t\tsql_digest varchar(64),\n\t\tplan_digest varchar(64),\n\t\tINDEX sql_index(original_sql(700),default_db(68)) COMMENT \"accelerate the speed when add global binding query\",\n\t\tINDEX time_index(update_time) COMMENT \"accelerate the speed when querying with last update time\"\n\t) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;"] [2024/05/06 16:29:05.656 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 3, tp general"] [job="ID:39, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:38, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:05.649 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.660 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=18] [neededSchemaVersion=19] ["start time"=267.138µs] [phyTblIDs="[38]"] [actionTypes="[8]"] [2024/05/06 16:29:05.682 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:05.682 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=39] [version=19] [2024/05/06 16:29:05.684 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=19] ["take time"=24.927675ms] [job="ID:39, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:38, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.649 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.689 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 3, tp general"] [job="ID:39, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:38, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:05.649 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.693 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=39] [2024/05/06 16:29:05.693 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:05.694 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=19] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.stats_top_n (\n\t\ttable_id \tBIGINT(64) NOT NULL,\n\t\tis_index \tTINYINT(2) NOT NULL,\n\t\thist_id \tBIGINT(64) NOT NULL,\n\t\tvalue \t\tLONGBLOB,\n\t\tcount \t\tBIGINT(64) UNSIGNED NOT NULL,\n\t\tINDEX tbl(table_id, is_index, hist_id)\n\t);"] [user=] [2024/05/06 16:29:05.697 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:41, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:40, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.695 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:05.697 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:41, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:40, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.695 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.stats_top_n (\n\t\ttable_id \tBIGINT(64) NOT NULL,\n\t\tis_index \tTINYINT(2) NOT NULL,\n\t\thist_id \tBIGINT(64) NOT NULL,\n\t\tvalue \t\tLONGBLOB,\n\t\tcount \t\tBIGINT(64) UNSIGNED NOT NULL,\n\t\tINDEX tbl(table_id, is_index, hist_id)\n\t);"] [2024/05/06 16:29:05.701 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 3, tp general"] [job="ID:41, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:40, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:05.695 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.704 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=19] [neededSchemaVersion=20] ["start time"=207.325µs] [phyTblIDs="[40]"] [actionTypes="[8]"] [2024/05/06 16:29:05.733 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:05.733 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=41] [version=20] [2024/05/06 16:29:05.734 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=20] ["take time"=30.683384ms] [job="ID:41, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:40, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.695 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.744 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 3, tp general"] [job="ID:41, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:40, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:05.695 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.748 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=41] [2024/05/06 16:29:05.748 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:05.748 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=20] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.expr_pushdown_blacklist (\n\t\tname \t\tCHAR(100) NOT NULL,\n\t\tstore_type \tCHAR(100) NOT NULL DEFAULT 'tikv,tiflash,tidb',\n\t\treason \t\tVARCHAR(200)\n\t);"] [user=] [2024/05/06 16:29:05.750 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:43, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:42, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.749 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:05.750 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:43, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:42, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.749 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.expr_pushdown_blacklist (\n\t\tname \t\tCHAR(100) NOT NULL,\n\t\tstore_type \tCHAR(100) NOT NULL DEFAULT 'tikv,tiflash,tidb',\n\t\treason \t\tVARCHAR(200)\n\t);"] [2024/05/06 16:29:05.756 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 3, tp general"] [job="ID:43, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:42, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:05.749 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.759 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=20] [neededSchemaVersion=21] ["start time"=194.807µs] [phyTblIDs="[42]"] [actionTypes="[8]"] [2024/05/06 16:29:05.782 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:05.782 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=43] [version=21] [2024/05/06 16:29:05.783 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=21] ["take time"=24.924165ms] [job="ID:43, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:42, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.749 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.787 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 3, tp general"] [job="ID:43, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:42, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:05.749 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.790 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=43] [2024/05/06 16:29:05.790 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:05.790 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=21] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.opt_rule_blacklist (\n\t\tname \tCHAR(100) NOT NULL\n\t);"] [user=] [2024/05/06 16:29:05.792 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:45, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:44, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.791 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:05.792 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:45, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:44, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.791 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.opt_rule_blacklist (\n\t\tname \tCHAR(100) NOT NULL\n\t);"] [2024/05/06 16:29:05.798 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 3, tp general"] [job="ID:45, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:44, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:05.791 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.800 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=21] [neededSchemaVersion=22] ["start time"=166.987µs] [phyTblIDs="[44]"] [actionTypes="[8]"] [2024/05/06 16:29:05.833 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:05.833 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=45] [version=22] [2024/05/06 16:29:05.835 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=22] ["take time"=34.995777ms] [job="ID:45, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:44, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.791 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.841 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 3, tp general"] [job="ID:45, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:44, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:05.791 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.844 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=45] [2024/05/06 16:29:05.844 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:05.844 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=22] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.stats_extended (\n\t\tname varchar(32) NOT NULL,\n\t\ttype tinyint(4) NOT NULL,\n\t\ttable_id bigint(64) NOT NULL,\n\t\tcolumn_ids varchar(32) NOT NULL,\n\t\tstats blob DEFAULT NULL,\n\t\tversion bigint(64) unsigned NOT NULL,\n\t\tstatus tinyint(4) NOT NULL,\n\t\tPRIMARY KEY(name, table_id),\n\t\tKEY idx_1 (table_id, status, version),\n\t\tKEY idx_2 (status, version)\n\t);"] [user=] [2024/05/06 16:29:05.847 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:47, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:46, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.846 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:05.848 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:47, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:46, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.846 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.stats_extended (\n\t\tname varchar(32) NOT NULL,\n\t\ttype tinyint(4) NOT NULL,\n\t\ttable_id bigint(64) NOT NULL,\n\t\tcolumn_ids varchar(32) NOT NULL,\n\t\tstats blob DEFAULT NULL,\n\t\tversion bigint(64) unsigned NOT NULL,\n\t\tstatus tinyint(4) NOT NULL,\n\t\tPRIMARY KEY(name, table_id),\n\t\tKEY idx_1 (table_id, status, version),\n\t\tKEY idx_2 (status, version)\n\t);"] [2024/05/06 16:29:05.853 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 3, tp general"] [job="ID:47, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:46, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:05.846 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.857 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=22] [neededSchemaVersion=23] ["start time"=334.354µs] [phyTblIDs="[46]"] [actionTypes="[8]"] [2024/05/06 16:29:05.882 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:05.882 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=47] [version=23] [2024/05/06 16:29:05.883 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=23] ["take time"=26.857168ms] [job="ID:47, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:46, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.846 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.887 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 3, tp general"] [job="ID:47, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:46, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:05.846 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.889 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=47] [2024/05/06 16:29:05.890 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:05.890 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=23] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.schema_index_usage (\n\t\tTABLE_ID bigint(64),\n\t\tINDEX_ID bigint(21),\n\t\tQUERY_COUNT bigint(64),\n\t\tROWS_SELECTED bigint(64),\n\t\tLAST_USED_AT timestamp,\n\t\tPRIMARY KEY(TABLE_ID, INDEX_ID)\n\t);"] [user=] [2024/05/06 16:29:05.892 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:49, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:48, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.891 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:05.892 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:49, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:48, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.891 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.schema_index_usage (\n\t\tTABLE_ID bigint(64),\n\t\tINDEX_ID bigint(21),\n\t\tQUERY_COUNT bigint(64),\n\t\tROWS_SELECTED bigint(64),\n\t\tLAST_USED_AT timestamp,\n\t\tPRIMARY KEY(TABLE_ID, INDEX_ID)\n\t);"] [2024/05/06 16:29:05.897 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 3, tp general"] [job="ID:49, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:48, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:05.891 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.900 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=23] [neededSchemaVersion=24] ["start time"=288.825µs] [phyTblIDs="[48]"] [actionTypes="[8]"] [2024/05/06 16:29:05.933 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:05.933 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=49] [version=24] [2024/05/06 16:29:05.934 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=24] ["take time"=34.627886ms] [job="ID:49, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:48, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.891 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.940 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 3, tp general"] [job="ID:49, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:48, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:05.891 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.943 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=49] [2024/05/06 16:29:05.943 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:05.943 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=24] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.stats_fm_sketch (\n\t\ttable_id \tBIGINT(64) NOT NULL,\n\t\tis_index \tTINYINT(2) NOT NULL,\n\t\thist_id \tBIGINT(64) NOT NULL,\n\t\tvalue \t\tLONGBLOB,\n\t\tINDEX tbl(table_id, is_index, hist_id)\n\t);"] [user=] [2024/05/06 16:29:05.946 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:51, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:50, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.945 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:05.946 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:51, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:50, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.945 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.stats_fm_sketch (\n\t\ttable_id \tBIGINT(64) NOT NULL,\n\t\tis_index \tTINYINT(2) NOT NULL,\n\t\thist_id \tBIGINT(64) NOT NULL,\n\t\tvalue \t\tLONGBLOB,\n\t\tINDEX tbl(table_id, is_index, hist_id)\n\t);"] [2024/05/06 16:29:05.952 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 3, tp general"] [job="ID:51, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:50, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:05.945 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.954 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=24] [neededSchemaVersion=25] ["start time"=182.802µs] [phyTblIDs="[50]"] [actionTypes="[8]"] [2024/05/06 16:29:05.982 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:05.982 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=51] [version=25] [2024/05/06 16:29:05.984 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=25] ["take time"=30.383219ms] [job="ID:51, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:50, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.945 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.988 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 3, tp general"] [job="ID:51, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:50, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:05.945 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:05.991 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=51] [2024/05/06 16:29:05.991 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:05.991 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=25] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.global_grants (\n\t\tUSER char(32) NOT NULL DEFAULT '',\n\t\tHOST char(255) NOT NULL DEFAULT '',\n\t\tPRIV char(32) NOT NULL DEFAULT '',\n\t\tWITH_GRANT_OPTION enum('N','Y') NOT NULL DEFAULT 'N',\n\t\tPRIMARY KEY (USER,HOST,PRIV)\n\t);"] [user=] [2024/05/06 16:29:05.993 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:53, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:52, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.992 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:05.993 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:53, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:52, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.992 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.global_grants (\n\t\tUSER char(32) NOT NULL DEFAULT '',\n\t\tHOST char(255) NOT NULL DEFAULT '',\n\t\tPRIV char(32) NOT NULL DEFAULT '',\n\t\tWITH_GRANT_OPTION enum('N','Y') NOT NULL DEFAULT 'N',\n\t\tPRIMARY KEY (USER,HOST,PRIV)\n\t);"] [2024/05/06 16:29:05.998 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 3, tp general"] [job="ID:53, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:52, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:05.992 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.001 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=25] [neededSchemaVersion=26] ["start time"=203.473µs] [phyTblIDs="[52]"] [actionTypes="[8]"] [2024/05/06 16:29:06.033 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:06.033 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=53] [version=26] [2024/05/06 16:29:06.035 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=26] ["take time"=34.892796ms] [job="ID:53, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:52, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:05.992 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.040 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 3, tp general"] [job="ID:53, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:52, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:05.992 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.043 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=53] [2024/05/06 16:29:06.043 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:06.043 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=26] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.capture_plan_baselines_blacklist (\n\t\tid bigint(64) auto_increment,\n\t\tfilter_type varchar(32) NOT NULL COMMENT \"type of the filter, only db, table and frequency supported now\",\n\t\tfilter_value varchar(32) NOT NULL,\n\t\tkey idx(filter_type),\n\t\tprimary key(id)\n\t);"] [user=] [2024/05/06 16:29:06.045 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:55, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:54, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:06.044 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:06.045 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:55, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:54, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:06.044 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.capture_plan_baselines_blacklist (\n\t\tid bigint(64) auto_increment,\n\t\tfilter_type varchar(32) NOT NULL COMMENT \"type of the filter, only db, table and frequency supported now\",\n\t\tfilter_value varchar(32) NOT NULL,\n\t\tkey idx(filter_type),\n\t\tprimary key(id)\n\t);"] [2024/05/06 16:29:06.054 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 3, tp general"] [job="ID:55, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:54, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:06.044 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.058 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=26] [neededSchemaVersion=27] ["start time"=280.759µs] [phyTblIDs="[54]"] [actionTypes="[8]"] [2024/05/06 16:29:06.082 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:06.082 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=55] [version=27] [2024/05/06 16:29:06.085 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=27] ["take time"=26.821787ms] [job="ID:55, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:54, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:06.044 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.089 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 3, tp general"] [job="ID:55, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:54, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:06.044 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.092 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=55] [2024/05/06 16:29:06.092 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:06.092 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=27] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.column_stats_usage (\n\t\ttable_id BIGINT(64) NOT NULL,\n\t\tcolumn_id BIGINT(64) NOT NULL,\n\t\tlast_used_at TIMESTAMP,\n\t\tlast_analyzed_at TIMESTAMP,\n\t\tPRIMARY KEY (table_id, column_id) CLUSTERED\n\t);"] [user=] [2024/05/06 16:29:06.094 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:57, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:56, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:06.093 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:06.094 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:57, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:56, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:06.093 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.column_stats_usage (\n\t\ttable_id BIGINT(64) NOT NULL,\n\t\tcolumn_id BIGINT(64) NOT NULL,\n\t\tlast_used_at TIMESTAMP,\n\t\tlast_analyzed_at TIMESTAMP,\n\t\tPRIMARY KEY (table_id, column_id) CLUSTERED\n\t);"] [2024/05/06 16:29:06.102 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 3, tp general"] [job="ID:57, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:56, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:06.093 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.105 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=27] [neededSchemaVersion=28] ["start time"=267.872µs] [phyTblIDs="[56]"] [actionTypes="[8]"] [2024/05/06 16:29:06.132 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:06.132 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=57] [version=28] [2024/05/06 16:29:06.133 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=28] ["take time"=28.253318ms] [job="ID:57, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:56, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:06.093 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.139 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 3, tp general"] [job="ID:57, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:56, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:06.093 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.143 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=57] [2024/05/06 16:29:06.143 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:06.144 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=28] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.table_cache_meta (\n\t\ttid bigint(11) NOT NULL DEFAULT 0,\n\t\tlock_type enum('NONE','READ', 'INTEND', 'WRITE') NOT NULL DEFAULT 'NONE',\n\t\tlease bigint(20) NOT NULL DEFAULT 0,\n\t\toldReadLease bigint(20) NOT NULL DEFAULT 0,\n\t\tPRIMARY KEY (tid)\n\t);"] [user=] [2024/05/06 16:29:06.146 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:59, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:58, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:06.145 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:06.146 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:59, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:58, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:06.145 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.table_cache_meta (\n\t\ttid bigint(11) NOT NULL DEFAULT 0,\n\t\tlock_type enum('NONE','READ', 'INTEND', 'WRITE') NOT NULL DEFAULT 'NONE',\n\t\tlease bigint(20) NOT NULL DEFAULT 0,\n\t\toldReadLease bigint(20) NOT NULL DEFAULT 0,\n\t\tPRIMARY KEY (tid)\n\t);"] [2024/05/06 16:29:06.155 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 3, tp general"] [job="ID:59, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:58, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:06.145 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.157 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=28] [neededSchemaVersion=29] ["start time"=254.816µs] [phyTblIDs="[58]"] [actionTypes="[8]"] [2024/05/06 16:29:06.182 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:06.182 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=59] [version=29] [2024/05/06 16:29:06.184 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=29] ["take time"=27.067606ms] [job="ID:59, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:58, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:06.145 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.188 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 3, tp general"] [job="ID:59, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:58, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:06.145 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.190 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=59] [2024/05/06 16:29:06.190 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:06.191 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=29] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.analyze_options (\n\t\ttable_id BIGINT(64) NOT NULL,\n\t\tsample_num BIGINT(64) NOT NULL DEFAULT 0,\n\t\tsample_rate DOUBLE NOT NULL DEFAULT -1,\n\t\tbuckets BIGINT(64) NOT NULL DEFAULT 0,\n\t\ttopn BIGINT(64) NOT NULL DEFAULT -1,\n\t\tcolumn_choice enum('DEFAULT','ALL','PREDICATE','LIST') NOT NULL DEFAULT 'DEFAULT',\n\t\tcolumn_ids TEXT(19372),\n\t\tPRIMARY KEY (table_id) CLUSTERED\n\t);"] [user=] [2024/05/06 16:29:06.191 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(19372) to MEDIUMBLOB"] [2024/05/06 16:29:06.193 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:61, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:60, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:06.192 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:06.193 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:61, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:60, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:06.192 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.analyze_options (\n\t\ttable_id BIGINT(64) NOT NULL,\n\t\tsample_num BIGINT(64) NOT NULL DEFAULT 0,\n\t\tsample_rate DOUBLE NOT NULL DEFAULT -1,\n\t\tbuckets BIGINT(64) NOT NULL DEFAULT 0,\n\t\ttopn BIGINT(64) NOT NULL DEFAULT -1,\n\t\tcolumn_choice enum('DEFAULT','ALL','PREDICATE','LIST') NOT NULL DEFAULT 'DEFAULT',\n\t\tcolumn_ids TEXT(19372),\n\t\tPRIMARY KEY (table_id) CLUSTERED\n\t);"] [2024/05/06 16:29:06.197 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 3, tp general"] [job="ID:61, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:60, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:06.192 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.200 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=29] [neededSchemaVersion=30] ["start time"=209.146µs] [phyTblIDs="[60]"] [actionTypes="[8]"] [2024/05/06 16:29:06.233 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:06.233 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=61] [version=30] [2024/05/06 16:29:06.234 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=30] ["take time"=34.813535ms] [job="ID:61, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:60, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:06.192 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.241 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 3, tp general"] [job="ID:61, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:60, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:06.192 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.245 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=61] [2024/05/06 16:29:06.245 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:06.246 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=30] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.stats_history (\n\t\ttable_id bigint(64) NOT NULL,\n\t\tstats_data longblob NOT NULL,\n\t\tseq_no bigint(64) NOT NULL comment 'sequence number of the gzipped data slice',\n\t\tversion bigint(64) NOT NULL comment 'stats version which corresponding to stats:version in EXPLAIN',\n\t\tcreate_time datetime(6) NOT NULL,\n\t\tUNIQUE KEY table_version_seq (table_id, version, seq_no),\n\t\tKEY table_create_time (table_id, create_time, seq_no)\n\t);"] [user=] [2024/05/06 16:29:06.248 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:63, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:62, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:06.247 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:06.248 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:63, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:62, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:06.247 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.stats_history (\n\t\ttable_id bigint(64) NOT NULL,\n\t\tstats_data longblob NOT NULL,\n\t\tseq_no bigint(64) NOT NULL comment 'sequence number of the gzipped data slice',\n\t\tversion bigint(64) NOT NULL comment 'stats version which corresponding to stats:version in EXPLAIN',\n\t\tcreate_time datetime(6) NOT NULL,\n\t\tUNIQUE KEY table_version_seq (table_id, version, seq_no),\n\t\tKEY table_create_time (table_id, create_time, seq_no)\n\t);"] [2024/05/06 16:29:06.254 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 3, tp general"] [job="ID:63, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:62, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:06.247 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.258 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=30] [neededSchemaVersion=31] ["start time"=266.443µs] [phyTblIDs="[62]"] [actionTypes="[8]"] [2024/05/06 16:29:06.282 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:06.282 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=63] [version=31] [2024/05/06 16:29:06.284 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=31] ["take time"=27.013218ms] [job="ID:63, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:62, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:06.247 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.289 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 3, tp general"] [job="ID:63, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:62, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:06.247 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.292 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=63] [2024/05/06 16:29:06.292 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:06.292 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=31] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.stats_meta_history (\n\t\ttable_id bigint(64) NOT NULL,\n\t\tmodify_count bigint(64) NOT NULL,\n\t\tcount bigint(64) NOT NULL,\n\t\tversion bigint(64) NOT NULL comment 'stats version which corresponding to stats:version in EXPLAIN',\n\t\tcreate_time datetime(6) NOT NULL,\n\t\tUNIQUE KEY table_version (table_id, version),\n\t\tKEY table_create_time (table_id, create_time)\n\t);"] [user=] [2024/05/06 16:29:06.294 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:65, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:64, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:06.293 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:06.295 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:65, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:64, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:06.293 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.stats_meta_history (\n\t\ttable_id bigint(64) NOT NULL,\n\t\tmodify_count bigint(64) NOT NULL,\n\t\tcount bigint(64) NOT NULL,\n\t\tversion bigint(64) NOT NULL comment 'stats version which corresponding to stats:version in EXPLAIN',\n\t\tcreate_time datetime(6) NOT NULL,\n\t\tUNIQUE KEY table_version (table_id, version),\n\t\tKEY table_create_time (table_id, create_time)\n\t);"] [2024/05/06 16:29:06.299 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 3, tp general"] [job="ID:65, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:64, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:06.293 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.303 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=31] [neededSchemaVersion=32] ["start time"=333.621µs] [phyTblIDs="[64]"] [actionTypes="[8]"] [2024/05/06 16:29:06.332 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:06.332 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=65] [version=32] [2024/05/06 16:29:06.335 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=32] ["take time"=32.441413ms] [job="ID:65, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:64, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:06.293 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.339 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 3, tp general"] [job="ID:65, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:64, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:06.293 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.342 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=65] [2024/05/06 16:29:06.342 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:06.343 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=32] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.analyze_jobs (\n\t\tid BIGINT(64) UNSIGNED NOT NULL AUTO_INCREMENT,\n\t\tupdate_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n\t\ttable_schema CHAR(64) NOT NULL DEFAULT '',\n\t\ttable_name CHAR(64) NOT NULL DEFAULT '',\n\t\tpartition_name CHAR(64) NOT NULL DEFAULT '',\n\t\tjob_info TEXT NOT NULL,\n\t\tprocessed_rows BIGINT(64) UNSIGNED NOT NULL DEFAULT 0,\n\t\tstart_time TIMESTAMP,\n\t\tend_time TIMESTAMP,\n\t\tstate ENUM('pending', 'running', 'finished', 'failed') NOT NULL,\n\t\tfail_reason TEXT,\n\t\tinstance VARCHAR(512) NOT NULL comment 'address of the TiDB instance executing the analyze job',\n\t\tprocess_id BIGINT(64) UNSIGNED comment 'ID of the process executing the analyze job',\n\t\tPRIMARY KEY (id),\n\t\tKEY (update_time)\n\t);"] [user=] [2024/05/06 16:29:06.346 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:67, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:66, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:06.344 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:06.346 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:67, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:66, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:06.344 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.analyze_jobs (\n\t\tid BIGINT(64) UNSIGNED NOT NULL AUTO_INCREMENT,\n\t\tupdate_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n\t\ttable_schema CHAR(64) NOT NULL DEFAULT '',\n\t\ttable_name CHAR(64) NOT NULL DEFAULT '',\n\t\tpartition_name CHAR(64) NOT NULL DEFAULT '',\n\t\tjob_info TEXT NOT NULL,\n\t\tprocessed_rows BIGINT(64) UNSIGNED NOT NULL DEFAULT 0,\n\t\tstart_time TIMESTAMP,\n\t\tend_time TIMESTAMP,\n\t\tstate ENUM('pending', 'running', 'finished', 'failed') NOT NULL,\n\t\tfail_reason TEXT,\n\t\tinstance VARCHAR(512) NOT NULL comment 'address of the TiDB instance executing the analyze job',\n\t\tprocess_id BIGINT(64) UNSIGNED comment 'ID of the process executing the analyze job',\n\t\tPRIMARY KEY (id),\n\t\tKEY (update_time)\n\t);"] [2024/05/06 16:29:06.358 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 3, tp general"] [job="ID:67, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:66, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:06.344 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.362 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=32] [neededSchemaVersion=33] ["start time"=317.593µs] [phyTblIDs="[66]"] [actionTypes="[8]"] [2024/05/06 16:29:06.382 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:06.382 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=67] [version=33] [2024/05/06 16:29:06.384 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=33] ["take time"=22.751295ms] [job="ID:67, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:66, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:06.344 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.389 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 3, tp general"] [job="ID:67, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:66, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:06.344 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.393 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=67] [2024/05/06 16:29:06.393 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:06.394 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=33] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.advisory_locks (\n\t\tlock_name VARCHAR(64) NOT NULL PRIMARY KEY\n\t);"] [user=] [2024/05/06 16:29:06.395 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:69, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:68, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:06.395 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:06.396 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:69, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:68, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:06.395 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.advisory_locks (\n\t\tlock_name VARCHAR(64) NOT NULL PRIMARY KEY\n\t);"] [2024/05/06 16:29:06.400 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 3, tp general"] [job="ID:69, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:68, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:06.395 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.402 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=33] [neededSchemaVersion=34] ["start time"=125.226µs] [phyTblIDs="[68]"] [actionTypes="[8]"] [2024/05/06 16:29:06.432 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:06.432 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=69] [version=34] [2024/05/06 16:29:06.434 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=34] ["take time"=32.26663ms] [job="ID:69, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:68, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:06.395 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.438 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 3, tp general"] [job="ID:69, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:68, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:06.395 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.441 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=69] [2024/05/06 16:29:06.441 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:06.445 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:71, Type:create view, State:queueing, SchemaState:none, SchemaID:1, TableID:70, RowCount:0, ArgLen:3, start time: 2024-05-06 16:29:06.443 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:06.445 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:71, Type:create view, State:queueing, SchemaState:none, SchemaID:1, TableID:70, RowCount:0, ArgLen:3, start time: 2024-05-06 16:29:06.443 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE OR REPLACE VIEW mysql.tidb_mdl_view as (\n\tselect JOB_ID, DB_NAME, TABLE_NAME, QUERY, SESSION_ID, TxnStart, TIDB_DECODE_SQL_DIGESTS(ALL_SQL_DIGESTS, 4096) AS SQL_DIGESTS from information_schema.ddl_jobs, information_schema.CLUSTER_TIDB_TRX, information_schema.CLUSTER_PROCESSLIST where ddl_jobs.STATE = 'running' and find_in_set(ddl_jobs.table_id, CLUSTER_TIDB_TRX.RELATED_TABLE_IDS) and CLUSTER_TIDB_TRX.SESSION_ID=CLUSTER_PROCESSLIST.ID\n\t);"] [2024/05/06 16:29:06.451 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 3, tp general"] [job="ID:71, Type:create view, State:queueing, SchemaState:none, SchemaID:1, TableID:70, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:06.443 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.455 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=34] [neededSchemaVersion=35] ["start time"=228.573µs] [phyTblIDs="[70]"] [actionTypes="[2097152]"] [2024/05/06 16:29:06.482 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:06.482 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=71] [version=35] [2024/05/06 16:29:06.482 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=35] ["take time"=28.067634ms] [job="ID:71, Type:create view, State:done, SchemaState:public, SchemaID:1, TableID:70, RowCount:0, ArgLen:3, start time: 2024-05-06 16:29:06.443 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.485 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 3, tp general"] [job="ID:71, Type:create view, State:synced, SchemaState:public, SchemaID:1, TableID:70, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:06.443 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.488 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=71] [2024/05/06 16:29:06.488 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:06.488 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=35] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.plan_replayer_status (\n\t\tsql_digest VARCHAR(128),\n\t\tplan_digest VARCHAR(128),\n\t\torigin_sql TEXT,\n\t\ttoken VARCHAR(128),\n\t\tupdate_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n\t\tfail_reason TEXT,\n\t\tinstance VARCHAR(512) NOT NULL comment 'address of the TiDB instance executing the plan replayer job');"] [user=] [2024/05/06 16:29:06.490 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:73, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:72, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:06.489 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:06.491 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:73, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:72, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:06.489 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.plan_replayer_status (\n\t\tsql_digest VARCHAR(128),\n\t\tplan_digest VARCHAR(128),\n\t\torigin_sql TEXT,\n\t\ttoken VARCHAR(128),\n\t\tupdate_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n\t\tfail_reason TEXT,\n\t\tinstance VARCHAR(512) NOT NULL comment 'address of the TiDB instance executing the plan replayer job');"] [2024/05/06 16:29:06.495 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 3, tp general"] [job="ID:73, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:72, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:06.489 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.498 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=35] [neededSchemaVersion=36] ["start time"=275.789µs] [phyTblIDs="[72]"] [actionTypes="[8]"] [2024/05/06 16:29:06.532 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:06.532 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=73] [version=36] [2024/05/06 16:29:06.534 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=36] ["take time"=36.890794ms] [job="ID:73, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:72, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:06.489 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.538 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 3, tp general"] [job="ID:73, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:72, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:06.489 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.542 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=73] [2024/05/06 16:29:06.542 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:06.542 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=36] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.plan_replayer_task (\n\t\tsql_digest VARCHAR(128) NOT NULL,\n\t\tplan_digest VARCHAR(128) NOT NULL,\n\t\tupdate_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n\t\tPRIMARY KEY (sql_digest,plan_digest));"] [user=] [2024/05/06 16:29:06.544 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:75, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:74, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:06.543 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:06.544 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:75, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:74, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:06.543 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.plan_replayer_task (\n\t\tsql_digest VARCHAR(128) NOT NULL,\n\t\tplan_digest VARCHAR(128) NOT NULL,\n\t\tupdate_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n\t\tPRIMARY KEY (sql_digest,plan_digest));"] [2024/05/06 16:29:06.550 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 3, tp general"] [job="ID:75, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:74, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:06.543 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.552 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=36] [neededSchemaVersion=37] ["start time"=259.649µs] [phyTblIDs="[74]"] [actionTypes="[8]"] [2024/05/06 16:29:06.583 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:06.583 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=75] [version=37] [2024/05/06 16:29:06.585 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=37] ["take time"=32.671612ms] [job="ID:75, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:74, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:06.543 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.589 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 3, tp general"] [job="ID:75, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:74, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:06.543 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.591 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=75] [2024/05/06 16:29:06.591 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:06.592 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=37] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.stats_table_locked(\n\t\ttable_id bigint(64) NOT NULL,\n\t\tmodify_count bigint(64) NOT NULL DEFAULT 0,\n\t\tcount bigint(64) NOT NULL DEFAULT 0,\n\t\tversion bigint(64) UNSIGNED NOT NULL DEFAULT 0,\n\t\tPRIMARY KEY (table_id));"] [user=] [2024/05/06 16:29:06.609 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:77, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:76, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:06.606 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:06.610 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:77, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:76, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:06.606 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.stats_table_locked(\n\t\ttable_id bigint(64) NOT NULL,\n\t\tmodify_count bigint(64) NOT NULL DEFAULT 0,\n\t\tcount bigint(64) NOT NULL DEFAULT 0,\n\t\tversion bigint(64) UNSIGNED NOT NULL DEFAULT 0,\n\t\tPRIMARY KEY (table_id));"] [2024/05/06 16:29:06.618 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 3, tp general"] [job="ID:77, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:76, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:06.606 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.620 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=37] [neededSchemaVersion=38] ["start time"=243.827µs] [phyTblIDs="[76]"] [actionTypes="[8]"] [2024/05/06 16:29:06.632 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:06.632 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=77] [version=38] [2024/05/06 16:29:06.635 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=38] ["take time"=14.53946ms] [job="ID:77, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:76, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:06.606 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.640 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 3, tp general"] [job="ID:77, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:76, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:06.606 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.644 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=77] [2024/05/06 16:29:06.644 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:06.645 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=38] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.tidb_ttl_table_status (\n\t\ttable_id bigint(64) PRIMARY KEY,\n parent_table_id bigint(64),\n table_statistics text DEFAULT NULL,\n\t\tlast_job_id varchar(64) DEFAULT NULL,\n\t\tlast_job_start_time timestamp NULL DEFAULT NULL,\n\t\tlast_job_finish_time timestamp NULL DEFAULT NULL,\n\t\tlast_job_ttl_expire timestamp NULL DEFAULT NULL,\n last_job_summary text DEFAULT NULL,\n\t\tcurrent_job_id varchar(64) DEFAULT NULL,\n\t\tcurrent_job_owner_id varchar(64) DEFAULT NULL,\n\t\tcurrent_job_owner_addr varchar(256) DEFAULT NULL,\n\t\tcurrent_job_owner_hb_time timestamp,\n\t\tcurrent_job_start_time timestamp NULL DEFAULT NULL,\n\t\tcurrent_job_ttl_expire timestamp NULL DEFAULT NULL,\n\t\tcurrent_job_state text DEFAULT NULL,\n\t\tcurrent_job_status varchar(64) DEFAULT NULL,\n \t\tcurrent_job_status_update_time timestamp NULL DEFAULT NULL);"] [user=] [2024/05/06 16:29:06.648 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:79, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:78, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:06.646 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:06.648 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:79, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:78, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:06.646 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.tidb_ttl_table_status (\n\t\ttable_id bigint(64) PRIMARY KEY,\n parent_table_id bigint(64),\n table_statistics text DEFAULT NULL,\n\t\tlast_job_id varchar(64) DEFAULT NULL,\n\t\tlast_job_start_time timestamp NULL DEFAULT NULL,\n\t\tlast_job_finish_time timestamp NULL DEFAULT NULL,\n\t\tlast_job_ttl_expire timestamp NULL DEFAULT NULL,\n last_job_summary text DEFAULT NULL,\n\t\tcurrent_job_id varchar(64) DEFAULT NULL,\n\t\tcurrent_job_owner_id varchar(64) DEFAULT NULL,\n\t\tcurrent_job_owner_addr varchar(256) DEFAULT NULL,\n\t\tcurrent_job_owner_hb_time timestamp,\n\t\tcurrent_job_start_time timestamp NULL DEFAULT NULL,\n\t\tcurrent_job_ttl_expire timestamp NULL DEFAULT NULL,\n\t\tcurrent_job_state text DEFAULT NULL,\n\t\tcurrent_job_status varchar(64) DEFAULT NULL,\n \t\tcurrent_job_status_update_time timestamp NULL DEFAULT NULL);"] [2024/05/06 16:29:06.652 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 3, tp general"] [job="ID:79, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:78, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:06.646 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.656 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=38] [neededSchemaVersion=39] ["start time"=452.743µs] [phyTblIDs="[78]"] [actionTypes="[8]"] [2024/05/06 16:29:06.682 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:06.682 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=79] [version=39] [2024/05/06 16:29:06.684 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=39] ["take time"=28.61647ms] [job="ID:79, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:78, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:06.646 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.688 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 3, tp general"] [job="ID:79, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:78, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:06.646 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:06.692 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=79] [2024/05/06 16:29:06.692 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:06.714 +08:00] [INFO] [bootstrap.go:529] ["bootstrap successful"] ["take time"=1.98155368s] [2024/05/06 16:29:06.714 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:29:06.714 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 12, tp add index"] ["take time"=1.3µs] [2024/05/06 16:29:06.714 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 13, tp add index"] ["take time"=864ns] [2024/05/06 16:29:06.714 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 4, tp add index"] ["take time"=8.395µs] [2024/05/06 16:29:06.714 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 5, tp add index"] ["take time"=916ns] [2024/05/06 16:29:06.714 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 6, tp add index"] ["take time"=980ns] [2024/05/06 16:29:06.714 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 7, tp add index"] ["take time"=1.131µs] [2024/05/06 16:29:06.714 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 8, tp add index"] ["take time"=831ns] [2024/05/06 16:29:06.714 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 9, tp add index"] ["take time"=692ns] [2024/05/06 16:29:06.714 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 10, tp add index"] ["take time"=982ns] [2024/05/06 16:29:06.714 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 11, tp add index"] ["take time"=976ns] [2024/05/06 16:29:06.714 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:29:06.714 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 3, tp general"] ["take time"=617ns] [2024/05/06 16:29:06.714 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 1, tp general"] ["take time"=324ns] [2024/05/06 16:29:06.714 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 2, tp add index"] ["take time"=310ns] [2024/05/06 16:29:06.714 +08:00] [INFO] [delete_range.go:148] ["[ddl] closing delRange"] [2024/05/06 16:29:06.714 +08:00] [INFO] [session_pool.go:94] ["[ddl] closing sessionPool"] [2024/05/06 16:29:06.714 +08:00] [INFO] [ddl.go:833] ["[ddl] DDL closed"] [ID=b65c00d1-a377-497d-b336-70327024ad1d] ["take time"=482.263µs] [2024/05/06 16:29:06.714 +08:00] [INFO] [ddl.go:657] ["[ddl] stop DDL"] [ID=b65c00d1-a377-497d-b336-70327024ad1d] [2024/05/06 16:29:06.714 +08:00] [INFO] [domain.go:1156] ["closestReplicaReadCheckLoop exited."] [2024/05/06 16:29:06.714 +08:00] [INFO] [domain.go:574] ["topNSlowQueryLoop exited."] [2024/05/06 16:29:06.714 +08:00] [INFO] [domain.go:628] ["globalConfigSyncerKeeper exited."] [2024/05/06 16:29:06.714 +08:00] [INFO] [domain.go:792] ["loadSchemaInLoop exited."] [2024/05/06 16:29:06.714 +08:00] [INFO] [domain.go:651] ["topologySyncerKeeper exited."] [2024/05/06 16:29:06.714 +08:00] [INFO] [domain.go:603] ["infoSyncerKeeper exited."] [2024/05/06 16:29:06.714 +08:00] [INFO] [domain.go:920] ["domain closed"] ["take time"=564.766µs] [2024/05/06 16:29:06.714 +08:00] [INFO] [tidb.go:77] ["new domain"] [store=877a7d46-88e6-410d-9473-4ecc2fc3e009] ["ddl lease"=500ms] ["stats lease"=-1ns] ["index usage sync lease"=0s] [2024/05/06 16:29:06.722 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=39] ["start time"=7.433346ms] [2024/05/06 16:29:06.722 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:29:06.723 +08:00] [INFO] [ddl.go:719] ["[ddl] start DDL"] [ID=7b89ffec-45d1-4a90-8e97-77426dee110b] [runWorker=true] [2024/05/06 16:29:06.723 +08:00] [INFO] [ddl.go:665] ["[ddl] start delRangeManager OK"] ["is a emulator"=true] [2024/05/06 16:29:06.723 +08:00] [INFO] [delete_range.go:158] ["[ddl] start delRange emulator"] [2024/05/06 16:29:06.723 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 14, tp general"] [2024/05/06 16:29:06.723 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 15, tp add index"] [2024/05/06 16:29:06.723 +08:00] [WARN] [env.go:52] ["[ddl-ingest] initialize environment failed"] ["storage limitation"="only support TiKV storage"] ["current storage"=unistore] ["lightning is initialized"=true] [2024/05/06 16:29:06.723 +08:00] [INFO] [env.go:108] ["[ddl-ingest] the lightning sorted dir"] ["data path:"=/tmp/tidb/tmp_ddl-4000] [2024/05/06 16:29:06.723 +08:00] [INFO] [env.go:75] ["[ddl-ingest] init global lightning backend environment finished"] ["memory limitation"=2147483648] ["sort path disk quota"=107374182400] ["max open file number"=1073741816] ["lightning is initialized"=true] [2024/05/06 16:29:06.723 +08:00] [WARN] [domain.go:1120] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 16:29:06.726 +08:00] [WARN] [sysvar_cache.go:50] ["sysvar cache is empty, triggering rebuild"] [2024/05/06 16:29:06.739 +08:00] [WARN] [misc.go:453] ["Automatic TLS Certificate creation is disabled"] [] [2024/05/06 16:29:06.740 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=6431122649489313228] [schemaVersion=39] [cur_db=test] [sql="drop table if exists t"] [user=root@%] [2024/05/06 16:29:06.740 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=6431122649489313228] [schemaVersion=39] [cur_db=test] [sql="create table t(id int, payload BLOB)"] [user=root@%] [2024/05/06 16:29:06.744 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:81, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:80, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:06.742 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:06.744 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:81, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:80, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:06.742 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="create table t(id int, payload BLOB)"] [2024/05/06 16:29:07.735 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 16, tp general"] [job="ID:81, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:80, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:06.742 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:07.737 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=39] [neededSchemaVersion=40] ["start time"=142.855µs] [phyTblIDs="[80]"] [actionTypes="[8]"] [2024/05/06 16:29:07.774 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=81] [version=40] [2024/05/06 16:29:07.776 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=40] ["take time"=38.819846ms] [job="ID:81, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:80, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:06.742 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:07.780 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 16, tp general"] [job="ID:81, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:80, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:06.742 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:07.782 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=81] [2024/05/06 16:29:07.782 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:07.782 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# User@Host: root[root] @ localhost []\n# Conn_ID: 6431122649489313228\n# Query_time: 1.042173124\n# Parse_time: 0.000048287\n# Compile_time: 0.000093411\n# Rewrite_time: 0.000047435\n# Optimize_time: 0\n# Wait_TS: 0.000005923\n# DB: test\n# Is_internal: false\n# Digest: aec2f75f087ede90231d8af8b9707b25fed8a317a5b3b7d59621185aa891ebda\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\nuse test;\ncreate table t(id int, payload BLOB);"] [2024/05/06 16:29:07.783 +08:00] [WARN] [2pc.go:1900] ["schemaLeaseChecker is not set for this transaction"] [sessionID=6431122649489313228] [startTS=449572804436426753] [checkTS=449572804436426755] [2024/05/06 16:29:08.727 +08:00] [INFO] [info.go:1114] [SetTiFlashGroupConfig] [2024/05/06 16:29:08.967 +08:00] [INFO] [set.go:160] ["set global var"] [conn=6431122649489313228] [name=tidb_enable_tmp_storage_on_oom] [val=ON] [2024/05/06 16:29:08.973 +08:00] [INFO] [set.go:160] ["set global var"] [conn=6431122649489313228] [name=tidb_mem_oom_action] [val=CANCEL] [2024/05/06 16:29:08.975 +08:00] [INFO] [row_container.go:418] ["memory exceeds quota, spill to disk now."] [consumed=84809] [quota=128] conn_stmt_test.go:580: Error Trace: server/conn_stmt_test.go:580 Error: An error is expected but got nil. Test: TestCursorFetchErrorInFetch [2024/05/06 16:29:09.010 +08:00] [INFO] [set.go:160] ["set global var"] [conn=6431122649489313228] [name=tidb_mem_oom_action] [val=CANCEL] [2024/05/06 16:29:09.010 +08:00] [INFO] [server.go:555] ["setting tidb-server to report unhealthy (shutting-down)"] [2024/05/06 16:29:09.010 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:29:09.010 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 17, tp add index"] ["take time"=1.315µs] [2024/05/06 16:29:09.010 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 18, tp add index"] ["take time"=698ns] [2024/05/06 16:29:09.010 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 19, tp add index"] ["take time"=678ns] [2024/05/06 16:29:09.010 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 20, tp add index"] ["take time"=941ns] [2024/05/06 16:29:09.010 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 21, tp add index"] ["take time"=964ns] [2024/05/06 16:29:09.010 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:29:09.010 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 16, tp general"] ["take time"=869ns] [2024/05/06 16:29:09.010 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 15, tp add index"] ["take time"=4.276µs] [2024/05/06 16:29:09.010 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 14, tp general"] ["take time"=2.946µs] [2024/05/06 16:29:09.010 +08:00] [INFO] [delete_range.go:148] ["[ddl] closing delRange"] [2024/05/06 16:29:09.010 +08:00] [INFO] [session_pool.go:94] ["[ddl] closing sessionPool"] [2024/05/06 16:29:09.010 +08:00] [INFO] [ddl.go:833] ["[ddl] DDL closed"] [ID=7b89ffec-45d1-4a90-8e97-77426dee110b] ["take time"=186.205µs] [2024/05/06 16:29:09.010 +08:00] [INFO] [ddl.go:657] ["[ddl] stop DDL"] [ID=7b89ffec-45d1-4a90-8e97-77426dee110b] [2024/05/06 16:29:09.010 +08:00] [INFO] [domain.go:1156] ["closestReplicaReadCheckLoop exited."] [2024/05/06 16:29:09.010 +08:00] [INFO] [domain.go:792] ["loadSchemaInLoop exited."] [2024/05/06 16:29:09.010 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:29:09.010 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:29:09.010 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:29:09.010 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:29:09.010 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:29:09.010 +08:00] [INFO] [domain.go:1748] ["dumpFileGcChecker exited."] [2024/05/06 16:29:09.010 +08:00] [INFO] [domain.go:1444] ["LoadSysVarCacheLoop exited."] [2024/05/06 16:29:09.010 +08:00] [INFO] [domain.go:1394] ["loadPrivilegeInLoop exited."] [2024/05/06 16:29:09.010 +08:00] [INFO] [domain.go:1569] ["handleEvolvePlanTasksLoop exited."] [2024/05/06 16:29:09.010 +08:00] [INFO] [domain.go:1525] ["globalBindHandleWorkerLoop exited."] [2024/05/06 16:29:09.010 +08:00] [INFO] [domain.go:651] ["topologySyncerKeeper exited."] [2024/05/06 16:29:09.010 +08:00] [INFO] [domain.go:628] ["globalConfigSyncerKeeper exited."] [2024/05/06 16:29:09.010 +08:00] [INFO] [domain.go:603] ["infoSyncerKeeper exited."] [2024/05/06 16:29:09.010 +08:00] [INFO] [domain.go:574] ["topNSlowQueryLoop exited."] [2024/05/06 16:29:09.011 +08:00] [INFO] [domain.go:920] ["domain closed"] ["take time"=840.85µs] [2024/05/06 16:29:09.011 +08:00] [INFO] [db.go:567] ["Closing database"] [2024/05/06 16:29:09.012 +08:00] [INFO] [db.go:592] ["Memtable flushed"] [2024/05/06 16:29:09.012 +08:00] [INFO] [db.go:596] ["Compaction finished"] [2024/05/06 16:29:09.012 +08:00] [INFO] [db.go:615] ["BlobManager finished"] [2024/05/06 16:29:09.012 +08:00] [INFO] [db.go:619] ["ResourceManager finished"] [2024/05/06 16:29:09.012 +08:00] [INFO] [db.go:625] ["Waiting for closer"] --- FAIL: TestCursorFetchErrorInFetch (4.30s) === RUN TestGetIndexMVCC [2024/05/06 16:29:09.016 +08:00] [INFO] [region_cache.go:2484] ["change store resolve state"] [store=1] [addr=store1] [from=unresolved] [to=resolved] [liveness-state=reachable] [2024/05/06 16:29:09.017 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:29:09.017 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:29:09.017 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:29:09.017 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:29:09.018 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:29:09.018 +08:00] [INFO] [tidb.go:77] ["new domain"] [store=744ec274-ed50-408a-9624-519043b191f5] ["ddl lease"=500ms] ["stats lease"=-1ns] ["index usage sync lease"=0s] [2024/05/06 16:29:09.018 +08:00] [WARN] [domain.go:188] ["failed to get schema version"] [error="There is no Write MVCC info for the schema version"] [errorVerbose="There is no Write MVCC info for the schema version\ngithub.com/pingcap/tidb/domain.(*Domain).getTimestampForSchemaVersionWithNonEmptyDiff\n\tdomain/domain.go:261\ngithub.com/pingcap/tidb/domain.(*Domain).loadInfoSchema\n\tdomain/domain.go:186\ngithub.com/pingcap/tidb/domain.(*Domain).Reload\n\tdomain/domain.go:502\ngithub.com/pingcap/tidb/domain.(*Domain).Init\n\tdomain/domain.go:1074\ngithub.com/pingcap/tidb/session.(*domainMap).Get.func1\n\tsession/tidb.go:90\ngithub.com/pingcap/tidb/util.RunWithRetry\n\tutil/misc.go:69\ngithub.com/pingcap/tidb/session.(*domainMap).Get\n\tsession/tidb.go:76\ngithub.com/pingcap/tidb/session.createSessionWithOpt\n\tsession/session.go:3520\ngithub.com/pingcap/tidb/session.createSession\n\tsession/session.go:3516\ngithub.com/pingcap/tidb/session.runInBootstrapSession\n\tsession/session.go:3480\ngithub.com/pingcap/tidb/session.BootstrapSession\n\tsession/session.go:3309\ngithub.com/pingcap/tidb/server.(*basicHTTPHandlerTestSuite).startServer\n\tserver/http_handler_test.go:451\ngithub.com/pingcap/tidb/server.TestGetIndexMVCC\n\tserver/http_handler_test.go:743\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1446\nruntime.goexit\n\tGOROOT/src/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:29:09.021 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=0] ["start time"=2.634545ms] [2024/05/06 16:29:09.021 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:29:09.021 +08:00] [INFO] [ddl.go:719] ["[ddl] start DDL"] [ID=f50f6fe2-dd62-4c13-84ed-26ad812530db] [runWorker=true] [2024/05/06 16:29:09.021 +08:00] [INFO] [ddl.go:665] ["[ddl] start delRangeManager OK"] ["is a emulator"=true] [2024/05/06 16:29:09.022 +08:00] [WARN] [env.go:52] ["[ddl-ingest] initialize environment failed"] ["storage limitation"="only support TiKV storage"] ["current storage"=unistore] ["lightning is initialized"=true] [2024/05/06 16:29:09.022 +08:00] [INFO] [env.go:108] ["[ddl-ingest] the lightning sorted dir"] ["data path:"=/tmp/tidb/tmp_ddl-4000] [2024/05/06 16:29:09.022 +08:00] [INFO] [env.go:75] ["[ddl-ingest] init global lightning backend environment finished"] ["memory limitation"=2147483648] ["sort path disk quota"=107374182400] ["max open file number"=1073741816] ["lightning is initialized"=true] [2024/05/06 16:29:09.022 +08:00] [WARN] [domain.go:1120] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 16:29:09.022 +08:00] [INFO] [delete_range.go:158] ["[ddl] start delRange emulator"] [2024/05/06 16:29:09.022 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 23, tp add index"] [2024/05/06 16:29:09.023 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=0] [cur_db=mysql] [sql="CREATE DATABASE IF NOT EXISTS test"] [user=] [2024/05/06 16:29:09.023 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 22, tp general"] [2024/05/06 16:29:09.025 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:3, Type:create schema, State:queueing, SchemaState:none, SchemaID:2, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 16:29:09.025 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:09.025 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:3, Type:create schema, State:queueing, SchemaState:none, SchemaID:2, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 16:29:09.025 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE DATABASE IF NOT EXISTS test"] [2024/05/06 16:29:09.032 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 24, tp general"] [job="ID:3, Type:create schema, State:queueing, SchemaState:none, SchemaID:2, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:09.025 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.037 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=1] ["start time"=2.365326ms] [2024/05/06 16:29:09.037 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:29:09.073 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:09.073 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=3] [version=1] [2024/05/06 16:29:09.075 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=1] ["take time"=41.025075ms] [job="ID:3, Type:create schema, State:done, SchemaState:public, SchemaID:2, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 16:29:09.025 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.082 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 24, tp general"] [job="ID:3, Type:create schema, State:synced, SchemaState:public, SchemaID:2, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:09.025 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.087 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=3] [2024/05/06 16:29:09.087 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:09.087 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=1] [cur_db=mysql] [sql="CREATE DATABASE IF NOT EXISTS `mysql`"] [user=] [2024/05/06 16:29:09.088 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=1] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.user (\n\t\tHost\t\t\t\t\tCHAR(255),\n\t\tUser\t\t\t\t\tCHAR(32),\n\t\tauthentication_string\tTEXT,\n\t\tplugin\t\t\t\t\tCHAR(64),\n\t\tSelect_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tInsert_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tUpdate_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tDelete_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tDrop_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tProcess_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tGrant_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tReferences_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tAlter_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tShow_db_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tSuper_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_tmp_table_priv\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tLock_tables_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tExecute_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_view_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tShow_view_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_routine_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tAlter_routine_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tIndex_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_user_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tEvent_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tRepl_slave_priv\t \tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tRepl_client_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tTrigger_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_role_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tDrop_role_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tAccount_locked\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tShutdown_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tReload_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tFILE_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tConfig_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_Tablespace_Priv ENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tPassword_reuse_history smallint unsigned DEFAULT NULL,\n\t\tPassword_reuse_time smallint unsigned DEFAULT NULL,\n\t\tUser_attributes\t\t\tjson,\n\t\tToken_issuer\t\t\tVARCHAR(255),\n\t\tPassword_expired\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tPassword_last_changed\tTIMESTAMP DEFAULT CURRENT_TIMESTAMP(),\n\t\tPassword_lifetime\t\tSMALLINT UNSIGNED DEFAULT NULL,\n\t\tPRIMARY KEY (Host, User));"] [user=] [2024/05/06 16:29:09.093 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:5, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:4, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.089 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:09.093 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:5, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:4, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.089 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.user (\n\t\tHost\t\t\t\t\tCHAR(255),\n\t\tUser\t\t\t\t\tCHAR(32),\n\t\tauthentication_string\tTEXT,\n\t\tplugin\t\t\t\t\tCHAR(64),\n\t\tSelect_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tInsert_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tUpdate_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tDelete_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tDrop_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tProcess_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tGrant_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tReferences_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tAlter_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tShow_db_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tSuper_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_tmp_table_priv\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tLock_tables_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tExecute_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_view_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tShow_view_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_routine_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tAlter_routine_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tIndex_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_user_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tEvent_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tRepl_slave_priv\t \tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tRepl_client_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tTrigger_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_role_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tDrop_role_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tAccount_locked\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tShutdown_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tReload_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tFILE_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tConfig_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_Tablespace_Priv ENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tPassword_reuse_history smallint unsigned DEFAULT NULL,\n\t\tPassword_reuse_time smallint unsigned DEFAULT NULL,\n\t\tUser_attributes\t\t\tjson,\n\t\tToken_issuer\t\t\tVARCHAR(255),\n\t\tPassword_expired\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tPassword_last_changed\tTIMESTAMP DEFAULT CURRENT_TIMESTAMP(),\n\t\tPassword_lifetime\t\tSMALLINT UNSIGNED DEFAULT NULL,\n\t\tPRIMARY KEY (Host, User));"] [2024/05/06 16:29:09.100 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 24, tp general"] [job="ID:5, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:4, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:09.089 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.110 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=1] [neededSchemaVersion=2] ["start time"=971.296µs] [phyTblIDs="[4]"] [actionTypes="[8]"] [2024/05/06 16:29:09.123 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:09.123 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=5] [version=2] [2024/05/06 16:29:09.124 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=2] ["take time"=14.82867ms] [job="ID:5, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:4, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.089 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.130 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 24, tp general"] [job="ID:5, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:4, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:09.089 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.137 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=5] [2024/05/06 16:29:09.137 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:09.137 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=2] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.password_history (\n Host char(255) NOT NULL DEFAULT '',\n User char(32) NOT NULL DEFAULT '',\n Password_timestamp timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),\n Password text,\n PRIMARY KEY (Host,User,Password_timestamp )\n ) COMMENT='Password history for user accounts' "] [user=] [2024/05/06 16:29:09.140 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:7, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:6, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.139 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:09.140 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:7, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:6, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.139 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.password_history (\n Host char(255) NOT NULL DEFAULT '',\n User char(32) NOT NULL DEFAULT '',\n Password_timestamp timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),\n Password text,\n PRIMARY KEY (Host,User,Password_timestamp )\n ) COMMENT='Password history for user accounts' "] [2024/05/06 16:29:09.146 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 24, tp general"] [job="ID:7, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:6, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:09.139 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.150 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=2] [neededSchemaVersion=3] ["start time"=265.13µs] [phyTblIDs="[6]"] [actionTypes="[8]"] [2024/05/06 16:29:09.173 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:09.173 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=7] [version=3] [2024/05/06 16:29:09.173 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=3] ["take time"=24.038494ms] [job="ID:7, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:6, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.139 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.177 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 24, tp general"] [job="ID:7, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:6, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:09.139 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.180 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=7] [2024/05/06 16:29:09.180 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:09.180 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=3] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.global_priv (Host CHAR(255) NOT NULL DEFAULT '',User CHAR(80) NOT NULL DEFAULT '',Priv LONGTEXT NOT NULL DEFAULT '',PRIMARY KEY (Host, User))"] [user=] [2024/05/06 16:29:09.182 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:9, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:8, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.181 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:09.182 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:9, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:8, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.181 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.global_priv (Host CHAR(255) NOT NULL DEFAULT '',User CHAR(80) NOT NULL DEFAULT '',Priv LONGTEXT NOT NULL DEFAULT '',PRIMARY KEY (Host, User))"] [2024/05/06 16:29:09.189 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 24, tp general"] [job="ID:9, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:8, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:09.181 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.191 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=3] [neededSchemaVersion=4] ["start time"=197.033µs] [phyTblIDs="[8]"] [actionTypes="[8]"] [2024/05/06 16:29:09.222 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:09.222 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=9] [version=4] [2024/05/06 16:29:09.223 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=4] ["take time"=32.340449ms] [job="ID:9, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:8, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.181 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.227 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 24, tp general"] [job="ID:9, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:8, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:09.181 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.230 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=9] [2024/05/06 16:29:09.230 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:09.231 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=4] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.db (\n\t\tHost\t\t\t\t\tCHAR(255),\n\t\tDB\t\t\t\t\t\tCHAR(64),\n\t\tUser\t\t\t\t\tCHAR(32),\n\t\tSelect_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tInsert_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tUpdate_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tDelete_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tDrop_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tGrant_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tReferences_priv \t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tIndex_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tAlter_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_tmp_table_priv\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tLock_tables_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_view_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tShow_view_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_routine_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tAlter_routine_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tExecute_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tEvent_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tTrigger_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tPRIMARY KEY (Host, DB, User));"] [user=] [2024/05/06 16:29:09.234 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:11, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:10, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.232 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:09.235 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:11, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:10, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.232 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.db (\n\t\tHost\t\t\t\t\tCHAR(255),\n\t\tDB\t\t\t\t\t\tCHAR(64),\n\t\tUser\t\t\t\t\tCHAR(32),\n\t\tSelect_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tInsert_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tUpdate_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tDelete_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tDrop_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tGrant_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tReferences_priv \t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tIndex_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tAlter_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_tmp_table_priv\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tLock_tables_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_view_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tShow_view_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_routine_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tAlter_routine_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tExecute_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tEvent_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tTrigger_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tPRIMARY KEY (Host, DB, User));"] [2024/05/06 16:29:09.240 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 24, tp general"] [job="ID:11, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:10, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:09.232 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.245 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=4] [neededSchemaVersion=5] ["start time"=499.031µs] [phyTblIDs="[10]"] [actionTypes="[8]"] [2024/05/06 16:29:09.286 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:09.288 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=11] [version=5] [2024/05/06 16:29:09.291 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=5] ["take time"=45.841057ms] [job="ID:11, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:10, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.232 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.296 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 24, tp general"] [job="ID:11, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:10, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:09.232 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.302 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=11] [2024/05/06 16:29:09.302 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:09.303 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=5] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.tables_priv (\n\t\tHost\t\tCHAR(255),\n\t\tDB\t\t\tCHAR(64),\n\t\tUser\t\tCHAR(32),\n\t\tTable_name\tCHAR(64),\n\t\tGrantor\t\tCHAR(77),\n\t\tTimestamp\tTIMESTAMP DEFAULT CURRENT_TIMESTAMP,\n\t\tTable_priv\tSET('Select','Insert','Update','Delete','Create','Drop','Grant','Index','Alter','Create View','Show View','Trigger','References'),\n\t\tColumn_priv\tSET('Select','Insert','Update','References'),\n\t\tPRIMARY KEY (Host, DB, User, Table_name));"] [user=] [2024/05/06 16:29:09.306 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:13, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:12, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.304 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:09.306 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:13, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:12, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.304 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.tables_priv (\n\t\tHost\t\tCHAR(255),\n\t\tDB\t\t\tCHAR(64),\n\t\tUser\t\tCHAR(32),\n\t\tTable_name\tCHAR(64),\n\t\tGrantor\t\tCHAR(77),\n\t\tTimestamp\tTIMESTAMP DEFAULT CURRENT_TIMESTAMP,\n\t\tTable_priv\tSET('Select','Insert','Update','Delete','Create','Drop','Grant','Index','Alter','Create View','Show View','Trigger','References'),\n\t\tColumn_priv\tSET('Select','Insert','Update','References'),\n\t\tPRIMARY KEY (Host, DB, User, Table_name));"] [2024/05/06 16:29:09.315 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 24, tp general"] [job="ID:13, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:12, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:09.304 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.319 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=5] [neededSchemaVersion=6] ["start time"=325.223µs] [phyTblIDs="[12]"] [actionTypes="[8]"] [2024/05/06 16:29:09.323 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:09.323 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=13] [version=6] [2024/05/06 16:29:09.325 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=6] ["take time"=6.657506ms] [job="ID:13, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:12, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.304 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.333 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 24, tp general"] [job="ID:13, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:12, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:09.304 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.337 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=13] [2024/05/06 16:29:09.338 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:09.338 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=6] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.columns_priv(\n\t\tHost\t\tCHAR(255),\n\t\tDB\t\t\tCHAR(64),\n\t\tUser\t\tCHAR(32),\n\t\tTable_name\tCHAR(64),\n\t\tColumn_name\tCHAR(64),\n\t\tTimestamp\tTIMESTAMP DEFAULT CURRENT_TIMESTAMP,\n\t\tColumn_priv\tSET('Select','Insert','Update','References'),\n\t\tPRIMARY KEY (Host, DB, User, Table_name, Column_name));"] [user=] [2024/05/06 16:29:09.341 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:15, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:14, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.339 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:09.341 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:15, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:14, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.339 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.columns_priv(\n\t\tHost\t\tCHAR(255),\n\t\tDB\t\t\tCHAR(64),\n\t\tUser\t\tCHAR(32),\n\t\tTable_name\tCHAR(64),\n\t\tColumn_name\tCHAR(64),\n\t\tTimestamp\tTIMESTAMP DEFAULT CURRENT_TIMESTAMP,\n\t\tColumn_priv\tSET('Select','Insert','Update','References'),\n\t\tPRIMARY KEY (Host, DB, User, Table_name, Column_name));"] [2024/05/06 16:29:09.347 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 24, tp general"] [job="ID:15, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:14, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:09.339 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.352 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=6] [neededSchemaVersion=7] ["start time"=929.15µs] [phyTblIDs="[14]"] [actionTypes="[8]"] [2024/05/06 16:29:09.373 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:09.373 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=15] [version=7] [2024/05/06 16:29:09.373 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=7] ["take time"=22.031185ms] [job="ID:15, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:14, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.339 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.378 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 24, tp general"] [job="ID:15, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:14, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:09.339 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.381 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=15] [2024/05/06 16:29:09.381 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:09.381 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=7] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.GLOBAL_VARIABLES(\n\t\tVARIABLE_NAME VARCHAR(64) NOT NULL PRIMARY KEY,\n\t\tVARIABLE_VALUE VARCHAR(1024) DEFAULT NULL);"] [user=] [2024/05/06 16:29:09.383 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:17, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:16, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.382 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:09.383 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:17, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:16, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.382 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.GLOBAL_VARIABLES(\n\t\tVARIABLE_NAME VARCHAR(64) NOT NULL PRIMARY KEY,\n\t\tVARIABLE_VALUE VARCHAR(1024) DEFAULT NULL);"] [2024/05/06 16:29:09.391 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 24, tp general"] [job="ID:17, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:16, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:09.382 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.394 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=7] [neededSchemaVersion=8] ["start time"=208.67µs] [phyTblIDs="[16]"] [actionTypes="[8]"] [2024/05/06 16:29:09.423 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:09.423 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=17] [version=8] [2024/05/06 16:29:09.425 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=8] ["take time"=31.079954ms] [job="ID:17, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:16, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.382 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.429 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 24, tp general"] [job="ID:17, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:16, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:09.382 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.431 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=17] [2024/05/06 16:29:09.431 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:09.432 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=8] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.tidb(\n\t\tVARIABLE_NAME \tVARCHAR(64) NOT NULL PRIMARY KEY,\n\t\tVARIABLE_VALUE \tVARCHAR(1024) DEFAULT NULL,\n\t\tCOMMENT \t\tVARCHAR(1024));"] [user=] [2024/05/06 16:29:09.434 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:19, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:18, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.433 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:09.434 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:19, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:18, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.433 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.tidb(\n\t\tVARIABLE_NAME \tVARCHAR(64) NOT NULL PRIMARY KEY,\n\t\tVARIABLE_VALUE \tVARCHAR(1024) DEFAULT NULL,\n\t\tCOMMENT \t\tVARCHAR(1024));"] [2024/05/06 16:29:09.442 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 24, tp general"] [job="ID:19, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:18, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:09.433 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.446 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=8] [neededSchemaVersion=9] ["start time"=243.718µs] [phyTblIDs="[18]"] [actionTypes="[8]"] [2024/05/06 16:29:09.473 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:09.473 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=19] [version=9] [2024/05/06 16:29:09.473 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=9] ["take time"=26.987512ms] [job="ID:19, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:18, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.433 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.476 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 24, tp general"] [job="ID:19, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:18, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:09.433 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.479 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=19] [2024/05/06 16:29:09.480 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:09.480 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=9] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.help_topic (\n \t\thelp_topic_id \t\tINT(10) UNSIGNED NOT NULL,\n \t\tname \t\t\t\tCHAR(64) NOT NULL,\n \t\thelp_category_id \tSMALLINT(5) UNSIGNED NOT NULL,\n \t\tdescription \t\tTEXT NOT NULL,\n \t\texample \t\t\tTEXT NOT NULL,\n \t\turl \t\t\t\tTEXT NOT NULL,\n \t\tPRIMARY KEY (help_topic_id) clustered,\n \t\tUNIQUE KEY name (name)\n\t\t) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='help topics';"] [user=] [2024/05/06 16:29:09.483 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:21, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:20, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.481 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:09.483 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:21, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:20, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.481 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.help_topic (\n \t\thelp_topic_id \t\tINT(10) UNSIGNED NOT NULL,\n \t\tname \t\t\t\tCHAR(64) NOT NULL,\n \t\thelp_category_id \tSMALLINT(5) UNSIGNED NOT NULL,\n \t\tdescription \t\tTEXT NOT NULL,\n \t\texample \t\t\tTEXT NOT NULL,\n \t\turl \t\t\t\tTEXT NOT NULL,\n \t\tPRIMARY KEY (help_topic_id) clustered,\n \t\tUNIQUE KEY name (name)\n\t\t) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='help topics';"] [2024/05/06 16:29:09.487 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 24, tp general"] [job="ID:21, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:20, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:09.481 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.490 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=9] [neededSchemaVersion=10] ["start time"=252.197µs] [phyTblIDs="[20]"] [actionTypes="[8]"] [2024/05/06 16:29:09.523 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:09.523 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=21] [version=10] [2024/05/06 16:29:09.525 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=10] ["take time"=34.671354ms] [job="ID:21, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:20, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.481 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.529 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 24, tp general"] [job="ID:21, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:20, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:09.481 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.532 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=21] [2024/05/06 16:29:09.532 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:09.532 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=10] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.stats_meta (\n\t\tversion \t\tBIGINT(64) UNSIGNED NOT NULL,\n\t\ttable_id \t\tBIGINT(64) NOT NULL,\n\t\tmodify_count\tBIGINT(64) NOT NULL DEFAULT 0,\n\t\tcount \t\t\tBIGINT(64) UNSIGNED NOT NULL DEFAULT 0,\n\t\tsnapshot BIGINT(64) UNSIGNED NOT NULL DEFAULT 0,\n\t\tINDEX idx_ver(version),\n\t\tUNIQUE INDEX tbl(table_id)\n\t);"] [user=] [2024/05/06 16:29:09.534 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:23, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:22, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.533 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:09.534 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:23, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:22, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.533 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.stats_meta (\n\t\tversion \t\tBIGINT(64) UNSIGNED NOT NULL,\n\t\ttable_id \t\tBIGINT(64) NOT NULL,\n\t\tmodify_count\tBIGINT(64) NOT NULL DEFAULT 0,\n\t\tcount \t\t\tBIGINT(64) UNSIGNED NOT NULL DEFAULT 0,\n\t\tsnapshot BIGINT(64) UNSIGNED NOT NULL DEFAULT 0,\n\t\tINDEX idx_ver(version),\n\t\tUNIQUE INDEX tbl(table_id)\n\t);"] [2024/05/06 16:29:09.540 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 24, tp general"] [job="ID:23, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:22, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:09.533 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.543 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=10] [neededSchemaVersion=11] ["start time"=251.55µs] [phyTblIDs="[22]"] [actionTypes="[8]"] [2024/05/06 16:29:09.573 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:09.573 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=23] [version=11] [2024/05/06 16:29:09.575 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=11] ["take time"=32.516091ms] [job="ID:23, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:22, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.533 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.579 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 24, tp general"] [job="ID:23, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:22, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:09.533 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.582 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=23] [2024/05/06 16:29:09.582 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:09.582 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=11] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.stats_histograms (\n\t\ttable_id \t\t\tBIGINT(64) NOT NULL,\n\t\tis_index \t\t\tTINYINT(2) NOT NULL,\n\t\thist_id \t\t\tBIGINT(64) NOT NULL,\n\t\tdistinct_count \t\tBIGINT(64) NOT NULL,\n\t\tnull_count \t\t\tBIGINT(64) NOT NULL DEFAULT 0,\n\t\ttot_col_size \t\tBIGINT(64) NOT NULL DEFAULT 0,\n\t\tmodify_count \t\tBIGINT(64) NOT NULL DEFAULT 0,\n\t\tversion \t\t\tBIGINT(64) UNSIGNED NOT NULL DEFAULT 0,\n\t\tcm_sketch \t\t\tBLOB(6291456),\n\t\tstats_ver \t\t\tBIGINT(64) NOT NULL DEFAULT 0,\n\t\tflag \t\t\t\tBIGINT(64) NOT NULL DEFAULT 0,\n\t\tcorrelation \t\tDOUBLE NOT NULL DEFAULT 0,\n\t\tlast_analyze_pos \tLONGBLOB DEFAULT NULL,\n\t\tUNIQUE INDEX tbl(table_id, is_index, hist_id)\n\t);"] [user=] [2024/05/06 16:29:09.582 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(6291456) to MEDIUMBLOB"] [2024/05/06 16:29:09.585 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:25, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:24, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.583 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:09.585 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:25, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:24, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.583 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.stats_histograms (\n\t\ttable_id \t\t\tBIGINT(64) NOT NULL,\n\t\tis_index \t\t\tTINYINT(2) NOT NULL,\n\t\thist_id \t\t\tBIGINT(64) NOT NULL,\n\t\tdistinct_count \t\tBIGINT(64) NOT NULL,\n\t\tnull_count \t\t\tBIGINT(64) NOT NULL DEFAULT 0,\n\t\ttot_col_size \t\tBIGINT(64) NOT NULL DEFAULT 0,\n\t\tmodify_count \t\tBIGINT(64) NOT NULL DEFAULT 0,\n\t\tversion \t\t\tBIGINT(64) UNSIGNED NOT NULL DEFAULT 0,\n\t\tcm_sketch \t\t\tBLOB(6291456),\n\t\tstats_ver \t\t\tBIGINT(64) NOT NULL DEFAULT 0,\n\t\tflag \t\t\t\tBIGINT(64) NOT NULL DEFAULT 0,\n\t\tcorrelation \t\tDOUBLE NOT NULL DEFAULT 0,\n\t\tlast_analyze_pos \tLONGBLOB DEFAULT NULL,\n\t\tUNIQUE INDEX tbl(table_id, is_index, hist_id)\n\t);"] [2024/05/06 16:29:09.590 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 24, tp general"] [job="ID:25, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:24, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:09.583 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.594 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=11] [neededSchemaVersion=12] ["start time"=389.171µs] [phyTblIDs="[24]"] [actionTypes="[8]"] [2024/05/06 16:29:09.622 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:09.622 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=25] [version=12] [2024/05/06 16:29:09.625 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=12] ["take time"=30.997323ms] [job="ID:25, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:24, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.583 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.628 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 24, tp general"] [job="ID:25, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:24, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:09.583 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.632 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=25] [2024/05/06 16:29:09.632 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:09.632 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=12] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.stats_buckets (\n\t\ttable_id \tBIGINT(64) NOT NULL,\n\t\tis_index \tTINYINT(2) NOT NULL,\n\t\thist_id \tBIGINT(64) NOT NULL,\n\t\tbucket_id \tBIGINT(64) NOT NULL,\n\t\tcount \t\tBIGINT(64) NOT NULL,\n\t\trepeats \tBIGINT(64) NOT NULL,\n\t\tupper_bound LONGBLOB NOT NULL,\n\t\tlower_bound LONGBLOB ,\n\t\tndv BIGINT NOT NULL DEFAULT 0,\n\t\tUNIQUE INDEX tbl(table_id, is_index, hist_id, bucket_id)\n\t);"] [user=] [2024/05/06 16:29:09.635 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:27, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:26, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.633 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:09.635 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:27, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:26, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.633 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.stats_buckets (\n\t\ttable_id \tBIGINT(64) NOT NULL,\n\t\tis_index \tTINYINT(2) NOT NULL,\n\t\thist_id \tBIGINT(64) NOT NULL,\n\t\tbucket_id \tBIGINT(64) NOT NULL,\n\t\tcount \t\tBIGINT(64) NOT NULL,\n\t\trepeats \tBIGINT(64) NOT NULL,\n\t\tupper_bound LONGBLOB NOT NULL,\n\t\tlower_bound LONGBLOB ,\n\t\tndv BIGINT NOT NULL DEFAULT 0,\n\t\tUNIQUE INDEX tbl(table_id, is_index, hist_id, bucket_id)\n\t);"] [2024/05/06 16:29:09.641 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 24, tp general"] [job="ID:27, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:26, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:09.633 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.644 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=12] [neededSchemaVersion=13] ["start time"=353.818µs] [phyTblIDs="[26]"] [actionTypes="[8]"] [2024/05/06 16:29:09.673 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:09.673 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=27] [version=13] [2024/05/06 16:29:09.674 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=13] ["take time"=30.175846ms] [job="ID:27, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:26, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.633 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.678 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 24, tp general"] [job="ID:27, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:26, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:09.633 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.681 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=27] [2024/05/06 16:29:09.681 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:09.681 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=13] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.gc_delete_range (\n\t\tjob_id \t\tBIGINT NOT NULL COMMENT \"the DDL job ID\",\n\t\telement_id \tBIGINT NOT NULL COMMENT \"the schema element ID\",\n\t\tstart_key \tVARCHAR(255) NOT NULL COMMENT \"encoded in hex\",\n\t\tend_key \tVARCHAR(255) NOT NULL COMMENT \"encoded in hex\",\n\t\tts \t\t\tBIGINT NOT NULL COMMENT \"timestamp in uint64\",\n\t\tUNIQUE KEY delete_range_index (job_id, element_id)\n\t);"] [user=] [2024/05/06 16:29:09.683 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:29, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:28, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.682 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:09.684 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:29, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:28, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.682 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.gc_delete_range (\n\t\tjob_id \t\tBIGINT NOT NULL COMMENT \"the DDL job ID\",\n\t\telement_id \tBIGINT NOT NULL COMMENT \"the schema element ID\",\n\t\tstart_key \tVARCHAR(255) NOT NULL COMMENT \"encoded in hex\",\n\t\tend_key \tVARCHAR(255) NOT NULL COMMENT \"encoded in hex\",\n\t\tts \t\t\tBIGINT NOT NULL COMMENT \"timestamp in uint64\",\n\t\tUNIQUE KEY delete_range_index (job_id, element_id)\n\t);"] [2024/05/06 16:29:09.690 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 24, tp general"] [job="ID:29, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:28, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:09.682 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.693 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=13] [neededSchemaVersion=14] ["start time"=235.66µs] [phyTblIDs="[28]"] [actionTypes="[8]"] [2024/05/06 16:29:09.723 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:09.723 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=29] [version=14] [2024/05/06 16:29:09.724 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=14] ["take time"=32.115381ms] [job="ID:29, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:28, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.682 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.728 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 24, tp general"] [job="ID:29, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:28, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:09.682 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.731 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=29] [2024/05/06 16:29:09.731 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:09.732 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=14] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.gc_delete_range_done (\n\t\tjob_id \t\tBIGINT NOT NULL COMMENT \"the DDL job ID\",\n\t\telement_id \tBIGINT NOT NULL COMMENT \"the schema element ID\",\n\t\tstart_key \tVARCHAR(255) NOT NULL COMMENT \"encoded in hex\",\n\t\tend_key \tVARCHAR(255) NOT NULL COMMENT \"encoded in hex\",\n\t\tts \t\t\tBIGINT NOT NULL COMMENT \"timestamp in uint64\",\n\t\tUNIQUE KEY delete_range_done_index (job_id, element_id)\n\t);"] [user=] [2024/05/06 16:29:09.734 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:31, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:30, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.733 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:09.734 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:31, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:30, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.733 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.gc_delete_range_done (\n\t\tjob_id \t\tBIGINT NOT NULL COMMENT \"the DDL job ID\",\n\t\telement_id \tBIGINT NOT NULL COMMENT \"the schema element ID\",\n\t\tstart_key \tVARCHAR(255) NOT NULL COMMENT \"encoded in hex\",\n\t\tend_key \tVARCHAR(255) NOT NULL COMMENT \"encoded in hex\",\n\t\tts \t\t\tBIGINT NOT NULL COMMENT \"timestamp in uint64\",\n\t\tUNIQUE KEY delete_range_done_index (job_id, element_id)\n\t);"] [2024/05/06 16:29:09.739 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 24, tp general"] [job="ID:31, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:30, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:09.733 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.742 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=14] [neededSchemaVersion=15] ["start time"=238.751µs] [phyTblIDs="[30]"] [actionTypes="[8]"] [2024/05/06 16:29:09.773 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:09.773 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=31] [version=15] [2024/05/06 16:29:09.774 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=15] ["take time"=32.367524ms] [job="ID:31, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:30, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.733 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.778 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 24, tp general"] [job="ID:31, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:30, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:09.733 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.781 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=31] [2024/05/06 16:29:09.782 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:09.782 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=15] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.stats_feedback (\n\t\ttable_id \tBIGINT(64) NOT NULL,\n\t\tis_index \tTINYINT(2) NOT NULL,\n\t\thist_id \tBIGINT(64) NOT NULL,\n\t\tfeedback \tBLOB NOT NULL,\n\t\tINDEX hist(table_id, is_index, hist_id)\n\t);"] [user=] [2024/05/06 16:29:09.784 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:33, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:32, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.783 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:09.784 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:33, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:32, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.783 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.stats_feedback (\n\t\ttable_id \tBIGINT(64) NOT NULL,\n\t\tis_index \tTINYINT(2) NOT NULL,\n\t\thist_id \tBIGINT(64) NOT NULL,\n\t\tfeedback \tBLOB NOT NULL,\n\t\tINDEX hist(table_id, is_index, hist_id)\n\t);"] [2024/05/06 16:29:09.789 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 24, tp general"] [job="ID:33, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:32, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:09.783 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.792 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=15] [neededSchemaVersion=16] ["start time"=333.045µs] [phyTblIDs="[32]"] [actionTypes="[8]"] [2024/05/06 16:29:09.823 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:09.823 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=33] [version=16] [2024/05/06 16:29:09.825 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=16] ["take time"=32.973263ms] [job="ID:33, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:32, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.783 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.829 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 24, tp general"] [job="ID:33, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:32, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:09.783 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.831 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=33] [2024/05/06 16:29:09.831 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:09.831 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=16] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.role_edges (\n\t\tFROM_HOST \t\t\tCHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tFROM_USER \t\t\tCHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tTO_HOST \t\t\tCHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tTO_USER \t\t\tCHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tWITH_ADMIN_OPTION \tENUM('N','Y') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'N',\n\t\tPRIMARY KEY (FROM_HOST,FROM_USER,TO_HOST,TO_USER)\n\t);"] [user=] [2024/05/06 16:29:09.833 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:35, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:34, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.832 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:09.834 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:35, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:34, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.832 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.role_edges (\n\t\tFROM_HOST \t\t\tCHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tFROM_USER \t\t\tCHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tTO_HOST \t\t\tCHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tTO_USER \t\t\tCHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tWITH_ADMIN_OPTION \tENUM('N','Y') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'N',\n\t\tPRIMARY KEY (FROM_HOST,FROM_USER,TO_HOST,TO_USER)\n\t);"] [2024/05/06 16:29:09.837 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 24, tp general"] [job="ID:35, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:34, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:09.832 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.840 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=16] [neededSchemaVersion=17] ["start time"=198.214µs] [phyTblIDs="[34]"] [actionTypes="[8]"] [2024/05/06 16:29:09.873 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:09.873 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=35] [version=17] [2024/05/06 16:29:09.874 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=17] ["take time"=34.548543ms] [job="ID:35, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:34, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.832 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.878 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 24, tp general"] [job="ID:35, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:34, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:09.832 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.881 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=35] [2024/05/06 16:29:09.881 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:09.881 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=17] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.default_roles (\n\t\tHOST \t\t\t\tCHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tUSER \t\t\t\tCHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tDEFAULT_ROLE_HOST \tCHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '%',\n\t\tDEFAULT_ROLE_USER \tCHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tPRIMARY KEY (HOST,USER,DEFAULT_ROLE_HOST,DEFAULT_ROLE_USER)\n\t)"] [user=] [2024/05/06 16:29:09.883 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:37, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:36, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.882 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:09.883 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:37, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:36, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.882 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.default_roles (\n\t\tHOST \t\t\t\tCHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tUSER \t\t\t\tCHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tDEFAULT_ROLE_HOST \tCHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '%',\n\t\tDEFAULT_ROLE_USER \tCHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tPRIMARY KEY (HOST,USER,DEFAULT_ROLE_HOST,DEFAULT_ROLE_USER)\n\t)"] [2024/05/06 16:29:09.890 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 24, tp general"] [job="ID:37, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:36, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:09.882 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.893 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=17] [neededSchemaVersion=18] ["start time"=263.661µs] [phyTblIDs="[36]"] [actionTypes="[8]"] [2024/05/06 16:29:09.923 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:09.923 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=37] [version=18] [2024/05/06 16:29:09.925 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=18] ["take time"=32.202277ms] [job="ID:37, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:36, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.882 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.928 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 24, tp general"] [job="ID:37, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:36, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:09.882 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.931 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=37] [2024/05/06 16:29:09.931 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:09.932 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=18] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.bind_info (\n\t\toriginal_sql TEXT NOT NULL,\n\t\tbind_sql TEXT NOT NULL,\n\t\tdefault_db TEXT NOT NULL,\n\t\tstatus TEXT NOT NULL,\n\t\tcreate_time TIMESTAMP(3) NOT NULL,\n\t\tupdate_time TIMESTAMP(3) NOT NULL,\n\t\tcharset TEXT NOT NULL,\n\t\tcollation TEXT NOT NULL,\n\t\tsource VARCHAR(10) NOT NULL DEFAULT 'unknown',\n\t\tsql_digest varchar(64),\n\t\tplan_digest varchar(64),\n\t\tINDEX sql_index(original_sql(700),default_db(68)) COMMENT \"accelerate the speed when add global binding query\",\n\t\tINDEX time_index(update_time) COMMENT \"accelerate the speed when querying with last update time\"\n\t) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;"] [user=] [2024/05/06 16:29:09.934 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:39, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:38, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.933 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:09.935 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:39, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:38, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.933 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.bind_info (\n\t\toriginal_sql TEXT NOT NULL,\n\t\tbind_sql TEXT NOT NULL,\n\t\tdefault_db TEXT NOT NULL,\n\t\tstatus TEXT NOT NULL,\n\t\tcreate_time TIMESTAMP(3) NOT NULL,\n\t\tupdate_time TIMESTAMP(3) NOT NULL,\n\t\tcharset TEXT NOT NULL,\n\t\tcollation TEXT NOT NULL,\n\t\tsource VARCHAR(10) NOT NULL DEFAULT 'unknown',\n\t\tsql_digest varchar(64),\n\t\tplan_digest varchar(64),\n\t\tINDEX sql_index(original_sql(700),default_db(68)) COMMENT \"accelerate the speed when add global binding query\",\n\t\tINDEX time_index(update_time) COMMENT \"accelerate the speed when querying with last update time\"\n\t) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;"] [2024/05/06 16:29:09.939 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 24, tp general"] [job="ID:39, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:38, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:09.933 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.943 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=18] [neededSchemaVersion=19] ["start time"=466.165µs] [phyTblIDs="[38]"] [actionTypes="[8]"] [2024/05/06 16:29:09.973 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:09.973 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=39] [version=19] [2024/05/06 16:29:09.975 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=19] ["take time"=32.350299ms] [job="ID:39, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:38, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.933 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.980 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 24, tp general"] [job="ID:39, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:38, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:09.933 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.983 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=39] [2024/05/06 16:29:09.983 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:09.985 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=19] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.stats_top_n (\n\t\ttable_id \tBIGINT(64) NOT NULL,\n\t\tis_index \tTINYINT(2) NOT NULL,\n\t\thist_id \tBIGINT(64) NOT NULL,\n\t\tvalue \t\tLONGBLOB,\n\t\tcount \t\tBIGINT(64) UNSIGNED NOT NULL,\n\t\tINDEX tbl(table_id, is_index, hist_id)\n\t);"] [user=] [2024/05/06 16:29:09.986 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:41, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:40, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.986 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:09.986 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:41, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:40, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.986 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.stats_top_n (\n\t\ttable_id \tBIGINT(64) NOT NULL,\n\t\tis_index \tTINYINT(2) NOT NULL,\n\t\thist_id \tBIGINT(64) NOT NULL,\n\t\tvalue \t\tLONGBLOB,\n\t\tcount \t\tBIGINT(64) UNSIGNED NOT NULL,\n\t\tINDEX tbl(table_id, is_index, hist_id)\n\t);"] [2024/05/06 16:29:09.991 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 24, tp general"] [job="ID:41, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:40, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:09.986 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:09.993 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=19] [neededSchemaVersion=20] ["start time"=202.657µs] [phyTblIDs="[40]"] [actionTypes="[8]"] [2024/05/06 16:29:10.023 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:10.023 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=41] [version=20] [2024/05/06 16:29:10.023 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=20] ["take time"=30.168269ms] [job="ID:41, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:40, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:09.986 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.029 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 24, tp general"] [job="ID:41, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:40, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:09.986 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.032 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=41] [2024/05/06 16:29:10.032 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:10.032 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=20] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.expr_pushdown_blacklist (\n\t\tname \t\tCHAR(100) NOT NULL,\n\t\tstore_type \tCHAR(100) NOT NULL DEFAULT 'tikv,tiflash,tidb',\n\t\treason \t\tVARCHAR(200)\n\t);"] [user=] [2024/05/06 16:29:10.033 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:43, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:42, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.033 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:10.033 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:43, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:42, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.033 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.expr_pushdown_blacklist (\n\t\tname \t\tCHAR(100) NOT NULL,\n\t\tstore_type \tCHAR(100) NOT NULL DEFAULT 'tikv,tiflash,tidb',\n\t\treason \t\tVARCHAR(200)\n\t);"] [2024/05/06 16:29:10.040 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 24, tp general"] [job="ID:43, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:42, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:10.033 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.043 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=20] [neededSchemaVersion=21] ["start time"=238.377µs] [phyTblIDs="[42]"] [actionTypes="[8]"] [2024/05/06 16:29:10.073 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:10.073 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=43] [version=21] [2024/05/06 16:29:10.075 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=21] ["take time"=32.623318ms] [job="ID:43, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:42, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.033 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.078 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 24, tp general"] [job="ID:43, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:42, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:10.033 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.081 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=43] [2024/05/06 16:29:10.081 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:10.081 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=21] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.opt_rule_blacklist (\n\t\tname \tCHAR(100) NOT NULL\n\t);"] [user=] [2024/05/06 16:29:10.083 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:45, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:44, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.082 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:10.083 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:45, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:44, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.082 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.opt_rule_blacklist (\n\t\tname \tCHAR(100) NOT NULL\n\t);"] [2024/05/06 16:29:10.089 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 24, tp general"] [job="ID:45, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:44, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:10.082 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.091 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=21] [neededSchemaVersion=22] ["start time"=181.043µs] [phyTblIDs="[44]"] [actionTypes="[8]"] [2024/05/06 16:29:10.124 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:10.124 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=45] [version=22] [2024/05/06 16:29:10.125 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=22] ["take time"=34.27198ms] [job="ID:45, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:44, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.082 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.131 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 24, tp general"] [job="ID:45, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:44, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:10.082 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.141 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=45] [2024/05/06 16:29:10.141 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:10.142 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=22] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.stats_extended (\n\t\tname varchar(32) NOT NULL,\n\t\ttype tinyint(4) NOT NULL,\n\t\ttable_id bigint(64) NOT NULL,\n\t\tcolumn_ids varchar(32) NOT NULL,\n\t\tstats blob DEFAULT NULL,\n\t\tversion bigint(64) unsigned NOT NULL,\n\t\tstatus tinyint(4) NOT NULL,\n\t\tPRIMARY KEY(name, table_id),\n\t\tKEY idx_1 (table_id, status, version),\n\t\tKEY idx_2 (status, version)\n\t);"] [user=] [2024/05/06 16:29:10.145 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:47, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:46, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.143 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:10.145 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:47, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:46, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.143 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.stats_extended (\n\t\tname varchar(32) NOT NULL,\n\t\ttype tinyint(4) NOT NULL,\n\t\ttable_id bigint(64) NOT NULL,\n\t\tcolumn_ids varchar(32) NOT NULL,\n\t\tstats blob DEFAULT NULL,\n\t\tversion bigint(64) unsigned NOT NULL,\n\t\tstatus tinyint(4) NOT NULL,\n\t\tPRIMARY KEY(name, table_id),\n\t\tKEY idx_1 (table_id, status, version),\n\t\tKEY idx_2 (status, version)\n\t);"] [2024/05/06 16:29:10.152 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 24, tp general"] [job="ID:47, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:46, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:10.143 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.156 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=22] [neededSchemaVersion=23] ["start time"=356.206µs] [phyTblIDs="[46]"] [actionTypes="[8]"] [2024/05/06 16:29:10.173 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:10.173 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=47] [version=23] [2024/05/06 16:29:10.174 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=23] ["take time"=18.4953ms] [job="ID:47, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:46, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.143 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.179 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 24, tp general"] [job="ID:47, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:46, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:10.143 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.182 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=47] [2024/05/06 16:29:10.182 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:10.182 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=23] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.schema_index_usage (\n\t\tTABLE_ID bigint(64),\n\t\tINDEX_ID bigint(21),\n\t\tQUERY_COUNT bigint(64),\n\t\tROWS_SELECTED bigint(64),\n\t\tLAST_USED_AT timestamp,\n\t\tPRIMARY KEY(TABLE_ID, INDEX_ID)\n\t);"] [user=] [2024/05/06 16:29:10.184 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:49, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:48, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.183 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:10.184 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:49, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:48, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.183 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.schema_index_usage (\n\t\tTABLE_ID bigint(64),\n\t\tINDEX_ID bigint(21),\n\t\tQUERY_COUNT bigint(64),\n\t\tROWS_SELECTED bigint(64),\n\t\tLAST_USED_AT timestamp,\n\t\tPRIMARY KEY(TABLE_ID, INDEX_ID)\n\t);"] [2024/05/06 16:29:10.188 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 24, tp general"] [job="ID:49, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:48, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:10.183 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.191 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=23] [neededSchemaVersion=24] ["start time"=281.565µs] [phyTblIDs="[48]"] [actionTypes="[8]"] [2024/05/06 16:29:10.227 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:10.227 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=49] [version=24] [2024/05/06 16:29:10.227 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=24] ["take time"=36.530843ms] [job="ID:49, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:48, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.183 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.234 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 24, tp general"] [job="ID:49, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:48, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:10.183 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.239 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=49] [2024/05/06 16:29:10.239 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:10.240 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=24] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.stats_fm_sketch (\n\t\ttable_id \tBIGINT(64) NOT NULL,\n\t\tis_index \tTINYINT(2) NOT NULL,\n\t\thist_id \tBIGINT(64) NOT NULL,\n\t\tvalue \t\tLONGBLOB,\n\t\tINDEX tbl(table_id, is_index, hist_id)\n\t);"] [user=] [2024/05/06 16:29:10.242 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:51, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:50, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.241 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:10.242 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:51, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:50, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.241 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.stats_fm_sketch (\n\t\ttable_id \tBIGINT(64) NOT NULL,\n\t\tis_index \tTINYINT(2) NOT NULL,\n\t\thist_id \tBIGINT(64) NOT NULL,\n\t\tvalue \t\tLONGBLOB,\n\t\tINDEX tbl(table_id, is_index, hist_id)\n\t);"] [2024/05/06 16:29:10.251 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 24, tp general"] [job="ID:51, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:50, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:10.241 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.254 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=24] [neededSchemaVersion=25] ["start time"=319.899µs] [phyTblIDs="[50]"] [actionTypes="[8]"] [2024/05/06 16:29:10.273 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:10.273 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=51] [version=25] [2024/05/06 16:29:10.274 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=25] ["take time"=20.184329ms] [job="ID:51, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:50, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.241 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.278 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 24, tp general"] [job="ID:51, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:50, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:10.241 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.281 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=51] [2024/05/06 16:29:10.281 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:10.281 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=25] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.global_grants (\n\t\tUSER char(32) NOT NULL DEFAULT '',\n\t\tHOST char(255) NOT NULL DEFAULT '',\n\t\tPRIV char(32) NOT NULL DEFAULT '',\n\t\tWITH_GRANT_OPTION enum('N','Y') NOT NULL DEFAULT 'N',\n\t\tPRIMARY KEY (USER,HOST,PRIV)\n\t);"] [user=] [2024/05/06 16:29:10.284 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:53, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:52, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.283 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:10.284 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:53, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:52, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.283 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.global_grants (\n\t\tUSER char(32) NOT NULL DEFAULT '',\n\t\tHOST char(255) NOT NULL DEFAULT '',\n\t\tPRIV char(32) NOT NULL DEFAULT '',\n\t\tWITH_GRANT_OPTION enum('N','Y') NOT NULL DEFAULT 'N',\n\t\tPRIMARY KEY (USER,HOST,PRIV)\n\t);"] [2024/05/06 16:29:10.289 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 24, tp general"] [job="ID:53, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:52, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:10.283 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.292 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=25] [neededSchemaVersion=26] ["start time"=281.582µs] [phyTblIDs="[52]"] [actionTypes="[8]"] [2024/05/06 16:29:10.325 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:10.325 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=53] [version=26] [2024/05/06 16:29:10.325 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=26] ["take time"=33.592164ms] [job="ID:53, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:52, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.283 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.332 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 24, tp general"] [job="ID:53, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:52, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:10.283 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.335 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=53] [2024/05/06 16:29:10.335 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:10.336 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=26] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.capture_plan_baselines_blacklist (\n\t\tid bigint(64) auto_increment,\n\t\tfilter_type varchar(32) NOT NULL COMMENT \"type of the filter, only db, table and frequency supported now\",\n\t\tfilter_value varchar(32) NOT NULL,\n\t\tkey idx(filter_type),\n\t\tprimary key(id)\n\t);"] [user=] [2024/05/06 16:29:10.339 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:55, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:54, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.337 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:10.339 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:55, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:54, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.337 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.capture_plan_baselines_blacklist (\n\t\tid bigint(64) auto_increment,\n\t\tfilter_type varchar(32) NOT NULL COMMENT \"type of the filter, only db, table and frequency supported now\",\n\t\tfilter_value varchar(32) NOT NULL,\n\t\tkey idx(filter_type),\n\t\tprimary key(id)\n\t);"] [2024/05/06 16:29:10.347 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 24, tp general"] [job="ID:55, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:54, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:10.337 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.351 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=26] [neededSchemaVersion=27] ["start time"=277.706µs] [phyTblIDs="[54]"] [actionTypes="[8]"] [2024/05/06 16:29:10.373 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:10.373 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=55] [version=27] [2024/05/06 16:29:10.375 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=27] ["take time"=24.70524ms] [job="ID:55, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:54, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.337 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.379 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 24, tp general"] [job="ID:55, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:54, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:10.337 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.382 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=55] [2024/05/06 16:29:10.382 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:10.382 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=27] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.column_stats_usage (\n\t\ttable_id BIGINT(64) NOT NULL,\n\t\tcolumn_id BIGINT(64) NOT NULL,\n\t\tlast_used_at TIMESTAMP,\n\t\tlast_analyzed_at TIMESTAMP,\n\t\tPRIMARY KEY (table_id, column_id) CLUSTERED\n\t);"] [user=] [2024/05/06 16:29:10.384 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:57, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:56, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.383 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:10.384 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:57, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:56, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.383 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.column_stats_usage (\n\t\ttable_id BIGINT(64) NOT NULL,\n\t\tcolumn_id BIGINT(64) NOT NULL,\n\t\tlast_used_at TIMESTAMP,\n\t\tlast_analyzed_at TIMESTAMP,\n\t\tPRIMARY KEY (table_id, column_id) CLUSTERED\n\t);"] [2024/05/06 16:29:10.389 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 24, tp general"] [job="ID:57, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:56, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:10.383 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.392 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=27] [neededSchemaVersion=28] ["start time"=167.862µs] [phyTblIDs="[56]"] [actionTypes="[8]"] [2024/05/06 16:29:10.424 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:10.424 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=57] [version=28] [2024/05/06 16:29:10.426 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=28] ["take time"=34.723309ms] [job="ID:57, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:56, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.383 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.433 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 24, tp general"] [job="ID:57, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:56, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:10.383 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.436 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=57] [2024/05/06 16:29:10.436 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:10.437 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=28] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.table_cache_meta (\n\t\ttid bigint(11) NOT NULL DEFAULT 0,\n\t\tlock_type enum('NONE','READ', 'INTEND', 'WRITE') NOT NULL DEFAULT 'NONE',\n\t\tlease bigint(20) NOT NULL DEFAULT 0,\n\t\toldReadLease bigint(20) NOT NULL DEFAULT 0,\n\t\tPRIMARY KEY (tid)\n\t);"] [user=] [2024/05/06 16:29:10.439 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:59, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:58, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.438 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:10.439 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:59, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:58, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.438 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.table_cache_meta (\n\t\ttid bigint(11) NOT NULL DEFAULT 0,\n\t\tlock_type enum('NONE','READ', 'INTEND', 'WRITE') NOT NULL DEFAULT 'NONE',\n\t\tlease bigint(20) NOT NULL DEFAULT 0,\n\t\toldReadLease bigint(20) NOT NULL DEFAULT 0,\n\t\tPRIMARY KEY (tid)\n\t);"] [2024/05/06 16:29:10.447 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 24, tp general"] [job="ID:59, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:58, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:10.438 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.449 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=28] [neededSchemaVersion=29] ["start time"=173.311µs] [phyTblIDs="[58]"] [actionTypes="[8]"] [2024/05/06 16:29:10.473 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:10.473 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=59] [version=29] [2024/05/06 16:29:10.475 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=29] ["take time"=26.251128ms] [job="ID:59, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:58, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.438 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.479 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 24, tp general"] [job="ID:59, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:58, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:10.438 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.481 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=59] [2024/05/06 16:29:10.481 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:10.482 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=29] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.analyze_options (\n\t\ttable_id BIGINT(64) NOT NULL,\n\t\tsample_num BIGINT(64) NOT NULL DEFAULT 0,\n\t\tsample_rate DOUBLE NOT NULL DEFAULT -1,\n\t\tbuckets BIGINT(64) NOT NULL DEFAULT 0,\n\t\ttopn BIGINT(64) NOT NULL DEFAULT -1,\n\t\tcolumn_choice enum('DEFAULT','ALL','PREDICATE','LIST') NOT NULL DEFAULT 'DEFAULT',\n\t\tcolumn_ids TEXT(19372),\n\t\tPRIMARY KEY (table_id) CLUSTERED\n\t);"] [user=] [2024/05/06 16:29:10.482 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(19372) to MEDIUMBLOB"] [2024/05/06 16:29:10.484 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:61, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:60, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.483 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:10.484 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:61, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:60, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.483 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.analyze_options (\n\t\ttable_id BIGINT(64) NOT NULL,\n\t\tsample_num BIGINT(64) NOT NULL DEFAULT 0,\n\t\tsample_rate DOUBLE NOT NULL DEFAULT -1,\n\t\tbuckets BIGINT(64) NOT NULL DEFAULT 0,\n\t\ttopn BIGINT(64) NOT NULL DEFAULT -1,\n\t\tcolumn_choice enum('DEFAULT','ALL','PREDICATE','LIST') NOT NULL DEFAULT 'DEFAULT',\n\t\tcolumn_ids TEXT(19372),\n\t\tPRIMARY KEY (table_id) CLUSTERED\n\t);"] [2024/05/06 16:29:10.490 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 24, tp general"] [job="ID:61, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:60, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:10.483 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.494 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=29] [neededSchemaVersion=30] ["start time"=297.77µs] [phyTblIDs="[60]"] [actionTypes="[8]"] [2024/05/06 16:29:10.526 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:10.526 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=61] [version=30] [2024/05/06 16:29:10.528 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=30] ["take time"=34.424036ms] [job="ID:61, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:60, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.483 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.536 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 24, tp general"] [job="ID:61, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:60, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:10.483 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.541 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=61] [2024/05/06 16:29:10.541 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:10.542 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=30] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.stats_history (\n\t\ttable_id bigint(64) NOT NULL,\n\t\tstats_data longblob NOT NULL,\n\t\tseq_no bigint(64) NOT NULL comment 'sequence number of the gzipped data slice',\n\t\tversion bigint(64) NOT NULL comment 'stats version which corresponding to stats:version in EXPLAIN',\n\t\tcreate_time datetime(6) NOT NULL,\n\t\tUNIQUE KEY table_version_seq (table_id, version, seq_no),\n\t\tKEY table_create_time (table_id, create_time, seq_no)\n\t);"] [user=] [2024/05/06 16:29:10.545 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:63, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:62, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.544 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:10.545 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:63, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:62, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.544 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.stats_history (\n\t\ttable_id bigint(64) NOT NULL,\n\t\tstats_data longblob NOT NULL,\n\t\tseq_no bigint(64) NOT NULL comment 'sequence number of the gzipped data slice',\n\t\tversion bigint(64) NOT NULL comment 'stats version which corresponding to stats:version in EXPLAIN',\n\t\tcreate_time datetime(6) NOT NULL,\n\t\tUNIQUE KEY table_version_seq (table_id, version, seq_no),\n\t\tKEY table_create_time (table_id, create_time, seq_no)\n\t);"] [2024/05/06 16:29:10.555 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 24, tp general"] [job="ID:63, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:62, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:10.544 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.559 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=30] [neededSchemaVersion=31] ["start time"=365.245µs] [phyTblIDs="[62]"] [actionTypes="[8]"] [2024/05/06 16:29:10.573 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:10.573 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=63] [version=31] [2024/05/06 16:29:10.575 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=31] ["take time"=17.008545ms] [job="ID:63, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:62, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.544 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.580 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 24, tp general"] [job="ID:63, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:62, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:10.544 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.583 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=63] [2024/05/06 16:29:10.583 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:10.583 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=31] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.stats_meta_history (\n\t\ttable_id bigint(64) NOT NULL,\n\t\tmodify_count bigint(64) NOT NULL,\n\t\tcount bigint(64) NOT NULL,\n\t\tversion bigint(64) NOT NULL comment 'stats version which corresponding to stats:version in EXPLAIN',\n\t\tcreate_time datetime(6) NOT NULL,\n\t\tUNIQUE KEY table_version (table_id, version),\n\t\tKEY table_create_time (table_id, create_time)\n\t);"] [user=] [2024/05/06 16:29:10.586 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:65, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:64, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.585 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:10.586 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:65, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:64, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.585 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.stats_meta_history (\n\t\ttable_id bigint(64) NOT NULL,\n\t\tmodify_count bigint(64) NOT NULL,\n\t\tcount bigint(64) NOT NULL,\n\t\tversion bigint(64) NOT NULL comment 'stats version which corresponding to stats:version in EXPLAIN',\n\t\tcreate_time datetime(6) NOT NULL,\n\t\tUNIQUE KEY table_version (table_id, version),\n\t\tKEY table_create_time (table_id, create_time)\n\t);"] [2024/05/06 16:29:10.593 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 24, tp general"] [job="ID:65, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:64, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:10.585 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.597 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=31] [neededSchemaVersion=32] ["start time"=305.514µs] [phyTblIDs="[64]"] [actionTypes="[8]"] [2024/05/06 16:29:10.624 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:10.624 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=65] [version=32] [2024/05/06 16:29:10.627 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=32] ["take time"=30.598436ms] [job="ID:65, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:64, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.585 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.637 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 24, tp general"] [job="ID:65, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:64, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:10.585 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.642 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=65] [2024/05/06 16:29:10.642 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:10.643 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=32] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.analyze_jobs (\n\t\tid BIGINT(64) UNSIGNED NOT NULL AUTO_INCREMENT,\n\t\tupdate_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n\t\ttable_schema CHAR(64) NOT NULL DEFAULT '',\n\t\ttable_name CHAR(64) NOT NULL DEFAULT '',\n\t\tpartition_name CHAR(64) NOT NULL DEFAULT '',\n\t\tjob_info TEXT NOT NULL,\n\t\tprocessed_rows BIGINT(64) UNSIGNED NOT NULL DEFAULT 0,\n\t\tstart_time TIMESTAMP,\n\t\tend_time TIMESTAMP,\n\t\tstate ENUM('pending', 'running', 'finished', 'failed') NOT NULL,\n\t\tfail_reason TEXT,\n\t\tinstance VARCHAR(512) NOT NULL comment 'address of the TiDB instance executing the analyze job',\n\t\tprocess_id BIGINT(64) UNSIGNED comment 'ID of the process executing the analyze job',\n\t\tPRIMARY KEY (id),\n\t\tKEY (update_time)\n\t);"] [user=] [2024/05/06 16:29:10.646 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:67, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:66, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.645 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:10.647 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:67, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:66, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.645 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.analyze_jobs (\n\t\tid BIGINT(64) UNSIGNED NOT NULL AUTO_INCREMENT,\n\t\tupdate_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n\t\ttable_schema CHAR(64) NOT NULL DEFAULT '',\n\t\ttable_name CHAR(64) NOT NULL DEFAULT '',\n\t\tpartition_name CHAR(64) NOT NULL DEFAULT '',\n\t\tjob_info TEXT NOT NULL,\n\t\tprocessed_rows BIGINT(64) UNSIGNED NOT NULL DEFAULT 0,\n\t\tstart_time TIMESTAMP,\n\t\tend_time TIMESTAMP,\n\t\tstate ENUM('pending', 'running', 'finished', 'failed') NOT NULL,\n\t\tfail_reason TEXT,\n\t\tinstance VARCHAR(512) NOT NULL comment 'address of the TiDB instance executing the analyze job',\n\t\tprocess_id BIGINT(64) UNSIGNED comment 'ID of the process executing the analyze job',\n\t\tPRIMARY KEY (id),\n\t\tKEY (update_time)\n\t);"] [2024/05/06 16:29:10.654 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 24, tp general"] [job="ID:67, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:66, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:10.645 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.659 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=32] [neededSchemaVersion=33] ["start time"=399.541µs] [phyTblIDs="[66]"] [actionTypes="[8]"] [2024/05/06 16:29:10.673 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:10.673 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=67] [version=33] [2024/05/06 16:29:10.675 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=33] ["take time"=16.323591ms] [job="ID:67, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:66, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.645 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.679 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 24, tp general"] [job="ID:67, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:66, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:10.645 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.681 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=67] [2024/05/06 16:29:10.681 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:10.682 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=33] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.advisory_locks (\n\t\tlock_name VARCHAR(64) NOT NULL PRIMARY KEY\n\t);"] [user=] [2024/05/06 16:29:10.684 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:69, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:68, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.683 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:10.684 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:69, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:68, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.683 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.advisory_locks (\n\t\tlock_name VARCHAR(64) NOT NULL PRIMARY KEY\n\t);"] [2024/05/06 16:29:10.689 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 24, tp general"] [job="ID:69, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:68, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:10.683 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.691 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=33] [neededSchemaVersion=34] ["start time"=161.864µs] [phyTblIDs="[68]"] [actionTypes="[8]"] [2024/05/06 16:29:10.723 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:10.723 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=69] [version=34] [2024/05/06 16:29:10.724 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=34] ["take time"=32.80286ms] [job="ID:69, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:68, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.683 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.730 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 24, tp general"] [job="ID:69, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:68, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:10.683 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.734 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=69] [2024/05/06 16:29:10.734 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:10.738 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:71, Type:create view, State:queueing, SchemaState:none, SchemaID:1, TableID:70, RowCount:0, ArgLen:3, start time: 2024-05-06 16:29:10.736 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:10.739 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:71, Type:create view, State:queueing, SchemaState:none, SchemaID:1, TableID:70, RowCount:0, ArgLen:3, start time: 2024-05-06 16:29:10.736 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE OR REPLACE VIEW mysql.tidb_mdl_view as (\n\tselect JOB_ID, DB_NAME, TABLE_NAME, QUERY, SESSION_ID, TxnStart, TIDB_DECODE_SQL_DIGESTS(ALL_SQL_DIGESTS, 4096) AS SQL_DIGESTS from information_schema.ddl_jobs, information_schema.CLUSTER_TIDB_TRX, information_schema.CLUSTER_PROCESSLIST where ddl_jobs.STATE = 'running' and find_in_set(ddl_jobs.table_id, CLUSTER_TIDB_TRX.RELATED_TABLE_IDS) and CLUSTER_TIDB_TRX.SESSION_ID=CLUSTER_PROCESSLIST.ID\n\t);"] [2024/05/06 16:29:10.744 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 24, tp general"] [job="ID:71, Type:create view, State:queueing, SchemaState:none, SchemaID:1, TableID:70, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:10.736 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.750 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=34] [neededSchemaVersion=35] ["start time"=317.832µs] [phyTblIDs="[70]"] [actionTypes="[2097152]"] [2024/05/06 16:29:10.773 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:10.773 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=71] [version=35] [2024/05/06 16:29:10.774 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=35] ["take time"=24.744204ms] [job="ID:71, Type:create view, State:done, SchemaState:public, SchemaID:1, TableID:70, RowCount:0, ArgLen:3, start time: 2024-05-06 16:29:10.736 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.777 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 24, tp general"] [job="ID:71, Type:create view, State:synced, SchemaState:public, SchemaID:1, TableID:70, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:10.736 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.779 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=71] [2024/05/06 16:29:10.780 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:10.780 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=35] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.plan_replayer_status (\n\t\tsql_digest VARCHAR(128),\n\t\tplan_digest VARCHAR(128),\n\t\torigin_sql TEXT,\n\t\ttoken VARCHAR(128),\n\t\tupdate_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n\t\tfail_reason TEXT,\n\t\tinstance VARCHAR(512) NOT NULL comment 'address of the TiDB instance executing the plan replayer job');"] [user=] [2024/05/06 16:29:10.782 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:73, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:72, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.781 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:10.782 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:73, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:72, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.781 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.plan_replayer_status (\n\t\tsql_digest VARCHAR(128),\n\t\tplan_digest VARCHAR(128),\n\t\torigin_sql TEXT,\n\t\ttoken VARCHAR(128),\n\t\tupdate_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n\t\tfail_reason TEXT,\n\t\tinstance VARCHAR(512) NOT NULL comment 'address of the TiDB instance executing the plan replayer job');"] [2024/05/06 16:29:10.786 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 24, tp general"] [job="ID:73, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:72, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:10.781 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.789 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=35] [neededSchemaVersion=36] ["start time"=200.41µs] [phyTblIDs="[72]"] [actionTypes="[8]"] [2024/05/06 16:29:10.823 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:10.823 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=73] [version=36] [2024/05/06 16:29:10.826 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=36] ["take time"=37.329543ms] [job="ID:73, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:72, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.781 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.831 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 24, tp general"] [job="ID:73, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:72, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:10.781 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.834 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=73] [2024/05/06 16:29:10.834 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:10.835 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=36] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.plan_replayer_task (\n\t\tsql_digest VARCHAR(128) NOT NULL,\n\t\tplan_digest VARCHAR(128) NOT NULL,\n\t\tupdate_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n\t\tPRIMARY KEY (sql_digest,plan_digest));"] [user=] [2024/05/06 16:29:10.840 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:75, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:74, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.836 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:10.840 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:75, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:74, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.836 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.plan_replayer_task (\n\t\tsql_digest VARCHAR(128) NOT NULL,\n\t\tplan_digest VARCHAR(128) NOT NULL,\n\t\tupdate_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n\t\tPRIMARY KEY (sql_digest,plan_digest));"] [2024/05/06 16:29:10.844 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 24, tp general"] [job="ID:75, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:74, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:10.836 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.847 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=36] [neededSchemaVersion=37] ["start time"=324.84µs] [phyTblIDs="[74]"] [actionTypes="[8]"] [2024/05/06 16:29:10.872 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:10.872 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=75] [version=37] [2024/05/06 16:29:10.872 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=37] ["take time"=26.010711ms] [job="ID:75, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:74, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.836 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.876 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 24, tp general"] [job="ID:75, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:74, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:10.836 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.878 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=75] [2024/05/06 16:29:10.878 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:10.878 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=37] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.stats_table_locked(\n\t\ttable_id bigint(64) NOT NULL,\n\t\tmodify_count bigint(64) NOT NULL DEFAULT 0,\n\t\tcount bigint(64) NOT NULL DEFAULT 0,\n\t\tversion bigint(64) UNSIGNED NOT NULL DEFAULT 0,\n\t\tPRIMARY KEY (table_id));"] [user=] [2024/05/06 16:29:10.880 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:77, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:76, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.879 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:10.880 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:77, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:76, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.879 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.stats_table_locked(\n\t\ttable_id bigint(64) NOT NULL,\n\t\tmodify_count bigint(64) NOT NULL DEFAULT 0,\n\t\tcount bigint(64) NOT NULL DEFAULT 0,\n\t\tversion bigint(64) UNSIGNED NOT NULL DEFAULT 0,\n\t\tPRIMARY KEY (table_id));"] [2024/05/06 16:29:10.884 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 24, tp general"] [job="ID:77, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:76, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:10.879 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.886 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=37] [neededSchemaVersion=38] ["start time"=151.896µs] [phyTblIDs="[76]"] [actionTypes="[8]"] [2024/05/06 16:29:10.923 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:10.923 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=77] [version=38] [2024/05/06 16:29:10.925 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=38] ["take time"=38.76898ms] [job="ID:77, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:76, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.879 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.932 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 24, tp general"] [job="ID:77, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:76, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:10.879 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.936 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=77] [2024/05/06 16:29:10.936 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:10.937 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=38] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.tidb_ttl_table_status (\n\t\ttable_id bigint(64) PRIMARY KEY,\n parent_table_id bigint(64),\n table_statistics text DEFAULT NULL,\n\t\tlast_job_id varchar(64) DEFAULT NULL,\n\t\tlast_job_start_time timestamp NULL DEFAULT NULL,\n\t\tlast_job_finish_time timestamp NULL DEFAULT NULL,\n\t\tlast_job_ttl_expire timestamp NULL DEFAULT NULL,\n last_job_summary text DEFAULT NULL,\n\t\tcurrent_job_id varchar(64) DEFAULT NULL,\n\t\tcurrent_job_owner_id varchar(64) DEFAULT NULL,\n\t\tcurrent_job_owner_addr varchar(256) DEFAULT NULL,\n\t\tcurrent_job_owner_hb_time timestamp,\n\t\tcurrent_job_start_time timestamp NULL DEFAULT NULL,\n\t\tcurrent_job_ttl_expire timestamp NULL DEFAULT NULL,\n\t\tcurrent_job_state text DEFAULT NULL,\n\t\tcurrent_job_status varchar(64) DEFAULT NULL,\n \t\tcurrent_job_status_update_time timestamp NULL DEFAULT NULL);"] [user=] [2024/05/06 16:29:10.940 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:79, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:78, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.938 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:10.940 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:79, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:78, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.938 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.tidb_ttl_table_status (\n\t\ttable_id bigint(64) PRIMARY KEY,\n parent_table_id bigint(64),\n table_statistics text DEFAULT NULL,\n\t\tlast_job_id varchar(64) DEFAULT NULL,\n\t\tlast_job_start_time timestamp NULL DEFAULT NULL,\n\t\tlast_job_finish_time timestamp NULL DEFAULT NULL,\n\t\tlast_job_ttl_expire timestamp NULL DEFAULT NULL,\n last_job_summary text DEFAULT NULL,\n\t\tcurrent_job_id varchar(64) DEFAULT NULL,\n\t\tcurrent_job_owner_id varchar(64) DEFAULT NULL,\n\t\tcurrent_job_owner_addr varchar(256) DEFAULT NULL,\n\t\tcurrent_job_owner_hb_time timestamp,\n\t\tcurrent_job_start_time timestamp NULL DEFAULT NULL,\n\t\tcurrent_job_ttl_expire timestamp NULL DEFAULT NULL,\n\t\tcurrent_job_state text DEFAULT NULL,\n\t\tcurrent_job_status varchar(64) DEFAULT NULL,\n \t\tcurrent_job_status_update_time timestamp NULL DEFAULT NULL);"] [2024/05/06 16:29:10.945 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 24, tp general"] [job="ID:79, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:78, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:10.938 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.951 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=38] [neededSchemaVersion=39] ["start time"=436.231µs] [phyTblIDs="[78]"] [actionTypes="[8]"] [2024/05/06 16:29:10.973 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:10.973 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=79] [version=39] [2024/05/06 16:29:10.975 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=39] ["take time"=24.672436ms] [job="ID:79, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:78, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:10.938 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.978 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 24, tp general"] [job="ID:79, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:78, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:10.938 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:10.981 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=79] [2024/05/06 16:29:10.981 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:11.006 +08:00] [INFO] [bootstrap.go:529] ["bootstrap successful"] ["take time"=1.984521708s] [2024/05/06 16:29:11.007 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:29:11.007 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 33, tp add index"] ["take time"=1.379µs] [2024/05/06 16:29:11.007 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 34, tp add index"] ["take time"=1.337µs] [2024/05/06 16:29:11.007 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 25, tp add index"] ["take time"=760ns] [2024/05/06 16:29:11.007 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 26, tp add index"] ["take time"=1.135µs] [2024/05/06 16:29:11.007 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 27, tp add index"] ["take time"=866ns] [2024/05/06 16:29:11.007 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 28, tp add index"] ["take time"=870ns] [2024/05/06 16:29:11.007 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 29, tp add index"] ["take time"=768ns] [2024/05/06 16:29:11.007 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 30, tp add index"] ["take time"=537ns] [2024/05/06 16:29:11.007 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 31, tp add index"] ["take time"=944ns] [2024/05/06 16:29:11.007 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 32, tp add index"] ["take time"=833ns] [2024/05/06 16:29:11.007 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:29:11.007 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 24, tp general"] ["take time"=520ns] [2024/05/06 16:29:11.007 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 22, tp general"] ["take time"=381ns] [2024/05/06 16:29:11.007 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 23, tp add index"] ["take time"=225ns] [2024/05/06 16:29:11.007 +08:00] [INFO] [delete_range.go:148] ["[ddl] closing delRange"] [2024/05/06 16:29:11.007 +08:00] [INFO] [session_pool.go:94] ["[ddl] closing sessionPool"] [2024/05/06 16:29:11.007 +08:00] [INFO] [ddl.go:833] ["[ddl] DDL closed"] [ID=f50f6fe2-dd62-4c13-84ed-26ad812530db] ["take time"=564.036µs] [2024/05/06 16:29:11.007 +08:00] [INFO] [ddl.go:657] ["[ddl] stop DDL"] [ID=f50f6fe2-dd62-4c13-84ed-26ad812530db] [2024/05/06 16:29:11.007 +08:00] [INFO] [domain.go:1156] ["closestReplicaReadCheckLoop exited."] [2024/05/06 16:29:11.007 +08:00] [INFO] [domain.go:603] ["infoSyncerKeeper exited."] [2024/05/06 16:29:11.007 +08:00] [INFO] [domain.go:651] ["topologySyncerKeeper exited."] [2024/05/06 16:29:11.007 +08:00] [INFO] [domain.go:628] ["globalConfigSyncerKeeper exited."] [2024/05/06 16:29:11.007 +08:00] [INFO] [domain.go:574] ["topNSlowQueryLoop exited."] [2024/05/06 16:29:11.007 +08:00] [INFO] [domain.go:792] ["loadSchemaInLoop exited."] [2024/05/06 16:29:11.007 +08:00] [INFO] [domain.go:920] ["domain closed"] ["take time"=760.262µs] [2024/05/06 16:29:11.007 +08:00] [INFO] [tidb.go:77] ["new domain"] [store=744ec274-ed50-408a-9624-519043b191f5] ["ddl lease"=500ms] ["stats lease"=-1ns] ["index usage sync lease"=0s] [2024/05/06 16:29:11.014 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=39] ["start time"=6.22827ms] [2024/05/06 16:29:11.014 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:29:11.014 +08:00] [INFO] [ddl.go:719] ["[ddl] start DDL"] [ID=cd23a970-f714-4e13-8934-147c108b2c6a] [runWorker=true] [2024/05/06 16:29:11.015 +08:00] [INFO] [ddl.go:665] ["[ddl] start delRangeManager OK"] ["is a emulator"=true] [2024/05/06 16:29:11.015 +08:00] [INFO] [delete_range.go:158] ["[ddl] start delRange emulator"] [2024/05/06 16:29:11.015 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 35, tp general"] [2024/05/06 16:29:11.015 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 36, tp add index"] [2024/05/06 16:29:11.015 +08:00] [WARN] [env.go:52] ["[ddl-ingest] initialize environment failed"] ["storage limitation"="only support TiKV storage"] ["current storage"=unistore] ["lightning is initialized"=true] [2024/05/06 16:29:11.016 +08:00] [INFO] [env.go:108] ["[ddl-ingest] the lightning sorted dir"] ["data path:"=/tmp/tidb/tmp_ddl-4000] [2024/05/06 16:29:11.016 +08:00] [INFO] [env.go:75] ["[ddl-ingest] init global lightning backend environment finished"] ["memory limitation"=2147483648] ["sort path disk quota"=107374182400] ["max open file number"=1073741816] ["lightning is initialized"=true] [2024/05/06 16:29:11.016 +08:00] [WARN] [domain.go:1120] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 16:29:11.018 +08:00] [WARN] [sysvar_cache.go:50] ["sysvar cache is empty, triggering rebuild"] [2024/05/06 16:29:11.036 +08:00] [WARN] [misc.go:453] ["Automatic TLS Certificate creation is disabled"] [] [2024/05/06 16:29:11.036 +08:00] [INFO] [http_status.go:95] ["for status and metrics report"] ["listening on addr"=127.0.0.1:0] [2024/05/06 16:29:11.036 +08:00] [INFO] [server.go:275] ["server is running MySQL protocol"] [addr=127.0.0.1:0] [2024/05/06 16:29:11.038 +08:00] [ERROR] [http_status.go:473] ["new tikv store fail"] [error="invalid uri format, storage tikv is not registered"] [errorVerbose="invalid uri format, storage tikv is not registered\ngithub.com/pingcap/tidb/store.newStoreWithRetry\n\tstore/store.go:70\ngithub.com/pingcap/tidb/store.New\n\tstore/store.go:58\ngithub.com/pingcap/tidb/server.(*Server).startStatusServerAndRPCServer\n\tserver/http_status.go:471\ngithub.com/pingcap/tidb/server.(*Server).startHTTPServer\n\tserver/http_status.go:455\nruntime.goexit\n\tGOROOT/src/runtime/asm_amd64.s:1594"] [stack="github.com/pingcap/tidb/server.(*Server).startStatusServerAndRPCServer\n\tserver/http_status.go:473\ngithub.com/pingcap/tidb/server.(*Server).startHTTPServer\n\tserver/http_status.go:455"] [2024/05/06 16:29:11.050 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=405] [schemaVersion=39] [cur_db=test] [sql="create database tidb;"] [user=root@%] [2024/05/06 16:29:11.053 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:81, Type:create schema, State:queueing, SchemaState:none, SchemaID:80, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 16:29:11.052 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:11.053 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:81, Type:create schema, State:queueing, SchemaState:none, SchemaID:80, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 16:29:11.052 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="create database tidb;"] [2024/05/06 16:29:12.033 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 37, tp general"] [job="ID:81, Type:create schema, State:queueing, SchemaState:none, SchemaID:80, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:11.052 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:12.040 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=39] [neededSchemaVersion=40] ["start time"=72.729µs] [phyTblIDs="[]"] [actionTypes="[]"] [2024/05/06 16:29:12.066 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:12.066 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=81] [version=40] [2024/05/06 16:29:12.069 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=40] ["take time"=29.231069ms] [job="ID:81, Type:create schema, State:done, SchemaState:public, SchemaID:80, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 16:29:11.052 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:12.074 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 37, tp general"] [job="ID:81, Type:create schema, State:synced, SchemaState:public, SchemaID:80, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:11.052 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:12.077 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=81] [2024/05/06 16:29:12.077 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:12.077 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# User@Host: root[root] @ 127.0.0.1 [127.0.0.1]\n# Conn_ID: 405\n# Query_time: 1.026722944\n# Parse_time: 0.000021689\n# Compile_time: 0.000096356\n# Rewrite_time: 0.000031566\n# Optimize_time: 0\n# Wait_TS: 0.000013002\n# DB: test\n# Is_internal: false\n# Digest: 4dd37494c40b3dfecfa7835dbec3b1bc997d1a101b02e2a10c0626434154aef8\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0.000001701\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\nuse test;\ncreate database tidb;"] [2024/05/06 16:29:12.078 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=405] [schemaVersion=40] [cur_db=tidb] [sql="create table tidb.test (a int auto_increment primary key, b varchar(20));"] [user=root@%] [2024/05/06 16:29:12.080 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:83, Type:create table, State:queueing, SchemaState:none, SchemaID:80, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:12.079 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:12.080 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:83, Type:create table, State:queueing, SchemaState:none, SchemaID:80, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:12.079 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="create table tidb.test (a int auto_increment primary key, b varchar(20));"] [2024/05/06 16:29:12.085 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 37, tp general"] [job="ID:83, Type:create table, State:queueing, SchemaState:none, SchemaID:80, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:12.079 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:12.088 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=40] [neededSchemaVersion=41] ["start time"=177.138µs] [phyTblIDs="[82]"] [actionTypes="[8]"] [2024/05/06 16:29:12.117 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:12.117 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=83] [version=41] [2024/05/06 16:29:12.118 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=41] ["take time"=30.291076ms] [job="ID:83, Type:create table, State:done, SchemaState:public, SchemaID:80, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:12.079 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:12.123 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 37, tp general"] [job="ID:83, Type:create table, State:synced, SchemaState:public, SchemaID:80, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:12.079 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:12.126 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=83] [2024/05/06 16:29:12.126 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:12.131 +08:00] [WARN] [2pc.go:1900] ["schemaLeaseChecker is not set for this transaction"] [sessionID=405] [startTS=449572805574918146] [checkTS=449572805576228864] [2024/05/06 16:29:12.136 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=405] [schemaVersion=41] [cur_db=tidb] [sql="alter table tidb.test add index idx1 (a, b);"] [user=root@%] [2024/05/06 16:29:12.138 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:84, Type:add index, State:queueing, SchemaState:none, SchemaID:80, TableID:82, RowCount:0, ArgLen:6, start time: 2024-05-06 16:29:12.137 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0, UniqueWarnings:0; "] [table=true] [2024/05/06 16:29:12.138 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:84, Type:add index, State:queueing, SchemaState:none, SchemaID:80, TableID:82, RowCount:0, ArgLen:6, start time: 2024-05-06 16:29:12.137 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0, UniqueWarnings:0"] [query="alter table tidb.test add index idx1 (a, b);"] [2024/05/06 16:29:12.152 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 45, tp add index"] [job="ID:84, Type:add index, State:queueing, SchemaState:none, SchemaID:80, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:12.137 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0, UniqueWarnings:0"] [2024/05/06 16:29:12.153 +08:00] [INFO] [index.go:605] ["[ddl] run add index job"] [job="ID:84, Type:add index, State:running, SchemaState:none, SchemaID:80, TableID:82, RowCount:0, ArgLen:6, start time: 2024-05-06 16:29:12.137 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0, UniqueWarnings:0"] [indexInfo="{\"id\":1,\"idx_name\":{\"O\":\"idx1\",\"L\":\"idx1\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"a\",\"L\":\"a\"},\"offset\":0,\"length\":-1},{\"name\":{\"O\":\"b\",\"L\":\"b\"},\"offset\":1,\"length\":-1}],\"state\":0,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":false,\"is_primary\":false,\"is_invisible\":false,\"is_global\":false}"] [2024/05/06 16:29:12.156 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=41] [neededSchemaVersion=42] ["start time"=144.861µs] [phyTblIDs="[82]"] [actionTypes="[128]"] [2024/05/06 16:29:12.167 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:12.167 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=84] [version=42] [2024/05/06 16:29:12.167 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=42] ["take time"=12.042904ms] [job="ID:84, Type:add index, State:running, SchemaState:delete only, SchemaID:80, TableID:82, RowCount:0, ArgLen:6, start time: 2024-05-06 16:29:12.137 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0, UniqueWarnings:0"] [2024/05/06 16:29:12.173 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 46, tp add index"] [job="ID:84, Type:add index, State:running, SchemaState:delete only, SchemaID:80, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:12.137 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0, UniqueWarnings:0"] [2024/05/06 16:29:12.176 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=42] [neededSchemaVersion=43] ["start time"=202.295µs] [phyTblIDs="[82]"] [actionTypes="[128]"] [2024/05/06 16:29:12.217 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:12.217 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=84] [version=43] [2024/05/06 16:29:12.218 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=43] ["take time"=42.974301ms] [job="ID:84, Type:add index, State:running, SchemaState:write only, SchemaID:80, TableID:82, RowCount:0, ArgLen:6, start time: 2024-05-06 16:29:12.137 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0, UniqueWarnings:0"] [2024/05/06 16:29:12.226 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 47, tp add index"] [job="ID:84, Type:add index, State:running, SchemaState:write only, SchemaID:80, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:12.137 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0, UniqueWarnings:0"] [2024/05/06 16:29:12.229 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=43] [neededSchemaVersion=44] ["start time"=238.412µs] [phyTblIDs="[82]"] [actionTypes="[128]"] [2024/05/06 16:29:12.266 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:12.266 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=84] [version=44] [2024/05/06 16:29:12.267 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=44] ["take time"=38.886417ms] [job="ID:84, Type:add index, State:running, SchemaState:write reorganization, SchemaID:80, TableID:82, RowCount:0, ArgLen:6, start time: 2024-05-06 16:29:12.137 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0, UniqueWarnings:0"] [2024/05/06 16:29:12.272 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 38, tp add index"] [job="ID:84, Type:add index, State:running, SchemaState:write reorganization, SchemaID:80, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:12.137 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0, UniqueWarnings:0"] [2024/05/06 16:29:12.272 +08:00] [INFO] [index.go:800] ["[ddl] index backfill state running"] ["job ID"=84] [table=test] ["ingest mode"=true] [index=idx1] [2024/05/06 16:29:12.272 +08:00] [INFO] [config.go:97] ["[ddl-ingest] initial memory setting for lightning"] ["local writer memory cache size"=134217728] ["engine memory cache size"=536870912] ["range concurrency"=16] [2024/05/06 16:29:12.272 +08:00] [INFO] [config.go:112] ["[ddl-ingest] change memory setting for lightning"] ["local writer memory cache size"=67108864] ["engine memory cache size"=268435456] ["range concurrency"=16] [2024/05/06 16:29:12.272 +08:00] [ERROR] [backend_mgr.go:66] ["[ddl-ingest] build lightning backend failed, will use kernel index reorg method to backfill the index"] ["job ID"=84] [error="[Lightning:PD:ErrUpdatePD]pd address (/tmp/tidb) not available, error is Get \"http:///tmp/tidb/pd/api/v1/config/cluster-version\": http: no Host in request URL, please check network"] [errorVerbose="[Lightning:PD:ErrUpdatePD]pd address (/tmp/tidb) not available, error is Get \"http:///tmp/tidb/pd/api/v1/config/cluster-version\": http: no Host in request URL, please check network\ngithub.com/pingcap/tidb/br/pkg/pdutil.NewPdController\n\tbr/pkg/pdutil/pd.go:289\ngithub.com/pingcap/tidb/br/pkg/lightning/backend/local.NewLocalBackend\n\tbr/pkg/lightning/backend/local/local.go:431\ngithub.com/pingcap/tidb/ddl/ingest.createLocalBackend\n\tddl/ingest/backend_mgr.go:91\ngithub.com/pingcap/tidb/ddl/ingest.(*backendCtxManager).Register\n\tddl/ingest/backend_mgr.go:64\ngithub.com/pingcap/tidb/ddl.doReorgWorkForCreateIndex\n\tddl/index.go:816\ngithub.com/pingcap/tidb/ddl.(*worker).onCreateIndex\n\tddl/index.go:661\ngithub.com/pingcap/tidb/ddl.(*worker).runDDLJob\n\tddl/ddl_worker.go:1244\ngithub.com/pingcap/tidb/ddl.(*worker).HandleDDLJobTable\n\tddl/ddl_worker.go:856\ngithub.com/pingcap/tidb/ddl.(*ddl).delivery2worker.func1\n\tddl/job_table.go:252\ngithub.com/pingcap/tidb/util.(*WaitGroupWrapper).Run.func1\n\tutil/wait_group_wrapper.go:33\nruntime.goexit\n\tGOROOT/src/runtime/asm_amd64.s:1594"] [stack="github.com/pingcap/tidb/ddl/ingest.(*backendCtxManager).Register\n\tddl/ingest/backend_mgr.go:66\ngithub.com/pingcap/tidb/ddl.doReorgWorkForCreateIndex\n\tddl/index.go:816\ngithub.com/pingcap/tidb/ddl.(*worker).onCreateIndex\n\tddl/index.go:661\ngithub.com/pingcap/tidb/ddl.(*worker).runDDLJob\n\tddl/ddl_worker.go:1244\ngithub.com/pingcap/tidb/ddl.(*worker).HandleDDLJobTable\n\tddl/ddl_worker.go:856\ngithub.com/pingcap/tidb/ddl.(*ddl).delivery2worker.func1\n\tddl/job_table.go:252\ngithub.com/pingcap/tidb/util.(*WaitGroupWrapper).Run.func1\n\tutil/wait_group_wrapper.go:33"] [2024/05/06 16:29:12.273 +08:00] [INFO] [index.go:767] ["[ddl] fallback to txn-merge backfill process"] [error="[Lightning:PD:ErrUpdatePD]pd address (/tmp/tidb) not available, error is Get \"http:///tmp/tidb/pd/api/v1/config/cluster-version\": http: no Host in request URL, please check network"] [errorVerbose="[Lightning:PD:ErrUpdatePD]pd address (/tmp/tidb) not available, error is Get \"http:///tmp/tidb/pd/api/v1/config/cluster-version\": http: no Host in request URL, please check network\ngithub.com/pingcap/tidb/br/pkg/pdutil.NewPdController\n\tbr/pkg/pdutil/pd.go:289\ngithub.com/pingcap/tidb/br/pkg/lightning/backend/local.NewLocalBackend\n\tbr/pkg/lightning/backend/local/local.go:431\ngithub.com/pingcap/tidb/ddl/ingest.createLocalBackend\n\tddl/ingest/backend_mgr.go:91\ngithub.com/pingcap/tidb/ddl/ingest.(*backendCtxManager).Register\n\tddl/ingest/backend_mgr.go:64\ngithub.com/pingcap/tidb/ddl.doReorgWorkForCreateIndex\n\tddl/index.go:816\ngithub.com/pingcap/tidb/ddl.(*worker).onCreateIndex\n\tddl/index.go:661\ngithub.com/pingcap/tidb/ddl.(*worker).runDDLJob\n\tddl/ddl_worker.go:1244\ngithub.com/pingcap/tidb/ddl.(*worker).HandleDDLJobTable\n\tddl/ddl_worker.go:856\ngithub.com/pingcap/tidb/ddl.(*ddl).delivery2worker.func1\n\tddl/job_table.go:252\ngithub.com/pingcap/tidb/util.(*WaitGroupWrapper).Run.func1\n\tutil/wait_group_wrapper.go:33\nruntime.goexit\n\tGOROOT/src/runtime/asm_amd64.s:1594"] [2024/05/06 16:29:12.273 +08:00] [INFO] [ddl_worker.go:1369] ["[ddl] schema version doesn't change"] [2024/05/06 16:29:12.278 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 39, tp add index"] [job="ID:84, Type:add index, State:running, SchemaState:write reorganization, SchemaID:80, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:12.137 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0, UniqueWarnings:0"] [2024/05/06 16:29:12.278 +08:00] [INFO] [index.go:800] ["[ddl] index backfill state running"] ["job ID"=84] [table=test] ["ingest mode"=false] [index=idx1] [2024/05/06 16:29:12.278 +08:00] [INFO] [reorg.go:621] ["[ddl] job get table range"] [jobID=84] [physicalTableID=82] [startKey=7480000000000000525f728000000000000001] [endKey=7480000000000000525f728000000000000004] [2024/05/06 16:29:12.278 +08:00] [INFO] [txn.go:55] ["Try to create a new txn inside a transaction auto commit"] [schemaVersion=44] [txnStartTS=449572805614764033] [txnScope=global] [2024/05/06 16:29:12.281 +08:00] [INFO] [ddl_worker.go:1369] ["[ddl] schema version doesn't change"] [2024/05/06 16:29:12.285 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 40, tp add index"] [job="ID:84, Type:add index, State:running, SchemaState:write reorganization, SchemaID:80, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:12.137 +0800 CST, Err:, ErrCount:0, SnapshotVersion:449572805614764034, UniqueWarnings:0"] [2024/05/06 16:29:12.285 +08:00] [INFO] [index.go:800] ["[ddl] index backfill state running"] ["job ID"=84] [table=test] ["ingest mode"=false] [index=idx1] [2024/05/06 16:29:12.287 +08:00] [INFO] [index.go:1682] ["[ddl] start to add table index"] [job="ID:84, Type:add index, State:running, SchemaState:write reorganization, SchemaID:80, TableID:82, RowCount:0, ArgLen:6, start time: 2024-05-06 16:29:12.137 +0800 CST, Err:, ErrCount:0, SnapshotVersion:449572805614764034, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:1,StartKey:7480000000000000525f728000000000000001,EndKey:7480000000000000525f728000000000000004,First:false,PhysicalTableID:82,Ingest mode:false"] [2024/05/06 16:29:12.287 +08:00] [INFO] [backfilling.go:364] ["[ddl] split table range from PD"] [physicalTableID=82] ["start key"=7480000000000000525f728000000000000001] ["end key"=7480000000000000525f728000000000000004] [2024/05/06 16:29:12.287 +08:00] [INFO] [backfilling.go:861] ["[ddl] start backfill workers to reorg record"] [type="add index"] [workerCnt=1] [regionCnt=1] [startKey=7480000000000000525f728000000000000001] [endKey=7480000000000000525f728000000000000004] [2024/05/06 16:29:12.287 +08:00] [INFO] [backfilling.go:308] ["[ddl] backfill worker start"] [type="add index"] [workerID=0] [2024/05/06 16:29:12.288 +08:00] [INFO] [backfilling.go:512] ["[ddl] send range task to workers, change end key"] ["end key"=7480000000000000525f728000000000000004] ["current end key"=7480000000000000525f728000000000000004] [2024/05/06 16:29:12.288 +08:00] [INFO] [backfilling.go:293] ["[ddl] backfill worker finish task"] [type="add index"] ["worker ID"=0] [task="taskID_0_physicalTableID_82_[7480000000000000525f728000000000000001,7480000000000000525f728000000000000004]"] ["added count"=4] ["scan count"=4] ["next key"=7480000000000000525f72800000000000000400] ["take time"=303.237µs] [2024/05/06 16:29:12.290 +08:00] [INFO] [backfilling.go:478] ["[ddl] backfill workers successfully processed batch"] ["element type"=_idx_] ["element ID"=1] ["total added count"=4] ["start key"=7480000000000000525f728000000000000001] ["next key"=7480000000000000525f72800000000000000400] ["batch added count"=4] ["take time"=693.165µs] [] [2024/05/06 16:29:12.290 +08:00] [INFO] [reorg.go:238] ["[ddl] run reorg job done"] ["handled rows"=4] [2024/05/06 16:29:12.290 +08:00] [INFO] [backfilling.go:323] ["[ddl] backfill worker exit"] [type="add index"] [workerID=0] [2024/05/06 16:29:12.291 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=44] [neededSchemaVersion=45] ["start time"=157.914µs] [phyTblIDs="[82]"] [actionTypes="[128]"] [2024/05/06 16:29:12.317 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:12.317 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=84] [version=45] [2024/05/06 16:29:12.318 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=45] ["take time"=26.796868ms] [job="ID:84, Type:add index, State:running, SchemaState:write reorganization, SchemaID:80, TableID:82, RowCount:4, ArgLen:6, start time: 2024-05-06 16:29:12.137 +0800 CST, Err:, ErrCount:0, SnapshotVersion:449572805614764034, UniqueWarnings:0"] [2024/05/06 16:29:12.324 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 41, tp add index"] [job="ID:84, Type:add index, State:running, SchemaState:write reorganization, SchemaID:80, TableID:82, RowCount:4, ArgLen:0, start time: 2024-05-06 16:29:12.137 +0800 CST, Err:, ErrCount:0, SnapshotVersion:449572805614764034, UniqueWarnings:0"] [2024/05/06 16:29:12.325 +08:00] [INFO] [index.go:862] ["[ddl] index backfill state ready to merge"] ["job ID"=84] [table=test] [index=idx1] [2024/05/06 16:29:12.327 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=45] [neededSchemaVersion=46] ["start time"=195.082µs] [phyTblIDs="[82]"] [actionTypes="[128]"] [2024/05/06 16:29:12.367 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:12.367 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=84] [version=46] [2024/05/06 16:29:12.369 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=46] ["take time"=42.784785ms] [job="ID:84, Type:add index, State:running, SchemaState:write reorganization, SchemaID:80, TableID:82, RowCount:4, ArgLen:6, start time: 2024-05-06 16:29:12.137 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0, UniqueWarnings:0"] [2024/05/06 16:29:12.398 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 42, tp add index"] [job="ID:84, Type:add index, State:running, SchemaState:write reorganization, SchemaID:80, TableID:82, RowCount:4, ArgLen:0, start time: 2024-05-06 16:29:12.137 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0, UniqueWarnings:0"] [2024/05/06 16:29:12.399 +08:00] [INFO] [reorg.go:621] ["[ddl] job get table range"] [jobID=84] [physicalTableID=82] [startKey=7480000000000000525f69ffff000000000001] [endKey=7480000000000000525f69ffff000000000001ff] [2024/05/06 16:29:12.400 +08:00] [INFO] [txn.go:55] ["Try to create a new txn inside a transaction auto commit"] [schemaVersion=46] [txnStartTS=449572805646483456] [txnScope=global] [2024/05/06 16:29:12.407 +08:00] [INFO] [ddl_worker.go:1369] ["[ddl] schema version doesn't change"] [2024/05/06 16:29:12.415 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 43, tp add index"] [job="ID:84, Type:add index, State:running, SchemaState:write reorganization, SchemaID:80, TableID:82, RowCount:4, ArgLen:0, start time: 2024-05-06 16:29:12.137 +0800 CST, Err:, ErrCount:0, SnapshotVersion:449572805646483457, UniqueWarnings:0"] [2024/05/06 16:29:12.427 +08:00] [INFO] [index.go:1679] ["[ddl] start to merge temp index"] [job="ID:84, Type:add index, State:running, SchemaState:write reorganization, SchemaID:80, TableID:82, RowCount:4, ArgLen:6, start time: 2024-05-06 16:29:12.137 +0800 CST, Err:, ErrCount:0, SnapshotVersion:449572805646483457, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:1,StartKey:7480000000000000525f69ffff000000000001,EndKey:7480000000000000525f69ffff000000000001ff,First:false,PhysicalTableID:82,Ingest mode:false"] [2024/05/06 16:29:12.427 +08:00] [INFO] [backfilling.go:364] ["[ddl] split table range from PD"] [physicalTableID=82] ["start key"=7480000000000000525f69ffff000000000001] ["end key"=7480000000000000525f69ffff000000000001ff] [2024/05/06 16:29:12.427 +08:00] [INFO] [backfilling.go:861] ["[ddl] start backfill workers to reorg record"] [type="merge temporary index"] [workerCnt=1] [regionCnt=1] [startKey=7480000000000000525f69ffff000000000001] [endKey=7480000000000000525f69ffff000000000001ff] [2024/05/06 16:29:12.428 +08:00] [INFO] [backfilling.go:512] ["[ddl] send range task to workers, change end key"] ["end key"=7480000000000000525f69ffff000000000001ff] ["current end key"=7480000000000000525f69ffff000000000001] [2024/05/06 16:29:12.428 +08:00] [INFO] [backfilling.go:308] ["[ddl] backfill worker start"] [type="merge temporary index"] [workerID=0] [2024/05/06 16:29:12.428 +08:00] [INFO] [backfilling.go:293] ["[ddl] backfill worker finish task"] [type="merge temporary index"] ["worker ID"=0] [task="taskID_0_physicalTableID_82_[7480000000000000525f69ffff000000000001,7480000000000000525f69ffff000000000001]"] ["added count"=0] ["scan count"=0] ["next key"=7480000000000000525f69ffff00000000000100] ["take time"=90.818µs] [2024/05/06 16:29:12.439 +08:00] [INFO] [backfilling.go:478] ["[ddl] backfill workers successfully processed batch"] ["element type"=_idx_] ["element ID"=1] ["total added count"=4] ["start key"=7480000000000000525f69ffff000000000001] ["next key"=7480000000000000525f69ffff00000000000100] ["batch added count"=0] ["take time"=670.22µs] [] [2024/05/06 16:29:12.439 +08:00] [INFO] [reorg.go:238] ["[ddl] run reorg job done"] ["handled rows"=4] [2024/05/06 16:29:12.439 +08:00] [INFO] [backfilling.go:323] ["[ddl] backfill worker exit"] [type="merge temporary index"] [workerID=0] [2024/05/06 16:29:12.439 +08:00] [INFO] [index.go:685] ["[ddl] run add index job done"] [charset=utf8mb4] [collation=utf8mb4_general_ci] [2024/05/06 16:29:12.442 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=46] [neededSchemaVersion=47] ["start time"=220.273µs] [phyTblIDs="[82]"] [actionTypes="[128]"] [2024/05/06 16:29:12.466 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:12.466 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=84] [version=47] [2024/05/06 16:29:12.467 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=47] ["take time"=25.495969ms] [job="ID:84, Type:add index, State:done, SchemaState:public, SchemaID:80, TableID:82, RowCount:4, ArgLen:3, start time: 2024-05-06 16:29:12.137 +0800 CST, Err:, ErrCount:0, SnapshotVersion:449572805646483457, UniqueWarnings:0"] [2024/05/06 16:29:12.480 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=84] [elementID=1] [comment="physical ID is 82"] [2024/05/06 16:29:12.484 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=84] [jobType="add index"] [2024/05/06 16:29:12.485 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 44, tp add index"] [job="ID:84, Type:add index, State:synced, SchemaState:public, SchemaID:80, TableID:82, RowCount:4, ArgLen:3, start time: 2024-05-06 16:29:12.137 +0800 CST, Err:, ErrCount:0, SnapshotVersion:449572805646483457, UniqueWarnings:0"] [2024/05/06 16:29:12.496 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=84] [elementID=1] [startKey=7480000000000000525f69ffff000000000001] [endKey=7480000000000000525f69ffff000000000002] [2024/05/06 16:29:12.514 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=84] [2024/05/06 16:29:12.520 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:12.520 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# User@Host: root[root] @ 127.0.0.1 [127.0.0.1]\n# Conn_ID: 405\n# Query_time: 0.383911609\n# Parse_time: 0.000044396\n# Compile_time: 0.000122075\n# Rewrite_time: 0.000034996\n# Optimize_time: 0\n# Wait_TS: 0.000008484\n# DB: tidb\n# Is_internal: false\n# Digest: 6a1cf4784fb70b8c0a64519ca6500fe9bb60ac366ee920b85bd5857a1b3febc2\n# Num_cop_tasks: 0\n# Mem_max: 4096\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0.000001819\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\nuse tidb;\nalter table tidb.test add index idx1 (a, b);"] [2024/05/06 16:29:12.525 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=405] [schemaVersion=47] [cur_db=tidb] [sql="alter table tidb.test drop index idx1;"] [user=root@%] [2024/05/06 16:29:12.536 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:85, Type:drop index, State:queueing, SchemaState:public, SchemaID:80, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:12.526 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:12.536 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:85, Type:drop index, State:queueing, SchemaState:public, SchemaID:80, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:12.526 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="alter table tidb.test drop index idx1;"] [2024/05/06 16:29:12.552 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 37, tp general"] [job="ID:85, Type:drop index, State:queueing, SchemaState:public, SchemaID:80, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:12.526 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:12.555 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=47] [neededSchemaVersion=48] ["start time"=211.772µs] [phyTblIDs="[82]"] [actionTypes="[256]"] [2024/05/06 16:29:12.566 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:12.566 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=85] [version=48] [2024/05/06 16:29:12.567 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=48] ["take time"=12.065414ms] [job="ID:85, Type:drop index, State:running, SchemaState:write only, SchemaID:80, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:12.526 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:12.573 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 37, tp general"] [job="ID:85, Type:drop index, State:running, SchemaState:write only, SchemaID:80, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:12.526 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:12.576 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=48] [neededSchemaVersion=49] ["start time"=161.598µs] [phyTblIDs="[82]"] [actionTypes="[256]"] [2024/05/06 16:29:12.617 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:12.617 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=85] [version=49] [2024/05/06 16:29:12.619 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=49] ["take time"=42.917866ms] [job="ID:85, Type:drop index, State:running, SchemaState:delete only, SchemaID:80, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:12.526 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:12.625 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 37, tp general"] [job="ID:85, Type:drop index, State:running, SchemaState:delete only, SchemaID:80, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:12.526 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:12.627 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=49] [neededSchemaVersion=50] ["start time"=259.503µs] [phyTblIDs="[82]"] [actionTypes="[256]"] [2024/05/06 16:29:12.667 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:12.667 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=85] [version=50] [2024/05/06 16:29:12.670 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=50] ["take time"=43.203154ms] [job="ID:85, Type:drop index, State:running, SchemaState:delete reorganization, SchemaID:80, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:12.526 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:12.674 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 37, tp general"] [job="ID:85, Type:drop index, State:running, SchemaState:delete reorganization, SchemaID:80, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:12.526 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:12.676 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=50] [neededSchemaVersion=51] ["start time"=164.141µs] [phyTblIDs="[82]"] [actionTypes="[256]"] [2024/05/06 16:29:12.716 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:12.716 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=85] [version=51] [2024/05/06 16:29:12.716 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=51] ["take time"=40.090004ms] [job="ID:85, Type:drop index, State:done, SchemaState:none, SchemaID:80, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:29:12.526 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:12.723 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=85] [elementID=1] [comment="index ID is 1"] [2024/05/06 16:29:12.725 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=85] [jobType="drop index"] [2024/05/06 16:29:12.725 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 37, tp general"] [job="ID:85, Type:drop index, State:synced, SchemaState:none, SchemaID:80, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:29:12.526 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:12.728 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=85] [elementID=1] [startKey=7480000000000000525f698000000000000001] [endKey=7480000000000000525f698000000000000002] [2024/05/06 16:29:12.744 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=85] [2024/05/06 16:29:12.744 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:12.745 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=405] [schemaVersion=51] [cur_db=tidb] [sql="alter table tidb.test add index idx1 (a, b);"] [user=root@%] [2024/05/06 16:29:12.747 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:86, Type:add index, State:queueing, SchemaState:none, SchemaID:80, TableID:82, RowCount:0, ArgLen:6, start time: 2024-05-06 16:29:12.746 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0, UniqueWarnings:0; "] [table=true] [2024/05/06 16:29:12.748 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:86, Type:add index, State:queueing, SchemaState:none, SchemaID:80, TableID:82, RowCount:0, ArgLen:6, start time: 2024-05-06 16:29:12.746 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0, UniqueWarnings:0"] [query="alter table tidb.test add index idx1 (a, b);"] [2024/05/06 16:29:12.760 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 42, tp add index"] [job="ID:86, Type:add index, State:queueing, SchemaState:none, SchemaID:80, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:12.746 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0, UniqueWarnings:0"] [2024/05/06 16:29:12.760 +08:00] [INFO] [index.go:605] ["[ddl] run add index job"] [job="ID:86, Type:add index, State:running, SchemaState:none, SchemaID:80, TableID:82, RowCount:0, ArgLen:6, start time: 2024-05-06 16:29:12.746 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0, UniqueWarnings:0"] [indexInfo="{\"id\":2,\"idx_name\":{\"O\":\"idx1\",\"L\":\"idx1\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"a\",\"L\":\"a\"},\"offset\":0,\"length\":-1},{\"name\":{\"O\":\"b\",\"L\":\"b\"},\"offset\":1,\"length\":-1}],\"state\":0,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":false,\"is_primary\":false,\"is_invisible\":false,\"is_global\":false}"] [2024/05/06 16:29:12.762 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=51] [neededSchemaVersion=52] ["start time"=184.847µs] [phyTblIDs="[82]"] [actionTypes="[128]"] [2024/05/06 16:29:12.766 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:12.767 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=86] [version=52] [2024/05/06 16:29:12.768 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=52] ["take time"=6.197621ms] [job="ID:86, Type:add index, State:running, SchemaState:delete only, SchemaID:80, TableID:82, RowCount:0, ArgLen:6, start time: 2024-05-06 16:29:12.746 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0, UniqueWarnings:0"] [2024/05/06 16:29:12.773 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 43, tp add index"] [job="ID:86, Type:add index, State:running, SchemaState:delete only, SchemaID:80, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:12.746 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0, UniqueWarnings:0"] [2024/05/06 16:29:12.775 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=52] [neededSchemaVersion=53] ["start time"=362.544µs] [phyTblIDs="[82]"] [actionTypes="[128]"] [2024/05/06 16:29:12.817 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:12.817 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=86] [version=53] [2024/05/06 16:29:12.818 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=53] ["take time"=42.824791ms] [job="ID:86, Type:add index, State:running, SchemaState:write only, SchemaID:80, TableID:82, RowCount:0, ArgLen:6, start time: 2024-05-06 16:29:12.746 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0, UniqueWarnings:0"] [2024/05/06 16:29:12.824 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 44, tp add index"] [job="ID:86, Type:add index, State:running, SchemaState:write only, SchemaID:80, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:12.746 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0, UniqueWarnings:0"] [2024/05/06 16:29:12.827 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=53] [neededSchemaVersion=54] ["start time"=230.409µs] [phyTblIDs="[82]"] [actionTypes="[128]"] [2024/05/06 16:29:12.866 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:12.866 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=86] [version=54] [2024/05/06 16:29:12.866 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=54] ["take time"=40.029553ms] [job="ID:86, Type:add index, State:running, SchemaState:write reorganization, SchemaID:80, TableID:82, RowCount:0, ArgLen:6, start time: 2024-05-06 16:29:12.746 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0, UniqueWarnings:0"] [2024/05/06 16:29:12.873 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 45, tp add index"] [job="ID:86, Type:add index, State:running, SchemaState:write reorganization, SchemaID:80, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:12.746 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0, UniqueWarnings:0"] [2024/05/06 16:29:12.873 +08:00] [INFO] [index.go:800] ["[ddl] index backfill state running"] ["job ID"=86] [table=test] ["ingest mode"=true] [index=idx1] [2024/05/06 16:29:12.873 +08:00] [INFO] [config.go:97] ["[ddl-ingest] initial memory setting for lightning"] ["local writer memory cache size"=134217728] ["engine memory cache size"=536870912] ["range concurrency"=16] [2024/05/06 16:29:12.874 +08:00] [INFO] [config.go:112] ["[ddl-ingest] change memory setting for lightning"] ["local writer memory cache size"=67108864] ["engine memory cache size"=268435456] ["range concurrency"=16] [2024/05/06 16:29:12.874 +08:00] [ERROR] [backend_mgr.go:66] ["[ddl-ingest] build lightning backend failed, will use kernel index reorg method to backfill the index"] ["job ID"=86] [error="[Lightning:PD:ErrUpdatePD]pd address (/tmp/tidb) not available, error is Get \"http:///tmp/tidb/pd/api/v1/config/cluster-version\": http: no Host in request URL, please check network"] [errorVerbose="[Lightning:PD:ErrUpdatePD]pd address (/tmp/tidb) not available, error is Get \"http:///tmp/tidb/pd/api/v1/config/cluster-version\": http: no Host in request URL, please check network\ngithub.com/pingcap/tidb/br/pkg/pdutil.NewPdController\n\tbr/pkg/pdutil/pd.go:289\ngithub.com/pingcap/tidb/br/pkg/lightning/backend/local.NewLocalBackend\n\tbr/pkg/lightning/backend/local/local.go:431\ngithub.com/pingcap/tidb/ddl/ingest.createLocalBackend\n\tddl/ingest/backend_mgr.go:91\ngithub.com/pingcap/tidb/ddl/ingest.(*backendCtxManager).Register\n\tddl/ingest/backend_mgr.go:64\ngithub.com/pingcap/tidb/ddl.doReorgWorkForCreateIndex\n\tddl/index.go:816\ngithub.com/pingcap/tidb/ddl.(*worker).onCreateIndex\n\tddl/index.go:661\ngithub.com/pingcap/tidb/ddl.(*worker).runDDLJob\n\tddl/ddl_worker.go:1244\ngithub.com/pingcap/tidb/ddl.(*worker).HandleDDLJobTable\n\tddl/ddl_worker.go:856\ngithub.com/pingcap/tidb/ddl.(*ddl).delivery2worker.func1\n\tddl/job_table.go:252\ngithub.com/pingcap/tidb/util.(*WaitGroupWrapper).Run.func1\n\tutil/wait_group_wrapper.go:33\nruntime.goexit\n\tGOROOT/src/runtime/asm_amd64.s:1594"] [stack="github.com/pingcap/tidb/ddl/ingest.(*backendCtxManager).Register\n\tddl/ingest/backend_mgr.go:66\ngithub.com/pingcap/tidb/ddl.doReorgWorkForCreateIndex\n\tddl/index.go:816\ngithub.com/pingcap/tidb/ddl.(*worker).onCreateIndex\n\tddl/index.go:661\ngithub.com/pingcap/tidb/ddl.(*worker).runDDLJob\n\tddl/ddl_worker.go:1244\ngithub.com/pingcap/tidb/ddl.(*worker).HandleDDLJobTable\n\tddl/ddl_worker.go:856\ngithub.com/pingcap/tidb/ddl.(*ddl).delivery2worker.func1\n\tddl/job_table.go:252\ngithub.com/pingcap/tidb/util.(*WaitGroupWrapper).Run.func1\n\tutil/wait_group_wrapper.go:33"] [2024/05/06 16:29:12.874 +08:00] [INFO] [index.go:767] ["[ddl] fallback to txn-merge backfill process"] [error="[Lightning:PD:ErrUpdatePD]pd address (/tmp/tidb) not available, error is Get \"http:///tmp/tidb/pd/api/v1/config/cluster-version\": http: no Host in request URL, please check network"] [errorVerbose="[Lightning:PD:ErrUpdatePD]pd address (/tmp/tidb) not available, error is Get \"http:///tmp/tidb/pd/api/v1/config/cluster-version\": http: no Host in request URL, please check network\ngithub.com/pingcap/tidb/br/pkg/pdutil.NewPdController\n\tbr/pkg/pdutil/pd.go:289\ngithub.com/pingcap/tidb/br/pkg/lightning/backend/local.NewLocalBackend\n\tbr/pkg/lightning/backend/local/local.go:431\ngithub.com/pingcap/tidb/ddl/ingest.createLocalBackend\n\tddl/ingest/backend_mgr.go:91\ngithub.com/pingcap/tidb/ddl/ingest.(*backendCtxManager).Register\n\tddl/ingest/backend_mgr.go:64\ngithub.com/pingcap/tidb/ddl.doReorgWorkForCreateIndex\n\tddl/index.go:816\ngithub.com/pingcap/tidb/ddl.(*worker).onCreateIndex\n\tddl/index.go:661\ngithub.com/pingcap/tidb/ddl.(*worker).runDDLJob\n\tddl/ddl_worker.go:1244\ngithub.com/pingcap/tidb/ddl.(*worker).HandleDDLJobTable\n\tddl/ddl_worker.go:856\ngithub.com/pingcap/tidb/ddl.(*ddl).delivery2worker.func1\n\tddl/job_table.go:252\ngithub.com/pingcap/tidb/util.(*WaitGroupWrapper).Run.func1\n\tutil/wait_group_wrapper.go:33\nruntime.goexit\n\tGOROOT/src/runtime/asm_amd64.s:1594"] [2024/05/06 16:29:12.875 +08:00] [INFO] [ddl_worker.go:1369] ["[ddl] schema version doesn't change"] [2024/05/06 16:29:12.882 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 46, tp add index"] [job="ID:86, Type:add index, State:running, SchemaState:write reorganization, SchemaID:80, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:12.746 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0, UniqueWarnings:0"] [2024/05/06 16:29:12.884 +08:00] [INFO] [index.go:800] ["[ddl] index backfill state running"] ["job ID"=86] [table=test] ["ingest mode"=false] [index=idx1] [2024/05/06 16:29:12.885 +08:00] [INFO] [reorg.go:621] ["[ddl] job get table range"] [jobID=86] [physicalTableID=82] [startKey=7480000000000000525f728000000000000001] [endKey=7480000000000000525f728000000000000004] [2024/05/06 16:29:12.885 +08:00] [INFO] [txn.go:55] ["Try to create a new txn inside a transaction auto commit"] [schemaVersion=54] [txnStartTS=449572805773623296] [txnScope=global] [2024/05/06 16:29:12.890 +08:00] [INFO] [ddl_worker.go:1369] ["[ddl] schema version doesn't change"] [2024/05/06 16:29:12.908 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 47, tp add index"] [job="ID:86, Type:add index, State:running, SchemaState:write reorganization, SchemaID:80, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:12.746 +0800 CST, Err:, ErrCount:0, SnapshotVersion:449572805773623297, UniqueWarnings:0"] [2024/05/06 16:29:12.909 +08:00] [INFO] [index.go:800] ["[ddl] index backfill state running"] ["job ID"=86] [table=test] ["ingest mode"=false] [index=idx1] [2024/05/06 16:29:12.911 +08:00] [INFO] [index.go:1682] ["[ddl] start to add table index"] [job="ID:86, Type:add index, State:running, SchemaState:write reorganization, SchemaID:80, TableID:82, RowCount:0, ArgLen:6, start time: 2024-05-06 16:29:12.746 +0800 CST, Err:, ErrCount:0, SnapshotVersion:449572805773623297, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:2,StartKey:7480000000000000525f728000000000000001,EndKey:7480000000000000525f728000000000000004,First:false,PhysicalTableID:82,Ingest mode:false"] [2024/05/06 16:29:12.912 +08:00] [INFO] [backfilling.go:364] ["[ddl] split table range from PD"] [physicalTableID=82] ["start key"=7480000000000000525f728000000000000001] ["end key"=7480000000000000525f728000000000000004] [2024/05/06 16:29:12.913 +08:00] [INFO] [backfilling.go:861] ["[ddl] start backfill workers to reorg record"] [type="add index"] [workerCnt=1] [regionCnt=1] [startKey=7480000000000000525f728000000000000001] [endKey=7480000000000000525f728000000000000004] [2024/05/06 16:29:12.914 +08:00] [INFO] [backfilling.go:308] ["[ddl] backfill worker start"] [type="add index"] [workerID=0] [2024/05/06 16:29:12.914 +08:00] [INFO] [backfilling.go:512] ["[ddl] send range task to workers, change end key"] ["end key"=7480000000000000525f728000000000000004] ["current end key"=7480000000000000525f728000000000000004] [2024/05/06 16:29:12.915 +08:00] [INFO] [backfilling.go:293] ["[ddl] backfill worker finish task"] [type="add index"] ["worker ID"=0] [task="taskID_0_physicalTableID_82_[7480000000000000525f728000000000000001,7480000000000000525f728000000000000004]"] ["added count"=4] ["scan count"=4] ["next key"=7480000000000000525f72800000000000000400] ["take time"=772.373µs] [2024/05/06 16:29:12.919 +08:00] [INFO] [backfilling.go:478] ["[ddl] backfill workers successfully processed batch"] ["element type"=_idx_] ["element ID"=2] ["total added count"=4] ["start key"=7480000000000000525f728000000000000001] ["next key"=7480000000000000525f72800000000000000400] ["batch added count"=4] ["take time"=1.720602ms] [] [2024/05/06 16:29:12.919 +08:00] [INFO] [reorg.go:238] ["[ddl] run reorg job done"] ["handled rows"=4] [2024/05/06 16:29:12.922 +08:00] [INFO] [backfilling.go:323] ["[ddl] backfill worker exit"] [type="add index"] [workerID=0] [2024/05/06 16:29:12.922 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=54] [neededSchemaVersion=55] ["start time"=310.186µs] [phyTblIDs="[82]"] [actionTypes="[128]"] [2024/05/06 16:29:12.966 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:12.966 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=86] [version=55] [2024/05/06 16:29:12.966 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=55] ["take time"=44.171133ms] [job="ID:86, Type:add index, State:running, SchemaState:write reorganization, SchemaID:80, TableID:82, RowCount:4, ArgLen:6, start time: 2024-05-06 16:29:12.746 +0800 CST, Err:, ErrCount:0, SnapshotVersion:449572805773623297, UniqueWarnings:0"] [2024/05/06 16:29:12.974 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 38, tp add index"] [job="ID:86, Type:add index, State:running, SchemaState:write reorganization, SchemaID:80, TableID:82, RowCount:4, ArgLen:0, start time: 2024-05-06 16:29:12.746 +0800 CST, Err:, ErrCount:0, SnapshotVersion:449572805773623297, UniqueWarnings:0"] [2024/05/06 16:29:12.974 +08:00] [INFO] [index.go:862] ["[ddl] index backfill state ready to merge"] ["job ID"=86] [table=test] [index=idx1] [2024/05/06 16:29:12.976 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=55] [neededSchemaVersion=56] ["start time"=204.523µs] [phyTblIDs="[82]"] [actionTypes="[128]"] [2024/05/06 16:29:13.020 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:13.020 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=86] [version=56] [2024/05/06 16:29:13.020 +08:00] [INFO] [info.go:1114] [SetTiFlashGroupConfig] [2024/05/06 16:29:13.026 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=56] ["take time"=50.222373ms] [job="ID:86, Type:add index, State:running, SchemaState:write reorganization, SchemaID:80, TableID:82, RowCount:4, ArgLen:6, start time: 2024-05-06 16:29:12.746 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0, UniqueWarnings:0"] [2024/05/06 16:29:13.035 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 39, tp add index"] [job="ID:86, Type:add index, State:running, SchemaState:write reorganization, SchemaID:80, TableID:82, RowCount:4, ArgLen:0, start time: 2024-05-06 16:29:12.746 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0, UniqueWarnings:0"] [2024/05/06 16:29:13.035 +08:00] [INFO] [reorg.go:621] ["[ddl] job get table range"] [jobID=86] [physicalTableID=82] [startKey=7480000000000000525f69ffff000000000002] [endKey=7480000000000000525f69ffff000000000002ff] [2024/05/06 16:29:13.035 +08:00] [INFO] [txn.go:55] ["Try to create a new txn inside a transaction auto commit"] [schemaVersion=56] [txnStartTS=449572805813207041] [txnScope=global] [2024/05/06 16:29:13.038 +08:00] [INFO] [ddl_worker.go:1369] ["[ddl] schema version doesn't change"] [2024/05/06 16:29:13.053 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 40, tp add index"] [job="ID:86, Type:add index, State:running, SchemaState:write reorganization, SchemaID:80, TableID:82, RowCount:4, ArgLen:0, start time: 2024-05-06 16:29:12.746 +0800 CST, Err:, ErrCount:0, SnapshotVersion:449572805813207042, UniqueWarnings:0"] [2024/05/06 16:29:13.055 +08:00] [INFO] [index.go:1679] ["[ddl] start to merge temp index"] [job="ID:86, Type:add index, State:running, SchemaState:write reorganization, SchemaID:80, TableID:82, RowCount:4, ArgLen:6, start time: 2024-05-06 16:29:12.746 +0800 CST, Err:, ErrCount:0, SnapshotVersion:449572805813207042, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:2,StartKey:7480000000000000525f69ffff000000000002,EndKey:7480000000000000525f69ffff000000000002ff,First:false,PhysicalTableID:82,Ingest mode:false"] [2024/05/06 16:29:13.055 +08:00] [INFO] [backfilling.go:364] ["[ddl] split table range from PD"] [physicalTableID=82] ["start key"=7480000000000000525f69ffff000000000002] ["end key"=7480000000000000525f69ffff000000000002ff] [2024/05/06 16:29:13.056 +08:00] [INFO] [backfilling.go:861] ["[ddl] start backfill workers to reorg record"] [type="merge temporary index"] [workerCnt=1] [regionCnt=1] [startKey=7480000000000000525f69ffff000000000002] [endKey=7480000000000000525f69ffff000000000002ff] [2024/05/06 16:29:13.056 +08:00] [INFO] [backfilling.go:512] ["[ddl] send range task to workers, change end key"] ["end key"=7480000000000000525f69ffff000000000002ff] ["current end key"=7480000000000000525f69ffff000000000002] [2024/05/06 16:29:13.056 +08:00] [INFO] [backfilling.go:308] ["[ddl] backfill worker start"] [type="merge temporary index"] [workerID=0] [2024/05/06 16:29:13.056 +08:00] [INFO] [backfilling.go:293] ["[ddl] backfill worker finish task"] [type="merge temporary index"] ["worker ID"=0] [task="taskID_0_physicalTableID_82_[7480000000000000525f69ffff000000000002,7480000000000000525f69ffff000000000002]"] ["added count"=0] ["scan count"=0] ["next key"=7480000000000000525f69ffff00000000000200] ["take time"=94.825µs] [2024/05/06 16:29:13.059 +08:00] [INFO] [backfilling.go:478] ["[ddl] backfill workers successfully processed batch"] ["element type"=_idx_] ["element ID"=2] ["total added count"=4] ["start key"=7480000000000000525f69ffff000000000002] ["next key"=7480000000000000525f69ffff00000000000200] ["batch added count"=0] ["take time"=735.818µs] [] [2024/05/06 16:29:13.059 +08:00] [INFO] [reorg.go:238] ["[ddl] run reorg job done"] ["handled rows"=4] [2024/05/06 16:29:13.059 +08:00] [INFO] [backfilling.go:323] ["[ddl] backfill worker exit"] [type="merge temporary index"] [workerID=0] [2024/05/06 16:29:13.059 +08:00] [INFO] [index.go:685] ["[ddl] run add index job done"] [charset=utf8mb4] [collation=utf8mb4_general_ci] [2024/05/06 16:29:13.061 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=56] [neededSchemaVersion=57] ["start time"=211.977µs] [phyTblIDs="[82]"] [actionTypes="[128]"] [2024/05/06 16:29:13.067 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:13.067 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=86] [version=57] [2024/05/06 16:29:13.069 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=57] ["take time"=8.436893ms] [job="ID:86, Type:add index, State:done, SchemaState:public, SchemaID:80, TableID:82, RowCount:4, ArgLen:3, start time: 2024-05-06 16:29:12.746 +0800 CST, Err:, ErrCount:0, SnapshotVersion:449572805813207042, UniqueWarnings:0"] [2024/05/06 16:29:13.075 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=86] [elementID=1] [comment="physical ID is 82"] [2024/05/06 16:29:13.076 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=86] [jobType="add index"] [2024/05/06 16:29:13.077 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 42, tp add index"] [job="ID:86, Type:add index, State:synced, SchemaState:public, SchemaID:80, TableID:82, RowCount:4, ArgLen:3, start time: 2024-05-06 16:29:12.746 +0800 CST, Err:, ErrCount:0, SnapshotVersion:449572805813207042, UniqueWarnings:0"] [2024/05/06 16:29:13.079 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=86] [elementID=1] [startKey=7480000000000000525f69ffff000000000002] [endKey=7480000000000000525f69ffff000000000003] [2024/05/06 16:29:13.083 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=86] [2024/05/06 16:29:13.083 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:13.084 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# User@Host: root[root] @ 127.0.0.1 [127.0.0.1]\n# Conn_ID: 405\n# Query_time: 0.338659566\n# Parse_time: 0.000094845\n# Compile_time: 0.000181749\n# Rewrite_time: 0.000032215\n# Optimize_time: 0\n# Wait_TS: 0.000014005\n# DB: tidb\n# Is_internal: false\n# Digest: 6a1cf4784fb70b8c0a64519ca6500fe9bb60ac366ee920b85bd5857a1b3febc2\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0.000001942\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\nalter table tidb.test add index idx1 (a, b);"] [2024/05/06 16:29:13.084 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=405] [schemaVersion=57] [cur_db=tidb] [sql="alter table tidb.test add unique index idx2 (a, b);"] [user=root@%] [2024/05/06 16:29:13.086 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:87, Type:add index, State:queueing, SchemaState:none, SchemaID:80, TableID:82, RowCount:0, ArgLen:6, start time: 2024-05-06 16:29:13.085 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0, UniqueWarnings:0; "] [table=true] [2024/05/06 16:29:13.086 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:87, Type:add index, State:queueing, SchemaState:none, SchemaID:80, TableID:82, RowCount:0, ArgLen:6, start time: 2024-05-06 16:29:13.085 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0, UniqueWarnings:0"] [query="alter table tidb.test add unique index idx2 (a, b);"] [2024/05/06 16:29:13.098 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 44, tp add index"] [job="ID:87, Type:add index, State:queueing, SchemaState:none, SchemaID:80, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:13.085 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0, UniqueWarnings:0"] [2024/05/06 16:29:13.098 +08:00] [INFO] [index.go:605] ["[ddl] run add index job"] [job="ID:87, Type:add index, State:running, SchemaState:none, SchemaID:80, TableID:82, RowCount:0, ArgLen:6, start time: 2024-05-06 16:29:13.085 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0, UniqueWarnings:0"] [indexInfo="{\"id\":3,\"idx_name\":{\"O\":\"idx2\",\"L\":\"idx2\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"a\",\"L\":\"a\"},\"offset\":0,\"length\":-1},{\"name\":{\"O\":\"b\",\"L\":\"b\"},\"offset\":1,\"length\":-1}],\"state\":0,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":true,\"is_primary\":false,\"is_invisible\":false,\"is_global\":false}"] [2024/05/06 16:29:13.101 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=57] [neededSchemaVersion=58] ["start time"=223.787µs] [phyTblIDs="[82]"] [actionTypes="[128]"] [2024/05/06 16:29:13.116 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:13.116 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=87] [version=58] [2024/05/06 16:29:13.117 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=58] ["take time"=16.023637ms] [job="ID:87, Type:add index, State:running, SchemaState:delete only, SchemaID:80, TableID:82, RowCount:0, ArgLen:6, start time: 2024-05-06 16:29:13.085 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0, UniqueWarnings:0"] [2024/05/06 16:29:13.128 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 45, tp add index"] [job="ID:87, Type:add index, State:running, SchemaState:delete only, SchemaID:80, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:13.085 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0, UniqueWarnings:0"] [2024/05/06 16:29:13.132 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=58] [neededSchemaVersion=59] ["start time"=274.34µs] [phyTblIDs="[82]"] [actionTypes="[128]"] [2024/05/06 16:29:13.166 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:13.166 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=87] [version=59] [2024/05/06 16:29:13.168 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=59] ["take time"=36.775245ms] [job="ID:87, Type:add index, State:running, SchemaState:write only, SchemaID:80, TableID:82, RowCount:0, ArgLen:6, start time: 2024-05-06 16:29:13.085 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0, UniqueWarnings:0"] [2024/05/06 16:29:13.175 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 46, tp add index"] [job="ID:87, Type:add index, State:running, SchemaState:write only, SchemaID:80, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:13.085 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0, UniqueWarnings:0"] [2024/05/06 16:29:13.178 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=59] [neededSchemaVersion=60] ["start time"=223.457µs] [phyTblIDs="[82]"] [actionTypes="[128]"] [2024/05/06 16:29:13.216 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:13.216 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=87] [version=60] [2024/05/06 16:29:13.218 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=60] ["take time"=40.34459ms] [job="ID:87, Type:add index, State:running, SchemaState:write reorganization, SchemaID:80, TableID:82, RowCount:0, ArgLen:6, start time: 2024-05-06 16:29:13.085 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0, UniqueWarnings:0"] [2024/05/06 16:29:13.232 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 47, tp add index"] [job="ID:87, Type:add index, State:running, SchemaState:write reorganization, SchemaID:80, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:13.085 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0, UniqueWarnings:0"] [2024/05/06 16:29:13.232 +08:00] [INFO] [index.go:800] ["[ddl] index backfill state running"] ["job ID"=87] [table=test] ["ingest mode"=true] [index=idx2] [2024/05/06 16:29:13.232 +08:00] [INFO] [config.go:97] ["[ddl-ingest] initial memory setting for lightning"] ["local writer memory cache size"=134217728] ["engine memory cache size"=536870912] ["range concurrency"=16] [2024/05/06 16:29:13.232 +08:00] [INFO] [config.go:112] ["[ddl-ingest] change memory setting for lightning"] ["local writer memory cache size"=67108864] ["engine memory cache size"=268435456] ["range concurrency"=16] [2024/05/06 16:29:13.232 +08:00] [ERROR] [backend_mgr.go:66] ["[ddl-ingest] build lightning backend failed, will use kernel index reorg method to backfill the index"] ["job ID"=87] [error="[Lightning:PD:ErrUpdatePD]pd address (/tmp/tidb) not available, error is Get \"http:///tmp/tidb/pd/api/v1/config/cluster-version\": http: no Host in request URL, please check network"] [errorVerbose="[Lightning:PD:ErrUpdatePD]pd address (/tmp/tidb) not available, error is Get \"http:///tmp/tidb/pd/api/v1/config/cluster-version\": http: no Host in request URL, please check network\ngithub.com/pingcap/tidb/br/pkg/pdutil.NewPdController\n\tbr/pkg/pdutil/pd.go:289\ngithub.com/pingcap/tidb/br/pkg/lightning/backend/local.NewLocalBackend\n\tbr/pkg/lightning/backend/local/local.go:431\ngithub.com/pingcap/tidb/ddl/ingest.createLocalBackend\n\tddl/ingest/backend_mgr.go:91\ngithub.com/pingcap/tidb/ddl/ingest.(*backendCtxManager).Register\n\tddl/ingest/backend_mgr.go:64\ngithub.com/pingcap/tidb/ddl.doReorgWorkForCreateIndex\n\tddl/index.go:816\ngithub.com/pingcap/tidb/ddl.(*worker).onCreateIndex\n\tddl/index.go:661\ngithub.com/pingcap/tidb/ddl.(*worker).runDDLJob\n\tddl/ddl_worker.go:1244\ngithub.com/pingcap/tidb/ddl.(*worker).HandleDDLJobTable\n\tddl/ddl_worker.go:856\ngithub.com/pingcap/tidb/ddl.(*ddl).delivery2worker.func1\n\tddl/job_table.go:252\ngithub.com/pingcap/tidb/util.(*WaitGroupWrapper).Run.func1\n\tutil/wait_group_wrapper.go:33\nruntime.goexit\n\tGOROOT/src/runtime/asm_amd64.s:1594"] [stack="github.com/pingcap/tidb/ddl/ingest.(*backendCtxManager).Register\n\tddl/ingest/backend_mgr.go:66\ngithub.com/pingcap/tidb/ddl.doReorgWorkForCreateIndex\n\tddl/index.go:816\ngithub.com/pingcap/tidb/ddl.(*worker).onCreateIndex\n\tddl/index.go:661\ngithub.com/pingcap/tidb/ddl.(*worker).runDDLJob\n\tddl/ddl_worker.go:1244\ngithub.com/pingcap/tidb/ddl.(*worker).HandleDDLJobTable\n\tddl/ddl_worker.go:856\ngithub.com/pingcap/tidb/ddl.(*ddl).delivery2worker.func1\n\tddl/job_table.go:252\ngithub.com/pingcap/tidb/util.(*WaitGroupWrapper).Run.func1\n\tutil/wait_group_wrapper.go:33"] [2024/05/06 16:29:13.233 +08:00] [INFO] [index.go:767] ["[ddl] fallback to txn-merge backfill process"] [error="[Lightning:PD:ErrUpdatePD]pd address (/tmp/tidb) not available, error is Get \"http:///tmp/tidb/pd/api/v1/config/cluster-version\": http: no Host in request URL, please check network"] [errorVerbose="[Lightning:PD:ErrUpdatePD]pd address (/tmp/tidb) not available, error is Get \"http:///tmp/tidb/pd/api/v1/config/cluster-version\": http: no Host in request URL, please check network\ngithub.com/pingcap/tidb/br/pkg/pdutil.NewPdController\n\tbr/pkg/pdutil/pd.go:289\ngithub.com/pingcap/tidb/br/pkg/lightning/backend/local.NewLocalBackend\n\tbr/pkg/lightning/backend/local/local.go:431\ngithub.com/pingcap/tidb/ddl/ingest.createLocalBackend\n\tddl/ingest/backend_mgr.go:91\ngithub.com/pingcap/tidb/ddl/ingest.(*backendCtxManager).Register\n\tddl/ingest/backend_mgr.go:64\ngithub.com/pingcap/tidb/ddl.doReorgWorkForCreateIndex\n\tddl/index.go:816\ngithub.com/pingcap/tidb/ddl.(*worker).onCreateIndex\n\tddl/index.go:661\ngithub.com/pingcap/tidb/ddl.(*worker).runDDLJob\n\tddl/ddl_worker.go:1244\ngithub.com/pingcap/tidb/ddl.(*worker).HandleDDLJobTable\n\tddl/ddl_worker.go:856\ngithub.com/pingcap/tidb/ddl.(*ddl).delivery2worker.func1\n\tddl/job_table.go:252\ngithub.com/pingcap/tidb/util.(*WaitGroupWrapper).Run.func1\n\tutil/wait_group_wrapper.go:33\nruntime.goexit\n\tGOROOT/src/runtime/asm_amd64.s:1594"] [2024/05/06 16:29:13.234 +08:00] [INFO] [ddl_worker.go:1369] ["[ddl] schema version doesn't change"] [2024/05/06 16:29:13.249 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 38, tp add index"] [job="ID:87, Type:add index, State:running, SchemaState:write reorganization, SchemaID:80, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:13.085 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0, UniqueWarnings:0"] [2024/05/06 16:29:13.249 +08:00] [INFO] [index.go:800] ["[ddl] index backfill state running"] ["job ID"=87] [table=test] ["ingest mode"=false] [index=idx2] [2024/05/06 16:29:13.250 +08:00] [INFO] [reorg.go:621] ["[ddl] job get table range"] [jobID=87] [physicalTableID=82] [startKey=7480000000000000525f728000000000000001] [endKey=7480000000000000525f728000000000000004] [2024/05/06 16:29:13.250 +08:00] [INFO] [txn.go:55] ["Try to create a new txn inside a transaction auto commit"] [schemaVersion=60] [txnStartTS=449572805869568000] [txnScope=global] [2024/05/06 16:29:13.253 +08:00] [INFO] [ddl_worker.go:1369] ["[ddl] schema version doesn't change"] [2024/05/06 16:29:13.259 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 39, tp add index"] [job="ID:87, Type:add index, State:running, SchemaState:write reorganization, SchemaID:80, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:13.085 +0800 CST, Err:, ErrCount:0, SnapshotVersion:449572805869568001, UniqueWarnings:0"] [2024/05/06 16:29:13.260 +08:00] [INFO] [index.go:800] ["[ddl] index backfill state running"] ["job ID"=87] [table=test] ["ingest mode"=false] [index=idx2] [2024/05/06 16:29:13.262 +08:00] [INFO] [index.go:1682] ["[ddl] start to add table index"] [job="ID:87, Type:add index, State:running, SchemaState:write reorganization, SchemaID:80, TableID:82, RowCount:0, ArgLen:6, start time: 2024-05-06 16:29:13.085 +0800 CST, Err:, ErrCount:0, SnapshotVersion:449572805869568001, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:3,StartKey:7480000000000000525f728000000000000001,EndKey:7480000000000000525f728000000000000004,First:false,PhysicalTableID:82,Ingest mode:false"] [2024/05/06 16:29:13.262 +08:00] [INFO] [backfilling.go:364] ["[ddl] split table range from PD"] [physicalTableID=82] ["start key"=7480000000000000525f728000000000000001] ["end key"=7480000000000000525f728000000000000004] [2024/05/06 16:29:13.263 +08:00] [INFO] [backfilling.go:861] ["[ddl] start backfill workers to reorg record"] [type="add index"] [workerCnt=1] [regionCnt=1] [startKey=7480000000000000525f728000000000000001] [endKey=7480000000000000525f728000000000000004] [2024/05/06 16:29:13.264 +08:00] [INFO] [backfilling.go:512] ["[ddl] send range task to workers, change end key"] ["end key"=7480000000000000525f728000000000000004] ["current end key"=7480000000000000525f728000000000000004] [2024/05/06 16:29:13.264 +08:00] [INFO] [backfilling.go:308] ["[ddl] backfill worker start"] [type="add index"] [workerID=0] [2024/05/06 16:29:13.265 +08:00] [INFO] [backfilling.go:293] ["[ddl] backfill worker finish task"] [type="add index"] ["worker ID"=0] [task="taskID_0_physicalTableID_82_[7480000000000000525f728000000000000001,7480000000000000525f728000000000000004]"] ["added count"=4] ["scan count"=4] ["next key"=7480000000000000525f72800000000000000400] ["take time"=842.12µs] [2024/05/06 16:29:13.267 +08:00] [INFO] [backfilling.go:478] ["[ddl] backfill workers successfully processed batch"] ["element type"=_idx_] ["element ID"=3] ["total added count"=4] ["start key"=7480000000000000525f728000000000000001] ["next key"=7480000000000000525f72800000000000000400] ["batch added count"=4] ["take time"=1.669224ms] [] [2024/05/06 16:29:13.267 +08:00] [INFO] [reorg.go:238] ["[ddl] run reorg job done"] ["handled rows"=4] [2024/05/06 16:29:13.267 +08:00] [INFO] [backfilling.go:323] ["[ddl] backfill worker exit"] [type="add index"] [workerID=0] [2024/05/06 16:29:13.269 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=60] [neededSchemaVersion=61] ["start time"=174.217µs] [phyTblIDs="[82]"] [actionTypes="[128]"] [2024/05/06 16:29:13.317 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:13.317 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=87] [version=61] [2024/05/06 16:29:13.317 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=61] ["take time"=48.539203ms] [job="ID:87, Type:add index, State:running, SchemaState:write reorganization, SchemaID:80, TableID:82, RowCount:4, ArgLen:6, start time: 2024-05-06 16:29:13.085 +0800 CST, Err:, ErrCount:0, SnapshotVersion:449572805869568001, UniqueWarnings:0"] [2024/05/06 16:29:13.324 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 40, tp add index"] [job="ID:87, Type:add index, State:running, SchemaState:write reorganization, SchemaID:80, TableID:82, RowCount:4, ArgLen:0, start time: 2024-05-06 16:29:13.085 +0800 CST, Err:, ErrCount:0, SnapshotVersion:449572805869568001, UniqueWarnings:0"] [2024/05/06 16:29:13.324 +08:00] [INFO] [index.go:862] ["[ddl] index backfill state ready to merge"] ["job ID"=87] [table=test] [index=idx2] [2024/05/06 16:29:13.326 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=61] [neededSchemaVersion=62] ["start time"=229.152µs] [phyTblIDs="[82]"] [actionTypes="[128]"] [2024/05/06 16:29:13.366 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:13.366 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=87] [version=62] [2024/05/06 16:29:13.369 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=62] ["take time"=42.569311ms] [job="ID:87, Type:add index, State:running, SchemaState:write reorganization, SchemaID:80, TableID:82, RowCount:4, ArgLen:6, start time: 2024-05-06 16:29:13.085 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0, UniqueWarnings:0"] [2024/05/06 16:29:13.376 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 41, tp add index"] [job="ID:87, Type:add index, State:running, SchemaState:write reorganization, SchemaID:80, TableID:82, RowCount:4, ArgLen:0, start time: 2024-05-06 16:29:13.085 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0, UniqueWarnings:0"] [2024/05/06 16:29:13.376 +08:00] [INFO] [reorg.go:621] ["[ddl] job get table range"] [jobID=87] [physicalTableID=82] [startKey=7480000000000000525f69ffff000000000003] [endKey=7480000000000000525f69ffff000000000003ff] [2024/05/06 16:29:13.376 +08:00] [INFO] [txn.go:55] ["Try to create a new txn inside a transaction auto commit"] [schemaVersion=62] [txnStartTS=449572805902598145] [txnScope=global] [2024/05/06 16:29:13.379 +08:00] [INFO] [ddl_worker.go:1369] ["[ddl] schema version doesn't change"] [2024/05/06 16:29:13.386 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 42, tp add index"] [job="ID:87, Type:add index, State:running, SchemaState:write reorganization, SchemaID:80, TableID:82, RowCount:4, ArgLen:0, start time: 2024-05-06 16:29:13.085 +0800 CST, Err:, ErrCount:0, SnapshotVersion:449572805902598146, UniqueWarnings:0"] [2024/05/06 16:29:13.388 +08:00] [INFO] [index.go:1679] ["[ddl] start to merge temp index"] [job="ID:87, Type:add index, State:running, SchemaState:write reorganization, SchemaID:80, TableID:82, RowCount:4, ArgLen:6, start time: 2024-05-06 16:29:13.085 +0800 CST, Err:, ErrCount:0, SnapshotVersion:449572805902598146, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:3,StartKey:7480000000000000525f69ffff000000000003,EndKey:7480000000000000525f69ffff000000000003ff,First:false,PhysicalTableID:82,Ingest mode:false"] [2024/05/06 16:29:13.388 +08:00] [INFO] [backfilling.go:364] ["[ddl] split table range from PD"] [physicalTableID=82] ["start key"=7480000000000000525f69ffff000000000003] ["end key"=7480000000000000525f69ffff000000000003ff] [2024/05/06 16:29:13.389 +08:00] [INFO] [backfilling.go:861] ["[ddl] start backfill workers to reorg record"] [type="merge temporary index"] [workerCnt=1] [regionCnt=1] [startKey=7480000000000000525f69ffff000000000003] [endKey=7480000000000000525f69ffff000000000003ff] [2024/05/06 16:29:13.389 +08:00] [INFO] [backfilling.go:308] ["[ddl] backfill worker start"] [type="merge temporary index"] [workerID=0] [2024/05/06 16:29:13.390 +08:00] [INFO] [backfilling.go:512] ["[ddl] send range task to workers, change end key"] ["end key"=7480000000000000525f69ffff000000000003ff] ["current end key"=7480000000000000525f69ffff000000000003] [2024/05/06 16:29:13.390 +08:00] [INFO] [backfilling.go:293] ["[ddl] backfill worker finish task"] [type="merge temporary index"] ["worker ID"=0] [task="taskID_0_physicalTableID_82_[7480000000000000525f69ffff000000000003,7480000000000000525f69ffff000000000003]"] ["added count"=0] ["scan count"=0] ["next key"=7480000000000000525f69ffff00000000000300] ["take time"=97.84µs] [2024/05/06 16:29:13.393 +08:00] [INFO] [backfilling.go:478] ["[ddl] backfill workers successfully processed batch"] ["element type"=_idx_] ["element ID"=3] ["total added count"=4] ["start key"=7480000000000000525f69ffff000000000003] ["next key"=7480000000000000525f69ffff00000000000300] ["batch added count"=0] ["take time"=632.846µs] [] [2024/05/06 16:29:13.393 +08:00] [INFO] [reorg.go:238] ["[ddl] run reorg job done"] ["handled rows"=4] [2024/05/06 16:29:13.394 +08:00] [INFO] [backfilling.go:323] ["[ddl] backfill worker exit"] [type="merge temporary index"] [workerID=0] [2024/05/06 16:29:13.394 +08:00] [INFO] [index.go:685] ["[ddl] run add index job done"] [charset=utf8mb4] [collation=utf8mb4_general_ci] [2024/05/06 16:29:13.396 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=62] [neededSchemaVersion=63] ["start time"=231.041µs] [phyTblIDs="[82]"] [actionTypes="[128]"] [2024/05/06 16:29:13.416 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:13.416 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=87] [version=63] [2024/05/06 16:29:13.416 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=63] ["take time"=20.556837ms] [job="ID:87, Type:add index, State:done, SchemaState:public, SchemaID:80, TableID:82, RowCount:4, ArgLen:3, start time: 2024-05-06 16:29:13.085 +0800 CST, Err:, ErrCount:0, SnapshotVersion:449572805902598146, UniqueWarnings:0"] [2024/05/06 16:29:13.444 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=87] [elementID=1] [comment="physical ID is 82"] [2024/05/06 16:29:13.447 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=87] [jobType="add index"] [2024/05/06 16:29:13.448 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 43, tp add index"] [job="ID:87, Type:add index, State:synced, SchemaState:public, SchemaID:80, TableID:82, RowCount:4, ArgLen:3, start time: 2024-05-06 16:29:13.085 +0800 CST, Err:, ErrCount:0, SnapshotVersion:449572805902598146, UniqueWarnings:0"] [2024/05/06 16:29:13.453 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=87] [elementID=1] [startKey=7480000000000000525f69ffff000000000003] [endKey=7480000000000000525f69ffff000000000004] [2024/05/06 16:29:13.455 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=87] [2024/05/06 16:29:13.455 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:13.455 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# User@Host: root[root] @ 127.0.0.1 [127.0.0.1]\n# Conn_ID: 405\n# Query_time: 0.371653481\n# Parse_time: 0.000033811\n# Compile_time: 0.000105777\n# Rewrite_time: 0.000029987\n# Optimize_time: 0\n# Wait_TS: 0.000008448\n# DB: tidb\n# Is_internal: false\n# Digest: 9fa63e71da424fce7a18f48ec3186335d0337b99af62091946117c8b64ef45b3\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0.000001207\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\nalter table tidb.test add unique index idx2 (a, b);"] [2024/05/06 16:29:13.460 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=405] [schemaVersion=63] [cur_db=tidb] [sql="create table tidb.pt (a int primary key, b varchar(20), key idx(a, b))\npartition by range (a)\n(partition p0 values less than (256),\n partition p1 values less than (512),\n partition p2 values less than (1024))"] [user=root@%] [2024/05/06 16:29:13.470 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:92, Type:create table, State:queueing, SchemaState:none, SchemaID:80, TableID:88, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:13.462 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:13.471 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:92, Type:create table, State:queueing, SchemaState:none, SchemaID:80, TableID:88, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:13.462 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="create table tidb.pt (a int primary key, b varchar(20), key idx(a, b))\npartition by range (a)\n(partition p0 values less than (256),\n partition p1 values less than (512),\n partition p2 values less than (1024))"] [2024/05/06 16:29:13.495 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 37, tp general"] [job="ID:92, Type:create table, State:queueing, SchemaState:none, SchemaID:80, TableID:88, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:13.462 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:13.509 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=63] [neededSchemaVersion=64] ["start time"=2.216371ms] [phyTblIDs="[88,89,90,91]"] [actionTypes="[8,8,8,8]"] [2024/05/06 16:29:13.517 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:13.517 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=92] [version=64] [2024/05/06 16:29:13.521 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=64] ["take time"=14.212513ms] [job="ID:92, Type:create table, State:done, SchemaState:public, SchemaID:80, TableID:88, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:13.462 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:13.528 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 37, tp general"] [job="ID:92, Type:create table, State:synced, SchemaState:public, SchemaID:80, TableID:88, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:13.462 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:13.533 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=92] [2024/05/06 16:29:13.533 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:13.535 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=405] [schemaVersion=64] [cur_db=tidb] [sql="drop table if exists t"] [user=root@%] [2024/05/06 16:29:13.536 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=405] [schemaVersion=64] [cur_db=tidb] [sql="create table t (a double, b varchar(20), c int, primary key(a,b) clustered, key idx(c))"] [user=root@%] [2024/05/06 16:29:13.539 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:94, Type:create table, State:queueing, SchemaState:none, SchemaID:80, TableID:93, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:13.537 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:13.539 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:94, Type:create table, State:queueing, SchemaState:none, SchemaID:80, TableID:93, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:13.537 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="create table t (a double, b varchar(20), c int, primary key(a,b) clustered, key idx(c))"] [2024/05/06 16:29:13.556 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 37, tp general"] [job="ID:94, Type:create table, State:queueing, SchemaState:none, SchemaID:80, TableID:93, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:13.537 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:13.565 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=64] [neededSchemaVersion=65] ["start time"=826.016µs] [phyTblIDs="[93]"] [actionTypes="[8]"] [2024/05/06 16:29:13.569 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:13.569 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=94] [version=65] [2024/05/06 16:29:13.571 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=65] ["take time"=6.689935ms] [job="ID:94, Type:create table, State:done, SchemaState:public, SchemaID:80, TableID:93, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:13.537 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:13.600 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 37, tp general"] [job="ID:94, Type:create table, State:synced, SchemaState:public, SchemaID:80, TableID:93, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:13.537 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:13.603 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=94] [2024/05/06 16:29:13.603 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:13.608 +08:00] [INFO] [server.go:555] ["setting tidb-server to report unhealthy (shutting-down)"] [2024/05/06 16:29:13.608 +08:00] [ERROR] [http_status.go:509] ["start status/rpc server error"] [error="accept tcp 127.0.0.1:38345: use of closed network connection"] [stack="github.com/pingcap/tidb/server.(*Server).startStatusServerAndRPCServer\n\tserver/http_status.go:509\ngithub.com/pingcap/tidb/server.(*Server).startHTTPServer\n\tserver/http_status.go:455"] [2024/05/06 16:29:13.608 +08:00] [ERROR] [http_status.go:499] ["grpc server error"] [error="mux: server closed"] [stack="github.com/pingcap/tidb/server.(*Server).startStatusServerAndRPCServer.func1\n\tserver/http_status.go:499\ngithub.com/pingcap/tidb/util.WithRecovery\n\tutil/misc.go:96"] [2024/05/06 16:29:13.608 +08:00] [ERROR] [http_status.go:504] ["http server error"] [error="http: Server closed"] [stack="github.com/pingcap/tidb/server.(*Server).startStatusServerAndRPCServer.func2\n\tserver/http_status.go:504\ngithub.com/pingcap/tidb/util.WithRecovery\n\tutil/misc.go:96"] [2024/05/06 16:29:13.612 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:29:13.612 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 40, tp add index"] ["take time"=1.929µs] [2024/05/06 16:29:13.612 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 41, tp add index"] ["take time"=1.492µs] [2024/05/06 16:29:13.612 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 42, tp add index"] ["take time"=828ns] [2024/05/06 16:29:13.612 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 43, tp add index"] ["take time"=1.363µs] [2024/05/06 16:29:13.612 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 44, tp add index"] ["take time"=1.053µs] [2024/05/06 16:29:13.612 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 45, tp add index"] ["take time"=1.243µs] [2024/05/06 16:29:13.612 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 46, tp add index"] ["take time"=1µs] [2024/05/06 16:29:13.612 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 47, tp add index"] ["take time"=1.064µs] [2024/05/06 16:29:13.612 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 38, tp add index"] ["take time"=948ns] [2024/05/06 16:29:13.612 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 39, tp add index"] ["take time"=922ns] [2024/05/06 16:29:13.612 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:29:13.612 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 37, tp general"] ["take time"=1.031µs] [2024/05/06 16:29:13.612 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 35, tp general"] ["take time"=395ns] [2024/05/06 16:29:13.612 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 36, tp add index"] ["take time"=508ns] [2024/05/06 16:29:13.612 +08:00] [INFO] [delete_range.go:148] ["[ddl] closing delRange"] [2024/05/06 16:29:13.612 +08:00] [INFO] [session_pool.go:94] ["[ddl] closing sessionPool"] [2024/05/06 16:29:13.613 +08:00] [INFO] [ddl.go:833] ["[ddl] DDL closed"] [ID=cd23a970-f714-4e13-8934-147c108b2c6a] ["take time"=4.522168ms] [2024/05/06 16:29:13.613 +08:00] [INFO] [ddl.go:657] ["[ddl] stop DDL"] [ID=cd23a970-f714-4e13-8934-147c108b2c6a] [2024/05/06 16:29:13.613 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:29:13.613 +08:00] [INFO] [domain.go:1525] ["globalBindHandleWorkerLoop exited."] [2024/05/06 16:29:13.613 +08:00] [INFO] [domain.go:792] ["loadSchemaInLoop exited."] [2024/05/06 16:29:13.613 +08:00] [INFO] [domain.go:1748] ["dumpFileGcChecker exited."] [2024/05/06 16:29:13.613 +08:00] [INFO] [domain.go:1444] ["LoadSysVarCacheLoop exited."] [2024/05/06 16:29:13.613 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:29:13.613 +08:00] [INFO] [domain.go:1394] ["loadPrivilegeInLoop exited."] [2024/05/06 16:29:13.613 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:29:13.613 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:29:13.613 +08:00] [INFO] [domain.go:1569] ["handleEvolvePlanTasksLoop exited."] [2024/05/06 16:29:13.613 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:29:13.613 +08:00] [INFO] [domain.go:603] ["infoSyncerKeeper exited."] [2024/05/06 16:29:13.613 +08:00] [INFO] [domain.go:651] ["topologySyncerKeeper exited."] [2024/05/06 16:29:13.613 +08:00] [INFO] [domain.go:628] ["globalConfigSyncerKeeper exited."] [2024/05/06 16:29:13.613 +08:00] [INFO] [domain.go:574] ["topNSlowQueryLoop exited."] [2024/05/06 16:29:13.614 +08:00] [INFO] [domain.go:1156] ["closestReplicaReadCheckLoop exited."] [2024/05/06 16:29:13.614 +08:00] [INFO] [domain.go:920] ["domain closed"] ["take time"=5.315679ms] [2024/05/06 16:29:13.615 +08:00] [INFO] [db.go:567] ["Closing database"] [2024/05/06 16:29:13.615 +08:00] [INFO] [db.go:592] ["Memtable flushed"] [2024/05/06 16:29:13.615 +08:00] [INFO] [db.go:596] ["Compaction finished"] [2024/05/06 16:29:13.615 +08:00] [INFO] [db.go:615] ["BlobManager finished"] [2024/05/06 16:29:13.615 +08:00] [INFO] [db.go:619] ["ResourceManager finished"] [2024/05/06 16:29:13.615 +08:00] [INFO] [db.go:625] ["Waiting for closer"] --- PASS: TestGetIndexMVCC (4.60s) === RUN TestStatusAPIWithTLS [2024/05/06 16:29:13.626 +08:00] [INFO] [region_cache.go:2484] ["change store resolve state"] [store=1] [addr=store1] [from=unresolved] [to=resolved] [liveness-state=reachable] [2024/05/06 16:29:13.626 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:29:13.626 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:29:13.627 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:29:13.627 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:29:13.627 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:29:13.628 +08:00] [INFO] [tidb.go:77] ["new domain"] [store=8de63c22-53f6-4223-b192-2155ed562ae2] ["ddl lease"=500ms] ["stats lease"=-1ns] ["index usage sync lease"=0s] [2024/05/06 16:29:13.628 +08:00] [WARN] [domain.go:188] ["failed to get schema version"] [error="There is no Write MVCC info for the schema version"] [errorVerbose="There is no Write MVCC info for the schema version\ngithub.com/pingcap/tidb/domain.(*Domain).getTimestampForSchemaVersionWithNonEmptyDiff\n\tdomain/domain.go:261\ngithub.com/pingcap/tidb/domain.(*Domain).loadInfoSchema\n\tdomain/domain.go:186\ngithub.com/pingcap/tidb/domain.(*Domain).Reload\n\tdomain/domain.go:502\ngithub.com/pingcap/tidb/domain.(*Domain).Init\n\tdomain/domain.go:1074\ngithub.com/pingcap/tidb/session.(*domainMap).Get.func1\n\tsession/tidb.go:90\ngithub.com/pingcap/tidb/util.RunWithRetry\n\tutil/misc.go:69\ngithub.com/pingcap/tidb/session.(*domainMap).Get\n\tsession/tidb.go:76\ngithub.com/pingcap/tidb/session.createSessionWithOpt\n\tsession/session.go:3520\ngithub.com/pingcap/tidb/session.createSession\n\tsession/session.go:3516\ngithub.com/pingcap/tidb/session.runInBootstrapSession\n\tsession/session.go:3480\ngithub.com/pingcap/tidb/session.BootstrapSession\n\tsession/session.go:3309\ngithub.com/pingcap/tidb/server.createTidbTestSuite\n\tserver/tidb_test.go:93\ngithub.com/pingcap/tidb/server.TestStatusAPIWithTLS\n\tserver/tidb_test.go:255\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1446\nruntime.goexit\n\tGOROOT/src/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:29:13.631 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=0] ["start time"=2.796398ms] [2024/05/06 16:29:13.631 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:29:13.631 +08:00] [INFO] [ddl.go:719] ["[ddl] start DDL"] [ID=b9453591-bd03-4f13-b65c-e3a22296bd34] [runWorker=true] [2024/05/06 16:29:13.632 +08:00] [INFO] [ddl.go:665] ["[ddl] start delRangeManager OK"] ["is a emulator"=true] [2024/05/06 16:29:13.632 +08:00] [WARN] [env.go:52] ["[ddl-ingest] initialize environment failed"] ["storage limitation"="only support TiKV storage"] ["current storage"=unistore] ["lightning is initialized"=true] [2024/05/06 16:29:13.632 +08:00] [INFO] [env.go:108] ["[ddl-ingest] the lightning sorted dir"] ["data path:"=/tmp/tidb/tmp_ddl-4000] [2024/05/06 16:29:13.632 +08:00] [INFO] [delete_range.go:158] ["[ddl] start delRange emulator"] [2024/05/06 16:29:13.632 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 48, tp general"] [2024/05/06 16:29:13.632 +08:00] [INFO] [env.go:75] ["[ddl-ingest] init global lightning backend environment finished"] ["memory limitation"=2147483648] ["sort path disk quota"=107374182400] ["max open file number"=1073741816] ["lightning is initialized"=true] [2024/05/06 16:29:13.632 +08:00] [WARN] [domain.go:1120] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 16:29:13.632 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 49, tp add index"] [2024/05/06 16:29:13.633 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=0] [cur_db=mysql] [sql="CREATE DATABASE IF NOT EXISTS test"] [user=] [2024/05/06 16:29:13.635 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:3, Type:create schema, State:queueing, SchemaState:none, SchemaID:2, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 16:29:13.634 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:13.636 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:3, Type:create schema, State:queueing, SchemaState:none, SchemaID:2, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 16:29:13.634 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE DATABASE IF NOT EXISTS test"] [2024/05/06 16:29:13.641 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 50, tp general"] [job="ID:3, Type:create schema, State:queueing, SchemaState:none, SchemaID:2, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:13.634 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:13.646 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=1] ["start time"=2.549145ms] [2024/05/06 16:29:13.646 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:29:13.683 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:13.683 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=3] [version=1] [2024/05/06 16:29:13.684 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=1] ["take time"=40.969077ms] [job="ID:3, Type:create schema, State:done, SchemaState:public, SchemaID:2, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 16:29:13.634 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:13.689 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 50, tp general"] [job="ID:3, Type:create schema, State:synced, SchemaState:public, SchemaID:2, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:13.634 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:13.691 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=3] [2024/05/06 16:29:13.691 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:13.692 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=1] [cur_db=mysql] [sql="CREATE DATABASE IF NOT EXISTS `mysql`"] [user=] [2024/05/06 16:29:13.692 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=1] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.user (\n\t\tHost\t\t\t\t\tCHAR(255),\n\t\tUser\t\t\t\t\tCHAR(32),\n\t\tauthentication_string\tTEXT,\n\t\tplugin\t\t\t\t\tCHAR(64),\n\t\tSelect_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tInsert_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tUpdate_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tDelete_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tDrop_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tProcess_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tGrant_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tReferences_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tAlter_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tShow_db_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tSuper_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_tmp_table_priv\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tLock_tables_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tExecute_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_view_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tShow_view_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_routine_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tAlter_routine_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tIndex_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_user_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tEvent_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tRepl_slave_priv\t \tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tRepl_client_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tTrigger_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_role_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tDrop_role_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tAccount_locked\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tShutdown_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tReload_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tFILE_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tConfig_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_Tablespace_Priv ENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tPassword_reuse_history smallint unsigned DEFAULT NULL,\n\t\tPassword_reuse_time smallint unsigned DEFAULT NULL,\n\t\tUser_attributes\t\t\tjson,\n\t\tToken_issuer\t\t\tVARCHAR(255),\n\t\tPassword_expired\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tPassword_last_changed\tTIMESTAMP DEFAULT CURRENT_TIMESTAMP(),\n\t\tPassword_lifetime\t\tSMALLINT UNSIGNED DEFAULT NULL,\n\t\tPRIMARY KEY (Host, User));"] [user=] [2024/05/06 16:29:13.698 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:5, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:4, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:13.694 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:13.698 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:5, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:4, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:13.694 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.user (\n\t\tHost\t\t\t\t\tCHAR(255),\n\t\tUser\t\t\t\t\tCHAR(32),\n\t\tauthentication_string\tTEXT,\n\t\tplugin\t\t\t\t\tCHAR(64),\n\t\tSelect_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tInsert_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tUpdate_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tDelete_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tDrop_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tProcess_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tGrant_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tReferences_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tAlter_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tShow_db_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tSuper_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_tmp_table_priv\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tLock_tables_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tExecute_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_view_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tShow_view_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_routine_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tAlter_routine_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tIndex_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_user_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tEvent_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tRepl_slave_priv\t \tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tRepl_client_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tTrigger_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_role_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tDrop_role_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tAccount_locked\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tShutdown_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tReload_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tFILE_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tConfig_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_Tablespace_Priv ENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tPassword_reuse_history smallint unsigned DEFAULT NULL,\n\t\tPassword_reuse_time smallint unsigned DEFAULT NULL,\n\t\tUser_attributes\t\t\tjson,\n\t\tToken_issuer\t\t\tVARCHAR(255),\n\t\tPassword_expired\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tPassword_last_changed\tTIMESTAMP DEFAULT CURRENT_TIMESTAMP(),\n\t\tPassword_lifetime\t\tSMALLINT UNSIGNED DEFAULT NULL,\n\t\tPRIMARY KEY (Host, User));"] [2024/05/06 16:29:13.704 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 50, tp general"] [job="ID:5, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:4, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:13.694 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:13.716 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=1] [neededSchemaVersion=2] ["start time"=971.329µs] [phyTblIDs="[4]"] [actionTypes="[8]"] [2024/05/06 16:29:13.733 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:13.733 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=5] [version=2] [2024/05/06 16:29:13.735 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=2] ["take time"=20.988306ms] [job="ID:5, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:4, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:13.694 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:13.744 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 50, tp general"] [job="ID:5, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:4, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:13.694 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:13.763 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=5] [2024/05/06 16:29:13.763 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:13.763 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=2] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.password_history (\n Host char(255) NOT NULL DEFAULT '',\n User char(32) NOT NULL DEFAULT '',\n Password_timestamp timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),\n Password text,\n PRIMARY KEY (Host,User,Password_timestamp )\n ) COMMENT='Password history for user accounts' "] [user=] [2024/05/06 16:29:13.767 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:7, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:6, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:13.765 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:13.767 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:7, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:6, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:13.765 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.password_history (\n Host char(255) NOT NULL DEFAULT '',\n User char(32) NOT NULL DEFAULT '',\n Password_timestamp timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),\n Password text,\n PRIMARY KEY (Host,User,Password_timestamp )\n ) COMMENT='Password history for user accounts' "] [2024/05/06 16:29:13.773 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 50, tp general"] [job="ID:7, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:6, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:13.765 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:13.776 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=2] [neededSchemaVersion=3] ["start time"=276.593µs] [phyTblIDs="[6]"] [actionTypes="[8]"] [2024/05/06 16:29:13.782 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:13.783 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=7] [version=3] [2024/05/06 16:29:13.785 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=3] ["take time"=8.835982ms] [job="ID:7, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:6, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:13.765 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:13.789 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 50, tp general"] [job="ID:7, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:6, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:13.765 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:13.793 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=7] [2024/05/06 16:29:13.793 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:13.793 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=3] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.global_priv (Host CHAR(255) NOT NULL DEFAULT '',User CHAR(80) NOT NULL DEFAULT '',Priv LONGTEXT NOT NULL DEFAULT '',PRIMARY KEY (Host, User))"] [user=] [2024/05/06 16:29:13.796 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:9, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:8, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:13.794 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:13.796 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:9, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:8, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:13.794 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.global_priv (Host CHAR(255) NOT NULL DEFAULT '',User CHAR(80) NOT NULL DEFAULT '',Priv LONGTEXT NOT NULL DEFAULT '',PRIMARY KEY (Host, User))"] [2024/05/06 16:29:13.802 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 50, tp general"] [job="ID:9, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:8, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:13.794 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:13.805 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=3] [neededSchemaVersion=4] ["start time"=244.946µs] [phyTblIDs="[8]"] [actionTypes="[8]"] [2024/05/06 16:29:13.833 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:13.833 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=9] [version=4] [2024/05/06 16:29:13.834 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=4] ["take time"=29.508697ms] [job="ID:9, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:8, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:13.794 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:13.841 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 50, tp general"] [job="ID:9, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:8, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:13.794 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:13.848 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=9] [2024/05/06 16:29:13.848 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:13.848 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=4] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.db (\n\t\tHost\t\t\t\t\tCHAR(255),\n\t\tDB\t\t\t\t\t\tCHAR(64),\n\t\tUser\t\t\t\t\tCHAR(32),\n\t\tSelect_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tInsert_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tUpdate_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tDelete_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tDrop_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tGrant_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tReferences_priv \t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tIndex_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tAlter_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_tmp_table_priv\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tLock_tables_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_view_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tShow_view_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_routine_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tAlter_routine_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tExecute_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tEvent_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tTrigger_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tPRIMARY KEY (Host, DB, User));"] [user=] [2024/05/06 16:29:13.852 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:11, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:10, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:13.85 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:13.853 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:11, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:10, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:13.85 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.db (\n\t\tHost\t\t\t\t\tCHAR(255),\n\t\tDB\t\t\t\t\t\tCHAR(64),\n\t\tUser\t\t\t\t\tCHAR(32),\n\t\tSelect_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tInsert_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tUpdate_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tDelete_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tDrop_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tGrant_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tReferences_priv \t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tIndex_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tAlter_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_tmp_table_priv\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tLock_tables_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_view_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tShow_view_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tCreate_routine_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tAlter_routine_priv\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tExecute_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tEvent_priv\t\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tTrigger_priv\t\t\tENUM('N','Y') NOT NULL DEFAULT 'N',\n\t\tPRIMARY KEY (Host, DB, User));"] [2024/05/06 16:29:13.864 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 50, tp general"] [job="ID:11, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:10, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:13.85 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:13.869 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=4] [neededSchemaVersion=5] ["start time"=421.006µs] [phyTblIDs="[10]"] [actionTypes="[8]"] [2024/05/06 16:29:13.883 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:13.883 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=11] [version=5] [2024/05/06 16:29:13.885 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=5] ["take time"=16.274145ms] [job="ID:11, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:10, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:13.85 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:13.891 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 50, tp general"] [job="ID:11, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:10, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:13.85 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:13.897 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=11] [2024/05/06 16:29:13.897 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:13.897 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=5] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.tables_priv (\n\t\tHost\t\tCHAR(255),\n\t\tDB\t\t\tCHAR(64),\n\t\tUser\t\tCHAR(32),\n\t\tTable_name\tCHAR(64),\n\t\tGrantor\t\tCHAR(77),\n\t\tTimestamp\tTIMESTAMP DEFAULT CURRENT_TIMESTAMP,\n\t\tTable_priv\tSET('Select','Insert','Update','Delete','Create','Drop','Grant','Index','Alter','Create View','Show View','Trigger','References'),\n\t\tColumn_priv\tSET('Select','Insert','Update','References'),\n\t\tPRIMARY KEY (Host, DB, User, Table_name));"] [user=] [2024/05/06 16:29:13.900 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:13, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:12, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:13.898 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:13.900 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:13, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:12, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:13.898 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.tables_priv (\n\t\tHost\t\tCHAR(255),\n\t\tDB\t\t\tCHAR(64),\n\t\tUser\t\tCHAR(32),\n\t\tTable_name\tCHAR(64),\n\t\tGrantor\t\tCHAR(77),\n\t\tTimestamp\tTIMESTAMP DEFAULT CURRENT_TIMESTAMP,\n\t\tTable_priv\tSET('Select','Insert','Update','Delete','Create','Drop','Grant','Index','Alter','Create View','Show View','Trigger','References'),\n\t\tColumn_priv\tSET('Select','Insert','Update','References'),\n\t\tPRIMARY KEY (Host, DB, User, Table_name));"] [2024/05/06 16:29:13.907 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 50, tp general"] [job="ID:13, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:12, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:13.898 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:13.911 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=5] [neededSchemaVersion=6] ["start time"=429.964µs] [phyTblIDs="[12]"] [actionTypes="[8]"] [2024/05/06 16:29:13.934 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:13.934 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=13] [version=6] [2024/05/06 16:29:13.934 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=6] ["take time"=24.133945ms] [job="ID:13, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:12, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:13.898 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:13.941 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 50, tp general"] [job="ID:13, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:12, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:13.898 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:13.945 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=13] [2024/05/06 16:29:13.946 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:13.946 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=6] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.columns_priv(\n\t\tHost\t\tCHAR(255),\n\t\tDB\t\t\tCHAR(64),\n\t\tUser\t\tCHAR(32),\n\t\tTable_name\tCHAR(64),\n\t\tColumn_name\tCHAR(64),\n\t\tTimestamp\tTIMESTAMP DEFAULT CURRENT_TIMESTAMP,\n\t\tColumn_priv\tSET('Select','Insert','Update','References'),\n\t\tPRIMARY KEY (Host, DB, User, Table_name, Column_name));"] [user=] [2024/05/06 16:29:13.952 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:15, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:14, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:13.95 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:13.952 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:15, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:14, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:13.95 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.columns_priv(\n\t\tHost\t\tCHAR(255),\n\t\tDB\t\t\tCHAR(64),\n\t\tUser\t\tCHAR(32),\n\t\tTable_name\tCHAR(64),\n\t\tColumn_name\tCHAR(64),\n\t\tTimestamp\tTIMESTAMP DEFAULT CURRENT_TIMESTAMP,\n\t\tColumn_priv\tSET('Select','Insert','Update','References'),\n\t\tPRIMARY KEY (Host, DB, User, Table_name, Column_name));"] [2024/05/06 16:29:13.962 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 50, tp general"] [job="ID:15, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:14, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:13.95 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:13.966 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=6] [neededSchemaVersion=7] ["start time"=362.08µs] [phyTblIDs="[14]"] [actionTypes="[8]"] [2024/05/06 16:29:13.982 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:13.982 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=15] [version=7] [2024/05/06 16:29:13.984 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=7] ["take time"=18.58633ms] [job="ID:15, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:14, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:13.95 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:13.989 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 50, tp general"] [job="ID:15, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:14, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:13.95 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:13.992 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=15] [2024/05/06 16:29:13.992 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:13.992 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=7] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.GLOBAL_VARIABLES(\n\t\tVARIABLE_NAME VARCHAR(64) NOT NULL PRIMARY KEY,\n\t\tVARIABLE_VALUE VARCHAR(1024) DEFAULT NULL);"] [user=] [2024/05/06 16:29:13.994 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:17, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:16, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:13.993 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:13.994 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:17, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:16, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:13.993 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.GLOBAL_VARIABLES(\n\t\tVARIABLE_NAME VARCHAR(64) NOT NULL PRIMARY KEY,\n\t\tVARIABLE_VALUE VARCHAR(1024) DEFAULT NULL);"] [2024/05/06 16:29:13.999 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 50, tp general"] [job="ID:17, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:16, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:13.993 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.002 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=7] [neededSchemaVersion=8] ["start time"=203.562µs] [phyTblIDs="[16]"] [actionTypes="[8]"] [2024/05/06 16:29:14.038 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:14.039 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=17] [version=8] [2024/05/06 16:29:14.040 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=8] ["take time"=38.810049ms] [job="ID:17, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:16, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:13.993 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.046 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 50, tp general"] [job="ID:17, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:16, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:13.993 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.049 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=17] [2024/05/06 16:29:14.049 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:14.050 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=8] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.tidb(\n\t\tVARIABLE_NAME \tVARCHAR(64) NOT NULL PRIMARY KEY,\n\t\tVARIABLE_VALUE \tVARCHAR(1024) DEFAULT NULL,\n\t\tCOMMENT \t\tVARCHAR(1024));"] [user=] [2024/05/06 16:29:14.053 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:19, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:18, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.052 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:14.053 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:19, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:18, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.052 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.tidb(\n\t\tVARIABLE_NAME \tVARCHAR(64) NOT NULL PRIMARY KEY,\n\t\tVARIABLE_VALUE \tVARCHAR(1024) DEFAULT NULL,\n\t\tCOMMENT \t\tVARCHAR(1024));"] [2024/05/06 16:29:14.059 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 50, tp general"] [job="ID:19, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:18, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:14.052 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.062 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=8] [neededSchemaVersion=9] ["start time"=206.037µs] [phyTblIDs="[18]"] [actionTypes="[8]"] [2024/05/06 16:29:14.082 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:14.082 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=19] [version=9] [2024/05/06 16:29:14.085 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=9] ["take time"=22.677286ms] [job="ID:19, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:18, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.052 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.088 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 50, tp general"] [job="ID:19, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:18, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:14.052 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.091 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=19] [2024/05/06 16:29:14.091 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:14.091 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=9] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.help_topic (\n \t\thelp_topic_id \t\tINT(10) UNSIGNED NOT NULL,\n \t\tname \t\t\t\tCHAR(64) NOT NULL,\n \t\thelp_category_id \tSMALLINT(5) UNSIGNED NOT NULL,\n \t\tdescription \t\tTEXT NOT NULL,\n \t\texample \t\t\tTEXT NOT NULL,\n \t\turl \t\t\t\tTEXT NOT NULL,\n \t\tPRIMARY KEY (help_topic_id) clustered,\n \t\tUNIQUE KEY name (name)\n\t\t) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='help topics';"] [user=] [2024/05/06 16:29:14.093 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:21, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:20, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.092 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:14.093 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:21, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:20, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.092 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.help_topic (\n \t\thelp_topic_id \t\tINT(10) UNSIGNED NOT NULL,\n \t\tname \t\t\t\tCHAR(64) NOT NULL,\n \t\thelp_category_id \tSMALLINT(5) UNSIGNED NOT NULL,\n \t\tdescription \t\tTEXT NOT NULL,\n \t\texample \t\t\tTEXT NOT NULL,\n \t\turl \t\t\t\tTEXT NOT NULL,\n \t\tPRIMARY KEY (help_topic_id) clustered,\n \t\tUNIQUE KEY name (name)\n\t\t) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='help topics';"] [2024/05/06 16:29:14.099 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 50, tp general"] [job="ID:21, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:20, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:14.092 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.102 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=9] [neededSchemaVersion=10] ["start time"=226.408µs] [phyTblIDs="[20]"] [actionTypes="[8]"] [2024/05/06 16:29:14.133 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:14.133 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=21] [version=10] [2024/05/06 16:29:14.134 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=10] ["take time"=32.613959ms] [job="ID:21, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:20, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.092 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.140 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 50, tp general"] [job="ID:21, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:20, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:14.092 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.144 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=21] [2024/05/06 16:29:14.144 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:14.144 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=10] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.stats_meta (\n\t\tversion \t\tBIGINT(64) UNSIGNED NOT NULL,\n\t\ttable_id \t\tBIGINT(64) NOT NULL,\n\t\tmodify_count\tBIGINT(64) NOT NULL DEFAULT 0,\n\t\tcount \t\t\tBIGINT(64) UNSIGNED NOT NULL DEFAULT 0,\n\t\tsnapshot BIGINT(64) UNSIGNED NOT NULL DEFAULT 0,\n\t\tINDEX idx_ver(version),\n\t\tUNIQUE INDEX tbl(table_id)\n\t);"] [user=] [2024/05/06 16:29:14.147 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:23, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:22, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.146 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:14.147 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:23, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:22, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.146 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.stats_meta (\n\t\tversion \t\tBIGINT(64) UNSIGNED NOT NULL,\n\t\ttable_id \t\tBIGINT(64) NOT NULL,\n\t\tmodify_count\tBIGINT(64) NOT NULL DEFAULT 0,\n\t\tcount \t\t\tBIGINT(64) UNSIGNED NOT NULL DEFAULT 0,\n\t\tsnapshot BIGINT(64) UNSIGNED NOT NULL DEFAULT 0,\n\t\tINDEX idx_ver(version),\n\t\tUNIQUE INDEX tbl(table_id)\n\t);"] [2024/05/06 16:29:14.153 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 50, tp general"] [job="ID:23, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:22, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:14.146 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.157 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=10] [neededSchemaVersion=11] ["start time"=561.643µs] [phyTblIDs="[22]"] [actionTypes="[8]"] [2024/05/06 16:29:14.183 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:14.183 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=23] [version=11] [2024/05/06 16:29:14.185 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=11] ["take time"=29.022689ms] [job="ID:23, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:22, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.146 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.189 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 50, tp general"] [job="ID:23, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:22, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:14.146 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.192 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=23] [2024/05/06 16:29:14.192 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:14.193 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=11] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.stats_histograms (\n\t\ttable_id \t\t\tBIGINT(64) NOT NULL,\n\t\tis_index \t\t\tTINYINT(2) NOT NULL,\n\t\thist_id \t\t\tBIGINT(64) NOT NULL,\n\t\tdistinct_count \t\tBIGINT(64) NOT NULL,\n\t\tnull_count \t\t\tBIGINT(64) NOT NULL DEFAULT 0,\n\t\ttot_col_size \t\tBIGINT(64) NOT NULL DEFAULT 0,\n\t\tmodify_count \t\tBIGINT(64) NOT NULL DEFAULT 0,\n\t\tversion \t\t\tBIGINT(64) UNSIGNED NOT NULL DEFAULT 0,\n\t\tcm_sketch \t\t\tBLOB(6291456),\n\t\tstats_ver \t\t\tBIGINT(64) NOT NULL DEFAULT 0,\n\t\tflag \t\t\t\tBIGINT(64) NOT NULL DEFAULT 0,\n\t\tcorrelation \t\tDOUBLE NOT NULL DEFAULT 0,\n\t\tlast_analyze_pos \tLONGBLOB DEFAULT NULL,\n\t\tUNIQUE INDEX tbl(table_id, is_index, hist_id)\n\t);"] [user=] [2024/05/06 16:29:14.193 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(6291456) to MEDIUMBLOB"] [2024/05/06 16:29:14.196 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:25, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:24, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.194 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:14.196 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:25, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:24, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.194 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.stats_histograms (\n\t\ttable_id \t\t\tBIGINT(64) NOT NULL,\n\t\tis_index \t\t\tTINYINT(2) NOT NULL,\n\t\thist_id \t\t\tBIGINT(64) NOT NULL,\n\t\tdistinct_count \t\tBIGINT(64) NOT NULL,\n\t\tnull_count \t\t\tBIGINT(64) NOT NULL DEFAULT 0,\n\t\ttot_col_size \t\tBIGINT(64) NOT NULL DEFAULT 0,\n\t\tmodify_count \t\tBIGINT(64) NOT NULL DEFAULT 0,\n\t\tversion \t\t\tBIGINT(64) UNSIGNED NOT NULL DEFAULT 0,\n\t\tcm_sketch \t\t\tBLOB(6291456),\n\t\tstats_ver \t\t\tBIGINT(64) NOT NULL DEFAULT 0,\n\t\tflag \t\t\t\tBIGINT(64) NOT NULL DEFAULT 0,\n\t\tcorrelation \t\tDOUBLE NOT NULL DEFAULT 0,\n\t\tlast_analyze_pos \tLONGBLOB DEFAULT NULL,\n\t\tUNIQUE INDEX tbl(table_id, is_index, hist_id)\n\t);"] [2024/05/06 16:29:14.201 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 50, tp general"] [job="ID:25, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:24, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:14.194 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.206 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=11] [neededSchemaVersion=12] ["start time"=436.442µs] [phyTblIDs="[24]"] [actionTypes="[8]"] [2024/05/06 16:29:14.232 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:14.232 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=25] [version=12] [2024/05/06 16:29:14.233 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=12] ["take time"=28.265789ms] [job="ID:25, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:24, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.194 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.240 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 50, tp general"] [job="ID:25, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:24, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:14.194 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.247 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=25] [2024/05/06 16:29:14.247 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:14.247 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=12] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.stats_buckets (\n\t\ttable_id \tBIGINT(64) NOT NULL,\n\t\tis_index \tTINYINT(2) NOT NULL,\n\t\thist_id \tBIGINT(64) NOT NULL,\n\t\tbucket_id \tBIGINT(64) NOT NULL,\n\t\tcount \t\tBIGINT(64) NOT NULL,\n\t\trepeats \tBIGINT(64) NOT NULL,\n\t\tupper_bound LONGBLOB NOT NULL,\n\t\tlower_bound LONGBLOB ,\n\t\tndv BIGINT NOT NULL DEFAULT 0,\n\t\tUNIQUE INDEX tbl(table_id, is_index, hist_id, bucket_id)\n\t);"] [user=] [2024/05/06 16:29:14.251 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:27, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:26, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.249 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:14.251 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:27, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:26, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.249 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.stats_buckets (\n\t\ttable_id \tBIGINT(64) NOT NULL,\n\t\tis_index \tTINYINT(2) NOT NULL,\n\t\thist_id \tBIGINT(64) NOT NULL,\n\t\tbucket_id \tBIGINT(64) NOT NULL,\n\t\tcount \t\tBIGINT(64) NOT NULL,\n\t\trepeats \tBIGINT(64) NOT NULL,\n\t\tupper_bound LONGBLOB NOT NULL,\n\t\tlower_bound LONGBLOB ,\n\t\tndv BIGINT NOT NULL DEFAULT 0,\n\t\tUNIQUE INDEX tbl(table_id, is_index, hist_id, bucket_id)\n\t);"] [2024/05/06 16:29:14.262 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 50, tp general"] [job="ID:27, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:26, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:14.249 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.266 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=12] [neededSchemaVersion=13] ["start time"=363.769µs] [phyTblIDs="[26]"] [actionTypes="[8]"] [2024/05/06 16:29:14.282 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:14.282 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=27] [version=13] [2024/05/06 16:29:14.283 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=13] ["take time"=18.050534ms] [job="ID:27, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:26, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.249 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.288 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 50, tp general"] [job="ID:27, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:26, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:14.249 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.291 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=27] [2024/05/06 16:29:14.291 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:14.291 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=13] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.gc_delete_range (\n\t\tjob_id \t\tBIGINT NOT NULL COMMENT \"the DDL job ID\",\n\t\telement_id \tBIGINT NOT NULL COMMENT \"the schema element ID\",\n\t\tstart_key \tVARCHAR(255) NOT NULL COMMENT \"encoded in hex\",\n\t\tend_key \tVARCHAR(255) NOT NULL COMMENT \"encoded in hex\",\n\t\tts \t\t\tBIGINT NOT NULL COMMENT \"timestamp in uint64\",\n\t\tUNIQUE KEY delete_range_index (job_id, element_id)\n\t);"] [user=] [2024/05/06 16:29:14.295 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:29, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:28, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.293 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:14.295 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:29, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:28, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.293 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.gc_delete_range (\n\t\tjob_id \t\tBIGINT NOT NULL COMMENT \"the DDL job ID\",\n\t\telement_id \tBIGINT NOT NULL COMMENT \"the schema element ID\",\n\t\tstart_key \tVARCHAR(255) NOT NULL COMMENT \"encoded in hex\",\n\t\tend_key \tVARCHAR(255) NOT NULL COMMENT \"encoded in hex\",\n\t\tts \t\t\tBIGINT NOT NULL COMMENT \"timestamp in uint64\",\n\t\tUNIQUE KEY delete_range_index (job_id, element_id)\n\t);"] [2024/05/06 16:29:14.300 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 50, tp general"] [job="ID:29, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:28, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:14.293 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.304 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=13] [neededSchemaVersion=14] ["start time"=251.384µs] [phyTblIDs="[28]"] [actionTypes="[8]"] [2024/05/06 16:29:14.332 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:14.332 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=29] [version=14] [2024/05/06 16:29:14.334 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=14] ["take time"=31.004876ms] [job="ID:29, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:28, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.293 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.343 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 50, tp general"] [job="ID:29, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:28, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:14.293 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.347 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=29] [2024/05/06 16:29:14.347 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:14.348 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=14] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.gc_delete_range_done (\n\t\tjob_id \t\tBIGINT NOT NULL COMMENT \"the DDL job ID\",\n\t\telement_id \tBIGINT NOT NULL COMMENT \"the schema element ID\",\n\t\tstart_key \tVARCHAR(255) NOT NULL COMMENT \"encoded in hex\",\n\t\tend_key \tVARCHAR(255) NOT NULL COMMENT \"encoded in hex\",\n\t\tts \t\t\tBIGINT NOT NULL COMMENT \"timestamp in uint64\",\n\t\tUNIQUE KEY delete_range_done_index (job_id, element_id)\n\t);"] [user=] [2024/05/06 16:29:14.350 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:31, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:30, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.349 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:14.350 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:31, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:30, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.349 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.gc_delete_range_done (\n\t\tjob_id \t\tBIGINT NOT NULL COMMENT \"the DDL job ID\",\n\t\telement_id \tBIGINT NOT NULL COMMENT \"the schema element ID\",\n\t\tstart_key \tVARCHAR(255) NOT NULL COMMENT \"encoded in hex\",\n\t\tend_key \tVARCHAR(255) NOT NULL COMMENT \"encoded in hex\",\n\t\tts \t\t\tBIGINT NOT NULL COMMENT \"timestamp in uint64\",\n\t\tUNIQUE KEY delete_range_done_index (job_id, element_id)\n\t);"] [2024/05/06 16:29:14.355 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 50, tp general"] [job="ID:31, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:30, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:14.349 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.359 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=14] [neededSchemaVersion=15] ["start time"=287.585µs] [phyTblIDs="[30]"] [actionTypes="[8]"] [2024/05/06 16:29:14.383 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:14.383 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=31] [version=15] [2024/05/06 16:29:14.385 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=15] ["take time"=26.323835ms] [job="ID:31, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:30, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.349 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.389 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 50, tp general"] [job="ID:31, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:30, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:14.349 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.392 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=31] [2024/05/06 16:29:14.392 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:14.393 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=15] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.stats_feedback (\n\t\ttable_id \tBIGINT(64) NOT NULL,\n\t\tis_index \tTINYINT(2) NOT NULL,\n\t\thist_id \tBIGINT(64) NOT NULL,\n\t\tfeedback \tBLOB NOT NULL,\n\t\tINDEX hist(table_id, is_index, hist_id)\n\t);"] [user=] [2024/05/06 16:29:14.395 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:33, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:32, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.394 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:14.395 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:33, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:32, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.394 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.stats_feedback (\n\t\ttable_id \tBIGINT(64) NOT NULL,\n\t\tis_index \tTINYINT(2) NOT NULL,\n\t\thist_id \tBIGINT(64) NOT NULL,\n\t\tfeedback \tBLOB NOT NULL,\n\t\tINDEX hist(table_id, is_index, hist_id)\n\t);"] [2024/05/06 16:29:14.402 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 50, tp general"] [job="ID:33, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:32, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:14.394 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.405 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=15] [neededSchemaVersion=16] ["start time"=309.412µs] [phyTblIDs="[32]"] [actionTypes="[8]"] [2024/05/06 16:29:14.432 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:14.432 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=33] [version=16] [2024/05/06 16:29:14.433 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=16] ["take time"=28.415282ms] [job="ID:33, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:32, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.394 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.441 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 50, tp general"] [job="ID:33, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:32, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:14.394 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.447 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=33] [2024/05/06 16:29:14.447 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:14.447 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=16] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.role_edges (\n\t\tFROM_HOST \t\t\tCHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tFROM_USER \t\t\tCHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tTO_HOST \t\t\tCHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tTO_USER \t\t\tCHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tWITH_ADMIN_OPTION \tENUM('N','Y') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'N',\n\t\tPRIMARY KEY (FROM_HOST,FROM_USER,TO_HOST,TO_USER)\n\t);"] [user=] [2024/05/06 16:29:14.454 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:35, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:34, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.453 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:14.454 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:35, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:34, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.453 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.role_edges (\n\t\tFROM_HOST \t\t\tCHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tFROM_USER \t\t\tCHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tTO_HOST \t\t\tCHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tTO_USER \t\t\tCHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tWITH_ADMIN_OPTION \tENUM('N','Y') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'N',\n\t\tPRIMARY KEY (FROM_HOST,FROM_USER,TO_HOST,TO_USER)\n\t);"] [2024/05/06 16:29:14.460 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 50, tp general"] [job="ID:35, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:34, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:14.453 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.463 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=16] [neededSchemaVersion=17] ["start time"=308.465µs] [phyTblIDs="[34]"] [actionTypes="[8]"] [2024/05/06 16:29:14.483 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:14.483 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=35] [version=17] [2024/05/06 16:29:14.485 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=17] ["take time"=22.554108ms] [job="ID:35, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:34, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.453 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.489 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 50, tp general"] [job="ID:35, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:34, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:14.453 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.492 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=35] [2024/05/06 16:29:14.493 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:14.493 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=17] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.default_roles (\n\t\tHOST \t\t\t\tCHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tUSER \t\t\t\tCHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tDEFAULT_ROLE_HOST \tCHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '%',\n\t\tDEFAULT_ROLE_USER \tCHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tPRIMARY KEY (HOST,USER,DEFAULT_ROLE_HOST,DEFAULT_ROLE_USER)\n\t)"] [user=] [2024/05/06 16:29:14.495 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:37, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:36, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.494 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:14.495 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:37, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:36, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.494 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.default_roles (\n\t\tHOST \t\t\t\tCHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tUSER \t\t\t\tCHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tDEFAULT_ROLE_HOST \tCHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '%',\n\t\tDEFAULT_ROLE_USER \tCHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '',\n\t\tPRIMARY KEY (HOST,USER,DEFAULT_ROLE_HOST,DEFAULT_ROLE_USER)\n\t)"] [2024/05/06 16:29:14.501 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 50, tp general"] [job="ID:37, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:36, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:14.494 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.504 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=17] [neededSchemaVersion=18] ["start time"=302.228µs] [phyTblIDs="[36]"] [actionTypes="[8]"] [2024/05/06 16:29:14.535 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:14.535 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=37] [version=18] [2024/05/06 16:29:14.536 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=18] ["take time"=32.368812ms] [job="ID:37, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:36, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.494 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.542 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 50, tp general"] [job="ID:37, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:36, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:14.494 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.545 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=37] [2024/05/06 16:29:14.545 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:14.546 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=18] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.bind_info (\n\t\toriginal_sql TEXT NOT NULL,\n\t\tbind_sql TEXT NOT NULL,\n\t\tdefault_db TEXT NOT NULL,\n\t\tstatus TEXT NOT NULL,\n\t\tcreate_time TIMESTAMP(3) NOT NULL,\n\t\tupdate_time TIMESTAMP(3) NOT NULL,\n\t\tcharset TEXT NOT NULL,\n\t\tcollation TEXT NOT NULL,\n\t\tsource VARCHAR(10) NOT NULL DEFAULT 'unknown',\n\t\tsql_digest varchar(64),\n\t\tplan_digest varchar(64),\n\t\tINDEX sql_index(original_sql(700),default_db(68)) COMMENT \"accelerate the speed when add global binding query\",\n\t\tINDEX time_index(update_time) COMMENT \"accelerate the speed when querying with last update time\"\n\t) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;"] [user=] [2024/05/06 16:29:14.549 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:39, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:38, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.547 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:14.549 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:39, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:38, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.547 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.bind_info (\n\t\toriginal_sql TEXT NOT NULL,\n\t\tbind_sql TEXT NOT NULL,\n\t\tdefault_db TEXT NOT NULL,\n\t\tstatus TEXT NOT NULL,\n\t\tcreate_time TIMESTAMP(3) NOT NULL,\n\t\tupdate_time TIMESTAMP(3) NOT NULL,\n\t\tcharset TEXT NOT NULL,\n\t\tcollation TEXT NOT NULL,\n\t\tsource VARCHAR(10) NOT NULL DEFAULT 'unknown',\n\t\tsql_digest varchar(64),\n\t\tplan_digest varchar(64),\n\t\tINDEX sql_index(original_sql(700),default_db(68)) COMMENT \"accelerate the speed when add global binding query\",\n\t\tINDEX time_index(update_time) COMMENT \"accelerate the speed when querying with last update time\"\n\t) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;"] [2024/05/06 16:29:14.556 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 50, tp general"] [job="ID:39, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:38, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:14.547 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.560 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=18] [neededSchemaVersion=19] ["start time"=432.375µs] [phyTblIDs="[38]"] [actionTypes="[8]"] [2024/05/06 16:29:14.582 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:14.583 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=39] [version=19] [2024/05/06 16:29:14.585 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=19] ["take time"=24.865977ms] [job="ID:39, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:38, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.547 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.589 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 50, tp general"] [job="ID:39, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:38, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:14.547 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.592 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=39] [2024/05/06 16:29:14.592 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:14.594 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=19] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.stats_top_n (\n\t\ttable_id \tBIGINT(64) NOT NULL,\n\t\tis_index \tTINYINT(2) NOT NULL,\n\t\thist_id \tBIGINT(64) NOT NULL,\n\t\tvalue \t\tLONGBLOB,\n\t\tcount \t\tBIGINT(64) UNSIGNED NOT NULL,\n\t\tINDEX tbl(table_id, is_index, hist_id)\n\t);"] [user=] [2024/05/06 16:29:14.596 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:41, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:40, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.595 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:14.596 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:41, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:40, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.595 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.stats_top_n (\n\t\ttable_id \tBIGINT(64) NOT NULL,\n\t\tis_index \tTINYINT(2) NOT NULL,\n\t\thist_id \tBIGINT(64) NOT NULL,\n\t\tvalue \t\tLONGBLOB,\n\t\tcount \t\tBIGINT(64) UNSIGNED NOT NULL,\n\t\tINDEX tbl(table_id, is_index, hist_id)\n\t);"] [2024/05/06 16:29:14.600 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 50, tp general"] [job="ID:41, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:40, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:14.595 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.603 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=19] [neededSchemaVersion=20] ["start time"=302.286µs] [phyTblIDs="[40]"] [actionTypes="[8]"] [2024/05/06 16:29:14.632 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:14.632 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=41] [version=20] [2024/05/06 16:29:14.634 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=20] ["take time"=31.580775ms] [job="ID:41, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:40, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.595 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.643 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 50, tp general"] [job="ID:41, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:40, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:14.595 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.648 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=41] [2024/05/06 16:29:14.648 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:14.648 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=20] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.expr_pushdown_blacklist (\n\t\tname \t\tCHAR(100) NOT NULL,\n\t\tstore_type \tCHAR(100) NOT NULL DEFAULT 'tikv,tiflash,tidb',\n\t\treason \t\tVARCHAR(200)\n\t);"] [user=] [2024/05/06 16:29:14.651 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:43, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:42, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.65 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:14.651 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:43, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:42, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.65 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.expr_pushdown_blacklist (\n\t\tname \t\tCHAR(100) NOT NULL,\n\t\tstore_type \tCHAR(100) NOT NULL DEFAULT 'tikv,tiflash,tidb',\n\t\treason \t\tVARCHAR(200)\n\t);"] [2024/05/06 16:29:14.659 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 50, tp general"] [job="ID:43, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:42, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:14.65 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.662 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=20] [neededSchemaVersion=21] ["start time"=188.704µs] [phyTblIDs="[42]"] [actionTypes="[8]"] [2024/05/06 16:29:14.682 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:14.682 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=43] [version=21] [2024/05/06 16:29:14.684 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=21] ["take time"=22.611572ms] [job="ID:43, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:42, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.65 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.688 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 50, tp general"] [job="ID:43, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:42, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:14.65 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.690 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=43] [2024/05/06 16:29:14.691 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:14.691 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=21] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.opt_rule_blacklist (\n\t\tname \tCHAR(100) NOT NULL\n\t);"] [user=] [2024/05/06 16:29:14.693 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:45, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:44, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.692 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:14.693 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:45, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:44, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.692 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.opt_rule_blacklist (\n\t\tname \tCHAR(100) NOT NULL\n\t);"] [2024/05/06 16:29:14.699 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 50, tp general"] [job="ID:45, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:44, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:14.692 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.701 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=21] [neededSchemaVersion=22] ["start time"=139.613µs] [phyTblIDs="[44]"] [actionTypes="[8]"] [2024/05/06 16:29:14.733 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:14.733 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=45] [version=22] [2024/05/06 16:29:14.734 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=22] ["take time"=32.62628ms] [job="ID:45, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:44, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.692 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.738 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 50, tp general"] [job="ID:45, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:44, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:14.692 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.742 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=45] [2024/05/06 16:29:14.742 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:14.743 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=22] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.stats_extended (\n\t\tname varchar(32) NOT NULL,\n\t\ttype tinyint(4) NOT NULL,\n\t\ttable_id bigint(64) NOT NULL,\n\t\tcolumn_ids varchar(32) NOT NULL,\n\t\tstats blob DEFAULT NULL,\n\t\tversion bigint(64) unsigned NOT NULL,\n\t\tstatus tinyint(4) NOT NULL,\n\t\tPRIMARY KEY(name, table_id),\n\t\tKEY idx_1 (table_id, status, version),\n\t\tKEY idx_2 (status, version)\n\t);"] [user=] [2024/05/06 16:29:14.746 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:47, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:46, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.744 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:14.746 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:47, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:46, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.744 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.stats_extended (\n\t\tname varchar(32) NOT NULL,\n\t\ttype tinyint(4) NOT NULL,\n\t\ttable_id bigint(64) NOT NULL,\n\t\tcolumn_ids varchar(32) NOT NULL,\n\t\tstats blob DEFAULT NULL,\n\t\tversion bigint(64) unsigned NOT NULL,\n\t\tstatus tinyint(4) NOT NULL,\n\t\tPRIMARY KEY(name, table_id),\n\t\tKEY idx_1 (table_id, status, version),\n\t\tKEY idx_2 (status, version)\n\t);"] [2024/05/06 16:29:14.754 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 50, tp general"] [job="ID:47, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:46, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:14.744 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.757 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=22] [neededSchemaVersion=23] ["start time"=381.648µs] [phyTblIDs="[46]"] [actionTypes="[8]"] [2024/05/06 16:29:14.783 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:14.783 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=47] [version=23] [2024/05/06 16:29:14.785 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=23] ["take time"=28.22962ms] [job="ID:47, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:46, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.744 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.789 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 50, tp general"] [job="ID:47, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:46, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:14.744 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.793 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=47] [2024/05/06 16:29:14.793 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:14.793 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=23] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.schema_index_usage (\n\t\tTABLE_ID bigint(64),\n\t\tINDEX_ID bigint(21),\n\t\tQUERY_COUNT bigint(64),\n\t\tROWS_SELECTED bigint(64),\n\t\tLAST_USED_AT timestamp,\n\t\tPRIMARY KEY(TABLE_ID, INDEX_ID)\n\t);"] [user=] [2024/05/06 16:29:14.796 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:49, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:48, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.795 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:14.796 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:49, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:48, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.795 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.schema_index_usage (\n\t\tTABLE_ID bigint(64),\n\t\tINDEX_ID bigint(21),\n\t\tQUERY_COUNT bigint(64),\n\t\tROWS_SELECTED bigint(64),\n\t\tLAST_USED_AT timestamp,\n\t\tPRIMARY KEY(TABLE_ID, INDEX_ID)\n\t);"] [2024/05/06 16:29:14.801 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 50, tp general"] [job="ID:49, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:48, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:14.795 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.804 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=23] [neededSchemaVersion=24] ["start time"=275.874µs] [phyTblIDs="[48]"] [actionTypes="[8]"] [2024/05/06 16:29:14.835 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:14.835 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=49] [version=24] [2024/05/06 16:29:14.837 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=24] ["take time"=32.971453ms] [job="ID:49, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:48, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.795 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.845 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 50, tp general"] [job="ID:49, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:48, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:14.795 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.848 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=49] [2024/05/06 16:29:14.848 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:14.848 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=24] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.stats_fm_sketch (\n\t\ttable_id \tBIGINT(64) NOT NULL,\n\t\tis_index \tTINYINT(2) NOT NULL,\n\t\thist_id \tBIGINT(64) NOT NULL,\n\t\tvalue \t\tLONGBLOB,\n\t\tINDEX tbl(table_id, is_index, hist_id)\n\t);"] [user=] [2024/05/06 16:29:14.850 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:51, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:50, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.849 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:14.850 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:51, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:50, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.849 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.stats_fm_sketch (\n\t\ttable_id \tBIGINT(64) NOT NULL,\n\t\tis_index \tTINYINT(2) NOT NULL,\n\t\thist_id \tBIGINT(64) NOT NULL,\n\t\tvalue \t\tLONGBLOB,\n\t\tINDEX tbl(table_id, is_index, hist_id)\n\t);"] [2024/05/06 16:29:14.858 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 50, tp general"] [job="ID:51, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:50, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:14.849 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.861 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=24] [neededSchemaVersion=25] ["start time"=271.6µs] [phyTblIDs="[50]"] [actionTypes="[8]"] [2024/05/06 16:29:14.883 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:14.883 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=51] [version=25] [2024/05/06 16:29:14.883 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=25] ["take time"=22.272327ms] [job="ID:51, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:50, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.849 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.887 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 50, tp general"] [job="ID:51, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:50, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:14.849 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.890 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=51] [2024/05/06 16:29:14.890 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:14.890 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=25] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.global_grants (\n\t\tUSER char(32) NOT NULL DEFAULT '',\n\t\tHOST char(255) NOT NULL DEFAULT '',\n\t\tPRIV char(32) NOT NULL DEFAULT '',\n\t\tWITH_GRANT_OPTION enum('N','Y') NOT NULL DEFAULT 'N',\n\t\tPRIMARY KEY (USER,HOST,PRIV)\n\t);"] [user=] [2024/05/06 16:29:14.892 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:53, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:52, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.891 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:14.892 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:53, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:52, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.891 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.global_grants (\n\t\tUSER char(32) NOT NULL DEFAULT '',\n\t\tHOST char(255) NOT NULL DEFAULT '',\n\t\tPRIV char(32) NOT NULL DEFAULT '',\n\t\tWITH_GRANT_OPTION enum('N','Y') NOT NULL DEFAULT 'N',\n\t\tPRIMARY KEY (USER,HOST,PRIV)\n\t);"] [2024/05/06 16:29:14.896 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 50, tp general"] [job="ID:53, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:52, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:14.891 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.899 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=25] [neededSchemaVersion=26] ["start time"=206.514µs] [phyTblIDs="[52]"] [actionTypes="[8]"] [2024/05/06 16:29:14.932 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:14.933 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=53] [version=26] [2024/05/06 16:29:14.934 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=26] ["take time"=35.006752ms] [job="ID:53, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:52, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.891 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.940 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 50, tp general"] [job="ID:53, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:52, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:14.891 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.946 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=53] [2024/05/06 16:29:14.947 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:14.947 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=26] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.capture_plan_baselines_blacklist (\n\t\tid bigint(64) auto_increment,\n\t\tfilter_type varchar(32) NOT NULL COMMENT \"type of the filter, only db, table and frequency supported now\",\n\t\tfilter_value varchar(32) NOT NULL,\n\t\tkey idx(filter_type),\n\t\tprimary key(id)\n\t);"] [user=] [2024/05/06 16:29:14.950 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:55, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:54, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.949 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:14.950 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:55, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:54, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.949 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.capture_plan_baselines_blacklist (\n\t\tid bigint(64) auto_increment,\n\t\tfilter_type varchar(32) NOT NULL COMMENT \"type of the filter, only db, table and frequency supported now\",\n\t\tfilter_value varchar(32) NOT NULL,\n\t\tkey idx(filter_type),\n\t\tprimary key(id)\n\t);"] [2024/05/06 16:29:14.960 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 50, tp general"] [job="ID:55, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:54, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:14.949 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.963 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=26] [neededSchemaVersion=27] ["start time"=275.569µs] [phyTblIDs="[54]"] [actionTypes="[8]"] [2024/05/06 16:29:14.982 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:14.982 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=55] [version=27] [2024/05/06 16:29:14.984 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=27] ["take time"=20.949401ms] [job="ID:55, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:54, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.949 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.988 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 50, tp general"] [job="ID:55, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:54, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:14.949 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:14.990 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=55] [2024/05/06 16:29:14.990 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:14.991 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=27] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.column_stats_usage (\n\t\ttable_id BIGINT(64) NOT NULL,\n\t\tcolumn_id BIGINT(64) NOT NULL,\n\t\tlast_used_at TIMESTAMP,\n\t\tlast_analyzed_at TIMESTAMP,\n\t\tPRIMARY KEY (table_id, column_id) CLUSTERED\n\t);"] [user=] [2024/05/06 16:29:14.993 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:57, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:56, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.992 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:14.993 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:57, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:56, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.992 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.column_stats_usage (\n\t\ttable_id BIGINT(64) NOT NULL,\n\t\tcolumn_id BIGINT(64) NOT NULL,\n\t\tlast_used_at TIMESTAMP,\n\t\tlast_analyzed_at TIMESTAMP,\n\t\tPRIMARY KEY (table_id, column_id) CLUSTERED\n\t);"] [2024/05/06 16:29:14.998 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 50, tp general"] [job="ID:57, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:56, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:14.992 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:15.001 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=27] [neededSchemaVersion=28] ["start time"=200.699µs] [phyTblIDs="[56]"] [actionTypes="[8]"] [2024/05/06 16:29:15.034 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:15.034 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=57] [version=28] [2024/05/06 16:29:15.039 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=28] ["take time"=38.577762ms] [job="ID:57, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:56, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:14.992 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:15.045 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 50, tp general"] [job="ID:57, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:56, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:14.992 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:15.051 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=57] [2024/05/06 16:29:15.051 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:15.052 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=28] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.table_cache_meta (\n\t\ttid bigint(11) NOT NULL DEFAULT 0,\n\t\tlock_type enum('NONE','READ', 'INTEND', 'WRITE') NOT NULL DEFAULT 'NONE',\n\t\tlease bigint(20) NOT NULL DEFAULT 0,\n\t\toldReadLease bigint(20) NOT NULL DEFAULT 0,\n\t\tPRIMARY KEY (tid)\n\t);"] [user=] [2024/05/06 16:29:15.055 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:59, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:58, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:15.054 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:15.055 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:59, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:58, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:15.054 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.table_cache_meta (\n\t\ttid bigint(11) NOT NULL DEFAULT 0,\n\t\tlock_type enum('NONE','READ', 'INTEND', 'WRITE') NOT NULL DEFAULT 'NONE',\n\t\tlease bigint(20) NOT NULL DEFAULT 0,\n\t\toldReadLease bigint(20) NOT NULL DEFAULT 0,\n\t\tPRIMARY KEY (tid)\n\t);"] [2024/05/06 16:29:15.062 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 50, tp general"] [job="ID:59, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:58, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:15.054 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:15.065 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=28] [neededSchemaVersion=29] ["start time"=196.135µs] [phyTblIDs="[58]"] [actionTypes="[8]"] [2024/05/06 16:29:15.082 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:15.082 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=59] [version=29] [2024/05/06 16:29:15.083 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=29] ["take time"=18.362771ms] [job="ID:59, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:58, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:15.054 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:15.087 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 50, tp general"] [job="ID:59, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:58, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:15.054 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:15.090 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=59] [2024/05/06 16:29:15.090 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:15.090 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=29] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.analyze_options (\n\t\ttable_id BIGINT(64) NOT NULL,\n\t\tsample_num BIGINT(64) NOT NULL DEFAULT 0,\n\t\tsample_rate DOUBLE NOT NULL DEFAULT -1,\n\t\tbuckets BIGINT(64) NOT NULL DEFAULT 0,\n\t\ttopn BIGINT(64) NOT NULL DEFAULT -1,\n\t\tcolumn_choice enum('DEFAULT','ALL','PREDICATE','LIST') NOT NULL DEFAULT 'DEFAULT',\n\t\tcolumn_ids TEXT(19372),\n\t\tPRIMARY KEY (table_id) CLUSTERED\n\t);"] [user=] [2024/05/06 16:29:15.090 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(19372) to MEDIUMBLOB"] [2024/05/06 16:29:15.094 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:61, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:60, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:15.092 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:15.094 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:61, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:60, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:15.092 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.analyze_options (\n\t\ttable_id BIGINT(64) NOT NULL,\n\t\tsample_num BIGINT(64) NOT NULL DEFAULT 0,\n\t\tsample_rate DOUBLE NOT NULL DEFAULT -1,\n\t\tbuckets BIGINT(64) NOT NULL DEFAULT 0,\n\t\ttopn BIGINT(64) NOT NULL DEFAULT -1,\n\t\tcolumn_choice enum('DEFAULT','ALL','PREDICATE','LIST') NOT NULL DEFAULT 'DEFAULT',\n\t\tcolumn_ids TEXT(19372),\n\t\tPRIMARY KEY (table_id) CLUSTERED\n\t);"] [2024/05/06 16:29:15.099 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 50, tp general"] [job="ID:61, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:60, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:15.092 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:15.103 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=29] [neededSchemaVersion=30] ["start time"=279.74µs] [phyTblIDs="[60]"] [actionTypes="[8]"] [2024/05/06 16:29:15.132 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:15.132 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=61] [version=30] [2024/05/06 16:29:15.133 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=30] ["take time"=30.895463ms] [job="ID:61, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:60, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:15.092 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:15.141 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 50, tp general"] [job="ID:61, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:60, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:15.092 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:15.148 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=61] [2024/05/06 16:29:15.148 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:15.149 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=30] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.stats_history (\n\t\ttable_id bigint(64) NOT NULL,\n\t\tstats_data longblob NOT NULL,\n\t\tseq_no bigint(64) NOT NULL comment 'sequence number of the gzipped data slice',\n\t\tversion bigint(64) NOT NULL comment 'stats version which corresponding to stats:version in EXPLAIN',\n\t\tcreate_time datetime(6) NOT NULL,\n\t\tUNIQUE KEY table_version_seq (table_id, version, seq_no),\n\t\tKEY table_create_time (table_id, create_time, seq_no)\n\t);"] [user=] [2024/05/06 16:29:15.152 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:63, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:62, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:15.151 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:15.152 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:63, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:62, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:15.151 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.stats_history (\n\t\ttable_id bigint(64) NOT NULL,\n\t\tstats_data longblob NOT NULL,\n\t\tseq_no bigint(64) NOT NULL comment 'sequence number of the gzipped data slice',\n\t\tversion bigint(64) NOT NULL comment 'stats version which corresponding to stats:version in EXPLAIN',\n\t\tcreate_time datetime(6) NOT NULL,\n\t\tUNIQUE KEY table_version_seq (table_id, version, seq_no),\n\t\tKEY table_create_time (table_id, create_time, seq_no)\n\t);"] [2024/05/06 16:29:15.158 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 50, tp general"] [job="ID:63, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:62, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:15.151 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:15.162 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=30] [neededSchemaVersion=31] ["start time"=249.606µs] [phyTblIDs="[62]"] [actionTypes="[8]"] [2024/05/06 16:29:15.183 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:15.183 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=63] [version=31] [2024/05/06 16:29:15.184 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=31] ["take time"=22.086229ms] [job="ID:63, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:62, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:15.151 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:15.188 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 50, tp general"] [job="ID:63, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:62, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:15.151 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:15.191 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=63] [2024/05/06 16:29:15.191 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:15.191 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=31] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.stats_meta_history (\n\t\ttable_id bigint(64) NOT NULL,\n\t\tmodify_count bigint(64) NOT NULL,\n\t\tcount bigint(64) NOT NULL,\n\t\tversion bigint(64) NOT NULL comment 'stats version which corresponding to stats:version in EXPLAIN',\n\t\tcreate_time datetime(6) NOT NULL,\n\t\tUNIQUE KEY table_version (table_id, version),\n\t\tKEY table_create_time (table_id, create_time)\n\t);"] [user=] [2024/05/06 16:29:15.194 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:65, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:64, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:15.193 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:15.194 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:65, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:64, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:15.193 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.stats_meta_history (\n\t\ttable_id bigint(64) NOT NULL,\n\t\tmodify_count bigint(64) NOT NULL,\n\t\tcount bigint(64) NOT NULL,\n\t\tversion bigint(64) NOT NULL comment 'stats version which corresponding to stats:version in EXPLAIN',\n\t\tcreate_time datetime(6) NOT NULL,\n\t\tUNIQUE KEY table_version (table_id, version),\n\t\tKEY table_create_time (table_id, create_time)\n\t);"] [2024/05/06 16:29:15.199 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 50, tp general"] [job="ID:65, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:64, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:15.193 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:15.202 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=31] [neededSchemaVersion=32] ["start time"=275.958µs] [phyTblIDs="[64]"] [actionTypes="[8]"] [2024/05/06 16:29:15.233 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:15.233 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=65] [version=32] [2024/05/06 16:29:15.234 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=32] ["take time"=32.247596ms] [job="ID:65, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:64, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:15.193 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:15.244 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 50, tp general"] [job="ID:65, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:64, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:15.193 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:15.247 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=65] [2024/05/06 16:29:15.247 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:15.248 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=32] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.analyze_jobs (\n\t\tid BIGINT(64) UNSIGNED NOT NULL AUTO_INCREMENT,\n\t\tupdate_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n\t\ttable_schema CHAR(64) NOT NULL DEFAULT '',\n\t\ttable_name CHAR(64) NOT NULL DEFAULT '',\n\t\tpartition_name CHAR(64) NOT NULL DEFAULT '',\n\t\tjob_info TEXT NOT NULL,\n\t\tprocessed_rows BIGINT(64) UNSIGNED NOT NULL DEFAULT 0,\n\t\tstart_time TIMESTAMP,\n\t\tend_time TIMESTAMP,\n\t\tstate ENUM('pending', 'running', 'finished', 'failed') NOT NULL,\n\t\tfail_reason TEXT,\n\t\tinstance VARCHAR(512) NOT NULL comment 'address of the TiDB instance executing the analyze job',\n\t\tprocess_id BIGINT(64) UNSIGNED comment 'ID of the process executing the analyze job',\n\t\tPRIMARY KEY (id),\n\t\tKEY (update_time)\n\t);"] [user=] [2024/05/06 16:29:15.251 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:67, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:66, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:15.25 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:15.251 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:67, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:66, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:15.25 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.analyze_jobs (\n\t\tid BIGINT(64) UNSIGNED NOT NULL AUTO_INCREMENT,\n\t\tupdate_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n\t\ttable_schema CHAR(64) NOT NULL DEFAULT '',\n\t\ttable_name CHAR(64) NOT NULL DEFAULT '',\n\t\tpartition_name CHAR(64) NOT NULL DEFAULT '',\n\t\tjob_info TEXT NOT NULL,\n\t\tprocessed_rows BIGINT(64) UNSIGNED NOT NULL DEFAULT 0,\n\t\tstart_time TIMESTAMP,\n\t\tend_time TIMESTAMP,\n\t\tstate ENUM('pending', 'running', 'finished', 'failed') NOT NULL,\n\t\tfail_reason TEXT,\n\t\tinstance VARCHAR(512) NOT NULL comment 'address of the TiDB instance executing the analyze job',\n\t\tprocess_id BIGINT(64) UNSIGNED comment 'ID of the process executing the analyze job',\n\t\tPRIMARY KEY (id),\n\t\tKEY (update_time)\n\t);"] [2024/05/06 16:29:15.260 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 50, tp general"] [job="ID:67, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:66, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:15.25 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:15.265 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=32] [neededSchemaVersion=33] ["start time"=464.633µs] [phyTblIDs="[66]"] [actionTypes="[8]"] [2024/05/06 16:29:15.283 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:15.283 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=67] [version=33] [2024/05/06 16:29:15.285 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=33] ["take time"=20.875679ms] [job="ID:67, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:66, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:15.25 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:15.290 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 50, tp general"] [job="ID:67, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:66, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:15.25 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:15.294 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=67] [2024/05/06 16:29:15.294 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:15.295 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=33] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.advisory_locks (\n\t\tlock_name VARCHAR(64) NOT NULL PRIMARY KEY\n\t);"] [user=] [2024/05/06 16:29:15.297 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:69, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:68, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:15.296 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:15.297 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:69, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:68, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:15.296 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.advisory_locks (\n\t\tlock_name VARCHAR(64) NOT NULL PRIMARY KEY\n\t);"] [2024/05/06 16:29:15.303 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 50, tp general"] [job="ID:69, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:68, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:15.296 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:15.305 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=33] [neededSchemaVersion=34] ["start time"=214.388µs] [phyTblIDs="[68]"] [actionTypes="[8]"] [2024/05/06 16:29:15.332 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:15.332 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=69] [version=34] [2024/05/06 16:29:15.334 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=34] ["take time"=28.671459ms] [job="ID:69, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:68, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:15.296 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:15.339 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 50, tp general"] [job="ID:69, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:68, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:15.296 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:15.343 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=69] [2024/05/06 16:29:15.343 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:15.346 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:71, Type:create view, State:queueing, SchemaState:none, SchemaID:1, TableID:70, RowCount:0, ArgLen:3, start time: 2024-05-06 16:29:15.344 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:15.346 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:71, Type:create view, State:queueing, SchemaState:none, SchemaID:1, TableID:70, RowCount:0, ArgLen:3, start time: 2024-05-06 16:29:15.344 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE OR REPLACE VIEW mysql.tidb_mdl_view as (\n\tselect JOB_ID, DB_NAME, TABLE_NAME, QUERY, SESSION_ID, TxnStart, TIDB_DECODE_SQL_DIGESTS(ALL_SQL_DIGESTS, 4096) AS SQL_DIGESTS from information_schema.ddl_jobs, information_schema.CLUSTER_TIDB_TRX, information_schema.CLUSTER_PROCESSLIST where ddl_jobs.STATE = 'running' and find_in_set(ddl_jobs.table_id, CLUSTER_TIDB_TRX.RELATED_TABLE_IDS) and CLUSTER_TIDB_TRX.SESSION_ID=CLUSTER_PROCESSLIST.ID\n\t);"] [2024/05/06 16:29:15.354 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 50, tp general"] [job="ID:71, Type:create view, State:queueing, SchemaState:none, SchemaID:1, TableID:70, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:15.344 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:15.358 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=34] [neededSchemaVersion=35] ["start time"=358.291µs] [phyTblIDs="[70]"] [actionTypes="[2097152]"] [2024/05/06 16:29:15.383 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:15.383 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=71] [version=35] [2024/05/06 16:29:15.384 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=35] ["take time"=26.011294ms] [job="ID:71, Type:create view, State:done, SchemaState:public, SchemaID:1, TableID:70, RowCount:0, ArgLen:3, start time: 2024-05-06 16:29:15.344 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:15.387 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 50, tp general"] [job="ID:71, Type:create view, State:synced, SchemaState:public, SchemaID:1, TableID:70, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:15.344 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:15.390 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=71] [2024/05/06 16:29:15.390 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:15.391 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=35] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.plan_replayer_status (\n\t\tsql_digest VARCHAR(128),\n\t\tplan_digest VARCHAR(128),\n\t\torigin_sql TEXT,\n\t\ttoken VARCHAR(128),\n\t\tupdate_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n\t\tfail_reason TEXT,\n\t\tinstance VARCHAR(512) NOT NULL comment 'address of the TiDB instance executing the plan replayer job');"] [user=] [2024/05/06 16:29:15.393 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:73, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:72, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:15.392 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:15.393 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:73, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:72, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:15.392 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.plan_replayer_status (\n\t\tsql_digest VARCHAR(128),\n\t\tplan_digest VARCHAR(128),\n\t\torigin_sql TEXT,\n\t\ttoken VARCHAR(128),\n\t\tupdate_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n\t\tfail_reason TEXT,\n\t\tinstance VARCHAR(512) NOT NULL comment 'address of the TiDB instance executing the plan replayer job');"] [2024/05/06 16:29:15.398 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 50, tp general"] [job="ID:73, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:72, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:15.392 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:15.401 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=35] [neededSchemaVersion=36] ["start time"=244.396µs] [phyTblIDs="[72]"] [actionTypes="[8]"] [2024/05/06 16:29:15.432 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:15.433 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=73] [version=36] [2024/05/06 16:29:15.433 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=36] ["take time"=32.07218ms] [job="ID:73, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:72, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:15.392 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:15.440 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 50, tp general"] [job="ID:73, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:72, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:15.392 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:15.448 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=73] [2024/05/06 16:29:15.448 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:15.449 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=36] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.plan_replayer_task (\n\t\tsql_digest VARCHAR(128) NOT NULL,\n\t\tplan_digest VARCHAR(128) NOT NULL,\n\t\tupdate_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n\t\tPRIMARY KEY (sql_digest,plan_digest));"] [user=] [2024/05/06 16:29:15.451 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:75, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:74, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:15.45 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:15.451 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:75, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:74, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:15.45 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.plan_replayer_task (\n\t\tsql_digest VARCHAR(128) NOT NULL,\n\t\tplan_digest VARCHAR(128) NOT NULL,\n\t\tupdate_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n\t\tPRIMARY KEY (sql_digest,plan_digest));"] [2024/05/06 16:29:15.457 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 50, tp general"] [job="ID:75, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:74, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:15.45 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:15.460 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=36] [neededSchemaVersion=37] ["start time"=214.898µs] [phyTblIDs="[74]"] [actionTypes="[8]"] [2024/05/06 16:29:15.483 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:15.483 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=75] [version=37] [2024/05/06 16:29:15.484 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=37] ["take time"=24.95908ms] [job="ID:75, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:74, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:15.45 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:15.488 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 50, tp general"] [job="ID:75, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:74, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:15.45 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:15.491 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=75] [2024/05/06 16:29:15.491 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:15.492 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=37] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.stats_table_locked(\n\t\ttable_id bigint(64) NOT NULL,\n\t\tmodify_count bigint(64) NOT NULL DEFAULT 0,\n\t\tcount bigint(64) NOT NULL DEFAULT 0,\n\t\tversion bigint(64) UNSIGNED NOT NULL DEFAULT 0,\n\t\tPRIMARY KEY (table_id));"] [user=] [2024/05/06 16:29:15.494 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:77, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:76, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:15.493 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:15.494 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:77, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:76, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:15.493 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.stats_table_locked(\n\t\ttable_id bigint(64) NOT NULL,\n\t\tmodify_count bigint(64) NOT NULL DEFAULT 0,\n\t\tcount bigint(64) NOT NULL DEFAULT 0,\n\t\tversion bigint(64) UNSIGNED NOT NULL DEFAULT 0,\n\t\tPRIMARY KEY (table_id));"] [2024/05/06 16:29:15.498 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 50, tp general"] [job="ID:77, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:76, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:15.493 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:15.501 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=37] [neededSchemaVersion=38] ["start time"=170.199µs] [phyTblIDs="[76]"] [actionTypes="[8]"] [2024/05/06 16:29:15.534 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:15.534 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=77] [version=38] [2024/05/06 16:29:15.534 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=38] ["take time"=34.066309ms] [job="ID:77, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:76, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:15.493 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:15.540 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 50, tp general"] [job="ID:77, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:76, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:15.493 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:15.543 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=77] [2024/05/06 16:29:15.543 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:15.544 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=38] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.tidb_ttl_table_status (\n\t\ttable_id bigint(64) PRIMARY KEY,\n parent_table_id bigint(64),\n table_statistics text DEFAULT NULL,\n\t\tlast_job_id varchar(64) DEFAULT NULL,\n\t\tlast_job_start_time timestamp NULL DEFAULT NULL,\n\t\tlast_job_finish_time timestamp NULL DEFAULT NULL,\n\t\tlast_job_ttl_expire timestamp NULL DEFAULT NULL,\n last_job_summary text DEFAULT NULL,\n\t\tcurrent_job_id varchar(64) DEFAULT NULL,\n\t\tcurrent_job_owner_id varchar(64) DEFAULT NULL,\n\t\tcurrent_job_owner_addr varchar(256) DEFAULT NULL,\n\t\tcurrent_job_owner_hb_time timestamp,\n\t\tcurrent_job_start_time timestamp NULL DEFAULT NULL,\n\t\tcurrent_job_ttl_expire timestamp NULL DEFAULT NULL,\n\t\tcurrent_job_state text DEFAULT NULL,\n\t\tcurrent_job_status varchar(64) DEFAULT NULL,\n \t\tcurrent_job_status_update_time timestamp NULL DEFAULT NULL);"] [user=] [2024/05/06 16:29:15.549 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:79, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:78, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:15.547 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:29:15.549 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:79, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:78, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:15.547 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.tidb_ttl_table_status (\n\t\ttable_id bigint(64) PRIMARY KEY,\n parent_table_id bigint(64),\n table_statistics text DEFAULT NULL,\n\t\tlast_job_id varchar(64) DEFAULT NULL,\n\t\tlast_job_start_time timestamp NULL DEFAULT NULL,\n\t\tlast_job_finish_time timestamp NULL DEFAULT NULL,\n\t\tlast_job_ttl_expire timestamp NULL DEFAULT NULL,\n last_job_summary text DEFAULT NULL,\n\t\tcurrent_job_id varchar(64) DEFAULT NULL,\n\t\tcurrent_job_owner_id varchar(64) DEFAULT NULL,\n\t\tcurrent_job_owner_addr varchar(256) DEFAULT NULL,\n\t\tcurrent_job_owner_hb_time timestamp,\n\t\tcurrent_job_start_time timestamp NULL DEFAULT NULL,\n\t\tcurrent_job_ttl_expire timestamp NULL DEFAULT NULL,\n\t\tcurrent_job_state text DEFAULT NULL,\n\t\tcurrent_job_status varchar(64) DEFAULT NULL,\n \t\tcurrent_job_status_update_time timestamp NULL DEFAULT NULL);"] [2024/05/06 16:29:15.555 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 50, tp general"] [job="ID:79, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:78, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:15.547 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:15.560 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=38] [neededSchemaVersion=39] ["start time"=534.801µs] [phyTblIDs="[78]"] [actionTypes="[8]"] [2024/05/06 16:29:15.582 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:29:15.582 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=79] [version=39] [2024/05/06 16:29:15.584 +08:00] [INFO] [ddl_worker.go:1392] ["[ddl] wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [ver=39] ["take time"=24.296294ms] [job="ID:79, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:78, RowCount:0, ArgLen:2, start time: 2024-05-06 16:29:15.547 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:15.588 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 50, tp general"] [job="ID:79, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:78, RowCount:0, ArgLen:0, start time: 2024-05-06 16:29:15.547 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:29:15.592 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=79] [2024/05/06 16:29:15.592 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:29:15.614 +08:00] [INFO] [bootstrap.go:529] ["bootstrap successful"] ["take time"=1.982268434s] [2024/05/06 16:29:15.615 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:29:15.615 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 59, tp add index"] ["take time"=1.217µs] [2024/05/06 16:29:15.615 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 60, tp add index"] ["take time"=822ns] [2024/05/06 16:29:15.615 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 51, tp add index"] ["take time"=744ns] [2024/05/06 16:29:15.615 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 52, tp add index"] ["take time"=897ns] [2024/05/06 16:29:15.615 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 53, tp add index"] ["take time"=658ns] [2024/05/06 16:29:15.615 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 54, tp add index"] ["take time"=1.103µs] [2024/05/06 16:29:15.615 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 55, tp add index"] ["take time"=694ns] [2024/05/06 16:29:15.615 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 56, tp add index"] ["take time"=935ns] [2024/05/06 16:29:15.615 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 57, tp add index"] ["take time"=1.416µs] [2024/05/06 16:29:15.615 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 58, tp add index"] ["take time"=835ns] [2024/05/06 16:29:15.615 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:29:15.615 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 50, tp general"] ["take time"=660ns] [2024/05/06 16:29:15.615 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 48, tp general"] ["take time"=251ns] [2024/05/06 16:29:15.615 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 49, tp add index"] ["take time"=251ns] [2024/05/06 16:29:15.615 +08:00] [INFO] [delete_range.go:148] ["[ddl] closing delRange"] [2024/05/06 16:29:15.615 +08:00] [INFO] [session_pool.go:94] ["[ddl] closing sessionPool"] [2024/05/06 16:29:15.615 +08:00] [INFO] [ddl.go:833] ["[ddl] DDL closed"] [ID=b9453591-bd03-4f13-b65c-e3a22296bd34] ["take time"=559.875µs] [2024/05/06 16:29:15.615 +08:00] [INFO] [ddl.go:657] ["[ddl] stop DDL"] [ID=b9453591-bd03-4f13-b65c-e3a22296bd34] [2024/05/06 16:29:15.615 +08:00] [INFO] [domain.go:1156] ["closestReplicaReadCheckLoop exited."] [2024/05/06 16:29:15.615 +08:00] [INFO] [domain.go:603] ["infoSyncerKeeper exited."] [2024/05/06 16:29:15.615 +08:00] [INFO] [domain.go:628] ["globalConfigSyncerKeeper exited."] [2024/05/06 16:29:15.615 +08:00] [INFO] [domain.go:651] ["topologySyncerKeeper exited."] [2024/05/06 16:29:15.615 +08:00] [INFO] [domain.go:792] ["loadSchemaInLoop exited."] [2024/05/06 16:29:15.615 +08:00] [INFO] [domain.go:574] ["topNSlowQueryLoop exited."] [2024/05/06 16:29:15.615 +08:00] [INFO] [domain.go:920] ["domain closed"] ["take time"=676.73µs] [2024/05/06 16:29:15.615 +08:00] [INFO] [tidb.go:77] ["new domain"] [store=8de63c22-53f6-4223-b192-2155ed562ae2] ["ddl lease"=500ms] ["stats lease"=-1ns] ["index usage sync lease"=0s] [2024/05/06 16:29:15.623 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=39] ["start time"=7.431586ms] [2024/05/06 16:29:15.623 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:29:15.623 +08:00] [INFO] [ddl.go:719] ["[ddl] start DDL"] [ID=06df39cc-2716-4ae7-8a01-97910eaf1013] [runWorker=true] [2024/05/06 16:29:15.624 +08:00] [INFO] [ddl.go:665] ["[ddl] start delRangeManager OK"] ["is a emulator"=true] [2024/05/06 16:29:15.624 +08:00] [INFO] [delete_range.go:158] ["[ddl] start delRange emulator"] [2024/05/06 16:29:15.624 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 62, tp add index"] [2024/05/06 16:29:15.624 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 61, tp general"] [2024/05/06 16:29:15.624 +08:00] [WARN] [env.go:52] ["[ddl-ingest] initialize environment failed"] ["storage limitation"="only support TiKV storage"] ["current storage"=unistore] ["lightning is initialized"=true] [2024/05/06 16:29:15.624 +08:00] [INFO] [env.go:108] ["[ddl-ingest] the lightning sorted dir"] ["data path:"=/tmp/tidb/tmp_ddl-4000] [2024/05/06 16:29:15.624 +08:00] [INFO] [env.go:75] ["[ddl-ingest] init global lightning backend environment finished"] ["memory limitation"=2147483648] ["sort path disk quota"=107374182400] ["max open file number"=1073741816] ["lightning is initialized"=true] [2024/05/06 16:29:15.624 +08:00] [WARN] [domain.go:1120] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 16:29:15.627 +08:00] [WARN] [sysvar_cache.go:50] ["sysvar cache is empty, triggering rebuild"] [2024/05/06 16:29:15.642 +08:00] [WARN] [misc.go:453] ["Automatic TLS Certificate creation is disabled"] [] [2024/05/06 16:29:15.643 +08:00] [INFO] [http_status.go:95] ["for status and metrics report"] ["listening on addr"=127.0.0.1:0] [2024/05/06 16:29:15.643 +08:00] [INFO] [server.go:275] ["server is running MySQL protocol"] [addr=127.0.0.1:0] [2024/05/06 16:29:15.672 +08:00] [WARN] [misc.go:453] ["Automatic TLS Certificate creation is disabled"] [] [2024/05/06 16:29:15.672 +08:00] [INFO] [http_status.go:95] ["for status and metrics report"] ["listening on addr"=127.0.0.1:0] [2024/05/06 16:29:15.672 +08:00] [INFO] [server.go:275] ["server is running MySQL protocol"] [addr=127.0.0.1:0] [2024/05/06 16:29:15.674 +08:00] [INFO] [server.go:555] ["setting tidb-server to report unhealthy (shutting-down)"] [2024/05/06 16:29:15.675 +08:00] [ERROR] [http_status.go:504] ["http server error"] [error="http: Server closed"] [stack="github.com/pingcap/tidb/server.(*Server).startStatusServerAndRPCServer.func2\n\tserver/http_status.go:504\ngithub.com/pingcap/tidb/util.WithRecovery\n\tutil/misc.go:96"] [2024/05/06 16:29:15.675 +08:00] [ERROR] [http_status.go:509] ["start status/rpc server error"] [error="accept tcp 127.0.0.1:41205: use of closed network connection"] [stack="github.com/pingcap/tidb/server.(*Server).startStatusServerAndRPCServer\n\tserver/http_status.go:509\ngithub.com/pingcap/tidb/server.(*Server).startHTTPServer\n\tserver/http_status.go:455"] [2024/05/06 16:29:15.675 +08:00] [ERROR] [http_status.go:499] ["grpc server error"] [] [stack="github.com/pingcap/tidb/server.(*Server).startStatusServerAndRPCServer.func1\n\tserver/http_status.go:499\ngithub.com/pingcap/tidb/util.WithRecovery\n\tutil/misc.go:96"] [2024/05/06 16:29:16.624 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:29:16.624 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:29:16.624 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 61, tp general"] ["take time"=1.39µs] [2024/05/06 16:29:16.624 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 62, tp add index"] ["take time"=331ns] [2024/05/06 16:29:16.624 +08:00] [INFO] [delete_range.go:148] ["[ddl] closing delRange"] [2024/05/06 16:29:16.624 +08:00] [INFO] [session_pool.go:94] ["[ddl] closing sessionPool"] [2024/05/06 16:29:16.624 +08:00] [INFO] [ddl.go:833] ["[ddl] DDL closed"] [ID=06df39cc-2716-4ae7-8a01-97910eaf1013] ["take time"=949.075435ms] [2024/05/06 16:29:16.624 +08:00] [INFO] [ddl.go:657] ["[ddl] stop DDL"] [ID=06df39cc-2716-4ae7-8a01-97910eaf1013] [2024/05/06 16:29:16.624 +08:00] [INFO] [domain.go:1156] ["closestReplicaReadCheckLoop exited."] [2024/05/06 16:29:16.624 +08:00] [INFO] [domain.go:792] ["loadSchemaInLoop exited."] [2024/05/06 16:29:16.624 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:29:16.624 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:29:16.624 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:29:16.624 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:29:16.624 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:29:16.624 +08:00] [INFO] [domain.go:1748] ["dumpFileGcChecker exited."] [2024/05/06 16:29:16.624 +08:00] [INFO] [domain.go:1444] ["LoadSysVarCacheLoop exited."] [2024/05/06 16:29:16.624 +08:00] [INFO] [domain.go:1394] ["loadPrivilegeInLoop exited."] [2024/05/06 16:29:16.624 +08:00] [INFO] [domain.go:1569] ["handleEvolvePlanTasksLoop exited."] [2024/05/06 16:29:16.624 +08:00] [INFO] [domain.go:1525] ["globalBindHandleWorkerLoop exited."] [2024/05/06 16:29:16.624 +08:00] [INFO] [domain.go:651] ["topologySyncerKeeper exited."] [2024/05/06 16:29:16.624 +08:00] [INFO] [domain.go:603] ["infoSyncerKeeper exited."] [2024/05/06 16:29:16.624 +08:00] [INFO] [domain.go:628] ["globalConfigSyncerKeeper exited."] [2024/05/06 16:29:16.624 +08:00] [INFO] [domain.go:574] ["topNSlowQueryLoop exited."] [2024/05/06 16:29:16.625 +08:00] [INFO] [domain.go:920] ["domain closed"] ["take time"=949.802045ms] [2024/05/06 16:29:16.625 +08:00] [INFO] [server.go:555] ["setting tidb-server to report unhealthy (shutting-down)"] [2024/05/06 16:29:16.625 +08:00] [ERROR] [http_status.go:509] ["start status/rpc server error"] [error="accept tcp 127.0.0.1:37779: use of closed network connection"] [stack="github.com/pingcap/tidb/server.(*Server).startStatusServerAndRPCServer\n\tserver/http_status.go:509\ngithub.com/pingcap/tidb/server.(*Server).startHTTPServer\n\tserver/http_status.go:455"] [2024/05/06 16:29:16.625 +08:00] [ERROR] [http_status.go:499] ["grpc server error"] [error="mux: server closed"] [stack="github.com/pingcap/tidb/server.(*Server).startStatusServerAndRPCServer.func1\n\tserver/http_status.go:499\ngithub.com/pingcap/tidb/util.WithRecovery\n\tutil/misc.go:96"] [2024/05/06 16:29:16.625 +08:00] [ERROR] [http_status.go:504] ["http server error"] [error="http: Server closed"] [stack="github.com/pingcap/tidb/server.(*Server).startStatusServerAndRPCServer.func2\n\tserver/http_status.go:504\ngithub.com/pingcap/tidb/util.WithRecovery\n\tutil/misc.go:96"] [2024/05/06 16:29:16.626 +08:00] [INFO] [db.go:567] ["Closing database"] [2024/05/06 16:29:16.626 +08:00] [INFO] [db.go:592] ["Memtable flushed"] [2024/05/06 16:29:16.626 +08:00] [INFO] [db.go:596] ["Compaction finished"] [2024/05/06 16:29:16.626 +08:00] [INFO] [db.go:615] ["BlobManager finished"] [2024/05/06 16:29:16.626 +08:00] [INFO] [db.go:619] ["ResourceManager finished"] [2024/05/06 16:29:16.626 +08:00] [INFO] [db.go:625] ["Waiting for closer"] --- PASS: TestStatusAPIWithTLS (3.01s) FAIL coverage: 17.7% of statements -- Coverage runner: Not collecting coverage for failed test. The following commands failed with status 1 /home/jenkins/.tidb/tmp/45c44f383a26fe92ddbb5dda36c71ef8/sandbox/linux-sandbox/6794/execroot/__main__/bazel-out/k8-fastbuild/bin/server/server_test_/server_test.runfiles/__main__/server/server_test_/server_test ================================================================================