==================== Test output for //sessiontxn:sessiontxn_test (shard 1 of 2): === RUN TestTxnContextForSimpleCases [2024/05/06 16:34:38.671 +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:34:38.677 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:34:38.677 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:34:38.692 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:34:38.693 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:34:38.700 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:34:38.710 +08:00] [INFO] [tidb.go:77] ["new domain"] [store=6caa8172-5d08-484c-a2a7-74f625a49fd9] ["ddl lease"=500ms] ["stats lease"=-1ns] ["index usage sync lease"=0s] [2024/05/06 16:34:39.016 +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\nsessiontxn/sessiontxn_test_test.setupTxnContextTest\n\tsessiontxn/txn_context_test.go:61\nsessiontxn/sessiontxn_test_test.TestTxnContextForSimpleCases\n\tsessiontxn/txn_context_test.go:117\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1446\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:34:39.047 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=0] ["start time"=30.46023ms] [2024/05/06 16:34:39.053 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:34:39.053 +08:00] [INFO] [ddl.go:719] ["[ddl] start DDL"] [ID=361fea57-cf5b-4838-90e0-f4177a00f1ef] [runWorker=true] [2024/05/06 16:34:39.053 +08:00] [INFO] [ddl.go:665] ["[ddl] start delRangeManager OK"] ["is a emulator"=true] [2024/05/06 16:34:39.053 +08:00] [INFO] [delete_range.go:158] ["[ddl] start delRange emulator"] [2024/05/06 16:34:39.054 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 2, tp add index"] [2024/05/06 16:34:39.054 +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:34:39.055 +08:00] [INFO] [env.go:108] ["[ddl-ingest] the lightning sorted dir"] ["data path:"=/tmp/tidb/tmp_ddl-4000] [2024/05/06 16:34:39.055 +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:34:39.054 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 1, tp general"] [2024/05/06 16:34:39.056 +08:00] [WARN] [domain.go:1120] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 16:34:39.063 +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:34:39.096 +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:34:39.08 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:34:39.097 +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:34:39.08 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE DATABASE IF NOT EXISTS test"] [2024/05/06 16:34:39.306 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:34:39.557 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:34:39.806 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:34:40.064 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:34:40.183 +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:34:39.08 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:40.314 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=1] ["start time"=57.328407ms] [2024/05/06 16:34:40.324 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:34:40.357 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:34:40.357 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=3] [version=1] [2024/05/06 16:34:40.358 +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"=102.358059ms] [job="ID:3, Type:create schema, State:done, SchemaState:public, SchemaID:2, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 16:34:39.08 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:40.407 +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:34:39.08 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:40.474 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=3] [2024/05/06 16:34:40.474 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:34:40.476 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 1.4132853189999999\n# Parse_time: 0\n# Compile_time: 0.000777093\n# Rewrite_time: 0.0000336\n# Optimize_time: 0\n# Wait_TS: 0.000100969\n# DB: mysql\n# Is_internal: true\n# Digest: 0a22979ad136f741465cf206b13e5717b9758dda34f7cae5a7a925f91711d6a0\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 mysql;\nCREATE DATABASE IF NOT EXISTS test;"] [2024/05/06 16:34:40.478 +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:34:40.559 +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:34:40.813 +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:34:40.577 +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:34:40.831 +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:34:40.577 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:34:40.885 +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:34:40.577 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:41.055 +08:00] [INFO] [info.go:1114] [SetTiFlashGroupConfig] [2024/05/06 16:34:41.552 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=1] [neededSchemaVersion=2] ["start time"=12.696522ms] [phyTblIDs="[4]"] [actionTypes="[8]"] [2024/05/06 16:34:41.606 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:34:41.606 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=5] [version=2] [2024/05/06 16:34:41.607 +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"=68.686538ms] [job="ID:5, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:4, RowCount:0, ArgLen:2, start time: 2024-05-06 16:34:40.577 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:41.678 +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:34:40.577 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:41.980 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=5] [2024/05/06 16:34:41.980 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:34:41.981 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 1.455206805\n# Parse_time: 0\n# Compile_time: 0.033148951\n# Rewrite_time: 0.000012056\n# Optimize_time: 0\n# Wait_TS: 0.000086505\n# DB: mysql\n# Is_internal: true\n# Digest: 14c6b489558060bdbede877927034270db5af07c6621aa28f87eeaec8727e925\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\nCREATE TABLE IF NOT EXISTS mysql.user ( Host CHAR(255), User CHAR(32), authentication_string TEXT, plugin CHAR(64), Select_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Insert_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Update_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Delete_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Drop_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Process_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Grant_priv ENUM('N','Y') NOT NULL DEFAULT 'N', References_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Show_db_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Super_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_tmp_table_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Lock_tables_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Execute_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Show_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Index_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_user_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Event_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Repl_slave_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Repl_client_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Trigger_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_role_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Drop_role_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Account_locked ENUM('N','Y') NOT NULL DEFAULT 'N', Shutdown_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Reload_priv ENUM('N','Y') NOT NULL DEFAULT 'N', FILE_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Config_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_Tablespace_Priv ENUM('N','Y') NOT NULL DEFAULT 'N', Password_reuse_history smallint unsigned DEFAULT NULL, Password_reuse_time smallint unsigned DEFAULT NULL, User_attributes json, Token_issuer VARCHAR(255), Password_expired ENUM('N','Y') NOT NULL DEFAULT 'N', Password_last_changed TIMESTAMP DEFAULT CURRENT_TIMESTAMP(), Password_lifetime SMALLINT UNSIGNED DEFAULT NULL, PRIMARY KEY (Host, User));"] [2024/05/06 16:34:41.987 +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:34:42.147 +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:34:42.008 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:34:42.147 +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:34:42.008 +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:34:42.368 +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:34:42.008 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:42.586 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=2] [neededSchemaVersion=3] ["start time"=2.16241ms] [phyTblIDs="[6]"] [actionTypes="[8]"] [2024/05/06 16:34:42.658 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:34:42.658 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=7] [version=3] [2024/05/06 16:34:42.659 +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"=76.48122ms] [job="ID:7, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:6, RowCount:0, ArgLen:2, start time: 2024-05-06 16:34:42.008 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:42.746 +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:34:42.008 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:42.886 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=7] [2024/05/06 16:34:42.887 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:34:42.889 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.90385795\n# Parse_time: 0\n# Compile_time: 0.002208584\n# Rewrite_time: 0.000008285\n# Optimize_time: 0\n# Wait_TS: 0.000078769\n# DB: mysql\n# Is_internal: true\n# Digest: eeb59bc0d98f65a2a5aef8eaa99596260e746b00eed183baf856558ef03533ac\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\nCREATE TABLE IF NOT EXISTS mysql.password_history ( Host char(255) NOT NULL DEFAULT '', User char(32) NOT NULL DEFAULT '', Password_timestamp timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), Password text, PRIMARY KEY (Host,User,Password_timestamp ) ) COMMENT='Password history for user accounts' ;"] [2024/05/06 16:34:42.894 +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:34:42.973 +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:34:42.907 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:34:42.973 +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:34:42.907 +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:34:43.022 +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:34:42.907 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:43.134 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=3] [neededSchemaVersion=4] ["start time"=2.128702ms] [phyTblIDs="[8]"] [actionTypes="[8]"] [2024/05/06 16:34:43.206 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:34:43.206 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=9] [version=4] [2024/05/06 16:34:43.208 +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"=76.578033ms] [job="ID:9, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:8, RowCount:0, ArgLen:2, start time: 2024-05-06 16:34:42.907 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:43.278 +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:34:42.907 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:43.364 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=9] [2024/05/06 16:34:43.364 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:34:43.366 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.473480687\n# Parse_time: 0\n# Compile_time: 0.001984352\n# Rewrite_time: 0.000016113\n# Optimize_time: 0\n# Wait_TS: 0.000081612\n# DB: mysql\n# Is_internal: true\n# Digest: 3bc9b46cf9e300a8d240915cf47216424544ed9f992c07151fba2e2cadc41632\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\nCREATE 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:34:43.387 +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:34:43.542 +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:34:43.406 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:34:43.542 +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:34:43.406 +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:34:43.714 +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:34:43.406 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:44.098 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=4] [neededSchemaVersion=5] ["start time"=10.083057ms] [phyTblIDs="[10]"] [actionTypes="[8]"] [2024/05/06 16:34:44.156 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:34:44.156 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=11] [version=5] [2024/05/06 16:34:44.158 +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"=94.631397ms] [job="ID:11, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:10, RowCount:0, ArgLen:2, start time: 2024-05-06 16:34:43.406 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:44.236 +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:34:43.406 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:44.451 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=11] [2024/05/06 16:34:44.451 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:34:44.452 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 1.074803622\n# Parse_time: 0\n# Compile_time: 0.009276413\n# Rewrite_time: 0.000026796\n# Optimize_time: 0\n# Wait_TS: 0.000215054\n# DB: mysql\n# Is_internal: true\n# Digest: aeaf612801484f0311f850d36f60f29e6d904828682c1f3bb7307dff25ca3a15\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\nCREATE TABLE IF NOT EXISTS mysql.db ( Host CHAR(255), DB CHAR(64), User CHAR(32), Select_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Insert_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Update_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Delete_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Drop_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Grant_priv ENUM('N','Y') NOT NULL DEFAULT 'N', References_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Index_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_tmp_table_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Lock_tables_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Show_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Execute_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Event_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Trigger_priv ENUM('N','Y') NOT NULL DEFAULT 'N', PRIMARY KEY (Host, DB, User));"] [2024/05/06 16:34:44.462 +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:34:44.601 +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:34:44.481 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:34:44.602 +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:34:44.481 +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:34:44.688 +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:34:44.481 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:44.849 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=5] [neededSchemaVersion=6] ["start time"=2.667103ms] [phyTblIDs="[12]"] [actionTypes="[8]"] [2024/05/06 16:34:44.906 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:34:44.906 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=13] [version=6] [2024/05/06 16:34:44.908 +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"=62.880358ms] [job="ID:13, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:12, RowCount:0, ArgLen:2, start time: 2024-05-06 16:34:44.481 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:44.988 +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:34:44.481 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:45.132 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=13] [2024/05/06 16:34:45.133 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:34:45.134 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.675636464\n# Parse_time: 0\n# Compile_time: 0.00389046\n# Rewrite_time: 0.000013633\n# Optimize_time: 0\n# Wait_TS: 0.000095451\n# DB: mysql\n# Is_internal: true\n# Digest: e8b37dad6cc7f05ee1f0be61455667495826928a93ddd09b94e02fbaed113955\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\nCREATE TABLE IF NOT EXISTS mysql.tables_priv ( Host CHAR(255), DB CHAR(64), User CHAR(32), Table_name CHAR(64), Grantor CHAR(77), Timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP, Table_priv SET('Select','Insert','Update','Delete','Create','Drop','Grant','Index','Alter','Create View','Show View','Trigger','References'), Column_priv SET('Select','Insert','Update','References'), PRIMARY KEY (Host, DB, User, Table_name));"] [2024/05/06 16:34:45.156 +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:34:45.253 +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:34:45.17 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:34:45.253 +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:34:45.17 +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:34:45.331 +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:34:45.17 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:45.465 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=6] [neededSchemaVersion=7] ["start time"=3.11215ms] [phyTblIDs="[14]"] [actionTypes="[8]"] [2024/05/06 16:34:45.506 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:34:45.506 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=15] [version=7] [2024/05/06 16:34:45.506 +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"=44.524049ms] [job="ID:15, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:14, RowCount:0, ArgLen:2, start time: 2024-05-06 16:34:45.17 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:45.576 +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:34:45.17 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:45.673 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=15] [2024/05/06 16:34:45.673 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:34:45.675 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.527338826\n# Parse_time: 0\n# Compile_time: 0.00809232\n# Rewrite_time: 0.000013302\n# Optimize_time: 0\n# Wait_TS: 0.000119758\n# DB: mysql\n# Is_internal: true\n# Digest: a19edbb3caff8cc57619278ab6eb5f791d7a821432309abe7184d0a7bca66b4d\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\nCREATE TABLE IF NOT EXISTS mysql.columns_priv( Host CHAR(255), DB CHAR(64), User CHAR(32), Table_name CHAR(64), Column_name CHAR(64), Timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP, Column_priv SET('Select','Insert','Update','References'), PRIMARY KEY (Host, DB, User, Table_name, Column_name));"] [2024/05/06 16:34:45.679 +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:34:45.783 +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:34:45.74 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:34:45.783 +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:34:45.74 +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:34:45.855 +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:34:45.74 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:45.948 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=7] [neededSchemaVersion=8] ["start time"=1.902542ms] [phyTblIDs="[16]"] [actionTypes="[8]"] [2024/05/06 16:34:46.006 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:34:46.006 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=17] [version=8] [2024/05/06 16:34:46.008 +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"=62.514405ms] [job="ID:17, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:16, RowCount:0, ArgLen:2, start time: 2024-05-06 16:34:45.74 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:46.054 +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:34:45.74 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:46.165 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=17] [2024/05/06 16:34:46.166 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:34:46.167 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.48952903\n# Parse_time: 0\n# Compile_time: 0.001573149\n# Rewrite_time: 0.000012116\n# Optimize_time: 0\n# Wait_TS: 0.000109635\n# DB: mysql\n# Is_internal: true\n# Digest: 55c1ea537145da60f32339dc7a3b69a3859f3f428fbae4e4023eb71dca836f47\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\nCREATE TABLE IF NOT EXISTS mysql.GLOBAL_VARIABLES( VARIABLE_NAME VARCHAR(64) NOT NULL PRIMARY KEY, VARIABLE_VALUE VARCHAR(1024) DEFAULT NULL);"] [2024/05/06 16:34:46.171 +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:34:46.266 +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:34:46.19 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:34:46.266 +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:34:46.19 +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:34:46.406 +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:34:46.19 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:46.514 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=8] [neededSchemaVersion=9] ["start time"=2.266389ms] [phyTblIDs="[18]"] [actionTypes="[8]"] [2024/05/06 16:34:46.556 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:34:46.556 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=19] [version=9] [2024/05/06 16:34:46.558 +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"=47.081724ms] [job="ID:19, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:18, RowCount:0, ArgLen:2, start time: 2024-05-06 16:34:46.19 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:46.614 +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:34:46.19 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:46.697 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=19] [2024/05/06 16:34:46.758 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:34:46.760 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.59115115\n# Parse_time: 0\n# Compile_time: 0.001491204\n# Rewrite_time: 0.000029713\n# Optimize_time: 0\n# Wait_TS: 0.000077584\n# DB: mysql\n# Is_internal: true\n# Digest: 0cc4a9cf54472ccff7c4fb8d7c6e34e6bd96af08b450ad4c9677473f1f517cf2\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\nCREATE TABLE IF NOT EXISTS mysql.tidb( VARIABLE_NAME VARCHAR(64) NOT NULL PRIMARY KEY, VARIABLE_VALUE VARCHAR(1024) DEFAULT NULL, COMMENT VARCHAR(1024));"] [2024/05/06 16:34:46.805 +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:34:46.915 +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:34:46.839 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:34:46.915 +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:34:46.839 +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:34:47.054 +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:34:46.839 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:47.213 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=9] [neededSchemaVersion=10] ["start time"=2.565099ms] [phyTblIDs="[20]"] [actionTypes="[8]"] [2024/05/06 16:34:47.256 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:34:47.257 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=21] [version=10] [2024/05/06 16:34:47.259 +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"=48.960414ms] [job="ID:21, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:20, RowCount:0, ArgLen:2, start time: 2024-05-06 16:34:46.839 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:47.334 +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:34:46.839 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:47.433 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=21] [2024/05/06 16:34:47.433 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:34:47.436 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.658378339\n# Parse_time: 0\n# Compile_time: 0.027589171\n# Rewrite_time: 0.000013118\n# Optimize_time: 0\n# Wait_TS: 0.00008977\n# DB: mysql\n# Is_internal: true\n# Digest: ca851971407336dad93908a9f88f01d828a4e18f332111987f4a7675bced7ea4\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\nCREATE TABLE IF NOT EXISTS mysql.help_topic ( help_topic_id INT(10) UNSIGNED NOT NULL, name CHAR(64) NOT NULL, help_category_id SMALLINT(5) UNSIGNED NOT NULL, description TEXT NOT NULL, example TEXT NOT NULL, url TEXT NOT NULL, PRIMARY KEY (help_topic_id) clustered, UNIQUE KEY name (name) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='help topics';"] [2024/05/06 16:34:47.446 +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:34:47.542 +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:34:47.478 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:34:47.542 +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:34:47.478 +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:34:47.680 +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:34:47.478 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:47.851 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=10] [neededSchemaVersion=11] ["start time"=2.483405ms] [phyTblIDs="[22]"] [actionTypes="[8]"] [2024/05/06 16:34:47.906 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:34:47.906 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=23] [version=11] [2024/05/06 16:34:47.906 +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"=58.294687ms] [job="ID:23, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:22, RowCount:0, ArgLen:2, start time: 2024-05-06 16:34:47.478 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:47.969 +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:34:47.478 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:48.127 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=23] [2024/05/06 16:34:48.128 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:34:48.129 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.687563805\n# Parse_time: 0\n# Compile_time: 0.004299581\n# Rewrite_time: 0.00002102\n# Optimize_time: 0\n# Wait_TS: 0.000083461\n# DB: mysql\n# Is_internal: true\n# Digest: db16a74bd407cb00f071eafe96456094f48fc00e802128fc486ef4847b8910b0\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\nCREATE TABLE IF NOT EXISTS mysql.stats_meta ( version BIGINT(64) UNSIGNED NOT NULL, table_id BIGINT(64) NOT NULL, modify_count BIGINT(64) NOT NULL DEFAULT 0, count BIGINT(64) UNSIGNED NOT NULL DEFAULT 0, snapshot BIGINT(64) UNSIGNED NOT NULL DEFAULT 0, INDEX idx_ver(version), UNIQUE INDEX tbl(table_id) );"] [2024/05/06 16:34:48.150 +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:34:48.154 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(6291456) to MEDIUMBLOB"] [2024/05/06 16:34:48.274 +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:34:48.174 +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:34:48.281 +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:34:48.174 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:34:48.374 +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:34:48.174 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:48.756 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=11] [neededSchemaVersion=12] ["start time"=8.068414ms] [phyTblIDs="[24]"] [actionTypes="[8]"] [2024/05/06 16:34:48.821 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:34:48.822 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=25] [version=12] [2024/05/06 16:34:48.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=12] ["take time"=78.691368ms] [job="ID:25, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:24, RowCount:0, ArgLen:2, start time: 2024-05-06 16:34:48.174 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:48.903 +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:34:48.174 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:49.014 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=25] [2024/05/06 16:34:49.014 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:34:49.016 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.86966186\n# Parse_time: 0\n# Compile_time: 0.004639785\n# Rewrite_time: 0.00001175\n# Optimize_time: 0\n# Wait_TS: 0.000081929\n# DB: mysql\n# Is_internal: true\n# Digest: 7780c45a0aac5f123ac85a7e601e79c5d7779e7c09a19953908e547605ed45d2\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\nCREATE TABLE IF NOT EXISTS mysql.stats_histograms ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, distinct_count BIGINT(64) NOT NULL, null_count BIGINT(64) NOT NULL DEFAULT 0, tot_col_size BIGINT(64) NOT NULL DEFAULT 0, modify_count BIGINT(64) NOT NULL DEFAULT 0, version BIGINT(64) UNSIGNED NOT NULL DEFAULT 0, cm_sketch BLOB(6291456), stats_ver BIGINT(64) NOT NULL DEFAULT 0, flag BIGINT(64) NOT NULL DEFAULT 0, correlation DOUBLE NOT NULL DEFAULT 0, last_analyze_pos LONGBLOB DEFAULT NULL, UNIQUE INDEX tbl(table_id, is_index, hist_id) );"] [2024/05/06 16:34:49.023 +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:34:49.175 +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:34:49.055 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:34:49.175 +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:34:49.055 +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:34:49.281 +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:34:49.055 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:49.428 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=12] [neededSchemaVersion=13] ["start time"=3.524101ms] [phyTblIDs="[26]"] [actionTypes="[8]"] [2024/05/06 16:34:49.457 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:34:49.457 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=27] [version=13] [2024/05/06 16:34:49.459 +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"=34.936241ms] [job="ID:27, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:26, RowCount:0, ArgLen:2, start time: 2024-05-06 16:34:49.055 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:49.518 +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:34:49.055 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:49.602 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=27] [2024/05/06 16:34:49.603 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:34:49.604 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.584262267\n# Parse_time: 0\n# Compile_time: 0.003360664\n# Rewrite_time: 0.000019417\n# Optimize_time: 0\n# Wait_TS: 0.000086042\n# DB: mysql\n# Is_internal: true\n# Digest: 5615b5212342304015b027afb253371dae02f19e53871cfbb034deb145dfce32\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\nCREATE TABLE IF NOT EXISTS mysql.stats_buckets ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, bucket_id BIGINT(64) NOT NULL, count BIGINT(64) NOT NULL, repeats BIGINT(64) NOT NULL, upper_bound LONGBLOB NOT NULL, lower_bound LONGBLOB , ndv BIGINT NOT NULL DEFAULT 0, UNIQUE INDEX tbl(table_id, is_index, hist_id, bucket_id) );"] [2024/05/06 16:34:49.616 +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:34:49.695 +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:34:49.63 +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:34:49.709 +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:34:49.63 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:34:49.763 +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:34:49.63 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:49.898 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=13] [neededSchemaVersion=14] ["start time"=2.342012ms] [phyTblIDs="[28]"] [actionTypes="[8]"] [2024/05/06 16:34:49.956 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:34:49.956 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=29] [version=14] [2024/05/06 16:34:49.956 +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"=61.42374ms] [job="ID:29, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:28, RowCount:0, ArgLen:2, start time: 2024-05-06 16:34:49.63 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:50.107 +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:34:49.63 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:50.194 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=29] [2024/05/06 16:34:50.195 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:34:50.197 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.58734156\n# Parse_time: 0\n# Compile_time: 0.006879435\n# Rewrite_time: 0.000022285\n# Optimize_time: 0\n# Wait_TS: 0.000096955\n# DB: mysql\n# Is_internal: true\n# Digest: 4f764dd084d16197c847e23500fcaf8b96dbbabd598c823de37967bfa2ad51cd\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\nCREATE TABLE IF NOT EXISTS mysql.gc_delete_range ( job_id BIGINT NOT NULL COMMENT \"the DDL job ID\", element_id BIGINT NOT NULL COMMENT \"the schema element ID\", start_key VARCHAR(255) NOT NULL COMMENT \"encoded in hex\", end_key VARCHAR(255) NOT NULL COMMENT \"encoded in hex\", ts BIGINT NOT NULL COMMENT \"timestamp in uint64\", UNIQUE KEY delete_range_index (job_id, element_id) );"] [2024/05/06 16:34:50.218 +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:34:50.299 +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:34:50.233 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:34:50.300 +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:34:50.233 +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:34:50.435 +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:34:50.233 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:50.624 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=14] [neededSchemaVersion=15] ["start time"=2.553298ms] [phyTblIDs="[30]"] [actionTypes="[8]"] [2024/05/06 16:34:50.656 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:34:50.656 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=31] [version=15] [2024/05/06 16:34:50.657 +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"=36.25984ms] [job="ID:31, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:30, RowCount:0, ArgLen:2, start time: 2024-05-06 16:34:50.233 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:50.711 +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:34:50.233 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:50.788 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=31] [2024/05/06 16:34:50.793 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:34:50.795 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.584067692\n# Parse_time: 0\n# Compile_time: 0.007354405\n# Rewrite_time: 0.000012662\n# Optimize_time: 0\n# Wait_TS: 0.000087083\n# DB: mysql\n# Is_internal: true\n# Digest: 532cf71b38f2568975d61180716af7e2b05c9ca11023688224ed0c0eece42fa9\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\nCREATE TABLE IF NOT EXISTS mysql.gc_delete_range_done ( job_id BIGINT NOT NULL COMMENT \"the DDL job ID\", element_id BIGINT NOT NULL COMMENT \"the schema element ID\", start_key VARCHAR(255) NOT NULL COMMENT \"encoded in hex\", end_key VARCHAR(255) NOT NULL COMMENT \"encoded in hex\", ts BIGINT NOT NULL COMMENT \"timestamp in uint64\", UNIQUE KEY delete_range_done_index (job_id, element_id) );"] [2024/05/06 16:34:50.805 +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:34:50.913 +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:34:50.83 +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:34:50.920 +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:34:50.83 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:34:50.978 +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:34:50.83 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:51.139 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=15] [neededSchemaVersion=16] ["start time"=2.257093ms] [phyTblIDs="[32]"] [actionTypes="[8]"] [2024/05/06 16:34:51.156 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:34:51.156 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=33] [version=16] [2024/05/06 16:34:51.157 +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"=20.407868ms] [job="ID:33, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:32, RowCount:0, ArgLen:2, start time: 2024-05-06 16:34:50.83 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:51.213 +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:34:50.83 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:51.305 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=33] [2024/05/06 16:34:51.306 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:34:51.309 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.505735323\n# Parse_time: 0\n# Compile_time: 0.00217409\n# Rewrite_time: 0.000017381\n# Optimize_time: 0\n# Wait_TS: 0.000085676\n# DB: mysql\n# Is_internal: true\n# Digest: 28f04155dca9c7fd3a5e16199cefd152c629a57a64d0ccb2ed0f10309c23c59c\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\nCREATE TABLE IF NOT EXISTS mysql.stats_feedback ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, feedback BLOB NOT NULL, INDEX hist(table_id, is_index, hist_id) );"] [2024/05/06 16:34:51.324 +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:34:51.463 +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:34:51.367 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:34:51.464 +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:34:51.367 +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:34:51.567 +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:34:51.367 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:51.695 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=16] [neededSchemaVersion=17] ["start time"=4.115453ms] [phyTblIDs="[34]"] [actionTypes="[8]"] [2024/05/06 16:34:51.756 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:34:51.756 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=35] [version=17] [2024/05/06 16:34:51.757 +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"=66.081754ms] [job="ID:35, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:34, RowCount:0, ArgLen:2, start time: 2024-05-06 16:34:51.367 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:51.814 +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:34:51.367 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:51.946 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=35] [2024/05/06 16:34:51.947 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:34:51.949 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.634594677\n# Parse_time: 0\n# Compile_time: 0.009654211\n# Rewrite_time: 0.00001332\n# Optimize_time: 0\n# Wait_TS: 0.000098115\n# DB: mysql\n# Is_internal: true\n# Digest: 13e2fcff943423afddaa84c2d34108628854b5953bc7c41d2879240f077a5bd6\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\nCREATE TABLE IF NOT EXISTS mysql.role_edges ( FROM_HOST CHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '', FROM_USER CHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '', TO_HOST CHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '', TO_USER CHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '', WITH_ADMIN_OPTION ENUM('N','Y') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'N', PRIMARY KEY (FROM_HOST,FROM_USER,TO_HOST,TO_USER) );"] [2024/05/06 16:34:51.956 +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:34:52.029 +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:34:51.985 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:34:52.029 +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:34:51.985 +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:34:52.169 +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:34:51.985 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:52.300 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=17] [neededSchemaVersion=18] ["start time"=2.329336ms] [phyTblIDs="[36]"] [actionTypes="[8]"] [2024/05/06 16:34:52.356 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:34:52.356 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=37] [version=18] [2024/05/06 16:34:52.357 +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"=60.960735ms] [job="ID:37, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:36, RowCount:0, ArgLen:2, start time: 2024-05-06 16:34:51.985 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:52.434 +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:34:51.985 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:52.523 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=37] [2024/05/06 16:34:52.523 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:34:52.525 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.571782836\n# Parse_time: 0\n# Compile_time: 0.002994827\n# Rewrite_time: 0.000018098\n# Optimize_time: 0\n# Wait_TS: 0.000092356\n# DB: mysql\n# Is_internal: true\n# Digest: 9e6b544fb0287e9d8a74031560ed0cd6a5b4e54db073b893a68a76b05d929781\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\nCREATE TABLE IF NOT EXISTS mysql.default_roles ( HOST CHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '', USER CHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '', DEFAULT_ROLE_HOST CHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '%', DEFAULT_ROLE_USER CHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '', PRIMARY KEY (HOST,USER,DEFAULT_ROLE_HOST,DEFAULT_ROLE_USER) );"] [2024/05/06 16:34:52.568 +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:34:52.663 +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:34:52.581 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:34:52.663 +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:34:52.581 +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:34:52.728 +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:34:52.581 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:52.976 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=18] [neededSchemaVersion=19] ["start time"=3.979351ms] [phyTblIDs="[38]"] [actionTypes="[8]"] [2024/05/06 16:34:53.006 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:34:53.006 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=39] [version=19] [2024/05/06 16:34:53.008 +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"=36.6155ms] [job="ID:39, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:38, RowCount:0, ArgLen:2, start time: 2024-05-06 16:34:52.581 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:53.104 +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:34:52.581 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:53.215 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=39] [2024/05/06 16:34:53.215 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:34:53.217 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.653420951\n# Parse_time: 0\n# Compile_time: 0.005088204\n# Rewrite_time: 0.000011807\n# Optimize_time: 0\n# Wait_TS: 0.000078931\n# DB: mysql\n# Is_internal: true\n# Digest: 0a4bc55a9ab72ef62ddaa1ee6472d7872306066fd783a8bb67047a497fbb4dbe\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\nCREATE TABLE IF NOT EXISTS mysql.bind_info ( original_sql TEXT NOT NULL, bind_sql TEXT NOT NULL, default_db TEXT NOT NULL, status TEXT NOT NULL, create_time TIMESTAMP(3) NOT NULL, update_time TIMESTAMP(3) NOT NULL, charset TEXT NOT NULL, collation TEXT NOT NULL, source VARCHAR(10) NOT NULL DEFAULT 'unknown', sql_digest varchar(64), plan_digest varchar(64), INDEX sql_index(original_sql(700),default_db(68)) COMMENT \"accelerate the speed when add global binding query\", INDEX time_index(update_time) COMMENT \"accelerate the speed when querying with last update time\" ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;"] [2024/05/06 16:34:53.272 +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:34:53.413 +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:34:53.295 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:34:53.413 +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:34:53.295 +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:34:53.640 +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:34:53.295 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:53.871 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=19] [neededSchemaVersion=20] ["start time"=2.5146ms] [phyTblIDs="[40]"] [actionTypes="[8]"] [2024/05/06 16:34:53.907 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:34:53.907 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=41] [version=20] [2024/05/06 16:34:53.909 +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"=41.122907ms] [job="ID:41, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:40, RowCount:0, ArgLen:2, start time: 2024-05-06 16:34:53.295 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:53.982 +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:34:53.295 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:54.128 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=41] [2024/05/06 16:34:54.129 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:34:54.131 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.860682528\n# Parse_time: 0\n# Compile_time: 0.002418591\n# Rewrite_time: 0.000011903\n# Optimize_time: 0\n# Wait_TS: 0.000084183\n# DB: mysql\n# Is_internal: true\n# Digest: 04a90564803373a6eb3f5a52e8794d25c4d28f6c18af7899b0b9f1bf1539ec72\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\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\nCREATE TABLE IF NOT EXISTS mysql.stats_top_n ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, value LONGBLOB, count BIGINT(64) UNSIGNED NOT NULL, INDEX tbl(table_id, is_index, hist_id) );"] [2024/05/06 16:34:54.135 +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:34:54.215 +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:34:54.173 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:34:54.215 +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:34:54.173 +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:34:54.312 +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:34:54.173 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:54.510 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=20] [neededSchemaVersion=21] ["start time"=1.779895ms] [phyTblIDs="[42]"] [actionTypes="[8]"] [2024/05/06 16:34:54.556 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:34:54.557 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=43] [version=21] [2024/05/06 16:34:54.562 +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"=54.295041ms] [job="ID:43, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:42, RowCount:0, ArgLen:2, start time: 2024-05-06 16:34:54.173 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:54.681 +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:34:54.173 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:54.743 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=43] [2024/05/06 16:34:54.747 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:34:54.749 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.615409402\n# Parse_time: 0\n# Compile_time: 0.001911708\n# Rewrite_time: 0.000012695\n# Optimize_time: 0\n# Wait_TS: 0.000109604\n# DB: mysql\n# Is_internal: true\n# Digest: 3e05fb8977f83f4e32022552aded3680a039cddc4239c339119a655dc1cffdbb\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\nCREATE TABLE IF NOT EXISTS mysql.expr_pushdown_blacklist ( name CHAR(100) NOT NULL, store_type CHAR(100) NOT NULL DEFAULT 'tikv,tiflash,tidb', reason VARCHAR(200) );"] [2024/05/06 16:34:54.758 +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:34:54.838 +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:34:54.791 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:34:54.838 +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:34:54.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:34:54.905 +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:34:54.791 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:54.981 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=21] [neededSchemaVersion=22] ["start time"=1.356019ms] [phyTblIDs="[44]"] [actionTypes="[8]"] [2024/05/06 16:34:55.009 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:34:55.009 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=45] [version=22] [2024/05/06 16:34:55.014 +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.72231ms] [job="ID:45, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:44, RowCount:0, ArgLen:2, start time: 2024-05-06 16:34:54.791 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:55.076 +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:34:54.791 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:55.115 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=45] [2024/05/06 16:34:55.115 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:34:55.117 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.359263619\n# Parse_time: 0\n# Compile_time: 0.001179709\n# Rewrite_time: 0.000011994\n# Optimize_time: 0\n# Wait_TS: 0.000099751\n# DB: mysql\n# Is_internal: true\n# Digest: aee36d5dc7131e4b6e3321cc046ae8b5ec8156ec1ef82481df0b97b8c734325f\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\nCREATE TABLE IF NOT EXISTS mysql.opt_rule_blacklist ( name CHAR(100) NOT NULL );"] [2024/05/06 16:34:55.126 +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:34:55.207 +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:34:55.14 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:34:55.207 +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:34:55.14 +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:34:55.329 +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:34:55.14 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:55.516 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=22] [neededSchemaVersion=23] ["start time"=3.228791ms] [phyTblIDs="[46]"] [actionTypes="[8]"] [2024/05/06 16:34:55.556 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:34:55.556 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=47] [version=23] [2024/05/06 16:34:55.556 +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"=44.475133ms] [job="ID:47, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:46, RowCount:0, ArgLen:2, start time: 2024-05-06 16:34:55.14 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:55.652 +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:34:55.14 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:55.795 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=47] [2024/05/06 16:34:55.795 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:34:55.797 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.673955611\n# Parse_time: 0\n# Compile_time: 0.003245713\n# Rewrite_time: 0.000011932\n# Optimize_time: 0\n# Wait_TS: 0.000087871\n# DB: mysql\n# Is_internal: true\n# Digest: bd2a0d9809689d30e22f8d82b29b4ee110d16cda3353b77d74a1938afb746386\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\nCREATE TABLE IF NOT EXISTS mysql.stats_extended ( name varchar(32) NOT NULL, type tinyint(4) NOT NULL, table_id bigint(64) NOT NULL, column_ids varchar(32) NOT NULL, stats blob DEFAULT NULL, version bigint(64) unsigned NOT NULL, status tinyint(4) NOT NULL, PRIMARY KEY(name, table_id), KEY idx_1 (table_id, status, version), KEY idx_2 (status, version) );"] [2024/05/06 16:34:55.802 +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:34:55.867 +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:34:55.823 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:34:55.868 +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:34:55.823 +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:34:55.938 +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:34:55.823 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:56.089 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=23] [neededSchemaVersion=24] ["start time"=6.997568ms] [phyTblIDs="[48]"] [actionTypes="[8]"] [2024/05/06 16:34:56.108 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:34:56.108 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=49] [version=24] [2024/05/06 16:34:56.110 +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.170991ms] [job="ID:49, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:48, RowCount:0, ArgLen:2, start time: 2024-05-06 16:34:55.823 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:56.159 +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:34:55.823 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:56.222 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=49] [2024/05/06 16:34:56.222 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:34:56.224 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.423404285\n# Parse_time: 0\n# Compile_time: 0.002237379\n# Rewrite_time: 0.000012826\n# Optimize_time: 0\n# Wait_TS: 0.000095853\n# DB: mysql\n# Is_internal: true\n# Digest: f72fffa4e6072164db3e01e2e29568b0b93c5045737047be527343b1737b0882\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\nCREATE TABLE IF NOT EXISTS mysql.schema_index_usage ( TABLE_ID bigint(64), INDEX_ID bigint(21), QUERY_COUNT bigint(64), ROWS_SELECTED bigint(64), LAST_USED_AT timestamp, PRIMARY KEY(TABLE_ID, INDEX_ID) );"] [2024/05/06 16:34:56.229 +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:34:56.289 +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:34:56.247 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:34:56.290 +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:34:56.247 +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:34:56.366 +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:34:56.247 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:56.483 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=24] [neededSchemaVersion=25] ["start time"=2.23138ms] [phyTblIDs="[50]"] [actionTypes="[8]"] [2024/05/06 16:34:56.506 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:34:56.506 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=51] [version=25] [2024/05/06 16:34:56.508 +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"=28.673738ms] [job="ID:51, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:50, RowCount:0, ArgLen:2, start time: 2024-05-06 16:34:56.247 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:56.591 +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:34:56.247 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:56.684 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=51] [2024/05/06 16:34:56.688 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:34:56.695 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.462161173\n# Parse_time: 0\n# Compile_time: 0.002104788\n# Rewrite_time: 0.000011744\n# Optimize_time: 0\n# Wait_TS: 0.000081364\n# DB: mysql\n# Is_internal: true\n# Digest: 27ef2533f9d97f96c8c86a69a0de51aad04499856acd05fe4a4b93fb5b6043d0\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\nCREATE TABLE IF NOT EXISTS mysql.stats_fm_sketch ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, value LONGBLOB, INDEX tbl(table_id, is_index, hist_id) );"] [2024/05/06 16:34:56.702 +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:34:56.788 +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:34:56.716 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:34:56.788 +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:34:56.716 +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:34:56.889 +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:34:56.716 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:57.015 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=25] [neededSchemaVersion=26] ["start time"=2.321473ms] [phyTblIDs="[52]"] [actionTypes="[8]"] [2024/05/06 16:34:57.056 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:34:57.056 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=53] [version=26] [2024/05/06 16:34:57.062 +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"=50.676624ms] [job="ID:53, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:52, RowCount:0, ArgLen:2, start time: 2024-05-06 16:34:56.716 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:57.225 +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:34:56.716 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:57.339 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=53] [2024/05/06 16:34:57.340 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:34:57.342 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.643031819\n# Parse_time: 0\n# Compile_time: 0.002939638\n# Rewrite_time: 0.000014532\n# Optimize_time: 0\n# Wait_TS: 0.000108294\n# DB: mysql\n# Is_internal: true\n# Digest: 79c6e54229df7b01d20ffaf8ac1077aa9ef39e604df30d5ce852dd7049cc3ddd\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\nCREATE TABLE IF NOT EXISTS mysql.global_grants ( USER char(32) NOT NULL DEFAULT '', HOST char(255) NOT NULL DEFAULT '', PRIV char(32) NOT NULL DEFAULT '', WITH_GRANT_OPTION enum('N','Y') NOT NULL DEFAULT 'N', PRIMARY KEY (USER,HOST,PRIV) );"] [2024/05/06 16:34:57.348 +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:34:57.473 +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:34:57.379 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:34:57.473 +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:34:57.379 +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:34:57.578 +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:34:57.379 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:57.711 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=26] [neededSchemaVersion=27] ["start time"=2.143738ms] [phyTblIDs="[54]"] [actionTypes="[8]"] [2024/05/06 16:34:57.756 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:34:57.756 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=55] [version=27] [2024/05/06 16:34:57.756 +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"=48.116675ms] [job="ID:55, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:54, RowCount:0, ArgLen:2, start time: 2024-05-06 16:34:57.379 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:57.886 +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:34:57.379 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:57.970 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=55] [2024/05/06 16:34:57.976 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:34:57.978 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.632671405\n# Parse_time: 0\n# Compile_time: 0.002592598\n# Rewrite_time: 0.000013398\n# Optimize_time: 0\n# Wait_TS: 0.00009131\n# DB: mysql\n# Is_internal: true\n# Digest: 08f858a5bd3a1fd5dfd809dd4b9d6c72db69f874b06ad0e91987f9e89a5cf89a\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\nCREATE TABLE IF NOT EXISTS mysql.capture_plan_baselines_blacklist ( id bigint(64) auto_increment, filter_type varchar(32) NOT NULL COMMENT \"type of the filter, only db, table and frequency supported now\", filter_value varchar(32) NOT NULL, key idx(filter_type), primary key(id) );"] [2024/05/06 16:34:57.985 +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:34:58.066 +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:34:57.998 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:34:58.066 +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:34:57.998 +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:34:58.257 +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:34:57.998 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:58.397 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=27] [neededSchemaVersion=28] ["start time"=2.347677ms] [phyTblIDs="[56]"] [actionTypes="[8]"] [2024/05/06 16:34:58.456 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:34:58.457 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=57] [version=28] [2024/05/06 16:34:58.458 +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"=64.308836ms] [job="ID:57, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:56, RowCount:0, ArgLen:2, start time: 2024-05-06 16:34:57.998 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:58.511 +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:34:57.998 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:58.592 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=57] [2024/05/06 16:34:58.592 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:34:58.594 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.610682747\n# Parse_time: 0\n# Compile_time: 0.001929243\n# Rewrite_time: 0.000012547\n# Optimize_time: 0\n# Wait_TS: 0.000415395\n# DB: mysql\n# Is_internal: true\n# Digest: 3a5634ff31bd7d32849c5404b7ffc419c7a7074307b815e5369eb6ca363cbcd0\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\nCREATE TABLE IF NOT EXISTS mysql.column_stats_usage ( table_id BIGINT(64) NOT NULL, column_id BIGINT(64) NOT NULL, last_used_at TIMESTAMP, last_analyzed_at TIMESTAMP, PRIMARY KEY (table_id, column_id) CLUSTERED );"] [2024/05/06 16:34:58.600 +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:34:58.664 +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:34:58.614 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:34:58.664 +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:34:58.614 +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:34:58.753 +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:34:58.614 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:58.899 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=28] [neededSchemaVersion=29] ["start time"=2.090665ms] [phyTblIDs="[58]"] [actionTypes="[8]"] [2024/05/06 16:34:58.956 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:34:58.956 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=59] [version=29] [2024/05/06 16:34:58.958 +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"=62.762989ms] [job="ID:59, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:58, RowCount:0, ArgLen:2, start time: 2024-05-06 16:34:58.614 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:59.027 +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:34:58.614 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:59.200 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=59] [2024/05/06 16:34:59.200 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:34:59.202 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.604195558\n# Parse_time: 0\n# Compile_time: 0.00247363\n# Rewrite_time: 0.000014077\n# Optimize_time: 0\n# Wait_TS: 0.000093846\n# DB: mysql\n# Is_internal: true\n# Digest: d5bebde055ca14bff3e131e086a86c4095b9d04ea6fc326b4c2f16ffd61fbd2d\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\nCREATE TABLE IF NOT EXISTS mysql.table_cache_meta ( tid bigint(11) NOT NULL DEFAULT 0, lock_type enum('NONE','READ', 'INTEND', 'WRITE') NOT NULL DEFAULT 'NONE', lease bigint(20) NOT NULL DEFAULT 0, oldReadLease bigint(20) NOT NULL DEFAULT 0, PRIMARY KEY (tid) );"] [2024/05/06 16:34:59.214 +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:34:59.236 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(19372) to MEDIUMBLOB"] [2024/05/06 16:34:59.349 +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:34:59.269 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:34:59.350 +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:34:59.269 +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:34:59.413 +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:34:59.269 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:59.601 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=29] [neededSchemaVersion=30] ["start time"=2.949384ms] [phyTblIDs="[60]"] [actionTypes="[8]"] [2024/05/06 16:34:59.657 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:34:59.657 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=61] [version=30] [2024/05/06 16:34:59.659 +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"=62.123798ms] [job="ID:61, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:60, RowCount:0, ArgLen:2, start time: 2024-05-06 16:34:59.269 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:59.710 +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:34:59.269 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:34:59.794 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=61] [2024/05/06 16:34:59.794 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:34:59.796 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.585224983\n# Parse_time: 0\n# Compile_time: 0.003300853\n# Rewrite_time: 0.000025698\n# Optimize_time: 0\n# Wait_TS: 0.00012671\n# DB: mysql\n# Is_internal: true\n# Digest: 987fcd9b9a604209ec1101d918419b993c42f84fe228e20aee2fcca2931ff93e\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\nCREATE TABLE IF NOT EXISTS mysql.analyze_options ( table_id BIGINT(64) NOT NULL, sample_num BIGINT(64) NOT NULL DEFAULT 0, sample_rate DOUBLE NOT NULL DEFAULT -1, buckets BIGINT(64) NOT NULL DEFAULT 0, topn BIGINT(64) NOT NULL DEFAULT -1, column_choice enum('DEFAULT','ALL','PREDICATE','LIST') NOT NULL DEFAULT 'DEFAULT', column_ids TEXT(19372), PRIMARY KEY (table_id) CLUSTERED );"] [2024/05/06 16:34:59.816 +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:34:59.919 +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:34:59.836 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:34:59.920 +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:34:59.836 +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:35:00.095 +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:34:59.836 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:00.269 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=30] [neededSchemaVersion=31] ["start time"=2.636169ms] [phyTblIDs="[62]"] [actionTypes="[8]"] [2024/05/06 16:35:00.309 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:00.309 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=63] [version=31] [2024/05/06 16:35:00.310 +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"=44.330621ms] [job="ID:63, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:62, RowCount:0, ArgLen:2, start time: 2024-05-06 16:34:59.836 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:00.377 +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:34:59.836 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:00.457 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=63] [2024/05/06 16:35:00.457 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:00.458 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.653266399\n# Parse_time: 0\n# Compile_time: 0.01116688\n# Rewrite_time: 0.000016316\n# Optimize_time: 0\n# Wait_TS: 0.000095272\n# DB: mysql\n# Is_internal: true\n# Digest: 11757f6de6b3d2a64e92f14cd7b7f739729563ede3b0139d016148eba0b27ebf\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\nCREATE TABLE IF NOT EXISTS mysql.stats_history ( table_id bigint(64) NOT NULL, stats_data longblob NOT NULL, seq_no bigint(64) NOT NULL comment 'sequence number of the gzipped data slice', version bigint(64) NOT NULL comment 'stats version which corresponding to stats:version in EXPLAIN', create_time datetime(6) NOT NULL, UNIQUE KEY table_version_seq (table_id, version, seq_no), KEY table_create_time (table_id, create_time, seq_no) );"] [2024/05/06 16:35:00.466 +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:35:00.553 +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:35:00.479 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:00.553 +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:35:00.479 +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:35:00.683 +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:35:00.479 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:00.824 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=31] [neededSchemaVersion=32] ["start time"=2.713412ms] [phyTblIDs="[64]"] [actionTypes="[8]"] [2024/05/06 16:35:00.906 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:00.906 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=65] [version=32] [2024/05/06 16:35:00.909 +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"=90.839767ms] [job="ID:65, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:64, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:00.479 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:00.967 +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:35:00.479 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:01.062 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=65] [2024/05/06 16:35:01.063 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:01.066 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.603153859\n# Parse_time: 0\n# Compile_time: 0.003240283\n# Rewrite_time: 0.000013335\n# Optimize_time: 0\n# Wait_TS: 0.00009674\n# DB: mysql\n# Is_internal: true\n# Digest: ebccd6f5d49fb0fcff4d7dc20bb3ae798d172a92ba5f6709445c980166f7e32f\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\nCREATE TABLE IF NOT EXISTS mysql.stats_meta_history ( table_id bigint(64) NOT NULL, modify_count bigint(64) NOT NULL, count bigint(64) NOT NULL, version bigint(64) NOT NULL comment 'stats version which corresponding to stats:version in EXPLAIN', create_time datetime(6) NOT NULL, UNIQUE KEY table_version (table_id, version), KEY table_create_time (table_id, create_time) );"] [2024/05/06 16:35:01.092 +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:35:01.223 +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:35:01.119 +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:35:01.237 +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:35:01.119 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:01.305 +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:35:01.119 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:01.659 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=32] [neededSchemaVersion=33] ["start time"=4.53486ms] [phyTblIDs="[66]"] [actionTypes="[8]"] [2024/05/06 16:35:01.707 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:01.707 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=67] [version=33] [2024/05/06 16:35:01.707 +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"=52.876456ms] [job="ID:67, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:66, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:01.119 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:01.784 +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:35:01.119 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:02.120 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=67] [2024/05/06 16:35:02.128 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:02.130 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 1.043239444\n# Parse_time: 0\n# Compile_time: 0.00514762\n# Rewrite_time: 0.000012726\n# Optimize_time: 0\n# Wait_TS: 0.000085109\n# DB: mysql\n# Is_internal: true\n# Digest: bfb9a3ff60c3c60c054a207c0a0db06c87e29edbe94005d8d5c89fe484f4f90a\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\nCREATE TABLE IF NOT EXISTS mysql.analyze_jobs ( id BIGINT(64) UNSIGNED NOT NULL AUTO_INCREMENT, update_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, table_schema CHAR(64) NOT NULL DEFAULT '', table_name CHAR(64) NOT NULL DEFAULT '', partition_name CHAR(64) NOT NULL DEFAULT '', job_info TEXT NOT NULL, processed_rows BIGINT(64) UNSIGNED NOT NULL DEFAULT 0, start_time TIMESTAMP, end_time TIMESTAMP, state ENUM('pending', 'running', 'finished', 'failed') NOT NULL, fail_reason TEXT, instance VARCHAR(512) NOT NULL comment 'address of the TiDB instance executing the analyze job', process_id BIGINT(64) UNSIGNED comment 'ID of the process executing the analyze job', PRIMARY KEY (id), KEY (update_time) );"] [2024/05/06 16:35:02.136 +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:35:02.242 +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:35:02.164 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:02.242 +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:35:02.164 +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:35:02.386 +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:35:02.164 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:02.523 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=33] [neededSchemaVersion=34] ["start time"=1.719613ms] [phyTblIDs="[68]"] [actionTypes="[8]"] [2024/05/06 16:35:02.556 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:02.556 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=69] [version=34] [2024/05/06 16:35:02.556 +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"=36.09218ms] [job="ID:69, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:68, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:02.164 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:02.609 +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:35:02.164 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:02.708 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=69] [2024/05/06 16:35:02.708 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:02.709 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.574852409\n# Parse_time: 0\n# Compile_time: 0.00132622\n# Rewrite_time: 0.000012327\n# Optimize_time: 0\n# Wait_TS: 0.000084999\n# DB: mysql\n# Is_internal: true\n# Digest: 85d0480e8afeca7d94d07ca1a681df6c7f89f1fda753ceb6e02b51caf3714c1c\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\nCREATE TABLE IF NOT EXISTS mysql.advisory_locks ( lock_name VARCHAR(64) NOT NULL PRIMARY KEY );"] [2024/05/06 16:35:02.857 +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:35:02.736 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:02.857 +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:35:02.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:35:02.998 +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:35:02.736 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:03.210 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=34] [neededSchemaVersion=35] ["start time"=2.765707ms] [phyTblIDs="[70]"] [actionTypes="[2097152]"] [2024/05/06 16:35:03.256 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:03.256 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=71] [version=35] [2024/05/06 16:35:03.256 +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"=49.116447ms] [job="ID:71, Type:create view, State:done, SchemaState:public, SchemaID:1, TableID:70, RowCount:0, ArgLen:3, start time: 2024-05-06 16:35:02.736 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:03.359 +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:35:02.736 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:03.501 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=71] [2024/05/06 16:35:03.502 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:03.503 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.789051628\n# Parse_time: 0\n# Compile_time: 0.00735584\n# Rewrite_time: 0.004189395\n# Optimize_time: 0\n# Wait_TS: 0.000091368\n# DB: mysql\n# Is_internal: true\n# Digest: 812c81f344f5d0c8b8aedcb68ff1dca865b59104853273f7e66b8abff5429992\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\nCREATE OR REPLACE VIEW mysql.tidb_mdl_view as ( select 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 );"] [2024/05/06 16:35:03.511 +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:35:03.601 +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:35:03.53 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:03.602 +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:35:03.53 +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:35:03.701 +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:35:03.53 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:03.808 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=35] [neededSchemaVersion=36] ["start time"=2.67328ms] [phyTblIDs="[72]"] [actionTypes="[8]"] [2024/05/06 16:35:03.856 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:03.856 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=73] [version=36] [2024/05/06 16:35:03.856 +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"=52.204403ms] [job="ID:73, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:72, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:03.53 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:03.908 +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:35:03.53 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:04.019 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=73] [2024/05/06 16:35:04.022 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:04.024 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.516017335\n# Parse_time: 0\n# Compile_time: 0.003023271\n# Rewrite_time: 0.000014556\n# Optimize_time: 0\n# Wait_TS: 0.000086342\n# DB: mysql\n# Is_internal: true\n# Digest: 3d2f349b1c68ee2b30e34bad8bb3838af6c40d7a26072b2d29d801d7fedbac48\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\nCREATE TABLE IF NOT EXISTS mysql.plan_replayer_status ( sql_digest VARCHAR(128), plan_digest VARCHAR(128), origin_sql TEXT, token VARCHAR(128), update_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, fail_reason TEXT, instance VARCHAR(512) NOT NULL comment 'address of the TiDB instance executing the plan replayer job');"] [2024/05/06 16:35:04.050 +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:35:04.163 +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:35:04.08 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:04.163 +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:35:04.08 +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:35:04.221 +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:35:04.08 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:04.330 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=36] [neededSchemaVersion=37] ["start time"=4.311788ms] [phyTblIDs="[74]"] [actionTypes="[8]"] [2024/05/06 16:35:04.357 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:04.357 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=75] [version=37] [2024/05/06 16:35:04.357 +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.348625ms] [job="ID:75, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:74, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:04.08 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:04.414 +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:35:04.08 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:04.506 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=75] [2024/05/06 16:35:04.507 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:04.508 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.46434395\n# Parse_time: 0\n# Compile_time: 0.006457842\n# Rewrite_time: 0.000011971\n# Optimize_time: 0\n# Wait_TS: 0.000080492\n# DB: mysql\n# Is_internal: true\n# Digest: 8d9754df14c826803fed84f1ae3eb8fc9729e76a793b6be6bf25967f1929d039\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\nCREATE TABLE IF NOT EXISTS mysql.plan_replayer_task ( sql_digest VARCHAR(128) NOT NULL, plan_digest VARCHAR(128) NOT NULL, update_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (sql_digest,plan_digest));"] [2024/05/06 16:35:04.515 +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:35:04.624 +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:35:04.529 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:04.624 +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:35:04.529 +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:35:04.698 +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:35:04.529 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:04.804 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=37] [neededSchemaVersion=38] ["start time"=1.927199ms] [phyTblIDs="[76]"] [actionTypes="[8]"] [2024/05/06 16:35:04.856 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:04.857 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=77] [version=38] [2024/05/06 16:35:04.859 +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"=57.245358ms] [job="ID:77, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:76, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:04.529 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:04.916 +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:35:04.529 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:05.053 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=77] [2024/05/06 16:35:05.066 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:05.068 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.55688571\n# Parse_time: 0\n# Compile_time: 0.004232677\n# Rewrite_time: 0.000013017\n# Optimize_time: 0\n# Wait_TS: 0.000085889\n# DB: mysql\n# Is_internal: true\n# Digest: b57fdc4b14aba5f29d915d04e5e4557f60a758fd65ec571368527cd45c6ef82a\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\nCREATE TABLE IF NOT EXISTS mysql.stats_table_locked( table_id bigint(64) NOT NULL, modify_count bigint(64) NOT NULL DEFAULT 0, count bigint(64) NOT NULL DEFAULT 0, version bigint(64) UNSIGNED NOT NULL DEFAULT 0, PRIMARY KEY (table_id));"] [2024/05/06 16:35:05.083 +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:35:05.221 +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:35:05.097 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:05.221 +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:35:05.097 +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:35:05.320 +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:35:05.097 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:05.638 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=38] [neededSchemaVersion=39] ["start time"=48.958261ms] [phyTblIDs="[78]"] [actionTypes="[8]"] [2024/05/06 16:35:05.706 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:05.706 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=79] [version=39] [2024/05/06 16:35:05.706 +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"=118.116212ms] [job="ID:79, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:78, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:05.097 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:05.775 +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:35:05.097 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:06.016 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=79] [2024/05/06 16:35:06.016 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:06.018 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.940243505\n# Parse_time: 0\n# Compile_time: 0.005264777\n# Rewrite_time: 0.000015889\n# Optimize_time: 0\n# Wait_TS: 0.000086373\n# DB: mysql\n# Is_internal: true\n# Digest: a30bd3c3a49070c554e65922e84c6b76e646842e3925a859fcde73941a7cb423\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\nCREATE TABLE IF NOT EXISTS mysql.tidb_ttl_table_status ( table_id bigint(64) PRIMARY KEY, parent_table_id bigint(64), table_statistics text DEFAULT NULL, last_job_id varchar(64) DEFAULT NULL, last_job_start_time timestamp NULL DEFAULT NULL, last_job_finish_time timestamp NULL DEFAULT NULL, last_job_ttl_expire timestamp NULL DEFAULT NULL, last_job_summary text DEFAULT NULL, current_job_id varchar(64) DEFAULT NULL, current_job_owner_id varchar(64) DEFAULT NULL, current_job_owner_addr varchar(256) DEFAULT NULL, current_job_owner_hb_time timestamp, current_job_start_time timestamp NULL DEFAULT NULL, current_job_ttl_expire timestamp NULL DEFAULT NULL, current_job_state text DEFAULT NULL, current_job_status varchar(64) DEFAULT NULL, current_job_status_update_time timestamp NULL DEFAULT NULL);"] [2024/05/06 16:35:06.785 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 449572898346106880\n# Query_time: 0.520979613\n# Parse_time: 0\n# Compile_time: 0.253402297\n# Rewrite_time: 0.007870228\n# Optimize_time: 0\n# Wait_TS: 0.00008452\n# DB: mysql\n# Is_internal: true\n# Digest: ca2019e08a331284bd0c64be228a0537fcf9f5983e95d94b67ef42dcb8f54385\n# Num_cop_tasks: 0\n# Mem_max: 354800\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: true\n# IsSyncStatsFailed: false\n# Plan: tidb_decode_plan('pAPwPDAJMjdfMQkwCTAJTi9BCTAJdGltZToyNTMuN21zLCBsb29wczoxLCBwcmVwYXJlOiB7dG90YWw6IDM1LjgBIkxhdXRvX2lkX2FsbG9jYXRvcjogewUMZF9jbnQ6IDEsIEdldDp7bnVtX3JwYzo0LCB0AUEAXwVokDQyNi4zwrVzfSwgY29tbWl0X3R4bjoge3ByZXdyaXRlOjUwNC4BIRQsIGdldF8RJCBzOjMwLjbCtXMRNxQ6NTA2LjkFERxzbG93ZXN0XxFDBXYEIHsFdWg6IDAuMDAwcywgcmVnaW9uX2lkOiAyLCBzdG8B2wUHCDEsIBmOGHByaW1hcnnWRAANZBhudW06MSwgBdAMX2tleSVPCQ6YYnl0ZTozMn19fSwgaW5zZXJ0OjIxNy45bXMJOTguNSBLQglOL0EK')\nINSERT HIGH_PRIORITY INTO mysql.GLOBAL_VARIABLES VALUES (\"tidb_enable_unsafe_substitute\", \"OFF\"), (\"net_write_timeout\", \"60\"), (\"super_read_only\", \"OFF\"), (\"slave_parallel_type\", \"\"), (\"tidb_allow_mpp\", \"ON\"), (\"innodb_max_purge_lag\", \"0\"), (\"sql_quote_show_create\", \"ON\"), (\"tidb_enable_new_only_full_group_by_check\", \"OFF\"), (\"session_track_state_change\", \"\"), (\"event_scheduler\", \"OFF\"), (\"max_seeks_for_key\", \"18446744073709551615\"), (\"sync_relay_log_info\", \"10000\"), (\"tidb_cost_model_version\", \"2\"), (\"tidb_enable_noop_variables\", \"ON\"), (\"tidb_opt_desc_factor\", \"3\"), (\"tidb_enable_local_txn\", \"OFF\"), (\"innodb_stats_persistent\", \"ON\"), (\"min_examined_row_limit\", \"0\"), (\"innodb_max_undo_log_size\", \"\"), (\"block_encryption_mode\", \"aes-128-ecb\"), (\"tidb_enable_index_merge_join\", \"OFF\"), (\"tidb_max_chunk_size\", \"1024\"), (\"sync_relay_log\", \"10000\"), (\"tidb_enable_clustered_index\", \"ON\"), (\"innodb_flush_sync\", \"\"), (\"innodb_flush_neighbors\", \"1\"), (\"log_backward_compatible_user_definitions\", \"\"), (\"rpl_semi_sync_master_wait_point\", \"AFTER_SYNC\"), (\"ndb_join_pushdown\", \"\"), (\"character_set_server\", \"utf8mb4\"), (\"offline_mode\", \"OFF\"), (\"tidb_adaptive_closest_read_threshold\", \"4096\"), (\"general_log_file\", \"/usr/local/mysql/data/localhost.log\"), (\"tidb_prepared_plan_cache_memory_guard_ratio\", \"0.1\"), (\"innodb_status_output\", \"OFF\"), (\"innodb_compression_level\", \"6\"), (\"tidb_merge_partition_stats_concurrency\", \"1\"), (\"thread_cache_size\", \"9\"), (\"innodb_ft_aux_table\", \"\"), (\"transaction_isolation\", \"REPEATABLE-READ\"), (\"tidb_ddl_flashback_concurrency\", \"64\"), (\"innodb_thread_concurrency\", \"0\"), (\"tidb_gogc_tuner_threshold\", \"0.6\"), (\"ndbinfo_show_hidden\", \"\"), (\"innodb_large_prefix\", \"ON\"), (\"tidb_stats_load_pseudo_timeout\", \"ON\"), (\"tidb_table_cache_lease\", \"3\"), (\"tidb_stmt_summary_max_stmt_count\", \"3000\"), (\"key_cache_age_threshold\", \"300\"), (\"tidb_broadcast_join_threshold_size\", \"104857600\"), (\"information_schema_stats_expiry\", \"86400\"), (\"myisam_use_mmap\", \"OFF\"), (\"tidb_enable_gogc_tuner\", \"ON\"), (\"log_syslog\", \"\"), (\"max_join_size\", \"18446744073709551615\"), (\"low_priority_updates\", \"OFF\"), (\"tidb_index_lookup_size\", \"20000\"), (\"validate_password.dictionary\", \"\"), (\"tidb_top_sql_max_meta_count\", \"5000\"), (\"tmp_table_size\", \"16777216\"), (\"innodb_lru_scan_depth\", \"1024\"), (\"tidb_mem_quota_apply_cache\", \"33554432\"), (\"sql_warnings\", \"OFF\"), (\"ft_boolean_syntax\", \"+ -><()~*:\\\"\\\"&|\"), (\"tidb_generate_binary_plan\", \"ON\"), (\"tidb_enable_paging\", \"ON\"), (\"tidb_opt_copcpu_factor\", \"3\"), (\"innodb_stats_transient_sample_pages\", \"8\"), (\"character_set_database\", \"utf8mb4\"), (\"tidb_stats_cache_mem_quota\", \"0\"), (\"ndb_log_updated_only\", \"\"), (\"tidb_enable_null_aware_anti_join\", \"OFF\"), (\"validate_password.number_count\", \"1\"), (\"ndb_eventbuffer_max_alloc\", \"\"), (\"lc_messages\", \"en_US\"), (\"innodb_change_buffering\", \"all\"), (\"tidb_mem_quota_query\", \"1073741824\"), (\"default_storage_engine\", \"InnoDB\"), (\"innodb_flushing_avg_loops\", \"30\"), (\"group_concat_max_len\", \"1024\"), (\"avoid_temporal_upgrade\", \"OFF\"), (\"binlog_rows_query_log_events\", \"OFF\"), (\"innodb_commit_concurrency\", \"0\"), (\"tidb_replica_read\", \"leader\"), (\"binlogging_impossible_mode\", \"IGNORE_ERROR\"), (\"tidb_txn_assertion_level\", \"FAST\"), (\"tidb_general_plan_cache_size\", \"100\"), (\"time_zone\", \"SYSTEM\"), (\"query_cache_min_res_unit\", \"4096\"), (\"unique_checks\", \"ON\"), (\"autocommit\", \"ON\"), (\"innodb_max_dirty_pages_pct\", \"75\"), (\"expire_logs_days\", \"0\"), (\"tidb_use_plan_baselines\", \"ON\"), (\"tidb_top_sql_max_time_series_count\", \"100\"), (\"log_error_verbosity\", \"\"), (\"innodb_file_per_table\", \"ON\"), (\"tidb_enable_index_merge\", \"ON\"), (\"innodb_lock_wait_timeout\", \"50\"), (\"bulk_insert_buffer_size\", \"8388608\"), (\"log_throttle_queries_not_using_indexes\", \"0\"), (\"max_allowed_packet\", \"67108864\"), (\"tidb_opt_correlation_exp_factor\", \"1\"), (\"innodb_io_capacity\", \"200\"), (\"tidb_super_read_only\", \"OFF\"), (\"max_heap_table_size\", \"16777216\"), (\"gtid_purged\", \"\"), (\"relay_log_info_repository\", \"FILE\"), (\"init_slave\", \"\"), (\"tidb_placement_mode\", \"STRICT\"), (\"tidb_opt_memory_factor\", \"0.001\"), (\"max_points_(len:21519);"] [2024/05/06 16:35:07.172 +08:00] [INFO] [bootstrap.go:529] ["bootstrap successful"] ["take time"=28.115644287s] [2024/05/06 16:35:07.177 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:35:07.178 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 9, tp add index"] ["take time"=29.773µs] [2024/05/06 16:35:07.178 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 10, tp add index"] ["take time"=25.386µs] [2024/05/06 16:35:07.180 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 11, tp add index"] ["take time"=37.633µs] [2024/05/06 16:35:07.180 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 12, tp add index"] ["take time"=40.817µs] [2024/05/06 16:35:07.180 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 13, tp add index"] ["take time"=18.037µs] [2024/05/06 16:35:07.180 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 4, tp add index"] ["take time"=20.899µs] [2024/05/06 16:35:07.180 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 5, tp add index"] ["take time"=19.204µs] [2024/05/06 16:35:07.181 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 6, tp add index"] ["take time"=19.193µs] [2024/05/06 16:35:07.181 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 7, tp add index"] ["take time"=19.474µs] [2024/05/06 16:35:07.181 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 8, tp add index"] ["take time"=20.128µs] [2024/05/06 16:35:07.181 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:35:07.181 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 3, tp general"] ["take time"=22.871µs] [2024/05/06 16:35:07.182 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 1, tp general"] ["take time"=5.007µs] [2024/05/06 16:35:07.182 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 2, tp add index"] ["take time"=2.725µs] [2024/05/06 16:35:07.183 +08:00] [INFO] [delete_range.go:148] ["[ddl] closing delRange"] [2024/05/06 16:35:07.183 +08:00] [INFO] [session_pool.go:94] ["[ddl] closing sessionPool"] [2024/05/06 16:35:07.195 +08:00] [INFO] [ddl.go:833] ["[ddl] DDL closed"] [ID=361fea57-cf5b-4838-90e0-f4177a00f1ef] ["take time"=17.351863ms] [2024/05/06 16:35:07.195 +08:00] [INFO] [ddl.go:657] ["[ddl] stop DDL"] [ID=361fea57-cf5b-4838-90e0-f4177a00f1ef] [2024/05/06 16:35:07.202 +08:00] [INFO] [domain.go:574] ["topNSlowQueryLoop exited."] [2024/05/06 16:35:07.202 +08:00] [INFO] [domain.go:603] ["infoSyncerKeeper exited."] [2024/05/06 16:35:07.202 +08:00] [INFO] [domain.go:792] ["loadSchemaInLoop exited."] [2024/05/06 16:35:07.202 +08:00] [INFO] [domain.go:651] ["topologySyncerKeeper exited."] [2024/05/06 16:35:07.202 +08:00] [INFO] [domain.go:628] ["globalConfigSyncerKeeper exited."] [2024/05/06 16:35:07.203 +08:00] [INFO] [domain.go:920] ["domain closed"] ["take time"=25.289069ms] [2024/05/06 16:35:07.202 +08:00] [INFO] [domain.go:1156] ["closestReplicaReadCheckLoop exited."] [2024/05/06 16:35:07.203 +08:00] [INFO] [tidb.go:77] ["new domain"] [store=6caa8172-5d08-484c-a2a7-74f625a49fd9] ["ddl lease"=500ms] ["stats lease"=-1ns] ["index usage sync lease"=0s] [2024/05/06 16:35:07.378 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=39] ["start time"=172.897325ms] [2024/05/06 16:35:07.384 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:35:07.384 +08:00] [INFO] [ddl.go:719] ["[ddl] start DDL"] [ID=dbd340f9-e638-49c7-b67b-c211c29bfd81] [runWorker=true] [2024/05/06 16:35:07.386 +08:00] [INFO] [ddl.go:665] ["[ddl] start delRangeManager OK"] ["is a emulator"=true] [2024/05/06 16:35:07.387 +08:00] [INFO] [delete_range.go:158] ["[ddl] start delRange emulator"] [2024/05/06 16:35:07.388 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 14, tp general"] [2024/05/06 16:35:07.388 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 15, tp add index"] [2024/05/06 16:35:07.392 +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:35:07.392 +08:00] [INFO] [env.go:108] ["[ddl-ingest] the lightning sorted dir"] ["data path:"=/tmp/tidb/tmp_ddl-4000] [2024/05/06 16:35:07.393 +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:35:07.393 +08:00] [WARN] [domain.go:1120] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 16:35:07.425 +08:00] [WARN] [sysvar_cache.go:50] ["sysvar cache is empty, triggering rebuild"] [2024/05/06 16:35:07.726 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=1] [schemaVersion=39] [cur_db=test] [sql="drop table if exists t1,t2"] [user=] [2024/05/06 16:35:07.730 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=1] [schemaVersion=39] [cur_db=test] [sql="create table t1 (id int primary key, v int)"] [user=] [2024/05/06 16:35:07.801 +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:35:07.75 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:07.802 +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:35:07.75 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="create table t1 (id int primary key, v int)"] [2024/05/06 16:35:08.556 +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:35:07.75 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:08.709 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=39] [neededSchemaVersion=40] ["start time"=1.551658ms] [phyTblIDs="[80]"] [actionTypes="[8]"] [2024/05/06 16:35:08.744 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=81] [version=40] [2024/05/06 16:35:08.746 +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.865511ms] [job="ID:81, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:80, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:07.75 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:08.815 +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:35:07.75 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:08.905 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=81] [2024/05/06 16:35:08.906 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:08.910 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Conn_ID: 1\n# Query_time: 1.181250951\n# Parse_time: 0.001017079\n# Compile_time: 0.001067192\n# Rewrite_time: 0.000013139\n# Optimize_time: 0.000732665\n# Wait_TS: 0.000087715\n# DB: test\n# Is_internal: false\n# Digest: 58adff4e53b4dc3a2102ff826681d219bcf79edb1d10a7d7eddd3da56fcd9ce6\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 t1 (id int primary key, v int);"] [2024/05/06 16:35:08.928 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=1] [schemaVersion=40] [cur_db=test] [sql="create table t2 (id int)"] [user=] [2024/05/06 16:35:08.981 +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:2, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:08.95 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:08.982 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:83, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:08.95 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="create table t2 (id int)"] [2024/05/06 16:35:09.109 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 16, tp general"] [job="ID:83, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:35:08.95 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:09.193 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=40] [neededSchemaVersion=41] ["start time"=1.464214ms] [phyTblIDs="[82]"] [actionTypes="[8]"] [2024/05/06 16:35:09.244 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=83] [version=41] [2024/05/06 16:35:09.246 +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"=54.796883ms] [job="ID:83, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:08.95 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:09.392 +08:00] [INFO] [info.go:1114] [SetTiFlashGroupConfig] [2024/05/06 16:35:09.435 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 16, tp general"] [job="ID:83, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:35:08.95 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:09.546 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=83] [2024/05/06 16:35:09.546 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:09.548 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Conn_ID: 1\n# Query_time: 0.621130172\n# Parse_time: 0.00065385\n# Compile_time: 0.000925418\n# Rewrite_time: 0.000011325\n# Optimize_time: 0.000732665\n# Wait_TS: 0.000100758\n# DB: test\n# Is_internal: false\n# Digest: 022ec70336ed50328c0e53dd0419219aeef85a72279ec430eea3ccf10d0811fe\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\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\ncreate table t2 (id int);"] [2024/05/06 16:35:09.550 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=1] [schemaVersion=41] [cur_db=test] [sql="create temporary table tmp (id int)"] [user=] [2024/05/06 16:35:09.603 +08:00] [WARN] [2pc.go:1900] ["schemaLeaseChecker is not set for this transaction"] [sessionID=2] [startTS=449572899282223104] [checkTS=449572899285368832] [2024/05/06 16:35:09.617 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=41] [cur_db=test] [sql="alter table t2 add column(c1 int)"] [user=] [2024/05/06 16:35:09.742 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:85, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:35:09.643 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:09.742 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:85, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:35:09.643 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="alter table t2 add column(c1 int)"] [2024/05/06 16:35:09.818 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 16, tp general"] [job="ID:85, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:35:09.643 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:09.820 +08:00] [INFO] [column.go:133] ["[ddl] run add column job"] [job="ID:85, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:35:09.643 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [columnInfo="{\"id\":2,\"name\":{\"O\":\"c1\",\"L\":\"c1\"},\"offset\":1,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{},\"state\":0,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2}"] [2024/05/06 16:35:09.871 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=41] [neededSchemaVersion=42] ["start time"=5.20361ms] [phyTblIDs="[82]"] [actionTypes="[32]"] [2024/05/06 16:35:09.894 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=85] [version=42] [2024/05/06 16:35:09.894 +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"=28.905361ms] [job="ID:85, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:35:09.643 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:10.076 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 16, tp general"] [job="ID:85, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:35:09.643 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:10.135 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=42] [neededSchemaVersion=43] ["start time"=1.644594ms] [phyTblIDs="[82]"] [actionTypes="[32]"] [2024/05/06 16:35:10.194 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=85] [version=43] [2024/05/06 16:35:10.195 +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"=62.930449ms] [job="ID:85, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:35:09.643 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:10.245 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 16, tp general"] [job="ID:85, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:35:09.643 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:10.298 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=43] [neededSchemaVersion=44] ["start time"=1.802632ms] [phyTblIDs="[82]"] [actionTypes="[32]"] [2024/05/06 16:35:10.347 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=85] [version=44] [2024/05/06 16:35:10.347 +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"=51.433047ms] [job="ID:85, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:35:09.643 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:10.420 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 16, tp general"] [job="ID:85, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:35:09.643 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:10.509 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=44] [neededSchemaVersion=45] ["start time"=1.538255ms] [phyTblIDs="[82]"] [actionTypes="[32]"] [2024/05/06 16:35:10.544 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=85] [version=45] [2024/05/06 16:35:10.545 +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"=38.852023ms] [job="ID:85, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:35:09.643 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:10.695 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 16, tp general"] [job="ID:85, Type:add column, State:synced, SchemaState:public, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:35:09.643 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:10.741 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=85] [2024/05/06 16:35:10.741 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:10.743 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Conn_ID: 3\n# Query_time: 1.128001873\n# Parse_time: 0.000704944\n# Compile_time: 0.001208982\n# Rewrite_time: 0.000018957\n# Optimize_time: 0.000459017\n# Wait_TS: 0.000076955\n# DB: test\n# Is_internal: false\n# Digest: 177e330fc6e13ff4b1b9f51ae04b524c419feabb143557fdc6a5807ebb58aed3\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;\nalter table t2 add column(c1 int);"] [2024/05/06 16:35:10.752 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:35:10.752 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 21, tp add index"] ["take time"=19.272µs] [2024/05/06 16:35:10.752 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 22, tp add index"] ["take time"=8.171µs] [2024/05/06 16:35:10.752 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 23, tp add index"] ["take time"=7.568µs] [2024/05/06 16:35:10.753 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 24, tp add index"] ["take time"=7.017µs] [2024/05/06 16:35:10.753 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 25, tp add index"] ["take time"=7.264µs] [2024/05/06 16:35:10.753 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 26, tp add index"] ["take time"=6.792µs] [2024/05/06 16:35:10.753 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 17, tp add index"] ["take time"=5.465µs] [2024/05/06 16:35:10.753 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 18, tp add index"] ["take time"=12.992µs] [2024/05/06 16:35:10.754 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 19, tp add index"] ["take time"=14.831µs] [2024/05/06 16:35:10.754 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 20, tp add index"] ["take time"=17.561µs] [2024/05/06 16:35:10.754 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:35:10.754 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 16, tp general"] ["take time"=7.02µs] [2024/05/06 16:35:10.754 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 14, tp general"] ["take time"=3.316µs] [2024/05/06 16:35:10.755 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 15, tp add index"] ["take time"=3.331µs] [2024/05/06 16:35:10.755 +08:00] [INFO] [delete_range.go:148] ["[ddl] closing delRange"] [2024/05/06 16:35:10.755 +08:00] [INFO] [session_pool.go:94] ["[ddl] closing sessionPool"] [2024/05/06 16:35:10.757 +08:00] [INFO] [ddl.go:833] ["[ddl] DDL closed"] [ID=dbd340f9-e638-49c7-b67b-c211c29bfd81] ["take time"=8.718059ms] [2024/05/06 16:35:10.757 +08:00] [INFO] [ddl.go:657] ["[ddl] stop DDL"] [ID=dbd340f9-e638-49c7-b67b-c211c29bfd81] [2024/05/06 16:35:10.757 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:35:10.758 +08:00] [INFO] [domain.go:1525] ["globalBindHandleWorkerLoop exited."] [2024/05/06 16:35:10.758 +08:00] [INFO] [domain.go:1569] ["handleEvolvePlanTasksLoop exited."] [2024/05/06 16:35:10.758 +08:00] [INFO] [domain.go:603] ["infoSyncerKeeper exited."] [2024/05/06 16:35:10.758 +08:00] [INFO] [domain.go:792] ["loadSchemaInLoop exited."] [2024/05/06 16:35:10.758 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:35:10.758 +08:00] [INFO] [domain.go:1748] ["dumpFileGcChecker exited."] [2024/05/06 16:35:10.758 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:35:10.758 +08:00] [INFO] [domain.go:1394] ["loadPrivilegeInLoop exited."] [2024/05/06 16:35:10.758 +08:00] [INFO] [domain.go:651] ["topologySyncerKeeper exited."] [2024/05/06 16:35:10.758 +08:00] [INFO] [domain.go:1444] ["LoadSysVarCacheLoop exited."] [2024/05/06 16:35:10.758 +08:00] [INFO] [domain.go:628] ["globalConfigSyncerKeeper exited."] [2024/05/06 16:35:10.758 +08:00] [INFO] [domain.go:574] ["topNSlowQueryLoop exited."] [2024/05/06 16:35:10.758 +08:00] [INFO] [domain.go:1156] ["closestReplicaReadCheckLoop exited."] [2024/05/06 16:35:10.758 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:35:10.758 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:35:10.764 +08:00] [INFO] [domain.go:920] ["domain closed"] ["take time"=15.880796ms] [2024/05/06 16:35:10.772 +08:00] [INFO] [db.go:567] ["Closing database"] [2024/05/06 16:35:10.773 +08:00] [INFO] [db.go:592] ["Memtable flushed"] [2024/05/06 16:35:10.773 +08:00] [INFO] [db.go:596] ["Compaction finished"] [2024/05/06 16:35:10.773 +08:00] [INFO] [db.go:615] ["BlobManager finished"] [2024/05/06 16:35:10.773 +08:00] [INFO] [db.go:619] ["ResourceManager finished"] [2024/05/06 16:35:10.773 +08:00] [INFO] [db.go:625] ["Waiting for closer"] --- PASS: TestTxnContextForSimpleCases (32.16s) === RUN TestTxnContextBeginInUnfinishedTxn [2024/05/06 16:35:10.783 +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:35:10.790 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:35:10.792 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:35:10.802 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:35:10.838 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:35:10.845 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:35:10.864 +08:00] [INFO] [tidb.go:77] ["new domain"] [store=951d675d-6f65-4b51-ac41-17f32da01655] ["ddl lease"=500ms] ["stats lease"=-1ns] ["index usage sync lease"=0s] [2024/05/06 16:35:10.866 +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\nsessiontxn/sessiontxn_test_test.setupTxnContextTest\n\tsessiontxn/txn_context_test.go:61\nsessiontxn/sessiontxn_test_test.TestTxnContextBeginInUnfinishedTxn\n\tsessiontxn/txn_context_test.go:219\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1446\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:35:10.923 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=0] ["start time"=55.156632ms] [2024/05/06 16:35:10.932 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:35:10.951 +08:00] [INFO] [ddl.go:719] ["[ddl] start DDL"] [ID=b248928b-f8c2-4813-9cf3-09af967378ec] [runWorker=true] [2024/05/06 16:35:10.952 +08:00] [INFO] [ddl.go:665] ["[ddl] start delRangeManager OK"] ["is a emulator"=true] [2024/05/06 16:35:10.952 +08:00] [INFO] [delete_range.go:158] ["[ddl] start delRange emulator"] [2024/05/06 16:35:10.953 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 27, tp general"] [2024/05/06 16:35:10.953 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 28, tp add index"] [2024/05/06 16:35:10.954 +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:35:10.955 +08:00] [INFO] [env.go:108] ["[ddl-ingest] the lightning sorted dir"] ["data path:"=/tmp/tidb/tmp_ddl-4000] [2024/05/06 16:35:10.955 +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:35:10.956 +08:00] [WARN] [domain.go:1120] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 16:35:10.962 +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:35:11.008 +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:35:10.974 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:11.008 +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:35:10.974 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE DATABASE IF NOT EXISTS test"] [2024/05/06 16:35:11.207 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:35:11.457 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:35:11.707 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:35:11.957 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:35:12.068 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 29, 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:35:10.974 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:12.209 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=1] ["start time"=43.299713ms] [2024/05/06 16:35:12.222 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:35:12.306 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:12.306 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=3] [version=1] [2024/05/06 16:35:12.307 +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"=142.15198ms] [job="ID:3, Type:create schema, State:done, SchemaState:public, SchemaID:2, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 16:35:10.974 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:12.389 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 29, 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:35:10.974 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:12.454 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=3] [2024/05/06 16:35:12.454 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:12.456 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 1.49384728\n# Parse_time: 0\n# Compile_time: 0.000754595\n# Rewrite_time: 0.000013202\n# Optimize_time: 0\n# Wait_TS: 0.000087739\n# DB: mysql\n# Is_internal: true\n# Digest: 0a22979ad136f741465cf206b13e5717b9758dda34f7cae5a7a925f91711d6a0\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 mysql;\nCREATE DATABASE IF NOT EXISTS test;"] [2024/05/06 16:35:12.463 +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:35:12.574 +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:35:12.960 +08:00] [INFO] [info.go:1114] [SetTiFlashGroupConfig] [2024/05/06 16:35:13.080 +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:35:12.645 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:13.080 +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:35:12.645 +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:35:13.149 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 29, 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:35:12.645 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:13.677 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=1] [neededSchemaVersion=2] ["start time"=12.094369ms] [phyTblIDs="[4]"] [actionTypes="[8]"] [2024/05/06 16:35:13.715 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:13.715 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=5] [version=2] [2024/05/06 16:35:13.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=2] ["take time"=51.343313ms] [job="ID:5, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:4, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:12.645 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:13.809 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 29, 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:35:12.645 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:14.112 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=5] [2024/05/06 16:35:14.113 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:14.114 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 1.557616933\n# Parse_time: 0\n# Compile_time: 0.017920437\n# Rewrite_time: 0.000014623\n# Optimize_time: 0\n# Wait_TS: 0.000084203\n# DB: mysql\n# Is_internal: true\n# Digest: 14c6b489558060bdbede877927034270db5af07c6621aa28f87eeaec8727e925\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\nCREATE TABLE IF NOT EXISTS mysql.user ( Host CHAR(255), User CHAR(32), authentication_string TEXT, plugin CHAR(64), Select_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Insert_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Update_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Delete_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Drop_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Process_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Grant_priv ENUM('N','Y') NOT NULL DEFAULT 'N', References_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Show_db_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Super_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_tmp_table_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Lock_tables_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Execute_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Show_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Index_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_user_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Event_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Repl_slave_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Repl_client_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Trigger_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_role_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Drop_role_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Account_locked ENUM('N','Y') NOT NULL DEFAULT 'N', Shutdown_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Reload_priv ENUM('N','Y') NOT NULL DEFAULT 'N', FILE_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Config_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_Tablespace_Priv ENUM('N','Y') NOT NULL DEFAULT 'N', Password_reuse_history smallint unsigned DEFAULT NULL, Password_reuse_time smallint unsigned DEFAULT NULL, User_attributes json, Token_issuer VARCHAR(255), Password_expired ENUM('N','Y') NOT NULL DEFAULT 'N', Password_last_changed TIMESTAMP DEFAULT CURRENT_TIMESTAMP(), Password_lifetime SMALLINT UNSIGNED DEFAULT NULL, PRIMARY KEY (Host, User));"] [2024/05/06 16:35:14.140 +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:35:14.214 +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:35:14.157 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:14.214 +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:35:14.157 +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:35:14.282 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 29, 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:35:14.157 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:14.367 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=2] [neededSchemaVersion=3] ["start time"=2.267036ms] [phyTblIDs="[6]"] [actionTypes="[8]"] [2024/05/06 16:35:14.407 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:14.407 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=7] [version=3] [2024/05/06 16:35:14.408 +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"=43.584611ms] [job="ID:7, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:6, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:14.157 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:14.456 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 29, 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:35:14.157 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:14.544 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=7] [2024/05/06 16:35:14.548 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:14.550 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.430703825\n# Parse_time: 0\n# Compile_time: 0.021630048\n# Rewrite_time: 0.000013844\n# Optimize_time: 0\n# Wait_TS: 0.000087872\n# DB: mysql\n# Is_internal: true\n# Digest: eeb59bc0d98f65a2a5aef8eaa99596260e746b00eed183baf856558ef03533ac\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\nCREATE TABLE IF NOT EXISTS mysql.password_history ( Host char(255) NOT NULL DEFAULT '', User char(32) NOT NULL DEFAULT '', Password_timestamp timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), Password text, PRIMARY KEY (Host,User,Password_timestamp ) ) COMMENT='Password history for user accounts' ;"] [2024/05/06 16:35:14.557 +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:35:14.663 +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:35:14.591 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:14.663 +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:35:14.591 +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:35:14.742 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 29, 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:35:14.591 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:14.837 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=3] [neededSchemaVersion=4] ["start time"=2.046063ms] [phyTblIDs="[8]"] [actionTypes="[8]"] [2024/05/06 16:35:14.856 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:14.856 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=9] [version=4] [2024/05/06 16:35:14.857 +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"=22.582082ms] [job="ID:9, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:8, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:14.591 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:14.916 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 29, 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:35:14.591 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:14.994 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=9] [2024/05/06 16:35:14.995 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:14.996 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.440781345\n# Parse_time: 0\n# Compile_time: 0.002086224\n# Rewrite_time: 0.00001416\n# Optimize_time: 0\n# Wait_TS: 0.000097825\n# DB: mysql\n# Is_internal: true\n# Digest: 3bc9b46cf9e300a8d240915cf47216424544ed9f992c07151fba2e2cadc41632\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\nCREATE 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:35:15.020 +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:35:15.156 +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:35:15.041 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:15.156 +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:35:15.041 +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:35:15.293 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 29, 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:35:15.041 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:15.691 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=4] [neededSchemaVersion=5] ["start time"=5.618877ms] [phyTblIDs="[10]"] [actionTypes="[8]"] [2024/05/06 16:35:15.707 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:15.707 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=11] [version=5] [2024/05/06 16:35:15.707 +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"=22.724727ms] [job="ID:11, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:10, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:15.041 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:15.771 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 29, 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:35:15.041 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:16.000 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=11] [2024/05/06 16:35:16.003 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:16.035 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.995830053\n# Parse_time: 0\n# Compile_time: 0.010575927\n# Rewrite_time: 0.000012817\n# Optimize_time: 0\n# Wait_TS: 0.000084948\n# DB: mysql\n# Is_internal: true\n# Digest: aeaf612801484f0311f850d36f60f29e6d904828682c1f3bb7307dff25ca3a15\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\nCREATE TABLE IF NOT EXISTS mysql.db ( Host CHAR(255), DB CHAR(64), User CHAR(32), Select_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Insert_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Update_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Delete_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Drop_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Grant_priv ENUM('N','Y') NOT NULL DEFAULT 'N', References_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Index_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_tmp_table_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Lock_tables_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Show_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Execute_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Event_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Trigger_priv ENUM('N','Y') NOT NULL DEFAULT 'N', PRIMARY KEY (Host, DB, User));"] [2024/05/06 16:35:16.050 +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:35:16.168 +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:35:16.065 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:16.168 +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:35:16.065 +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:35:16.369 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 29, 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:35:16.065 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:16.533 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=5] [neededSchemaVersion=6] ["start time"=3.226449ms] [phyTblIDs="[12]"] [actionTypes="[8]"] [2024/05/06 16:35:16.557 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:16.557 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=13] [version=6] [2024/05/06 16:35:16.566 +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"=36.785057ms] [job="ID:13, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:12, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:16.065 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:16.647 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 29, 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:35:16.065 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:16.759 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=13] [2024/05/06 16:35:16.760 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:16.761 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.71473531\n# Parse_time: 0\n# Compile_time: 0.004181313\n# Rewrite_time: 0.000013197\n# Optimize_time: 0\n# Wait_TS: 0.000088838\n# DB: mysql\n# Is_internal: true\n# Digest: e8b37dad6cc7f05ee1f0be61455667495826928a93ddd09b94e02fbaed113955\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\nCREATE TABLE IF NOT EXISTS mysql.tables_priv ( Host CHAR(255), DB CHAR(64), User CHAR(32), Table_name CHAR(64), Grantor CHAR(77), Timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP, Table_priv SET('Select','Insert','Update','Delete','Create','Drop','Grant','Index','Alter','Create View','Show View','Trigger','References'), Column_priv SET('Select','Insert','Update','References'), PRIMARY KEY (Host, DB, User, Table_name));"] [2024/05/06 16:35:16.768 +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:35:16.845 +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:35:16.784 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:16.845 +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:35:16.784 +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:35:16.990 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 29, 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:35:16.784 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:17.119 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=6] [neededSchemaVersion=7] ["start time"=2.964048ms] [phyTblIDs="[14]"] [actionTypes="[8]"] [2024/05/06 16:35:17.156 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:17.156 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=15] [version=7] [2024/05/06 16:35:17.157 +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"=41.518182ms] [job="ID:15, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:14, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:16.784 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:17.238 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 29, 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:35:16.784 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:17.352 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=15] [2024/05/06 16:35:17.352 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:17.355 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.589011931\n# Parse_time: 0\n# Compile_time: 0.003010234\n# Rewrite_time: 0.000014345\n# Optimize_time: 0\n# Wait_TS: 0.000089004\n# DB: mysql\n# Is_internal: true\n# Digest: a19edbb3caff8cc57619278ab6eb5f791d7a821432309abe7184d0a7bca66b4d\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\nCREATE TABLE IF NOT EXISTS mysql.columns_priv( Host CHAR(255), DB CHAR(64), User CHAR(32), Table_name CHAR(64), Column_name CHAR(64), Timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP, Column_priv SET('Select','Insert','Update','References'), PRIMARY KEY (Host, DB, User, Table_name, Column_name));"] [2024/05/06 16:35:17.367 +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:35:17.588 +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:35:17.399 +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:35:17.588 +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:35:17.399 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:17.783 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 29, 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:35:17.399 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:17.919 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=7] [neededSchemaVersion=8] ["start time"=1.987731ms] [phyTblIDs="[16]"] [actionTypes="[8]"] [2024/05/06 16:35:17.962 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:17.962 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=17] [version=8] [2024/05/06 16:35:17.964 +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"=47.324369ms] [job="ID:17, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:16, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:17.399 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:18.105 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 29, 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:35:17.399 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:18.170 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=17] [2024/05/06 16:35:18.170 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:18.177 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.819264906\n# Parse_time: 0\n# Compile_time: 0.009907527\n# Rewrite_time: 0.000013963\n# Optimize_time: 0\n# Wait_TS: 0.000077566\n# DB: mysql\n# Is_internal: true\n# Digest: 55c1ea537145da60f32339dc7a3b69a3859f3f428fbae4e4023eb71dca836f47\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\nCREATE TABLE IF NOT EXISTS mysql.GLOBAL_VARIABLES( VARIABLE_NAME VARCHAR(64) NOT NULL PRIMARY KEY, VARIABLE_VALUE VARCHAR(1024) DEFAULT NULL);"] [2024/05/06 16:35:18.184 +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:35:18.253 +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:35:18.201 +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:35:18.255 +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:35:18.201 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:18.321 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 29, 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:35:18.201 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:18.416 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=8] [neededSchemaVersion=9] ["start time"=2.204099ms] [phyTblIDs="[18]"] [actionTypes="[8]"] [2024/05/06 16:35:18.461 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:18.461 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=19] [version=9] [2024/05/06 16:35:18.461 +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"=48.092955ms] [job="ID:19, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:18, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:18.201 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:18.517 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 29, 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:35:18.201 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:18.593 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=19] [2024/05/06 16:35:18.593 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:18.595 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.412989852\n# Parse_time: 0\n# Compile_time: 0.001822804\n# Rewrite_time: 0.000028007\n# Optimize_time: 0\n# Wait_TS: 0.000095929\n# DB: mysql\n# Is_internal: true\n# Digest: 0cc4a9cf54472ccff7c4fb8d7c6e34e6bd96af08b450ad4c9677473f1f517cf2\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\nCREATE TABLE IF NOT EXISTS mysql.tidb( VARIABLE_NAME VARCHAR(64) NOT NULL PRIMARY KEY, VARIABLE_VALUE VARCHAR(1024) DEFAULT NULL, COMMENT VARCHAR(1024));"] [2024/05/06 16:35:18.604 +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:35:18.683 +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:35:18.618 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:18.684 +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:35:18.618 +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:35:18.847 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 29, 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:35:18.618 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:18.958 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=9] [neededSchemaVersion=10] ["start time"=2.734168ms] [phyTblIDs="[20]"] [actionTypes="[8]"] [2024/05/06 16:35:19.006 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:19.006 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=21] [version=10] [2024/05/06 16:35:19.007 +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"=52.820857ms] [job="ID:21, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:20, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:18.618 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:19.120 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 29, 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:35:18.618 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:19.195 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=21] [2024/05/06 16:35:19.195 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:19.211 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.609564525\n# Parse_time: 0\n# Compile_time: 0.003311439\n# Rewrite_time: 0.000012547\n# Optimize_time: 0\n# Wait_TS: 0.000101714\n# DB: mysql\n# Is_internal: true\n# Digest: ca851971407336dad93908a9f88f01d828a4e18f332111987f4a7675bced7ea4\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\nCREATE TABLE IF NOT EXISTS mysql.help_topic ( help_topic_id INT(10) UNSIGNED NOT NULL, name CHAR(64) NOT NULL, help_category_id SMALLINT(5) UNSIGNED NOT NULL, description TEXT NOT NULL, example TEXT NOT NULL, url TEXT NOT NULL, PRIMARY KEY (help_topic_id) clustered, UNIQUE KEY name (name) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='help topics';"] [2024/05/06 16:35:19.231 +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:35:19.405 +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:35:19.251 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:19.405 +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:35:19.251 +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:35:19.594 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 29, 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:35:19.251 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:19.741 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=10] [neededSchemaVersion=11] ["start time"=6.150079ms] [phyTblIDs="[22]"] [actionTypes="[8]"] [2024/05/06 16:35:19.806 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:19.806 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=23] [version=11] [2024/05/06 16:35:19.807 +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"=86.336426ms] [job="ID:23, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:22, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:19.251 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:19.861 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 29, 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:35:19.251 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:19.947 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=23] [2024/05/06 16:35:19.948 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:19.950 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.728187763\n# Parse_time: 0\n# Compile_time: 0.009722459\n# Rewrite_time: 0.000010977\n# Optimize_time: 0\n# Wait_TS: 0.000080344\n# DB: mysql\n# Is_internal: true\n# Digest: db16a74bd407cb00f071eafe96456094f48fc00e802128fc486ef4847b8910b0\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\nCREATE TABLE IF NOT EXISTS mysql.stats_meta ( version BIGINT(64) UNSIGNED NOT NULL, table_id BIGINT(64) NOT NULL, modify_count BIGINT(64) NOT NULL DEFAULT 0, count BIGINT(64) UNSIGNED NOT NULL DEFAULT 0, snapshot BIGINT(64) UNSIGNED NOT NULL DEFAULT 0, INDEX idx_ver(version), UNIQUE INDEX tbl(table_id) );"] [2024/05/06 16:35:19.987 +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:35:19.989 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(6291456) to MEDIUMBLOB"] [2024/05/06 16:35:20.117 +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:35:20.015 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:20.117 +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:35:20.015 +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:35:20.321 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 29, 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:35:20.015 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:20.521 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=11] [neededSchemaVersion=12] ["start time"=3.912194ms] [phyTblIDs="[24]"] [actionTypes="[8]"] [2024/05/06 16:35:20.556 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:20.556 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=25] [version=12] [2024/05/06 16:35:20.557 +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"=41.08317ms] [job="ID:25, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:24, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:20.015 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:20.608 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 29, 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:35:20.015 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:20.765 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=25] [2024/05/06 16:35:20.765 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:20.767 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.806715087\n# Parse_time: 0\n# Compile_time: 0.02716105\n# Rewrite_time: 0.000011295\n# Optimize_time: 0\n# Wait_TS: 0.000089836\n# DB: mysql\n# Is_internal: true\n# Digest: 7780c45a0aac5f123ac85a7e601e79c5d7779e7c09a19953908e547605ed45d2\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\nCREATE TABLE IF NOT EXISTS mysql.stats_histograms ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, distinct_count BIGINT(64) NOT NULL, null_count BIGINT(64) NOT NULL DEFAULT 0, tot_col_size BIGINT(64) NOT NULL DEFAULT 0, modify_count BIGINT(64) NOT NULL DEFAULT 0, version BIGINT(64) UNSIGNED NOT NULL DEFAULT 0, cm_sketch BLOB(6291456), stats_ver BIGINT(64) NOT NULL DEFAULT 0, flag BIGINT(64) NOT NULL DEFAULT 0, correlation DOUBLE NOT NULL DEFAULT 0, last_analyze_pos LONGBLOB DEFAULT NULL, UNIQUE INDEX tbl(table_id, is_index, hist_id) );"] [2024/05/06 16:35:20.782 +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:35:20.897 +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:35:20.796 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:20.897 +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:35:20.796 +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:35:21.005 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 29, 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:35:20.796 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:21.143 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=12] [neededSchemaVersion=13] ["start time"=3.478882ms] [phyTblIDs="[26]"] [actionTypes="[8]"] [2024/05/06 16:35:21.206 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:21.206 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=27] [version=13] [2024/05/06 16:35:21.206 +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"=67.216768ms] [job="ID:27, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:26, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:20.796 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:21.297 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 29, 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:35:20.796 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:21.649 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=27] [2024/05/06 16:35:21.656 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:21.666 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.88726097\n# Parse_time: 0\n# Compile_time: 0.00358981\n# Rewrite_time: 0.000014202\n# Optimize_time: 0\n# Wait_TS: 0.000091015\n# DB: mysql\n# Is_internal: true\n# Digest: 5615b5212342304015b027afb253371dae02f19e53871cfbb034deb145dfce32\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\nCREATE TABLE IF NOT EXISTS mysql.stats_buckets ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, bucket_id BIGINT(64) NOT NULL, count BIGINT(64) NOT NULL, repeats BIGINT(64) NOT NULL, upper_bound LONGBLOB NOT NULL, lower_bound LONGBLOB , ndv BIGINT NOT NULL DEFAULT 0, UNIQUE INDEX tbl(table_id, is_index, hist_id, bucket_id) );"] [2024/05/06 16:35:21.682 +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:35:21.838 +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:35:21.744 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:21.838 +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:35:21.744 +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:35:21.991 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 29, 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:35:21.744 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:22.166 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=13] [neededSchemaVersion=14] ["start time"=2.837492ms] [phyTblIDs="[28]"] [actionTypes="[8]"] [2024/05/06 16:35:22.206 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:22.207 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=29] [version=14] [2024/05/06 16:35:22.209 +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"=46.287441ms] [job="ID:29, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:28, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:21.744 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:22.265 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 29, 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:35:21.744 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:22.343 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=29] [2024/05/06 16:35:22.343 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:22.345 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.665432344\n# Parse_time: 0\n# Compile_time: 0.003131315\n# Rewrite_time: 0.000012948\n# Optimize_time: 0\n# Wait_TS: 0.00011323\n# DB: mysql\n# Is_internal: true\n# Digest: 4f764dd084d16197c847e23500fcaf8b96dbbabd598c823de37967bfa2ad51cd\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\nCREATE TABLE IF NOT EXISTS mysql.gc_delete_range ( job_id BIGINT NOT NULL COMMENT \"the DDL job ID\", element_id BIGINT NOT NULL COMMENT \"the schema element ID\", start_key VARCHAR(255) NOT NULL COMMENT \"encoded in hex\", end_key VARCHAR(255) NOT NULL COMMENT \"encoded in hex\", ts BIGINT NOT NULL COMMENT \"timestamp in uint64\", UNIQUE KEY delete_range_index (job_id, element_id) );"] [2024/05/06 16:35:22.355 +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:35:22.461 +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:35:22.385 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:22.461 +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:35:22.385 +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:35:22.557 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 29, 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:35:22.385 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:22.708 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=14] [neededSchemaVersion=15] ["start time"=3.074376ms] [phyTblIDs="[30]"] [actionTypes="[8]"] [2024/05/06 16:35:22.758 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:22.758 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=31] [version=15] [2024/05/06 16:35:22.760 +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"=56.253179ms] [job="ID:31, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:30, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:22.385 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:22.854 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 29, 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:35:22.385 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:22.922 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=31] [2024/05/06 16:35:22.922 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:22.923 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.573814842\n# Parse_time: 0\n# Compile_time: 0.005489549\n# Rewrite_time: 0.000012472\n# Optimize_time: 0\n# Wait_TS: 0.000081886\n# DB: mysql\n# Is_internal: true\n# Digest: 532cf71b38f2568975d61180716af7e2b05c9ca11023688224ed0c0eece42fa9\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\nCREATE TABLE IF NOT EXISTS mysql.gc_delete_range_done ( job_id BIGINT NOT NULL COMMENT \"the DDL job ID\", element_id BIGINT NOT NULL COMMENT \"the schema element ID\", start_key VARCHAR(255) NOT NULL COMMENT \"encoded in hex\", end_key VARCHAR(255) NOT NULL COMMENT \"encoded in hex\", ts BIGINT NOT NULL COMMENT \"timestamp in uint64\", UNIQUE KEY delete_range_done_index (job_id, element_id) );"] [2024/05/06 16:35:22.929 +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:35:23.041 +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:35:22.941 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:23.041 +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:35:22.941 +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:35:23.100 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 29, 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:35:22.941 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:23.192 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=15] [neededSchemaVersion=16] ["start time"=2.422087ms] [phyTblIDs="[32]"] [actionTypes="[8]"] [2024/05/06 16:35:23.257 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:23.257 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=33] [version=16] [2024/05/06 16:35:23.257 +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"=68.419313ms] [job="ID:33, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:32, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:22.941 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:23.337 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 29, 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:35:22.941 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:23.419 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=33] [2024/05/06 16:35:23.419 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:23.421 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.494214492\n# Parse_time: 0\n# Compile_time: 0.002345465\n# Rewrite_time: 0.000011681\n# Optimize_time: 0\n# Wait_TS: 0.000077906\n# DB: mysql\n# Is_internal: true\n# Digest: 28f04155dca9c7fd3a5e16199cefd152c629a57a64d0ccb2ed0f10309c23c59c\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\nCREATE TABLE IF NOT EXISTS mysql.stats_feedback ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, feedback BLOB NOT NULL, INDEX hist(table_id, is_index, hist_id) );"] [2024/05/06 16:35:23.431 +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:35:23.506 +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:35:23.449 +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:35:23.507 +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:35:23.449 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:23.572 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 29, 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:35:23.449 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:23.742 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=16] [neededSchemaVersion=17] ["start time"=11.314868ms] [phyTblIDs="[34]"] [actionTypes="[8]"] [2024/05/06 16:35:23.856 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:23.857 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=35] [version=17] [2024/05/06 16:35:23.858 +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"=132.599164ms] [job="ID:35, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:34, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:23.449 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:23.972 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 29, 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:35:23.449 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:24.204 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=35] [2024/05/06 16:35:24.205 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:24.220 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.794024136\n# Parse_time: 0\n# Compile_time: 0.004587616\n# Rewrite_time: 0.00001516\n# Optimize_time: 0\n# Wait_TS: 0.000084459\n# DB: mysql\n# Is_internal: true\n# Digest: 13e2fcff943423afddaa84c2d34108628854b5953bc7c41d2879240f077a5bd6\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\nCREATE TABLE IF NOT EXISTS mysql.role_edges ( FROM_HOST CHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '', FROM_USER CHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '', TO_HOST CHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '', TO_USER CHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '', WITH_ADMIN_OPTION ENUM('N','Y') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'N', PRIMARY KEY (FROM_HOST,FROM_USER,TO_HOST,TO_USER) );"] [2024/05/06 16:35:24.234 +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:35:24.392 +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:35:24.271 +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:35:24.405 +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:35:24.271 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:24.478 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 29, 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:35:24.271 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:24.606 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=17] [neededSchemaVersion=18] ["start time"=2.308059ms] [phyTblIDs="[36]"] [actionTypes="[8]"] [2024/05/06 16:35:24.656 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:24.656 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=37] [version=18] [2024/05/06 16:35:24.658 +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"=54.603484ms] [job="ID:37, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:36, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:24.271 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:24.735 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 29, 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:35:24.271 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:24.858 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=37] [2024/05/06 16:35:24.859 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:24.860 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.628562723\n# Parse_time: 0\n# Compile_time: 0.002900472\n# Rewrite_time: 0.000011729\n# Optimize_time: 0\n# Wait_TS: 0.000082101\n# DB: mysql\n# Is_internal: true\n# Digest: 9e6b544fb0287e9d8a74031560ed0cd6a5b4e54db073b893a68a76b05d929781\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\nCREATE TABLE IF NOT EXISTS mysql.default_roles ( HOST CHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '', USER CHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '', DEFAULT_ROLE_HOST CHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '%', DEFAULT_ROLE_USER CHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '', PRIMARY KEY (HOST,USER,DEFAULT_ROLE_HOST,DEFAULT_ROLE_USER) );"] [2024/05/06 16:35:24.877 +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:35:25.080 +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:35:24.916 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:25.080 +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:35:24.916 +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:35:25.157 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 29, 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:35:24.916 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:25.327 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=18] [neededSchemaVersion=19] ["start time"=3.940146ms] [phyTblIDs="[38]"] [actionTypes="[8]"] [2024/05/06 16:35:25.357 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:25.357 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=39] [version=19] [2024/05/06 16:35:25.359 +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"=36.59898ms] [job="ID:39, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:38, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:24.916 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:25.414 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 29, 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:35:24.916 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:25.573 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=39] [2024/05/06 16:35:25.574 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:25.583 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.710816156\n# Parse_time: 0\n# Compile_time: 0.004460061\n# Rewrite_time: 0.000012065\n# Optimize_time: 0\n# Wait_TS: 0.000091884\n# DB: mysql\n# Is_internal: true\n# Digest: 0a4bc55a9ab72ef62ddaa1ee6472d7872306066fd783a8bb67047a497fbb4dbe\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\nCREATE TABLE IF NOT EXISTS mysql.bind_info ( original_sql TEXT NOT NULL, bind_sql TEXT NOT NULL, default_db TEXT NOT NULL, status TEXT NOT NULL, create_time TIMESTAMP(3) NOT NULL, update_time TIMESTAMP(3) NOT NULL, charset TEXT NOT NULL, collation TEXT NOT NULL, source VARCHAR(10) NOT NULL DEFAULT 'unknown', sql_digest varchar(64), plan_digest varchar(64), INDEX sql_index(original_sql(700),default_db(68)) COMMENT \"accelerate the speed when add global binding query\", INDEX time_index(update_time) COMMENT \"accelerate the speed when querying with last update time\" ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;"] [2024/05/06 16:35:25.612 +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:35:25.686 +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:35:25.629 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:25.686 +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:35:25.629 +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:35:25.780 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 29, 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:35:25.629 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:25.942 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=19] [neededSchemaVersion=20] ["start time"=2.497379ms] [phyTblIDs="[40]"] [actionTypes="[8]"] [2024/05/06 16:35:26.007 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:26.007 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=41] [version=20] [2024/05/06 16:35:26.009 +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"=71.044425ms] [job="ID:41, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:40, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:25.629 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:26.102 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 29, 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:35:25.629 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:26.221 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=41] [2024/05/06 16:35:26.221 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:26.224 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.614717455\n# Parse_time: 0\n# Compile_time: 0.002789912\n# Rewrite_time: 0.00001735\n# Optimize_time: 0\n# Wait_TS: 0.000088615\n# DB: mysql\n# Is_internal: true\n# Digest: 04a90564803373a6eb3f5a52e8794d25c4d28f6c18af7899b0b9f1bf1539ec72\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\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\nCREATE TABLE IF NOT EXISTS mysql.stats_top_n ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, value LONGBLOB, count BIGINT(64) UNSIGNED NOT NULL, INDEX tbl(table_id, is_index, hist_id) );"] [2024/05/06 16:35:26.229 +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:35:26.319 +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:35:26.254 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:26.319 +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:35:26.254 +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:35:26.396 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 29, 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:35:26.254 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:26.484 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=20] [neededSchemaVersion=21] ["start time"=2.083359ms] [phyTblIDs="[42]"] [actionTypes="[8]"] [2024/05/06 16:35:26.556 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:26.556 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=43] [version=21] [2024/05/06 16:35:26.558 +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"=82.534612ms] [job="ID:43, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:42, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:26.254 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:26.610 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 29, 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:35:26.254 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:26.683 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=43] [2024/05/06 16:35:26.684 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:26.685 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.457512986\n# Parse_time: 0\n# Compile_time: 0.002050863\n# Rewrite_time: 0.000012213\n# Optimize_time: 0\n# Wait_TS: 0.000080667\n# DB: mysql\n# Is_internal: true\n# Digest: 3e05fb8977f83f4e32022552aded3680a039cddc4239c339119a655dc1cffdbb\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\nCREATE TABLE IF NOT EXISTS mysql.expr_pushdown_blacklist ( name CHAR(100) NOT NULL, store_type CHAR(100) NOT NULL DEFAULT 'tikv,tiflash,tidb', reason VARCHAR(200) );"] [2024/05/06 16:35:26.693 +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:35:26.769 +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:35:26.739 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:26.769 +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:35:26.739 +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:35:26.908 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 29, 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:35:26.739 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:27.001 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=21] [neededSchemaVersion=22] ["start time"=1.439878ms] [phyTblIDs="[44]"] [actionTypes="[8]"] [2024/05/06 16:35:27.056 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:27.056 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=45] [version=22] [2024/05/06 16:35:27.057 +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"=58.753385ms] [job="ID:45, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:44, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:26.739 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:27.111 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 29, 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:35:26.739 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:27.180 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=45] [2024/05/06 16:35:27.180 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:27.182 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.494708852\n# Parse_time: 0\n# Compile_time: 0.005736635\n# Rewrite_time: 0.000011036\n# Optimize_time: 0\n# Wait_TS: 0.000102454\n# DB: mysql\n# Is_internal: true\n# Digest: aee36d5dc7131e4b6e3321cc046ae8b5ec8156ec1ef82481df0b97b8c734325f\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\nCREATE TABLE IF NOT EXISTS mysql.opt_rule_blacklist ( name CHAR(100) NOT NULL );"] [2024/05/06 16:35:27.209 +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:35:27.292 +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:35:27.228 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:27.293 +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:35:27.228 +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:35:27.393 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 29, 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:35:27.228 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:27.613 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=22] [neededSchemaVersion=23] ["start time"=4.449259ms] [phyTblIDs="[46]"] [actionTypes="[8]"] [2024/05/06 16:35:27.656 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:27.656 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=47] [version=23] [2024/05/06 16:35:27.657 +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"=49.20203ms] [job="ID:47, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:46, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:27.228 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:27.730 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 29, 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:35:27.228 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:27.816 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=47] [2024/05/06 16:35:27.817 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:27.819 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.628389744\n# Parse_time: 0\n# Compile_time: 0.017978176\n# Rewrite_time: 0.000020779\n# Optimize_time: 0\n# Wait_TS: 0.00039502\n# DB: mysql\n# Is_internal: true\n# Digest: bd2a0d9809689d30e22f8d82b29b4ee110d16cda3353b77d74a1938afb746386\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\nCREATE TABLE IF NOT EXISTS mysql.stats_extended ( name varchar(32) NOT NULL, type tinyint(4) NOT NULL, table_id bigint(64) NOT NULL, column_ids varchar(32) NOT NULL, stats blob DEFAULT NULL, version bigint(64) unsigned NOT NULL, status tinyint(4) NOT NULL, PRIMARY KEY(name, table_id), KEY idx_1 (table_id, status, version), KEY idx_2 (status, version) );"] [2024/05/06 16:35:27.825 +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:35:27.928 +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:35:27.84 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:27.928 +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:35:27.84 +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:35:28.067 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 29, 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:35:27.84 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:28.180 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=23] [neededSchemaVersion=24] ["start time"=2.85918ms] [phyTblIDs="[48]"] [actionTypes="[8]"] [2024/05/06 16:35:28.207 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:28.209 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=49] [version=24] [2024/05/06 16:35:28.212 +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.829682ms] [job="ID:49, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:48, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:27.84 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:28.283 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 29, 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:35:27.84 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:28.365 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=49] [2024/05/06 16:35:28.368 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:28.369 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.546581034\n# Parse_time: 0\n# Compile_time: 0.002527308\n# Rewrite_time: 0.000012908\n# Optimize_time: 0\n# Wait_TS: 0.00007986\n# DB: mysql\n# Is_internal: true\n# Digest: f72fffa4e6072164db3e01e2e29568b0b93c5045737047be527343b1737b0882\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\nCREATE TABLE IF NOT EXISTS mysql.schema_index_usage ( TABLE_ID bigint(64), INDEX_ID bigint(21), QUERY_COUNT bigint(64), ROWS_SELECTED bigint(64), LAST_USED_AT timestamp, PRIMARY KEY(TABLE_ID, INDEX_ID) );"] [2024/05/06 16:35:28.376 +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:35:28.486 +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:35:28.398 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:28.487 +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:35:28.398 +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:35:28.593 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 29, 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:35:28.398 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:28.679 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=24] [neededSchemaVersion=25] ["start time"=2.334504ms] [phyTblIDs="[50]"] [actionTypes="[8]"] [2024/05/06 16:35:28.723 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:28.723 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=51] [version=25] [2024/05/06 16:35:28.725 +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"=49.611685ms] [job="ID:51, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:50, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:28.398 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:28.824 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 29, 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:35:28.398 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:28.923 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=51] [2024/05/06 16:35:28.923 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:28.925 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.550983773\n# Parse_time: 0\n# Compile_time: 0.002275425\n# Rewrite_time: 0.000013904\n# Optimize_time: 0\n# Wait_TS: 0.000088559\n# DB: mysql\n# Is_internal: true\n# Digest: 27ef2533f9d97f96c8c86a69a0de51aad04499856acd05fe4a4b93fb5b6043d0\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\nCREATE TABLE IF NOT EXISTS mysql.stats_fm_sketch ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, value LONGBLOB, INDEX tbl(table_id, is_index, hist_id) );"] [2024/05/06 16:35:28.931 +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:35:29.017 +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:35:28.945 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:29.017 +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:35:28.945 +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:35:29.094 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 29, 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:35:28.945 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:29.236 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=25] [neededSchemaVersion=26] ["start time"=7.801734ms] [phyTblIDs="[52]"] [actionTypes="[8]"] [2024/05/06 16:35:29.306 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:29.306 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=53] [version=26] [2024/05/06 16:35:29.307 +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"=90.309239ms] [job="ID:53, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:52, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:28.945 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:29.418 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 29, 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:35:28.945 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:29.572 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=53] [2024/05/06 16:35:29.572 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:29.574 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.645345092\n# Parse_time: 0\n# Compile_time: 0.002611815\n# Rewrite_time: 0.000011628\n# Optimize_time: 0\n# Wait_TS: 0.00008733\n# DB: mysql\n# Is_internal: true\n# Digest: 79c6e54229df7b01d20ffaf8ac1077aa9ef39e604df30d5ce852dd7049cc3ddd\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\nCREATE TABLE IF NOT EXISTS mysql.global_grants ( USER char(32) NOT NULL DEFAULT '', HOST char(255) NOT NULL DEFAULT '', PRIV char(32) NOT NULL DEFAULT '', WITH_GRANT_OPTION enum('N','Y') NOT NULL DEFAULT 'N', PRIMARY KEY (USER,HOST,PRIV) );"] [2024/05/06 16:35:29.581 +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:35:29.679 +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:35:29.628 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:29.679 +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:35:29.628 +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:35:29.815 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 29, 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:35:29.628 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:29.920 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=26] [neededSchemaVersion=27] ["start time"=2.238915ms] [phyTblIDs="[54]"] [actionTypes="[8]"] [2024/05/06 16:35:30.006 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:30.006 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=55] [version=27] [2024/05/06 16:35:30.008 +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"=91.422203ms] [job="ID:55, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:54, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:29.628 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:30.123 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 29, 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:35:29.628 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:30.211 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=55] [2024/05/06 16:35:30.212 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:30.215 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.636488713\n# Parse_time: 0\n# Compile_time: 0.002600901\n# Rewrite_time: 0.000011607\n# Optimize_time: 0\n# Wait_TS: 0.000092223\n# DB: mysql\n# Is_internal: true\n# Digest: 08f858a5bd3a1fd5dfd809dd4b9d6c72db69f874b06ad0e91987f9e89a5cf89a\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\nCREATE TABLE IF NOT EXISTS mysql.capture_plan_baselines_blacklist ( id bigint(64) auto_increment, filter_type varchar(32) NOT NULL COMMENT \"type of the filter, only db, table and frequency supported now\", filter_value varchar(32) NOT NULL, key idx(filter_type), primary key(id) );"] [2024/05/06 16:35:30.220 +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:35:30.292 +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:35:30.25 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:30.293 +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:35:30.25 +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:35:30.360 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 29, 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:35:30.25 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:30.576 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=27] [neededSchemaVersion=28] ["start time"=3.939612ms] [phyTblIDs="[56]"] [actionTypes="[8]"] [2024/05/06 16:35:30.606 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:30.607 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=57] [version=28] [2024/05/06 16:35:30.612 +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"=40.676114ms] [job="ID:57, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:56, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:30.25 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:30.737 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 29, 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:35:30.25 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:30.908 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=57] [2024/05/06 16:35:30.908 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:30.910 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.691643385\n# Parse_time: 0\n# Compile_time: 0.002195676\n# Rewrite_time: 0.000012491\n# Optimize_time: 0\n# Wait_TS: 0.000098648\n# DB: mysql\n# Is_internal: true\n# Digest: 3a5634ff31bd7d32849c5404b7ffc419c7a7074307b815e5369eb6ca363cbcd0\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\nCREATE TABLE IF NOT EXISTS mysql.column_stats_usage ( table_id BIGINT(64) NOT NULL, column_id BIGINT(64) NOT NULL, last_used_at TIMESTAMP, last_analyzed_at TIMESTAMP, PRIMARY KEY (table_id, column_id) CLUSTERED );"] [2024/05/06 16:35:30.916 +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:35:31.052 +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:35:30.959 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:31.052 +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:35:30.959 +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:35:31.237 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 29, 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:35:30.959 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:31.365 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=28] [neededSchemaVersion=29] ["start time"=2.303691ms] [phyTblIDs="[58]"] [actionTypes="[8]"] [2024/05/06 16:35:31.406 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:31.406 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=59] [version=29] [2024/05/06 16:35:31.408 +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"=46.996239ms] [job="ID:59, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:58, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:30.959 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:31.484 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 29, 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:35:30.959 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:31.558 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=59] [2024/05/06 16:35:31.559 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:31.563 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.649047956\n# Parse_time: 0\n# Compile_time: 0.002719291\n# Rewrite_time: 0.000017086\n# Optimize_time: 0\n# Wait_TS: 0.000099704\n# DB: mysql\n# Is_internal: true\n# Digest: d5bebde055ca14bff3e131e086a86c4095b9d04ea6fc326b4c2f16ffd61fbd2d\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\nCREATE TABLE IF NOT EXISTS mysql.table_cache_meta ( tid bigint(11) NOT NULL DEFAULT 0, lock_type enum('NONE','READ', 'INTEND', 'WRITE') NOT NULL DEFAULT 'NONE', lease bigint(20) NOT NULL DEFAULT 0, oldReadLease bigint(20) NOT NULL DEFAULT 0, PRIMARY KEY (tid) );"] [2024/05/06 16:35:31.575 +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:35:31.577 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(19372) to MEDIUMBLOB"] [2024/05/06 16:35:31.845 +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:35:31.624 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:31.845 +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:35:31.624 +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:35:31.961 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 29, 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:35:31.624 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:32.256 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=29] [neededSchemaVersion=30] ["start time"=2.611841ms] [phyTblIDs="[60]"] [actionTypes="[8]"] [2024/05/06 16:35:32.306 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:32.306 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=61] [version=30] [2024/05/06 16:35:32.306 +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"=53.42573ms] [job="ID:61, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:60, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:31.624 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:32.435 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 29, 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:35:31.624 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:32.817 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=61] [2024/05/06 16:35:32.817 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:32.819 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 1.24753941\n# Parse_time: 0\n# Compile_time: 0.00368773\n# Rewrite_time: 0.000013752\n# Optimize_time: 0\n# Wait_TS: 0.000090793\n# DB: mysql\n# Is_internal: true\n# Digest: 987fcd9b9a604209ec1101d918419b993c42f84fe228e20aee2fcca2931ff93e\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\nCREATE TABLE IF NOT EXISTS mysql.analyze_options ( table_id BIGINT(64) NOT NULL, sample_num BIGINT(64) NOT NULL DEFAULT 0, sample_rate DOUBLE NOT NULL DEFAULT -1, buckets BIGINT(64) NOT NULL DEFAULT 0, topn BIGINT(64) NOT NULL DEFAULT -1, column_choice enum('DEFAULT','ALL','PREDICATE','LIST') NOT NULL DEFAULT 'DEFAULT', column_ids TEXT(19372), PRIMARY KEY (table_id) CLUSTERED );"] [2024/05/06 16:35:32.850 +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:35:32.961 +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:35:32.866 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:32.961 +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:35:32.866 +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:35:33.175 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 29, 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:35:32.866 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:33.510 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=30] [neededSchemaVersion=31] ["start time"=2.699594ms] [phyTblIDs="[62]"] [actionTypes="[8]"] [2024/05/06 16:35:33.558 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:33.558 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=63] [version=31] [2024/05/06 16:35:33.560 +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"=53.863593ms] [job="ID:63, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:62, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:32.866 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:33.634 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 29, 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:35:32.866 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:33.787 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=63] [2024/05/06 16:35:33.787 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:33.791 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.963357984\n# Parse_time: 0\n# Compile_time: 0.024732218\n# Rewrite_time: 0.00001279\n# Optimize_time: 0\n# Wait_TS: 0.000116976\n# DB: mysql\n# Is_internal: true\n# Digest: 11757f6de6b3d2a64e92f14cd7b7f739729563ede3b0139d016148eba0b27ebf\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\nCREATE TABLE IF NOT EXISTS mysql.stats_history ( table_id bigint(64) NOT NULL, stats_data longblob NOT NULL, seq_no bigint(64) NOT NULL comment 'sequence number of the gzipped data slice', version bigint(64) NOT NULL comment 'stats version which corresponding to stats:version in EXPLAIN', create_time datetime(6) NOT NULL, UNIQUE KEY table_version_seq (table_id, version, seq_no), KEY table_create_time (table_id, create_time, seq_no) );"] [2024/05/06 16:35:33.800 +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:35:33.906 +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:35:33.815 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:33.907 +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:35:33.815 +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:35:34.001 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 29, 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:35:33.815 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:34.196 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=31] [neededSchemaVersion=32] ["start time"=2.755044ms] [phyTblIDs="[64]"] [actionTypes="[8]"] [2024/05/06 16:35:34.256 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:34.256 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=65] [version=32] [2024/05/06 16:35:34.257 +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"=64.736789ms] [job="ID:65, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:64, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:33.815 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:34.313 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 29, 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:35:33.815 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:34.411 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=65] [2024/05/06 16:35:34.414 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:34.416 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.618615756\n# Parse_time: 0\n# Compile_time: 0.003092202\n# Rewrite_time: 0.000025473\n# Optimize_time: 0\n# Wait_TS: 0.000090778\n# DB: mysql\n# Is_internal: true\n# Digest: ebccd6f5d49fb0fcff4d7dc20bb3ae798d172a92ba5f6709445c980166f7e32f\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\nCREATE TABLE IF NOT EXISTS mysql.stats_meta_history ( table_id bigint(64) NOT NULL, modify_count bigint(64) NOT NULL, count bigint(64) NOT NULL, version bigint(64) NOT NULL comment 'stats version which corresponding to stats:version in EXPLAIN', create_time datetime(6) NOT NULL, UNIQUE KEY table_version (table_id, version), KEY table_create_time (table_id, create_time) );"] [2024/05/06 16:35:34.437 +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:35:34.561 +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:35:34.452 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:34.569 +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:35:34.452 +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:35:34.682 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 29, 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:35:34.452 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:34.956 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=32] [neededSchemaVersion=33] ["start time"=10.25263ms] [phyTblIDs="[66]"] [actionTypes="[8]"] [2024/05/06 16:35:35.006 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:35.006 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=67] [version=33] [2024/05/06 16:35:35.006 +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"=61.349478ms] [job="ID:67, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:66, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:34.452 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:35.173 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 29, 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:35:34.452 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:35.294 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=67] [2024/05/06 16:35:35.315 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:35.317 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.885488129\n# Parse_time: 0\n# Compile_time: 0.005528938\n# Rewrite_time: 0.000014837\n# Optimize_time: 0\n# Wait_TS: 0.000079865\n# DB: mysql\n# Is_internal: true\n# Digest: bfb9a3ff60c3c60c054a207c0a0db06c87e29edbe94005d8d5c89fe484f4f90a\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\nCREATE TABLE IF NOT EXISTS mysql.analyze_jobs ( id BIGINT(64) UNSIGNED NOT NULL AUTO_INCREMENT, update_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, table_schema CHAR(64) NOT NULL DEFAULT '', table_name CHAR(64) NOT NULL DEFAULT '', partition_name CHAR(64) NOT NULL DEFAULT '', job_info TEXT NOT NULL, processed_rows BIGINT(64) UNSIGNED NOT NULL DEFAULT 0, start_time TIMESTAMP, end_time TIMESTAMP, state ENUM('pending', 'running', 'finished', 'failed') NOT NULL, fail_reason TEXT, instance VARCHAR(512) NOT NULL comment 'address of the TiDB instance executing the analyze job', process_id BIGINT(64) UNSIGNED comment 'ID of the process executing the analyze job', PRIMARY KEY (id), KEY (update_time) );"] [2024/05/06 16:35:35.320 +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:35:35.369 +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:35:35.338 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:35.369 +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:35:35.338 +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:35:35.440 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 29, 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:35:35.338 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:35.545 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=33] [neededSchemaVersion=34] ["start time"=1.689195ms] [phyTblIDs="[68]"] [actionTypes="[8]"] [2024/05/06 16:35:35.607 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:35.607 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=69] [version=34] [2024/05/06 16:35:35.608 +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"=66.282269ms] [job="ID:69, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:68, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:35.338 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:35.685 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 29, 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:35:35.338 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:35.784 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=69] [2024/05/06 16:35:35.784 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:35.786 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.467233983\n# Parse_time: 0\n# Compile_time: 0.001391165\n# Rewrite_time: 0.000012696\n# Optimize_time: 0\n# Wait_TS: 0.000099575\n# DB: mysql\n# Is_internal: true\n# Digest: 85d0480e8afeca7d94d07ca1a681df6c7f89f1fda753ceb6e02b51caf3714c1c\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\nCREATE TABLE IF NOT EXISTS mysql.advisory_locks ( lock_name VARCHAR(64) NOT NULL PRIMARY KEY );"] [2024/05/06 16:35:35.917 +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:35:35.844 +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:35:35.930 +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:35:35.844 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:35.993 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 29, 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:35:35.844 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:36.149 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=34] [neededSchemaVersion=35] ["start time"=2.864365ms] [phyTblIDs="[70]"] [actionTypes="[2097152]"] [2024/05/06 16:35:36.206 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:36.206 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=71] [version=35] [2024/05/06 16:35:36.206 +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"=60.833818ms] [job="ID:71, Type:create view, State:done, SchemaState:public, SchemaID:1, TableID:70, RowCount:0, ArgLen:3, start time: 2024-05-06 16:35:35.844 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:36.326 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 29, 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:35:35.844 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:36.477 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=71] [2024/05/06 16:35:36.478 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:36.479 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.687039271\n# Parse_time: 0\n# Compile_time: 0.008314214\n# Rewrite_time: 0.004756946\n# Optimize_time: 0\n# Wait_TS: 0.000134011\n# DB: mysql\n# Is_internal: true\n# Digest: 812c81f344f5d0c8b8aedcb68ff1dca865b59104853273f7e66b8abff5429992\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\nCREATE OR REPLACE VIEW mysql.tidb_mdl_view as ( select 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 );"] [2024/05/06 16:35:36.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:35:36.597 +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:35:36.532 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:36.597 +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:35:36.532 +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:35:36.671 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 29, 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:35:36.532 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:36.800 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=35] [neededSchemaVersion=36] ["start time"=2.552695ms] [phyTblIDs="[72]"] [actionTypes="[8]"] [2024/05/06 16:35:36.856 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:36.856 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=73] [version=36] [2024/05/06 16:35:36.858 +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"=61.018431ms] [job="ID:73, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:72, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:36.532 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:36.922 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 29, 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:35:36.532 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:37.030 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=73] [2024/05/06 16:35:37.030 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:37.032 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.548265354\n# Parse_time: 0\n# Compile_time: 0.004893152\n# Rewrite_time: 0.000013377\n# Optimize_time: 0\n# Wait_TS: 0.000087535\n# DB: mysql\n# Is_internal: true\n# Digest: 3d2f349b1c68ee2b30e34bad8bb3838af6c40d7a26072b2d29d801d7fedbac48\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\nCREATE TABLE IF NOT EXISTS mysql.plan_replayer_status ( sql_digest VARCHAR(128), plan_digest VARCHAR(128), origin_sql TEXT, token VARCHAR(128), update_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, fail_reason TEXT, instance VARCHAR(512) NOT NULL comment 'address of the TiDB instance executing the plan replayer job');"] [2024/05/06 16:35:37.038 +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:35:37.183 +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:35:37.061 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:37.183 +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:35:37.061 +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:35:37.358 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 29, 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:35:37.061 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:37.528 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=36] [neededSchemaVersion=37] ["start time"=2.174247ms] [phyTblIDs="[74]"] [actionTypes="[8]"] [2024/05/06 16:35:37.557 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:37.557 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=75] [version=37] [2024/05/06 16:35:37.557 +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.371394ms] [job="ID:75, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:74, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:37.061 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:37.653 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 29, 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:35:37.061 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:37.751 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=75] [2024/05/06 16:35:37.752 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:37.769 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.734070639\n# Parse_time: 0\n# Compile_time: 0.002590573\n# Rewrite_time: 0.000013679\n# Optimize_time: 0\n# Wait_TS: 0.000113054\n# DB: mysql\n# Is_internal: true\n# Digest: 8d9754df14c826803fed84f1ae3eb8fc9729e76a793b6be6bf25967f1929d039\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\nCREATE TABLE IF NOT EXISTS mysql.plan_replayer_task ( sql_digest VARCHAR(128) NOT NULL, plan_digest VARCHAR(128) NOT NULL, update_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (sql_digest,plan_digest));"] [2024/05/06 16:35:37.802 +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:35:37.873 +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:35:37.831 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:37.873 +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:35:37.831 +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:35:37.939 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 29, 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:35:37.831 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:38.023 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=37] [neededSchemaVersion=38] ["start time"=1.990905ms] [phyTblIDs="[76]"] [actionTypes="[8]"] [2024/05/06 16:35:38.056 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:38.056 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=77] [version=38] [2024/05/06 16:35:38.056 +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"=36.239877ms] [job="ID:77, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:76, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:37.831 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:38.111 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 29, 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:35:37.831 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:38.208 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=77] [2024/05/06 16:35:38.211 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:38.215 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.442167832\n# Parse_time: 0\n# Compile_time: 0.0292165\n# Rewrite_time: 0.000013881\n# Optimize_time: 0\n# Wait_TS: 0.000094828\n# DB: mysql\n# Is_internal: true\n# Digest: b57fdc4b14aba5f29d915d04e5e4557f60a758fd65ec571368527cd45c6ef82a\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\nCREATE TABLE IF NOT EXISTS mysql.stats_table_locked( table_id bigint(64) NOT NULL, modify_count bigint(64) NOT NULL DEFAULT 0, count bigint(64) NOT NULL DEFAULT 0, version bigint(64) UNSIGNED NOT NULL DEFAULT 0, PRIMARY KEY (table_id));"] [2024/05/06 16:35:38.267 +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:35:38.422 +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:35:38.305 +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:35:38.428 +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:35:38.305 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:38.491 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 29, 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:35:38.305 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:38.706 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=38] [neededSchemaVersion=39] ["start time"=6.498831ms] [phyTblIDs="[78]"] [actionTypes="[8]"] [2024/05/06 16:35:38.756 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:38.757 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=79] [version=39] [2024/05/06 16:35:38.758 +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"=58.95448ms] [job="ID:79, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:78, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:38.305 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:38.859 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 29, 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:35:38.305 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:39.112 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=79] [2024/05/06 16:35:39.112 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:39.114 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.863926439\n# Parse_time: 0\n# Compile_time: 0.016820644\n# Rewrite_time: 0.000025847\n# Optimize_time: 0\n# Wait_TS: 0.000105505\n# DB: mysql\n# Is_internal: true\n# Digest: a30bd3c3a49070c554e65922e84c6b76e646842e3925a859fcde73941a7cb423\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\nCREATE TABLE IF NOT EXISTS mysql.tidb_ttl_table_status ( table_id bigint(64) PRIMARY KEY, parent_table_id bigint(64), table_statistics text DEFAULT NULL, last_job_id varchar(64) DEFAULT NULL, last_job_start_time timestamp NULL DEFAULT NULL, last_job_finish_time timestamp NULL DEFAULT NULL, last_job_ttl_expire timestamp NULL DEFAULT NULL, last_job_summary text DEFAULT NULL, current_job_id varchar(64) DEFAULT NULL, current_job_owner_id varchar(64) DEFAULT NULL, current_job_owner_addr varchar(256) DEFAULT NULL, current_job_owner_hb_time timestamp, current_job_start_time timestamp NULL DEFAULT NULL, current_job_ttl_expire timestamp NULL DEFAULT NULL, current_job_state text DEFAULT NULL, current_job_status varchar(64) DEFAULT NULL, current_job_status_update_time timestamp NULL DEFAULT NULL);"] [2024/05/06 16:35:40.307 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 449572907028316160\n# Query_time: 0.844513386\n# Parse_time: 0\n# Compile_time: 0.272827475\n# Rewrite_time: 0.007348737\n# Optimize_time: 0\n# Wait_TS: 0.000196854\n# DB: mysql\n# Is_internal: true\n# Digest: ca2019e08a331284bd0c64be228a0537fcf9f5983e95d94b67ef42dcb8f54385\n# Num_cop_tasks: 0\n# Mem_max: 353654\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: true\n# IsSyncStatsFailed: false\n# Plan: tidb_decode_plan('ogPwPDAJMjdfMQkwCTAJTi9BCTAJdGltZTo1NTUuNG1zLCBsb29wczoxLCBwcmVwYXJlOiB7dG90YWw6IDQ1LjMBIkxhdXRvX2lkX2FsbG9jYXRvcjogewUMZF9jbnQ6IDEsIEdldDp7bnVtX3JwYzo0LCB0AUEAXwlodDE3LjnCtXN9LCBjb21taXRfdHhuOiB7cHJld3JpdAGJAR8ULCBnZXRfESIgczoyNC44wrVzETUAOgFHBDbCAREcc2xvd2VzdF8RQQV0BCB7BXNoOiAwLjAwMHMsIHJlZ2lvbl9pZDogMiwgc3RvAdkFBwgxLCAZjBhwcmltYXJ51kQADWQYbnVtOjEsIAXODF9rZXklTQkOQGJ5dGU6MzJ9fX0sIGluc2VyAclEMC4xbXMJOTcuNCBLQglOL0EK')\n# Binary_plan: tidb_decode_binary_plan('rgPwgQqpAwoISW5zZXJ0XzE4AUABUgNOL0FaFXRpbWU6NTU1LjRtcywgbG9vcHM6MWLtAnByZXBhcmU6IHt0b3RhbDogNDUuM21zLCBhdXRvX2lkX2FsbG9jYXRvcjoge2FsbG9jX2NudDogMSwgR2V0OntudW1fcnBjOjQsIHRvdGFsX3QFaXQxNy45wrVzfSwgY29tbWl0X3R4bjoge3ByZXdyaXQBigEfFCwgZ2V0XxEiIHM6MjQuOMK1cxE1ADoBRwQ2wgERHHNsb3dlc3RfEUEMX3JwYxm0YDAuMDAwcywgcmVnaW9uX2lkOiAyLCBzdG8B2QUHCDEsIBmMGHByaW1hcnnWRAANZBhudW06MSwgBc4QX2tleXMZDkBieXRlOjMyfX19LCBpbnNlcgHJVDAuMW1zcPaKBnj///////////8BGAE=')\nINSERT HIGH_PRIORITY INTO mysql.GLOBAL_VARIABLES VALUES (\"tidb_sysproc_scan_concurrency\", \"1\"), (\"tidb_ttl_job_schedule_window_end_time\", \"23:59 +0000\"), (\"query_alloc_block_size\", \"8192\"), (\"innodb_fill_factor\", \"\"), (\"disconnect_on_expired_password\", \"ON\"), (\"tidb_prepared_plan_cache_memory_guard_ratio\", \"0.1\"), (\"tidb_hashagg_final_concurrency\", \"-1\"), (\"innodb_adaptive_flushing_lwm\", \"10\"), (\"enforce_gtid_consistency\", \"OFF\"), (\"innodb_log_write_ahead_size\", \"\"), (\"tidb_opt_skew_distinct_agg\", \"OFF\"), (\"transaction_alloc_block_size\", \"8192\"), (\"tidb_index_join_double_read_penalty_cost_rate\", \"0\"), (\"max_error_count\", \"64\"), (\"log_throttle_queries_not_using_indexes\", \"0\"), (\"concurrent_insert\", \"AUTO\"), (\"tidb_enable_null_aware_anti_join\", \"OFF\"), (\"tidb_opt_correlation_threshold\", \"0.9\"), (\"rpl_semi_sync_slave_enabled\", \"OFF\"), (\"tmp_table_size\", \"16777216\"), (\"tidb_enable_auto_increment_in_generated\", \"OFF\"), (\"ndb_eventbuffer_max_alloc\", \"\"), (\"tidb_enable_strict_double_type_check\", \"ON\"), (\"max_points_in_geometry\", \"65536\"), (\"tidb_max_delta_schema_count\", \"1024\"), (\"myisam_max_sort_file_size\", \"9223372036853727232\"), (\"tidb_shard_allocate_step\", \"9223372036854775807\"), (\"validate_password.dictionary\", \"\"), (\"slave_checkpoint_group\", \"512\"), (\"innodb_monitor_disable\", \"\"), (\"max_length_for_sort_data\", \"1024\"), (\"innodb_max_purge_lag\", \"0\"), (\"innodb_buffer_pool_dump_now\", \"OFF\"), (\"general_log_file\", \"/usr/local/mysql/data/localhost.log\"), (\"binlog_row_image\", \"FULL\"), (\"slave_pending_jobs_size_max\", \"16777216\"), (\"tidb_retry_limit\", \"10\"), (\"session_track_schema\", \"\"), (\"innodb_stats_persistent_sample_pages\", \"20\"), (\"stored_program_cache\", \"256\"), (\"profiling_history_size\", \"15\"), (\"tidb_ttl_job_run_interval\", \"1h0m0s\"), (\"tidb_dml_batch_size\", \"0\"), (\"sql_safe_updates\", \"OFF\"), (\"innodb_optimize_fulltext_only\", \"0\"), (\"innodb_commit_concurrency\", \"0\"), (\"binlog_order_commits\", \"ON\"), (\"tidb_gogc_tuner_threshold\", \"0.6\"), (\"innodb_table_locks\", \"ON\"), (\"sync_master_info\", \"10000\"), (\"sql_slave_skip_counter\", \"0\"), (\"tidb_opt_range_max_size\", \"67108864\"), (\"init_connect\", \"\"), (\"tiflash_fastscan\", \"OFF\"), (\"log_slow_slave_statements\", \"OFF\"), (\"tidb_auto_analyze_ratio\", \"0.5\"), (\"innodb_compression_pad_pct_max\", \"50\"), (\"tidb_scatter_region\", \"OFF\"), (\"tidb_enable_general_plan_cache\", \"OFF\"), (\"tidb_replica_read\", \"leader\"), (\"tidb_table_cache_lease\", \"3\"), (\"tidb_enable_concurrent_ddl\", \"ON\"), (\"innodb_change_buffering\", \"all\"), (\"innodb_lock_wait_timeout\", \"50\"), (\"lock_wait_timeout\", \"31536000\"), (\"binlog_max_flush_queue_time\", \"0\"), (\"sql_mode\", \"ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION\"), (\"session_track_state_change\", \"\"), (\"max_heap_table_size\", \"16777216\"), (\"updatable_views_with_limit\", \"YES\"), (\"automatic_sp_privileges\", \"1\"), (\"profiling\", \"OFF\"), (\"sql_big_selects\", \"ON\"), (\"rpl_stop_slave_timeout\", \"31536000\"), (\"tidb_gc_concurrency\", \"-1\"), (\"sha256_password_proxy_users\", \"\"), (\"myisam_sort_buffer_size\", \"8388608\"), (\"flush\", \"OFF\"), (\"innodb_online_alter_log_max_size\", \"134217728\"), (\"event_scheduler\", \"OFF\"), (\"master_verify_checksum\", \"OFF\"), (\"tidb_enable_outer_join_reorder\", \"ON\"), (\"ndb_log_updated_only\", \"\"), (\"tidb_opt_enable_hash_join\", \"ON\"), (\"tidb_enable_clustered_index\", \"ON\"), (\"tidb_redact_log\", \"OFF\"), (\"innodb_concurrency_tickets\", \"5000\"), (\"net_read_timeout\", \"30\"), (\"slave_net_timeout\", \"3600\"), (\"tidb_committer_concurrency\", \"128\"), (\"tidb_opt_broadcast_cartesian_join\", \"1\"), (\"max_insert_delayed_threads\", \"20\"), (\"innodb_ft_result_cache_limit\", \"2000000000\"), (\"tidb_server_memory_limit_gc_trigger\", \"0.7\"), (\"character_set_filesystem\", \"binary\"), (\"flush_time\", \"0\"), (\"tidb_server_memory_limit\", \"80%\"), (\"binlogging_impossible_mode\", \"IGNORE_ERROR\"), (\"default_password_lifetime\", \"0\"), (\"tidb_mem_quota_binding_cache\", \"67108864\"), (\"ndb_deferred_constraints\", \"\"), (\"innodb_adaptive_max_sleep_delay\", \"150000\"), (\"transaction_read_only\", \"OFF\"), (\"tidb_ddl_reorg_batch_size\", \"256\"), (\"(len:21519);"] [2024/05/06 16:35:40.615 +08:00] [INFO] [bootstrap.go:529] ["bootstrap successful"] ["take time"=29.658748845s] [2024/05/06 16:35:40.617 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:35:40.617 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 36, tp add index"] ["take time"=23.84µs] [2024/05/06 16:35:40.617 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 37, tp add index"] ["take time"=18.466µs] [2024/05/06 16:35:40.618 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 38, tp add index"] ["take time"=30.09µs] [2024/05/06 16:35:40.618 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 39, tp add index"] ["take time"=30.69µs] [2024/05/06 16:35:40.618 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 30, tp add index"] ["take time"=499.041µs] [2024/05/06 16:35:40.619 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 31, tp add index"] ["take time"=19.181µs] [2024/05/06 16:35:40.619 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 32, tp add index"] ["take time"=13.827µs] [2024/05/06 16:35:40.619 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 33, tp add index"] ["take time"=14.915µs] [2024/05/06 16:35:40.619 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 34, tp add index"] ["take time"=14.191µs] [2024/05/06 16:35:40.619 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 35, tp add index"] ["take time"=14.445µs] [2024/05/06 16:35:40.620 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:35:40.620 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 29, tp general"] ["take time"=17.687µs] [2024/05/06 16:35:40.620 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 27, tp general"] ["take time"=3.328µs] [2024/05/06 16:35:40.620 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 28, tp add index"] ["take time"=2.137µs] [2024/05/06 16:35:40.620 +08:00] [INFO] [delete_range.go:148] ["[ddl] closing delRange"] [2024/05/06 16:35:40.620 +08:00] [INFO] [session_pool.go:94] ["[ddl] closing sessionPool"] [2024/05/06 16:35:40.628 +08:00] [INFO] [ddl.go:833] ["[ddl] DDL closed"] [ID=b248928b-f8c2-4813-9cf3-09af967378ec] ["take time"=10.891042ms] [2024/05/06 16:35:40.628 +08:00] [INFO] [ddl.go:657] ["[ddl] stop DDL"] [ID=b248928b-f8c2-4813-9cf3-09af967378ec] [2024/05/06 16:35:40.641 +08:00] [INFO] [domain.go:574] ["topNSlowQueryLoop exited."] [2024/05/06 16:35:40.641 +08:00] [INFO] [domain.go:792] ["loadSchemaInLoop exited."] [2024/05/06 16:35:40.641 +08:00] [INFO] [domain.go:603] ["infoSyncerKeeper exited."] [2024/05/06 16:35:40.641 +08:00] [INFO] [domain.go:628] ["globalConfigSyncerKeeper exited."] [2024/05/06 16:35:40.641 +08:00] [INFO] [domain.go:651] ["topologySyncerKeeper exited."] [2024/05/06 16:35:40.641 +08:00] [INFO] [domain.go:1156] ["closestReplicaReadCheckLoop exited."] [2024/05/06 16:35:40.641 +08:00] [INFO] [domain.go:920] ["domain closed"] ["take time"=24.713104ms] [2024/05/06 16:35:40.641 +08:00] [INFO] [tidb.go:77] ["new domain"] [store=951d675d-6f65-4b51-ac41-17f32da01655] ["ddl lease"=500ms] ["stats lease"=-1ns] ["index usage sync lease"=0s] [2024/05/06 16:35:40.849 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=39] ["start time"=204.437941ms] [2024/05/06 16:35:40.865 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:35:40.866 +08:00] [INFO] [ddl.go:719] ["[ddl] start DDL"] [ID=ba4756c4-9403-4c08-811f-9492472083de] [runWorker=true] [2024/05/06 16:35:40.866 +08:00] [INFO] [ddl.go:665] ["[ddl] start delRangeManager OK"] ["is a emulator"=true] [2024/05/06 16:35:40.867 +08:00] [INFO] [delete_range.go:158] ["[ddl] start delRange emulator"] [2024/05/06 16:35:40.867 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 40, tp general"] [2024/05/06 16:35:40.868 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 41, tp add index"] [2024/05/06 16:35:40.870 +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:35:40.870 +08:00] [INFO] [env.go:108] ["[ddl-ingest] the lightning sorted dir"] ["data path:"=/tmp/tidb/tmp_ddl-4000] [2024/05/06 16:35:40.870 +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:35:40.871 +08:00] [WARN] [domain.go:1120] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 16:35:40.930 +08:00] [WARN] [sysvar_cache.go:50] ["sysvar cache is empty, triggering rebuild"] [2024/05/06 16:35:41.303 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=4] [schemaVersion=39] [cur_db=test] [sql="drop table if exists t1,t2"] [user=] [2024/05/06 16:35:41.306 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=4] [schemaVersion=39] [cur_db=test] [sql="create table t1 (id int primary key, v int)"] [user=] [2024/05/06 16:35:41.358 +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:35:41.322 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="create table t1 (id int primary key, v int)"] [2024/05/06 16:35:41.358 +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:35:41.322 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:41.968 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 42, 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:35:41.322 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:42.069 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=39] [neededSchemaVersion=40] ["start time"=2.187994ms] [phyTblIDs="[80]"] [actionTypes="[8]"] [2024/05/06 16:35:42.121 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=81] [version=40] [2024/05/06 16:35:42.123 +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"=60.56391ms] [job="ID:81, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:80, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:41.322 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:42.261 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 42, 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:35:41.322 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:42.333 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=81] [2024/05/06 16:35:42.334 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:42.335 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Conn_ID: 4\n# Query_time: 1.03055892\n# Parse_time: 0.001005367\n# Compile_time: 0.001044173\n# Rewrite_time: 0.000013025\n# Optimize_time: 0.000469932\n# Wait_TS: 0.000080933\n# DB: test\n# Is_internal: false\n# Digest: 58adff4e53b4dc3a2102ff826681d219bcf79edb1d10a7d7eddd3da56fcd9ce6\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 t1 (id int primary key, v int);"] [2024/05/06 16:35:42.345 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=4] [schemaVersion=40] [cur_db=test] [sql="create table t2 (id int)"] [user=] [2024/05/06 16:35:42.400 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:83, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:42.359 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="create table t2 (id int)"] [2024/05/06 16:35:42.401 +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:2, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:42.359 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:42.473 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 42, tp general"] [job="ID:83, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:35:42.359 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:42.572 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=40] [neededSchemaVersion=41] ["start time"=1.47381ms] [phyTblIDs="[82]"] [actionTypes="[8]"] [2024/05/06 16:35:42.621 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=83] [version=41] [2024/05/06 16:35:42.621 +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"=52.038665ms] [job="ID:83, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:42.359 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:42.687 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 42, tp general"] [job="ID:83, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:35:42.359 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:42.770 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=83] [2024/05/06 16:35:42.770 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:42.772 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Conn_ID: 4\n# Query_time: 0.427918766\n# Parse_time: 0.000716567\n# Compile_time: 0.00098883\n# Rewrite_time: 0.000014982\n# Optimize_time: 0.000469932\n# Wait_TS: 0.00007603\n# DB: test\n# Is_internal: false\n# Digest: 022ec70336ed50328c0e53dd0419219aeef85a72279ec430eea3ccf10d0811fe\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\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\ncreate table t2 (id int);"] [2024/05/06 16:35:42.774 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=4] [schemaVersion=41] [cur_db=test] [sql="create temporary table tmp (id int)"] [user=] [2024/05/06 16:35:42.829 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=6] [schemaVersion=41] [cur_db=test] [sql="alter table t2 add column(c1 int)"] [user=] [2024/05/06 16:35:42.865 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:85, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:35:42.847 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:42.865 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:85, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:35:42.847 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="alter table t2 add column(c1 int)"] [2024/05/06 16:35:42.870 +08:00] [INFO] [info.go:1114] [SetTiFlashGroupConfig] [2024/05/06 16:35:42.989 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 42, tp general"] [job="ID:85, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:35:42.847 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:42.990 +08:00] [INFO] [column.go:133] ["[ddl] run add column job"] [job="ID:85, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:35:42.847 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [columnInfo="{\"id\":2,\"name\":{\"O\":\"c1\",\"L\":\"c1\"},\"offset\":1,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{},\"state\":0,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2}"] [2024/05/06 16:35:43.085 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=41] [neededSchemaVersion=42] ["start time"=1.469028ms] [phyTblIDs="[82]"] [actionTypes="[32]"] [2024/05/06 16:35:43.123 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=85] [version=42] [2024/05/06 16:35:43.127 +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"=44.685303ms] [job="ID:85, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:35:42.847 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:43.205 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 42, tp general"] [job="ID:85, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:35:42.847 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:43.244 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=42] [neededSchemaVersion=43] ["start time"=1.641862ms] [phyTblIDs="[82]"] [actionTypes="[32]"] [2024/05/06 16:35:43.272 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=85] [version=43] [2024/05/06 16:35:43.272 +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"=30.244266ms] [job="ID:85, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:35:42.847 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:43.317 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 42, tp general"] [job="ID:85, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:35:42.847 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:43.362 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=43] [neededSchemaVersion=44] ["start time"=1.637734ms] [phyTblIDs="[82]"] [actionTypes="[32]"] [2024/05/06 16:35:43.424 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=85] [version=44] [2024/05/06 16:35:43.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=44] ["take time"=67.054398ms] [job="ID:85, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:35:42.847 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:43.505 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 42, tp general"] [job="ID:85, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:35:42.847 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:43.601 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=44] [neededSchemaVersion=45] ["start time"=1.603368ms] [phyTblIDs="[82]"] [actionTypes="[32]"] [2024/05/06 16:35:43.626 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=85] [version=45] [2024/05/06 16:35:43.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=45] ["take time"=39.468433ms] [job="ID:85, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:35:42.847 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:43.702 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 42, tp general"] [job="ID:85, Type:add column, State:synced, SchemaState:public, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:35:42.847 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:43.782 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=85] [2024/05/06 16:35:43.782 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:43.783 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Conn_ID: 6\n# Query_time: 0.955667239\n# Parse_time: 0.000702091\n# Compile_time: 0.001346588\n# Rewrite_time: 0.000019927\n# Optimize_time: 0.000482575\n# Wait_TS: 0.000096487\n# DB: test\n# Is_internal: false\n# Digest: 177e330fc6e13ff4b1b9f51ae04b524c419feabb143557fdc6a5807ebb58aed3\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;\nalter table t2 add column(c1 int);"] [2024/05/06 16:35:43.805 +08:00] [INFO] [txn.go:55] ["Try to create a new txn inside a transaction auto commit"] [schemaVersion=41] [txnStartTS=449572907993792512] [txnScope=global] [2024/05/06 16:35:43.901 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:35:43.901 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 47, tp add index"] ["take time"=10.888µs] [2024/05/06 16:35:43.901 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 48, tp add index"] ["take time"=7.424µs] [2024/05/06 16:35:43.901 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 49, tp add index"] ["take time"=8.042µs] [2024/05/06 16:35:43.902 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 50, tp add index"] ["take time"=7.138µs] [2024/05/06 16:35:43.902 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 51, tp add index"] ["take time"=6.475µs] [2024/05/06 16:35:43.902 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 52, tp add index"] ["take time"=6.89µs] [2024/05/06 16:35:43.902 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 43, tp add index"] ["take time"=6.43µs] [2024/05/06 16:35:43.903 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 44, tp add index"] ["take time"=6.558µs] [2024/05/06 16:35:43.903 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 45, tp add index"] ["take time"=6.292µs] [2024/05/06 16:35:43.903 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 46, tp add index"] ["take time"=6.025µs] [2024/05/06 16:35:43.903 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:35:43.904 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 42, tp general"] ["take time"=7.568µs] [2024/05/06 16:35:43.904 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 40, tp general"] ["take time"=4.422µs] [2024/05/06 16:35:43.904 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 41, tp add index"] ["take time"=3.476µs] [2024/05/06 16:35:43.904 +08:00] [INFO] [delete_range.go:148] ["[ddl] closing delRange"] [2024/05/06 16:35:43.904 +08:00] [INFO] [session_pool.go:94] ["[ddl] closing sessionPool"] [2024/05/06 16:35:43.906 +08:00] [INFO] [ddl.go:833] ["[ddl] DDL closed"] [ID=ba4756c4-9403-4c08-811f-9492472083de] ["take time"=52.586566ms] [2024/05/06 16:35:43.906 +08:00] [INFO] [ddl.go:657] ["[ddl] stop DDL"] [ID=ba4756c4-9403-4c08-811f-9492472083de] [2024/05/06 16:35:43.906 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:35:43.906 +08:00] [INFO] [domain.go:1444] ["LoadSysVarCacheLoop exited."] [2024/05/06 16:35:43.906 +08:00] [INFO] [domain.go:1394] ["loadPrivilegeInLoop exited."] [2024/05/06 16:35:43.907 +08:00] [INFO] [domain.go:1569] ["handleEvolvePlanTasksLoop exited."] [2024/05/06 16:35:43.907 +08:00] [INFO] [domain.go:628] ["globalConfigSyncerKeeper exited."] [2024/05/06 16:35:43.907 +08:00] [INFO] [domain.go:1525] ["globalBindHandleWorkerLoop exited."] [2024/05/06 16:35:43.907 +08:00] [INFO] [domain.go:603] ["infoSyncerKeeper exited."] [2024/05/06 16:35:43.907 +08:00] [INFO] [domain.go:792] ["loadSchemaInLoop exited."] [2024/05/06 16:35:43.910 +08:00] [INFO] [domain.go:574] ["topNSlowQueryLoop exited."] [2024/05/06 16:35:43.910 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:35:43.910 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:35:43.910 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:35:43.910 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:35:43.914 +08:00] [INFO] [domain.go:651] ["topologySyncerKeeper exited."] [2024/05/06 16:35:43.915 +08:00] [INFO] [domain.go:1156] ["closestReplicaReadCheckLoop exited."] [2024/05/06 16:35:43.915 +08:00] [INFO] [domain.go:1748] ["dumpFileGcChecker exited."] [2024/05/06 16:35:43.921 +08:00] [INFO] [domain.go:920] ["domain closed"] ["take time"=67.636664ms] [2024/05/06 16:35:43.924 +08:00] [INFO] [db.go:567] ["Closing database"] [2024/05/06 16:35:43.925 +08:00] [INFO] [db.go:592] ["Memtable flushed"] [2024/05/06 16:35:43.925 +08:00] [INFO] [db.go:596] ["Compaction finished"] [2024/05/06 16:35:43.925 +08:00] [INFO] [db.go:615] ["BlobManager finished"] [2024/05/06 16:35:43.925 +08:00] [INFO] [db.go:619] ["ResourceManager finished"] [2024/05/06 16:35:43.925 +08:00] [INFO] [db.go:625] ["Waiting for closer"] --- PASS: TestTxnContextBeginInUnfinishedTxn (33.15s) === RUN TestTxnContextInRC [2024/05/06 16:35:43.954 +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:35:43.959 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:35:43.959 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:35:43.970 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:35:43.970 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:35:43.977 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:35:43.980 +08:00] [INFO] [tidb.go:77] ["new domain"] [store=a996a5ec-29a9-4879-bf18-1af962a9da23] ["ddl lease"=500ms] ["stats lease"=-1ns] ["index usage sync lease"=0s] [2024/05/06 16:35:43.981 +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\nsessiontxn/sessiontxn_test_test.setupTxnContextTest\n\tsessiontxn/txn_context_test.go:61\nsessiontxn/sessiontxn_test_test.TestTxnContextInRC\n\tsessiontxn/txn_context_test.go:289\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1446\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:35:44.059 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=0] ["start time"=76.06974ms] [2024/05/06 16:35:44.065 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:35:44.065 +08:00] [INFO] [ddl.go:719] ["[ddl] start DDL"] [ID=48805229-4eaf-4afd-88a9-7154e5d2b974] [runWorker=true] [2024/05/06 16:35:44.066 +08:00] [INFO] [ddl.go:665] ["[ddl] start delRangeManager OK"] ["is a emulator"=true] [2024/05/06 16:35:44.066 +08:00] [INFO] [delete_range.go:158] ["[ddl] start delRange emulator"] [2024/05/06 16:35:44.067 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 53, tp general"] [2024/05/06 16:35:44.067 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 54, tp add index"] [2024/05/06 16:35:44.067 +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:35:44.068 +08:00] [INFO] [env.go:108] ["[ddl-ingest] the lightning sorted dir"] ["data path:"=/tmp/tidb/tmp_ddl-4000] [2024/05/06 16:35:44.068 +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:35:44.068 +08:00] [WARN] [domain.go:1120] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 16:35:44.088 +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:35:44.122 +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:35:44.103 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:44.123 +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:35:44.103 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE DATABASE IF NOT EXISTS test"] [2024/05/06 16:35:44.324 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:35:44.350 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 55, 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:35:44.103 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:44.420 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=1] ["start time"=37.849375ms] [2024/05/06 16:35:44.426 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:35:44.469 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:44.469 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=3] [version=1] [2024/05/06 16:35:44.470 +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"=88.586769ms] [job="ID:3, Type:create schema, State:done, SchemaState:public, SchemaID:2, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 16:35:44.103 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:44.584 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 55, 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:35:44.103 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:44.689 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=3] [2024/05/06 16:35:44.689 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:44.691 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.603490629\n# Parse_time: 0\n# Compile_time: 0.001141797\n# Rewrite_time: 0.000013607\n# Optimize_time: 0\n# Wait_TS: 0.00013595\n# DB: mysql\n# Is_internal: true\n# Digest: 0a22979ad136f741465cf206b13e5717b9758dda34f7cae5a7a925f91711d6a0\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 mysql;\nCREATE DATABASE IF NOT EXISTS test;"] [2024/05/06 16:35:44.693 +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:35:44.768 +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:35:45.205 +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:35:44.787 +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:35:45.217 +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:35:44.787 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:45.289 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 55, 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:35:44.787 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:45.798 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=1] [neededSchemaVersion=2] ["start time"=9.253076ms] [phyTblIDs="[4]"] [actionTypes="[8]"] [2024/05/06 16:35:45.823 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:45.824 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=5] [version=2] [2024/05/06 16:35:45.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=2] ["take time"=36.580887ms] [job="ID:5, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:4, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:44.787 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:46.023 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 55, 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:35:44.787 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:46.068 +08:00] [INFO] [info.go:1114] [SetTiFlashGroupConfig] [2024/05/06 16:35:46.503 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=5] [2024/05/06 16:35:46.504 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:46.534 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 1.781403163\n# Parse_time: 0\n# Compile_time: 0.044232972\n# Rewrite_time: 0.000013666\n# Optimize_time: 0\n# Wait_TS: 0.000108913\n# DB: mysql\n# Is_internal: true\n# Digest: 14c6b489558060bdbede877927034270db5af07c6621aa28f87eeaec8727e925\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\nCREATE TABLE IF NOT EXISTS mysql.user ( Host CHAR(255), User CHAR(32), authentication_string TEXT, plugin CHAR(64), Select_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Insert_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Update_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Delete_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Drop_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Process_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Grant_priv ENUM('N','Y') NOT NULL DEFAULT 'N', References_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Show_db_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Super_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_tmp_table_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Lock_tables_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Execute_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Show_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Index_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_user_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Event_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Repl_slave_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Repl_client_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Trigger_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_role_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Drop_role_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Account_locked ENUM('N','Y') NOT NULL DEFAULT 'N', Shutdown_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Reload_priv ENUM('N','Y') NOT NULL DEFAULT 'N', FILE_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Config_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_Tablespace_Priv ENUM('N','Y') NOT NULL DEFAULT 'N', Password_reuse_history smallint unsigned DEFAULT NULL, Password_reuse_time smallint unsigned DEFAULT NULL, User_attributes json, Token_issuer VARCHAR(255), Password_expired ENUM('N','Y') NOT NULL DEFAULT 'N', Password_last_changed TIMESTAMP DEFAULT CURRENT_TIMESTAMP(), Password_lifetime SMALLINT UNSIGNED DEFAULT NULL, PRIMARY KEY (Host, User));"] [2024/05/06 16:35:46.541 +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:35:46.631 +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:35:46.557 +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:35:46.644 +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:35:46.557 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:46.751 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 55, 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:35:46.557 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:46.880 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=2] [neededSchemaVersion=3] ["start time"=2.498849ms] [phyTblIDs="[6]"] [actionTypes="[8]"] [2024/05/06 16:35:46.919 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:46.919 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=7] [version=3] [2024/05/06 16:35:46.921 +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"=44.351135ms] [job="ID:7, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:6, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:46.557 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:46.977 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 55, 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:35:46.557 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:47.057 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=7] [2024/05/06 16:35:47.057 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:47.059 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.520764306\n# Parse_time: 0\n# Compile_time: 0.003533802\n# Rewrite_time: 0.000013513\n# Optimize_time: 0\n# Wait_TS: 0.00010418\n# DB: mysql\n# Is_internal: true\n# Digest: eeb59bc0d98f65a2a5aef8eaa99596260e746b00eed183baf856558ef03533ac\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\nCREATE TABLE IF NOT EXISTS mysql.password_history ( Host char(255) NOT NULL DEFAULT '', User char(32) NOT NULL DEFAULT '', Password_timestamp timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), Password text, PRIMARY KEY (Host,User,Password_timestamp ) ) COMMENT='Password history for user accounts' ;"] [2024/05/06 16:35:47.064 +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:35:47.169 +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:35:47.077 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:47.170 +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:35:47.077 +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:35:47.358 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 55, 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:35:47.077 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:47.532 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=3] [neededSchemaVersion=4] ["start time"=1.960732ms] [phyTblIDs="[8]"] [actionTypes="[8]"] [2024/05/06 16:35:47.571 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:47.572 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=9] [version=4] [2024/05/06 16:35:47.577 +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"=47.928842ms] [job="ID:9, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:8, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:47.077 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:47.651 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 55, 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:35:47.077 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:47.754 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=9] [2024/05/06 16:35:47.757 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:47.767 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.704987377\n# Parse_time: 0\n# Compile_time: 0.002164626\n# Rewrite_time: 0.000012847\n# Optimize_time: 0\n# Wait_TS: 0.000085\n# DB: mysql\n# Is_internal: true\n# Digest: 3bc9b46cf9e300a8d240915cf47216424544ed9f992c07151fba2e2cadc41632\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\nCREATE 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:35:47.830 +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:35:48.016 +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:35:47.864 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:48.016 +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:35:47.864 +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:35:48.169 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 55, 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:35:47.864 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:48.491 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=4] [neededSchemaVersion=5] ["start time"=5.884939ms] [phyTblIDs="[10]"] [actionTypes="[8]"] [2024/05/06 16:35:48.521 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:48.521 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=11] [version=5] [2024/05/06 16:35:48.522 +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"=37.269037ms] [job="ID:11, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:10, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:47.864 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:48.586 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 55, 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:35:47.864 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:48.753 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=11] [2024/05/06 16:35:48.769 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:48.771 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.952962583\n# Parse_time: 0\n# Compile_time: 0.01215231\n# Rewrite_time: 0.000013005\n# Optimize_time: 0\n# Wait_TS: 0.000079593\n# DB: mysql\n# Is_internal: true\n# Digest: aeaf612801484f0311f850d36f60f29e6d904828682c1f3bb7307dff25ca3a15\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\nCREATE TABLE IF NOT EXISTS mysql.db ( Host CHAR(255), DB CHAR(64), User CHAR(32), Select_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Insert_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Update_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Delete_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Drop_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Grant_priv ENUM('N','Y') NOT NULL DEFAULT 'N', References_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Index_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_tmp_table_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Lock_tables_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Show_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Execute_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Event_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Trigger_priv ENUM('N','Y') NOT NULL DEFAULT 'N', PRIMARY KEY (Host, DB, User));"] [2024/05/06 16:35:48.780 +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:35:48.894 +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:35:48.798 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:48.894 +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:35:48.798 +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:35:48.965 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 55, 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:35:48.798 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:49.215 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=5] [neededSchemaVersion=6] ["start time"=3.320024ms] [phyTblIDs="[12]"] [actionTypes="[8]"] [2024/05/06 16:35:49.269 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:49.269 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=13] [version=6] [2024/05/06 16:35:49.269 +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"=58.238268ms] [job="ID:13, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:12, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:48.798 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:49.376 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 55, 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:35:48.798 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:49.509 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=13] [2024/05/06 16:35:49.510 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:49.511 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.734445186\n# Parse_time: 0\n# Compile_time: 0.003639761\n# Rewrite_time: 0.00001249\n# Optimize_time: 0\n# Wait_TS: 0.000089161\n# DB: mysql\n# Is_internal: true\n# Digest: e8b37dad6cc7f05ee1f0be61455667495826928a93ddd09b94e02fbaed113955\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\nCREATE TABLE IF NOT EXISTS mysql.tables_priv ( Host CHAR(255), DB CHAR(64), User CHAR(32), Table_name CHAR(64), Grantor CHAR(77), Timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP, Table_priv SET('Select','Insert','Update','Delete','Create','Drop','Grant','Index','Alter','Create View','Show View','Trigger','References'), Column_priv SET('Select','Insert','Update','References'), PRIMARY KEY (Host, DB, User, Table_name));"] [2024/05/06 16:35:49.533 +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:35:49.702 +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:35:49.622 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:49.703 +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:35:49.622 +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:35:49.780 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 55, 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:35:49.622 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:49.932 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=6] [neededSchemaVersion=7] ["start time"=7.643072ms] [phyTblIDs="[14]"] [actionTypes="[8]"] [2024/05/06 16:35:49.969 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:49.969 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=15] [version=7] [2024/05/06 16:35:49.971 +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"=47.017771ms] [job="ID:15, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:14, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:49.622 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:50.035 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 55, 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:35:49.622 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:50.332 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=15] [2024/05/06 16:35:50.332 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:50.334 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.809029911\n# Parse_time: 0\n# Compile_time: 0.008089736\n# Rewrite_time: 0.000010791\n# Optimize_time: 0\n# Wait_TS: 0.000244993\n# DB: mysql\n# Is_internal: true\n# Digest: a19edbb3caff8cc57619278ab6eb5f791d7a821432309abe7184d0a7bca66b4d\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\nCREATE TABLE IF NOT EXISTS mysql.columns_priv( Host CHAR(255), DB CHAR(64), User CHAR(32), Table_name CHAR(64), Column_name CHAR(64), Timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP, Column_priv SET('Select','Insert','Update','References'), PRIMARY KEY (Host, DB, User, Table_name, Column_name));"] [2024/05/06 16:35:50.337 +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:35:50.399 +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:35:50.355 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:50.400 +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:35:50.355 +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:35:50.522 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 55, 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:35:50.355 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:50.638 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=7] [neededSchemaVersion=8] ["start time"=1.951518ms] [phyTblIDs="[16]"] [actionTypes="[8]"] [2024/05/06 16:35:50.668 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:50.669 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=17] [version=8] [2024/05/06 16:35:50.669 +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"=33.54954ms] [job="ID:17, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:16, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:50.355 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:50.782 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 55, 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:35:50.355 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:50.897 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=17] [2024/05/06 16:35:50.897 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:50.898 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.561894489\n# Parse_time: 0\n# Compile_time: 0.001339478\n# Rewrite_time: 0.00001352\n# Optimize_time: 0\n# Wait_TS: 0.000092666\n# DB: mysql\n# Is_internal: true\n# Digest: 55c1ea537145da60f32339dc7a3b69a3859f3f428fbae4e4023eb71dca836f47\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\nCREATE TABLE IF NOT EXISTS mysql.GLOBAL_VARIABLES( VARIABLE_NAME VARCHAR(64) NOT NULL PRIMARY KEY, VARIABLE_VALUE VARCHAR(1024) DEFAULT NULL);"] [2024/05/06 16:35:50.903 +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:35:50.957 +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:35:50.916 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:50.957 +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:35:50.916 +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:35:51.071 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 55, 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:35:50.916 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:51.212 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=8] [neededSchemaVersion=9] ["start time"=1.992712ms] [phyTblIDs="[18]"] [actionTypes="[8]"] [2024/05/06 16:35:51.269 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:51.269 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=19] [version=9] [2024/05/06 16:35:51.270 +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"=60.533326ms] [job="ID:19, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:18, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:50.916 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:51.336 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 55, 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:35:50.916 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:51.478 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=19] [2024/05/06 16:35:51.478 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:51.480 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.578849752\n# Parse_time: 0\n# Compile_time: 0.001909752\n# Rewrite_time: 0.000014007\n# Optimize_time: 0\n# Wait_TS: 0.000091733\n# DB: mysql\n# Is_internal: true\n# Digest: 0cc4a9cf54472ccff7c4fb8d7c6e34e6bd96af08b450ad4c9677473f1f517cf2\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\nCREATE TABLE IF NOT EXISTS mysql.tidb( VARIABLE_NAME VARCHAR(64) NOT NULL PRIMARY KEY, VARIABLE_VALUE VARCHAR(1024) DEFAULT NULL, COMMENT VARCHAR(1024));"] [2024/05/06 16:35:51.492 +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:35:51.638 +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:35:51.509 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:51.638 +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:35:51.509 +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:35:51.799 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 55, 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:35:51.509 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:52.020 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=9] [neededSchemaVersion=10] ["start time"=2.927517ms] [phyTblIDs="[20]"] [actionTypes="[8]"] [2024/05/06 16:35:52.079 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:52.080 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=21] [version=10] [2024/05/06 16:35:52.080 +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"=64.139259ms] [job="ID:21, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:20, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:51.509 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:52.248 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 55, 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:35:51.509 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:52.337 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=21] [2024/05/06 16:35:52.349 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:52.351 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.862626261\n# Parse_time: 0\n# Compile_time: 0.003722648\n# Rewrite_time: 0.000015012\n# Optimize_time: 0\n# Wait_TS: 0.000096875\n# DB: mysql\n# Is_internal: true\n# Digest: ca851971407336dad93908a9f88f01d828a4e18f332111987f4a7675bced7ea4\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\nCREATE TABLE IF NOT EXISTS mysql.help_topic ( help_topic_id INT(10) UNSIGNED NOT NULL, name CHAR(64) NOT NULL, help_category_id SMALLINT(5) UNSIGNED NOT NULL, description TEXT NOT NULL, example TEXT NOT NULL, url TEXT NOT NULL, PRIMARY KEY (help_topic_id) clustered, UNIQUE KEY name (name) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='help topics';"] [2024/05/06 16:35:52.368 +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:35:52.433 +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:35:52.382 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:52.433 +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:35:52.382 +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:35:52.536 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 55, 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:35:52.382 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:52.656 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=10] [neededSchemaVersion=11] ["start time"=2.419552ms] [phyTblIDs="[22]"] [actionTypes="[8]"] [2024/05/06 16:35:52.719 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:52.719 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=23] [version=11] [2024/05/06 16:35:52.722 +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"=68.857763ms] [job="ID:23, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:22, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:52.382 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:52.789 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 55, 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:35:52.382 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:52.894 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=23] [2024/05/06 16:35:52.894 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:52.896 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.531758543\n# Parse_time: 0\n# Compile_time: 0.003291837\n# Rewrite_time: 0.000014683\n# Optimize_time: 0\n# Wait_TS: 0.000094594\n# DB: mysql\n# Is_internal: true\n# Digest: db16a74bd407cb00f071eafe96456094f48fc00e802128fc486ef4847b8910b0\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\nCREATE TABLE IF NOT EXISTS mysql.stats_meta ( version BIGINT(64) UNSIGNED NOT NULL, table_id BIGINT(64) NOT NULL, modify_count BIGINT(64) NOT NULL DEFAULT 0, count BIGINT(64) UNSIGNED NOT NULL DEFAULT 0, snapshot BIGINT(64) UNSIGNED NOT NULL DEFAULT 0, INDEX idx_ver(version), UNIQUE INDEX tbl(table_id) );"] [2024/05/06 16:35:52.912 +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:35:52.931 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(6291456) to MEDIUMBLOB"] [2024/05/06 16:35:53.261 +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:35:52.966 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:53.264 +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:35:52.966 +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:35:53.372 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 55, 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:35:52.966 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:53.666 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=11] [neededSchemaVersion=12] ["start time"=4.237159ms] [phyTblIDs="[24]"] [actionTypes="[8]"] [2024/05/06 16:35:53.723 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:53.723 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=25] [version=12] [2024/05/06 16:35:53.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=12] ["take time"=62.467541ms] [job="ID:25, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:24, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:52.966 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:53.817 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 55, 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:35:52.966 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:53.960 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=25] [2024/05/06 16:35:53.961 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:53.973 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 1.055369647\n# Parse_time: 0\n# Compile_time: 0.005105787\n# Rewrite_time: 0.000014061\n# Optimize_time: 0\n# Wait_TS: 0.00009745\n# DB: mysql\n# Is_internal: true\n# Digest: 7780c45a0aac5f123ac85a7e601e79c5d7779e7c09a19953908e547605ed45d2\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\nCREATE TABLE IF NOT EXISTS mysql.stats_histograms ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, distinct_count BIGINT(64) NOT NULL, null_count BIGINT(64) NOT NULL DEFAULT 0, tot_col_size BIGINT(64) NOT NULL DEFAULT 0, modify_count BIGINT(64) NOT NULL DEFAULT 0, version BIGINT(64) UNSIGNED NOT NULL DEFAULT 0, cm_sketch BLOB(6291456), stats_ver BIGINT(64) NOT NULL DEFAULT 0, flag BIGINT(64) NOT NULL DEFAULT 0, correlation DOUBLE NOT NULL DEFAULT 0, last_analyze_pos LONGBLOB DEFAULT NULL, UNIQUE INDEX tbl(table_id, is_index, hist_id) );"] [2024/05/06 16:35:53.988 +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:35:54.074 +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:35:54.004 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:54.075 +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:35:54.004 +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:35:54.205 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 55, 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:35:54.004 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:54.526 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=12] [neededSchemaVersion=13] ["start time"=3.645802ms] [phyTblIDs="[26]"] [actionTypes="[8]"] [2024/05/06 16:35:54.568 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:54.569 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=27] [version=13] [2024/05/06 16:35:54.574 +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"=52.308047ms] [job="ID:27, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:26, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:54.004 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:54.676 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 55, 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:35:54.004 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:54.812 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=27] [2024/05/06 16:35:54.818 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:54.829 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.844408278\n# Parse_time: 0\n# Compile_time: 0.003338298\n# Rewrite_time: 0.000013615\n# Optimize_time: 0\n# Wait_TS: 0.000101001\n# DB: mysql\n# Is_internal: true\n# Digest: 5615b5212342304015b027afb253371dae02f19e53871cfbb034deb145dfce32\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\nCREATE TABLE IF NOT EXISTS mysql.stats_buckets ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, bucket_id BIGINT(64) NOT NULL, count BIGINT(64) NOT NULL, repeats BIGINT(64) NOT NULL, upper_bound LONGBLOB NOT NULL, lower_bound LONGBLOB , ndv BIGINT NOT NULL DEFAULT 0, UNIQUE INDEX tbl(table_id, is_index, hist_id, bucket_id) );"] [2024/05/06 16:35:54.843 +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:35:55.009 +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:35:54.856 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:55.009 +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:35:54.856 +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:35:55.256 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 55, 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:35:54.856 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:55.621 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=13] [neededSchemaVersion=14] ["start time"=2.659015ms] [phyTblIDs="[28]"] [actionTypes="[8]"] [2024/05/06 16:35:55.671 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:55.677 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=29] [version=14] [2024/05/06 16:35:55.678 +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"=60.048883ms] [job="ID:29, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:28, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:54.856 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:55.773 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 55, 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:35:54.856 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:55.848 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=29] [2024/05/06 16:35:55.849 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:55.861 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 1.020327753\n# Parse_time: 0\n# Compile_time: 0.003422512\n# Rewrite_time: 0.00001329\n# Optimize_time: 0\n# Wait_TS: 0.000088383\n# DB: mysql\n# Is_internal: true\n# Digest: 4f764dd084d16197c847e23500fcaf8b96dbbabd598c823de37967bfa2ad51cd\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\nCREATE TABLE IF NOT EXISTS mysql.gc_delete_range ( job_id BIGINT NOT NULL COMMENT \"the DDL job ID\", element_id BIGINT NOT NULL COMMENT \"the schema element ID\", start_key VARCHAR(255) NOT NULL COMMENT \"encoded in hex\", end_key VARCHAR(255) NOT NULL COMMENT \"encoded in hex\", ts BIGINT NOT NULL COMMENT \"timestamp in uint64\", UNIQUE KEY delete_range_index (job_id, element_id) );"] [2024/05/06 16:35:55.883 +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:35:56.021 +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:35:55.912 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:56.022 +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:35:55.912 +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:35:56.122 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 55, 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:35:55.912 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:56.309 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=14] [neededSchemaVersion=15] ["start time"=2.479339ms] [phyTblIDs="[30]"] [actionTypes="[8]"] [2024/05/06 16:35:56.369 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:56.369 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=31] [version=15] [2024/05/06 16:35:56.370 +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"=64.653645ms] [job="ID:31, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:30, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:55.912 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:56.447 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 55, 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:35:55.912 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:56.578 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=31] [2024/05/06 16:35:56.592 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:56.600 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.719534997\n# Parse_time: 0\n# Compile_time: 0.003556337\n# Rewrite_time: 0.00001453\n# Optimize_time: 0\n# Wait_TS: 0.000091817\n# DB: mysql\n# Is_internal: true\n# Digest: 532cf71b38f2568975d61180716af7e2b05c9ca11023688224ed0c0eece42fa9\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\nCREATE TABLE IF NOT EXISTS mysql.gc_delete_range_done ( job_id BIGINT NOT NULL COMMENT \"the DDL job ID\", element_id BIGINT NOT NULL COMMENT \"the schema element ID\", start_key VARCHAR(255) NOT NULL COMMENT \"encoded in hex\", end_key VARCHAR(255) NOT NULL COMMENT \"encoded in hex\", ts BIGINT NOT NULL COMMENT \"timestamp in uint64\", UNIQUE KEY delete_range_done_index (job_id, element_id) );"] [2024/05/06 16:35:56.614 +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:35:56.677 +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:35:56.629 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:56.678 +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:35:56.629 +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:35:56.780 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 55, 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:35:56.629 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:56.931 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=15] [neededSchemaVersion=16] ["start time"=2.158686ms] [phyTblIDs="[32]"] [actionTypes="[8]"] [2024/05/06 16:35:56.969 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:56.969 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=33] [version=16] [2024/05/06 16:35:56.970 +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"=41.401831ms] [job="ID:33, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:32, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:56.629 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:57.057 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 55, 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:35:56.629 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:57.137 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=33] [2024/05/06 16:35:57.137 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:57.139 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.528095584\n# Parse_time: 0\n# Compile_time: 0.003592591\n# Rewrite_time: 0.000012857\n# Optimize_time: 0\n# Wait_TS: 0.000084771\n# DB: mysql\n# Is_internal: true\n# Digest: 28f04155dca9c7fd3a5e16199cefd152c629a57a64d0ccb2ed0f10309c23c59c\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\nCREATE TABLE IF NOT EXISTS mysql.stats_feedback ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, feedback BLOB NOT NULL, INDEX hist(table_id, is_index, hist_id) );"] [2024/05/06 16:35:57.186 +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:35:57.268 +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:35:57.219 +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:35:57.280 +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:35:57.219 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:57.363 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 55, 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:35:57.219 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:57.524 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=16] [neededSchemaVersion=17] ["start time"=2.432482ms] [phyTblIDs="[34]"] [actionTypes="[8]"] [2024/05/06 16:35:57.645 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:57.645 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=35] [version=17] [2024/05/06 16:35:57.645 +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"=124.074079ms] [job="ID:35, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:34, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:57.219 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:57.736 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 55, 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:35:57.219 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:57.848 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=35] [2024/05/06 16:35:57.848 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:57.850 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.667615421\n# Parse_time: 0\n# Compile_time: 0.00357163\n# Rewrite_time: 0.000012808\n# Optimize_time: 0\n# Wait_TS: 0.000081\n# DB: mysql\n# Is_internal: true\n# Digest: 13e2fcff943423afddaa84c2d34108628854b5953bc7c41d2879240f077a5bd6\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\nCREATE TABLE IF NOT EXISTS mysql.role_edges ( FROM_HOST CHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '', FROM_USER CHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '', TO_HOST CHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '', TO_USER CHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '', WITH_ADMIN_OPTION ENUM('N','Y') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'N', PRIMARY KEY (FROM_HOST,FROM_USER,TO_HOST,TO_USER) );"] [2024/05/06 16:35:57.861 +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:35:57.998 +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:35:57.886 +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:35:58.016 +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:35:57.886 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:58.156 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 55, 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:35:57.886 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:58.353 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=17] [neededSchemaVersion=18] ["start time"=4.895768ms] [phyTblIDs="[36]"] [actionTypes="[8]"] [2024/05/06 16:35:58.469 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:58.469 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=37] [version=18] [2024/05/06 16:35:58.472 +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"=132.977026ms] [job="ID:37, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:36, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:57.886 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:58.524 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 55, 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:35:57.886 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:58.661 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=37] [2024/05/06 16:35:58.661 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:58.663 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.805024897\n# Parse_time: 0\n# Compile_time: 0.003016047\n# Rewrite_time: 0.000013807\n# Optimize_time: 0\n# Wait_TS: 0.000087044\n# DB: mysql\n# Is_internal: true\n# Digest: 9e6b544fb0287e9d8a74031560ed0cd6a5b4e54db073b893a68a76b05d929781\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\nCREATE TABLE IF NOT EXISTS mysql.default_roles ( HOST CHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '', USER CHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '', DEFAULT_ROLE_HOST CHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '%', DEFAULT_ROLE_USER CHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '', PRIMARY KEY (HOST,USER,DEFAULT_ROLE_HOST,DEFAULT_ROLE_USER) );"] [2024/05/06 16:35:58.696 +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:35:58.885 +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:35:58.711 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:58.886 +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:35:58.711 +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:35:58.990 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 55, 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:35:58.711 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:59.278 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=18] [neededSchemaVersion=19] ["start time"=4.928893ms] [phyTblIDs="[38]"] [actionTypes="[8]"] [2024/05/06 16:35:59.319 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:35:59.320 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=39] [version=19] [2024/05/06 16:35:59.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=19] ["take time"=52.475011ms] [job="ID:39, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:38, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:58.711 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:59.426 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 55, 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:35:58.711 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:35:59.633 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=39] [2024/05/06 16:35:59.633 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:35:59.635 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.9650783\n# Parse_time: 0\n# Compile_time: 0.026563091\n# Rewrite_time: 0.000013523\n# Optimize_time: 0\n# Wait_TS: 0.000087861\n# DB: mysql\n# Is_internal: true\n# Digest: 0a4bc55a9ab72ef62ddaa1ee6472d7872306066fd783a8bb67047a497fbb4dbe\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\nCREATE TABLE IF NOT EXISTS mysql.bind_info ( original_sql TEXT NOT NULL, bind_sql TEXT NOT NULL, default_db TEXT NOT NULL, status TEXT NOT NULL, create_time TIMESTAMP(3) NOT NULL, update_time TIMESTAMP(3) NOT NULL, charset TEXT NOT NULL, collation TEXT NOT NULL, source VARCHAR(10) NOT NULL DEFAULT 'unknown', sql_digest varchar(64), plan_digest varchar(64), INDEX sql_index(original_sql(700),default_db(68)) COMMENT \"accelerate the speed when add global binding query\", INDEX time_index(update_time) COMMENT \"accelerate the speed when querying with last update time\" ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;"] [2024/05/06 16:35:59.692 +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:35:59.808 +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:35:59.709 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:35:59.808 +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:35:59.709 +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:35:59.965 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 55, 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:35:59.709 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:00.125 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=19] [neededSchemaVersion=20] ["start time"=2.379165ms] [phyTblIDs="[40]"] [actionTypes="[8]"] [2024/05/06 16:36:00.168 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:00.169 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=41] [version=20] [2024/05/06 16:36:00.170 +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"=48.53464ms] [job="ID:41, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:40, RowCount:0, ArgLen:2, start time: 2024-05-06 16:35:59.709 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:00.229 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 55, 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:35:59.709 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:00.339 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=41] [2024/05/06 16:36:00.339 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:00.341 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.651495619\n# Parse_time: 0\n# Compile_time: 0.002833728\n# Rewrite_time: 0.000012551\n# Optimize_time: 0\n# Wait_TS: 0.000104052\n# DB: mysql\n# Is_internal: true\n# Digest: 04a90564803373a6eb3f5a52e8794d25c4d28f6c18af7899b0b9f1bf1539ec72\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\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\nCREATE TABLE IF NOT EXISTS mysql.stats_top_n ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, value LONGBLOB, count BIGINT(64) UNSIGNED NOT NULL, INDEX tbl(table_id, is_index, hist_id) );"] [2024/05/06 16:36:00.345 +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:36:00.432 +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:36:00.366 +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:36:00.478 +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:36:00.366 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:00.664 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 55, 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:36:00.366 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:00.741 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=20] [neededSchemaVersion=21] ["start time"=2.061523ms] [phyTblIDs="[42]"] [actionTypes="[8]"] [2024/05/06 16:36:00.769 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:00.769 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=43] [version=21] [2024/05/06 16:36:00.769 +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"=31.010929ms] [job="ID:43, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:42, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:00.366 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:00.832 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 55, 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:36:00.366 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:00.918 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=43] [2024/05/06 16:36:00.919 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:00.921 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.577654395\n# Parse_time: 0\n# Compile_time: 0.001786757\n# Rewrite_time: 0.000012011\n# Optimize_time: 0\n# Wait_TS: 0.000072846\n# DB: mysql\n# Is_internal: true\n# Digest: 3e05fb8977f83f4e32022552aded3680a039cddc4239c339119a655dc1cffdbb\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\nCREATE TABLE IF NOT EXISTS mysql.expr_pushdown_blacklist ( name CHAR(100) NOT NULL, store_type CHAR(100) NOT NULL DEFAULT 'tikv,tiflash,tidb', reason VARCHAR(200) );"] [2024/05/06 16:36:00.924 +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:36:00.976 +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:36:00.937 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:00.976 +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:36:00.937 +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:36:01.144 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 55, 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:36:00.937 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:01.381 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=21] [neededSchemaVersion=22] ["start time"=1.536322ms] [phyTblIDs="[44]"] [actionTypes="[8]"] [2024/05/06 16:36:01.419 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:01.419 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=45] [version=22] [2024/05/06 16:36:01.419 +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"=40.232335ms] [job="ID:45, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:44, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:00.937 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:01.486 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 55, 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:36:00.937 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:01.566 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=45] [2024/05/06 16:36:01.583 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:01.585 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.662232829\n# Parse_time: 0\n# Compile_time: 0.001265622\n# Rewrite_time: 0.000013585\n# Optimize_time: 0\n# Wait_TS: 0.0000859\n# DB: mysql\n# Is_internal: true\n# Digest: aee36d5dc7131e4b6e3321cc046ae8b5ec8156ec1ef82481df0b97b8c734325f\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\nCREATE TABLE IF NOT EXISTS mysql.opt_rule_blacklist ( name CHAR(100) NOT NULL );"] [2024/05/06 16:36:01.678 +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:36:01.776 +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:36:01.705 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:01.776 +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:36:01.705 +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:36:01.855 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 55, 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:36:01.705 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:02.038 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=22] [neededSchemaVersion=23] ["start time"=3.043406ms] [phyTblIDs="[46]"] [actionTypes="[8]"] [2024/05/06 16:36:02.075 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:02.075 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=47] [version=23] [2024/05/06 16:36:02.079 +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"=44.432219ms] [job="ID:47, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:46, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:01.705 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:02.228 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 55, 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:36:01.705 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:02.378 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=47] [2024/05/06 16:36:02.378 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:02.382 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.769533781\n# Parse_time: 0\n# Compile_time: 0.066282037\n# Rewrite_time: 0.000017643\n# Optimize_time: 0\n# Wait_TS: 0.000096006\n# DB: mysql\n# Is_internal: true\n# Digest: bd2a0d9809689d30e22f8d82b29b4ee110d16cda3353b77d74a1938afb746386\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\nCREATE TABLE IF NOT EXISTS mysql.stats_extended ( name varchar(32) NOT NULL, type tinyint(4) NOT NULL, table_id bigint(64) NOT NULL, column_ids varchar(32) NOT NULL, stats blob DEFAULT NULL, version bigint(64) unsigned NOT NULL, status tinyint(4) NOT NULL, PRIMARY KEY(name, table_id), KEY idx_1 (table_id, status, version), KEY idx_2 (status, version) );"] [2024/05/06 16:36:02.389 +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:36:02.466 +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:36:02.403 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:02.466 +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:36:02.403 +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:36:02.555 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 55, 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:36:02.403 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:02.707 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=23] [neededSchemaVersion=24] ["start time"=2.631108ms] [phyTblIDs="[48]"] [actionTypes="[8]"] [2024/05/06 16:36:02.769 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:02.769 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=49] [version=24] [2024/05/06 16:36:02.769 +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"=66.294638ms] [job="ID:49, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:48, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:02.403 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:02.861 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 55, 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:36:02.403 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:02.979 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=49] [2024/05/06 16:36:02.979 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:02.981 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.593426972\n# Parse_time: 0\n# Compile_time: 0.002271912\n# Rewrite_time: 0.000012641\n# Optimize_time: 0\n# Wait_TS: 0.000088008\n# DB: mysql\n# Is_internal: true\n# Digest: f72fffa4e6072164db3e01e2e29568b0b93c5045737047be527343b1737b0882\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\nCREATE TABLE IF NOT EXISTS mysql.schema_index_usage ( TABLE_ID bigint(64), INDEX_ID bigint(21), QUERY_COUNT bigint(64), ROWS_SELECTED bigint(64), LAST_USED_AT timestamp, PRIMARY KEY(TABLE_ID, INDEX_ID) );"] [2024/05/06 16:36:02.986 +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:36:03.086 +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:36:03.008 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:03.086 +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:36:03.008 +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:36:03.205 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 55, 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:36:03.008 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:03.364 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=24] [neededSchemaVersion=25] ["start time"=2.251568ms] [phyTblIDs="[50]"] [actionTypes="[8]"] [2024/05/06 16:36:03.419 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:03.419 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=51] [version=25] [2024/05/06 16:36:03.421 +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"=60.669831ms] [job="ID:51, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:50, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:03.008 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:03.484 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 55, 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:36:03.008 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:03.572 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=51] [2024/05/06 16:36:03.573 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:03.574 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.590692775\n# Parse_time: 0\n# Compile_time: 0.002149778\n# Rewrite_time: 0.000013633\n# Optimize_time: 0\n# Wait_TS: 0.000091407\n# DB: mysql\n# Is_internal: true\n# Digest: 27ef2533f9d97f96c8c86a69a0de51aad04499856acd05fe4a4b93fb5b6043d0\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\nCREATE TABLE IF NOT EXISTS mysql.stats_fm_sketch ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, value LONGBLOB, INDEX tbl(table_id, is_index, hist_id) );"] [2024/05/06 16:36:03.609 +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:36:03.699 +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:36:03.641 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:03.699 +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:36:03.641 +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:36:03.784 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 55, 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:36:03.641 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:03.964 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=25] [neededSchemaVersion=26] ["start time"=2.400513ms] [phyTblIDs="[52]"] [actionTypes="[8]"] [2024/05/06 16:36:04.019 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:04.019 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=53] [version=26] [2024/05/06 16:36:04.021 +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"=60.614123ms] [job="ID:53, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:52, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:03.641 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:04.090 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 55, 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:36:03.641 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:04.158 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=53] [2024/05/06 16:36:04.158 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:04.160 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.573649524\n# Parse_time: 0\n# Compile_time: 0.022537327\n# Rewrite_time: 0.000013142\n# Optimize_time: 0\n# Wait_TS: 0.000092352\n# DB: mysql\n# Is_internal: true\n# Digest: 79c6e54229df7b01d20ffaf8ac1077aa9ef39e604df30d5ce852dd7049cc3ddd\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\nCREATE TABLE IF NOT EXISTS mysql.global_grants ( USER char(32) NOT NULL DEFAULT '', HOST char(255) NOT NULL DEFAULT '', PRIV char(32) NOT NULL DEFAULT '', WITH_GRANT_OPTION enum('N','Y') NOT NULL DEFAULT 'N', PRIMARY KEY (USER,HOST,PRIV) );"] [2024/05/06 16:36:04.174 +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:36:04.246 +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:36:04.19 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:04.246 +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:36:04.19 +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:36:04.413 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 55, 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:36:04.19 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:04.562 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=26] [neededSchemaVersion=27] ["start time"=1.866123ms] [phyTblIDs="[54]"] [actionTypes="[8]"] [2024/05/06 16:36:04.619 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:04.619 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=55] [version=27] [2024/05/06 16:36:04.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=27] ["take time"=60.081112ms] [job="ID:55, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:54, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:04.19 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:04.698 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 55, 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:36:04.19 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:04.862 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=55] [2024/05/06 16:36:04.862 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:04.864 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.694689216\n# Parse_time: 0\n# Compile_time: 0.004704055\n# Rewrite_time: 0.000019755\n# Optimize_time: 0\n# Wait_TS: 0.000106608\n# DB: mysql\n# Is_internal: true\n# Digest: 08f858a5bd3a1fd5dfd809dd4b9d6c72db69f874b06ad0e91987f9e89a5cf89a\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\nCREATE TABLE IF NOT EXISTS mysql.capture_plan_baselines_blacklist ( id bigint(64) auto_increment, filter_type varchar(32) NOT NULL COMMENT \"type of the filter, only db, table and frequency supported now\", filter_value varchar(32) NOT NULL, key idx(filter_type), primary key(id) );"] [2024/05/06 16:36:04.892 +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:36:05.007 +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:36:04.915 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:05.007 +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:36:04.915 +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:36:05.123 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 55, 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:36:04.915 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:05.239 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=27] [neededSchemaVersion=28] ["start time"=2.289523ms] [phyTblIDs="[56]"] [actionTypes="[8]"] [2024/05/06 16:36:05.273 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:05.273 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=57] [version=28] [2024/05/06 16:36:05.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=28] ["take time"=37.896833ms] [job="ID:57, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:56, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:04.915 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:05.335 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 55, 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:36:04.915 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:05.451 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=57] [2024/05/06 16:36:05.451 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:05.453 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.565098268\n# Parse_time: 0\n# Compile_time: 0.004777354\n# Rewrite_time: 0.000018871\n# Optimize_time: 0\n# Wait_TS: 0.000093867\n# DB: mysql\n# Is_internal: true\n# Digest: 3a5634ff31bd7d32849c5404b7ffc419c7a7074307b815e5369eb6ca363cbcd0\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\nCREATE TABLE IF NOT EXISTS mysql.column_stats_usage ( table_id BIGINT(64) NOT NULL, column_id BIGINT(64) NOT NULL, last_used_at TIMESTAMP, last_analyzed_at TIMESTAMP, PRIMARY KEY (table_id, column_id) CLUSTERED );"] [2024/05/06 16:36:05.473 +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:36:05.555 +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:36:05.489 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:05.555 +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:36:05.489 +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:36:05.699 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 55, 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:36:05.489 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:05.782 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=28] [neededSchemaVersion=29] ["start time"=2.099413ms] [phyTblIDs="[58]"] [actionTypes="[8]"] [2024/05/06 16:36:05.819 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:05.820 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=59] [version=29] [2024/05/06 16:36:05.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=29] ["take time"=46.621604ms] [job="ID:59, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:58, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:05.489 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:05.887 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 55, 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:36:05.489 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:05.984 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=59] [2024/05/06 16:36:05.985 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:05.986 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.5163545\n# Parse_time: 0\n# Compile_time: 0.002753837\n# Rewrite_time: 0.000012172\n# Optimize_time: 0\n# Wait_TS: 0.000088626\n# DB: mysql\n# Is_internal: true\n# Digest: d5bebde055ca14bff3e131e086a86c4095b9d04ea6fc326b4c2f16ffd61fbd2d\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\nCREATE TABLE IF NOT EXISTS mysql.table_cache_meta ( tid bigint(11) NOT NULL DEFAULT 0, lock_type enum('NONE','READ', 'INTEND', 'WRITE') NOT NULL DEFAULT 'NONE', lease bigint(20) NOT NULL DEFAULT 0, oldReadLease bigint(20) NOT NULL DEFAULT 0, PRIMARY KEY (tid) );"] [2024/05/06 16:36:06.031 +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:36:06.033 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(19372) to MEDIUMBLOB"] [2024/05/06 16:36:06.123 +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:36:06.046 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:06.123 +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:36:06.046 +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:36:06.241 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 55, 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:36:06.046 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:06.361 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=29] [neededSchemaVersion=30] ["start time"=2.471762ms] [phyTblIDs="[60]"] [actionTypes="[8]"] [2024/05/06 16:36:06.421 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:06.422 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=61] [version=30] [2024/05/06 16:36:06.422 +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"=64.166454ms] [job="ID:61, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:60, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:06.046 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:06.482 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 55, 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:36:06.046 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:06.561 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=61] [2024/05/06 16:36:06.563 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:06.565 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.573072674\n# Parse_time: 0\n# Compile_time: 0.039237163\n# Rewrite_time: 0.000020006\n# Optimize_time: 0\n# Wait_TS: 0.000088285\n# DB: mysql\n# Is_internal: true\n# Digest: 987fcd9b9a604209ec1101d918419b993c42f84fe228e20aee2fcca2931ff93e\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\nCREATE TABLE IF NOT EXISTS mysql.analyze_options ( table_id BIGINT(64) NOT NULL, sample_num BIGINT(64) NOT NULL DEFAULT 0, sample_rate DOUBLE NOT NULL DEFAULT -1, buckets BIGINT(64) NOT NULL DEFAULT 0, topn BIGINT(64) NOT NULL DEFAULT -1, column_choice enum('DEFAULT','ALL','PREDICATE','LIST') NOT NULL DEFAULT 'DEFAULT', column_ids TEXT(19372), PRIMARY KEY (table_id) CLUSTERED );"] [2024/05/06 16:36:06.599 +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:36:06.732 +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:36:06.616 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:06.733 +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:36:06.616 +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:36:06.836 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 55, 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:36:06.616 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:07.035 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=30] [neededSchemaVersion=31] ["start time"=2.936964ms] [phyTblIDs="[62]"] [actionTypes="[8]"] [2024/05/06 16:36:07.077 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:07.078 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=63] [version=31] [2024/05/06 16:36:07.078 +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"=46.625747ms] [job="ID:63, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:62, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:06.616 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:07.364 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 55, 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:36:06.616 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:07.550 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=63] [2024/05/06 16:36:07.551 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:07.553 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.956425439\n# Parse_time: 0\n# Compile_time: 0.003264961\n# Rewrite_time: 0.000013221\n# Optimize_time: 0\n# Wait_TS: 0.000089342\n# DB: mysql\n# Is_internal: true\n# Digest: 11757f6de6b3d2a64e92f14cd7b7f739729563ede3b0139d016148eba0b27ebf\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\nCREATE TABLE IF NOT EXISTS mysql.stats_history ( table_id bigint(64) NOT NULL, stats_data longblob NOT NULL, seq_no bigint(64) NOT NULL comment 'sequence number of the gzipped data slice', version bigint(64) NOT NULL comment 'stats version which corresponding to stats:version in EXPLAIN', create_time datetime(6) NOT NULL, UNIQUE KEY table_version_seq (table_id, version, seq_no), KEY table_create_time (table_id, create_time, seq_no) );"] [2024/05/06 16:36:07.584 +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:36:07.696 +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:36:07.603 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:07.697 +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:36:07.603 +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:36:07.765 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 55, 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:36:07.603 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:07.896 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=31] [neededSchemaVersion=32] ["start time"=2.91858ms] [phyTblIDs="[64]"] [actionTypes="[8]"] [2024/05/06 16:36:07.919 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:07.919 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=65] [version=32] [2024/05/06 16:36:07.921 +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"=28.446318ms] [job="ID:65, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:64, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:07.603 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:08.032 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 55, 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:36:07.603 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:08.162 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=65] [2024/05/06 16:36:08.163 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:08.164 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.584875292\n# Parse_time: 0\n# Compile_time: 0.004399839\n# Rewrite_time: 0.000012654\n# Optimize_time: 0\n# Wait_TS: 0.000098693\n# DB: mysql\n# Is_internal: true\n# Digest: ebccd6f5d49fb0fcff4d7dc20bb3ae798d172a92ba5f6709445c980166f7e32f\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\nCREATE TABLE IF NOT EXISTS mysql.stats_meta_history ( table_id bigint(64) NOT NULL, modify_count bigint(64) NOT NULL, count bigint(64) NOT NULL, version bigint(64) NOT NULL comment 'stats version which corresponding to stats:version in EXPLAIN', create_time datetime(6) NOT NULL, UNIQUE KEY table_version (table_id, version), KEY table_create_time (table_id, create_time) );"] [2024/05/06 16:36:08.184 +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:36:08.354 +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:36:08.207 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:08.354 +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:36:08.207 +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:36:08.440 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 55, 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:36:08.207 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:08.750 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=32] [neededSchemaVersion=33] ["start time"=4.287802ms] [phyTblIDs="[66]"] [actionTypes="[8]"] [2024/05/06 16:36:08.820 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:08.834 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=67] [version=33] [2024/05/06 16:36:08.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=33] ["take time"=90.363801ms] [job="ID:67, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:66, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:08.207 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:08.935 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 55, 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:36:08.207 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:09.242 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=67] [2024/05/06 16:36:09.251 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:09.253 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 1.079750395\n# Parse_time: 0\n# Compile_time: 0.011418534\n# Rewrite_time: 0.000016523\n# Optimize_time: 0\n# Wait_TS: 0.000091612\n# DB: mysql\n# Is_internal: true\n# Digest: bfb9a3ff60c3c60c054a207c0a0db06c87e29edbe94005d8d5c89fe484f4f90a\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\nCREATE TABLE IF NOT EXISTS mysql.analyze_jobs ( id BIGINT(64) UNSIGNED NOT NULL AUTO_INCREMENT, update_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, table_schema CHAR(64) NOT NULL DEFAULT '', table_name CHAR(64) NOT NULL DEFAULT '', partition_name CHAR(64) NOT NULL DEFAULT '', job_info TEXT NOT NULL, processed_rows BIGINT(64) UNSIGNED NOT NULL DEFAULT 0, start_time TIMESTAMP, end_time TIMESTAMP, state ENUM('pending', 'running', 'finished', 'failed') NOT NULL, fail_reason TEXT, instance VARCHAR(512) NOT NULL comment 'address of the TiDB instance executing the analyze job', process_id BIGINT(64) UNSIGNED comment 'ID of the process executing the analyze job', PRIMARY KEY (id), KEY (update_time) );"] [2024/05/06 16:36:09.259 +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:36:09.379 +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:36:09.334 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:09.379 +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:36:09.334 +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:36:09.489 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 55, 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:36:09.334 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:09.611 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=33] [neededSchemaVersion=34] ["start time"=1.722865ms] [phyTblIDs="[68]"] [actionTypes="[8]"] [2024/05/06 16:36:09.669 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:09.669 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=69] [version=34] [2024/05/06 16:36:09.672 +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"=63.072114ms] [job="ID:69, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:68, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:09.334 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:09.730 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 55, 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:36:09.334 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:09.830 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=69] [2024/05/06 16:36:09.830 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:09.832 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.573426385\n# Parse_time: 0\n# Compile_time: 0.001423843\n# Rewrite_time: 0.00001288\n# Optimize_time: 0\n# Wait_TS: 0.000093632\n# DB: mysql\n# Is_internal: true\n# Digest: 85d0480e8afeca7d94d07ca1a681df6c7f89f1fda753ceb6e02b51caf3714c1c\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\nCREATE TABLE IF NOT EXISTS mysql.advisory_locks ( lock_name VARCHAR(64) NOT NULL PRIMARY KEY );"] [2024/05/06 16:36:10.008 +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:36:09.9 +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:36:10.008 +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:36:09.9 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:10.198 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 55, 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:36:09.9 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:10.466 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=34] [neededSchemaVersion=35] ["start time"=2.732321ms] [phyTblIDs="[70]"] [actionTypes="[2097152]"] [2024/05/06 16:36:10.519 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:10.519 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=71] [version=35] [2024/05/06 16:36:10.519 +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"=56.812074ms] [job="ID:71, Type:create view, State:done, SchemaState:public, SchemaID:1, TableID:70, RowCount:0, ArgLen:3, start time: 2024-05-06 16:36:09.9 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:10.574 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 55, 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:36:09.9 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:10.706 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=71] [2024/05/06 16:36:10.707 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:10.708 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.866320995\n# Parse_time: 0\n# Compile_time: 0.025486847\n# Rewrite_time: 0.009525725\n# Optimize_time: 0\n# Wait_TS: 0.000157951\n# DB: mysql\n# Is_internal: true\n# Digest: 812c81f344f5d0c8b8aedcb68ff1dca865b59104853273f7e66b8abff5429992\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\nCREATE OR REPLACE VIEW mysql.tidb_mdl_view as ( select 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 );"] [2024/05/06 16:36:10.737 +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:36:10.831 +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:36:10.752 +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:36:10.832 +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:36:10.752 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:10.932 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 55, 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:36:10.752 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:11.110 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=35] [neededSchemaVersion=36] ["start time"=2.643667ms] [phyTblIDs="[72]"] [actionTypes="[8]"] [2024/05/06 16:36:11.169 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:11.169 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=73] [version=36] [2024/05/06 16:36:11.169 +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"=62.308567ms] [job="ID:73, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:72, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:10.752 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:11.232 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 55, 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:36:10.752 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:11.335 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=73] [2024/05/06 16:36:11.335 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:11.337 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.606710135\n# Parse_time: 0\n# Compile_time: 0.007393733\n# Rewrite_time: 0.000013508\n# Optimize_time: 0\n# Wait_TS: 0.000078018\n# DB: mysql\n# Is_internal: true\n# Digest: 3d2f349b1c68ee2b30e34bad8bb3838af6c40d7a26072b2d29d801d7fedbac48\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\nCREATE TABLE IF NOT EXISTS mysql.plan_replayer_status ( sql_digest VARCHAR(128), plan_digest VARCHAR(128), origin_sql TEXT, token VARCHAR(128), update_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, fail_reason TEXT, instance VARCHAR(512) NOT NULL comment 'address of the TiDB instance executing the plan replayer job');"] [2024/05/06 16:36:11.346 +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:36:11.399 +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:36:11.36 +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:36:11.418 +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:36:11.36 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:11.470 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 55, 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:36:11.36 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:11.668 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=36] [neededSchemaVersion=37] ["start time"=1.875469ms] [phyTblIDs="[74]"] [actionTypes="[8]"] [2024/05/06 16:36:11.719 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:11.719 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=75] [version=37] [2024/05/06 16:36:11.720 +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"=54.208968ms] [job="ID:75, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:74, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:11.36 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:11.774 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 55, 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:36:11.36 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:11.908 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=75] [2024/05/06 16:36:11.908 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:11.910 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.566242518\n# Parse_time: 0\n# Compile_time: 0.002536826\n# Rewrite_time: 0.000013072\n# Optimize_time: 0\n# Wait_TS: 0.000087709\n# DB: mysql\n# Is_internal: true\n# Digest: 8d9754df14c826803fed84f1ae3eb8fc9729e76a793b6be6bf25967f1929d039\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\nCREATE TABLE IF NOT EXISTS mysql.plan_replayer_task ( sql_digest VARCHAR(128) NOT NULL, plan_digest VARCHAR(128) NOT NULL, update_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (sql_digest,plan_digest));"] [2024/05/06 16:36:11.920 +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:36:12.043 +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:36:11.959 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:12.043 +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:36:11.959 +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:36:12.163 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 55, 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:36:11.959 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:12.342 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=37] [neededSchemaVersion=38] ["start time"=2.127494ms] [phyTblIDs="[76]"] [actionTypes="[8]"] [2024/05/06 16:36:12.420 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:12.420 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=77] [version=38] [2024/05/06 16:36:12.422 +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"=82.72633ms] [job="ID:77, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:76, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:11.959 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:12.478 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 55, 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:36:11.959 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:12.613 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=77] [2024/05/06 16:36:12.613 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:12.615 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.698219032\n# Parse_time: 0\n# Compile_time: 0.003495396\n# Rewrite_time: 0.000013332\n# Optimize_time: 0\n# Wait_TS: 0.000079068\n# DB: mysql\n# Is_internal: true\n# Digest: b57fdc4b14aba5f29d915d04e5e4557f60a758fd65ec571368527cd45c6ef82a\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\nCREATE TABLE IF NOT EXISTS mysql.stats_table_locked( table_id bigint(64) NOT NULL, modify_count bigint(64) NOT NULL DEFAULT 0, count bigint(64) NOT NULL DEFAULT 0, version bigint(64) UNSIGNED NOT NULL DEFAULT 0, PRIMARY KEY (table_id));"] [2024/05/06 16:36:12.648 +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:36:12.799 +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:36:12.674 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:12.799 +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:36:12.674 +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:36:13.020 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 55, 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:36:12.674 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:13.888 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=38] [neededSchemaVersion=39] ["start time"=5.050133ms] [phyTblIDs="[78]"] [actionTypes="[8]"] [2024/05/06 16:36:13.920 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:13.920 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=79] [version=39] [2024/05/06 16:36:13.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=39] ["take time"=43.31291ms] [job="ID:79, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:78, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:12.674 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:14.063 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 55, 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:36:12.674 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:14.380 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=79] [2024/05/06 16:36:14.381 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:14.387 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 1.7443314\n# Parse_time: 0\n# Compile_time: 0.005614625\n# Rewrite_time: 0.000013203\n# Optimize_time: 0\n# Wait_TS: 0.000103364\n# DB: mysql\n# Is_internal: true\n# Digest: a30bd3c3a49070c554e65922e84c6b76e646842e3925a859fcde73941a7cb423\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\nCREATE TABLE IF NOT EXISTS mysql.tidb_ttl_table_status ( table_id bigint(64) PRIMARY KEY, parent_table_id bigint(64), table_statistics text DEFAULT NULL, last_job_id varchar(64) DEFAULT NULL, last_job_start_time timestamp NULL DEFAULT NULL, last_job_finish_time timestamp NULL DEFAULT NULL, last_job_ttl_expire timestamp NULL DEFAULT NULL, last_job_summary text DEFAULT NULL, current_job_id varchar(64) DEFAULT NULL, current_job_owner_id varchar(64) DEFAULT NULL, current_job_owner_addr varchar(256) DEFAULT NULL, current_job_owner_hb_time timestamp, current_job_start_time timestamp NULL DEFAULT NULL, current_job_ttl_expire timestamp NULL DEFAULT NULL, current_job_state text DEFAULT NULL, current_job_status varchar(64) DEFAULT NULL, current_job_status_update_time timestamp NULL DEFAULT NULL);"] [2024/05/06 16:36:15.228 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 449572916269154304\n# Query_time: 0.551687734\n# Parse_time: 0\n# Compile_time: 0.260779899\n# Rewrite_time: 0.007648501\n# Optimize_time: 0\n# Wait_TS: 0.00009963\n# DB: mysql\n# Is_internal: true\n# Digest: ca2019e08a331284bd0c64be228a0537fcf9f5983e95d94b67ef42dcb8f54385\n# Num_cop_tasks: 0\n# Mem_max: 353081\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: true\n# IsSyncStatsFailed: false\n# Plan: tidb_decode_plan('oAPoMAkyN18xCTAJMAlOL0EJMAl0aW1lOjI0OS4zbXMsIGxvb3BzOjEsIHByZXBhcmU6IHt0b3RhbDogMzYBIExhdXRvX2lkX2FsbG9jYXRvcjogewUMZF9jbnQ6IDEsIEdldDp7bnVtX3JwYzo0LCB0AT8AXwVmsDQyNC4ywrVzfSwgY29tbWl0X3R4bjoge3ByZXdyaXRlOjQ1McK1cywgZ2V0XxEiEHM6MjEuCRcJEww6NTU0DREcc2xvd2VzdF8RQQV0BCB7BXNoOiAwLjAwMHMsIHJlZ2lvbl9pZDogMiwgc3RvAdcFBwgxLCAZjBhwcmltYXJ51kQADWQYbnVtOjEsIAXODF9rZXklSwkOmGJ5dGU6MzJ9fX0sIGluc2VydDoyMTMuM21zCTk2LjggS0IJTi9BCg==')\n# Binary_plan: tidb_decode_binary_plan('rAPwWwqnAwoISW5zZXJ0XzE4AUABUgNOL0FaFXRpbWU6MjQ5LjNtcywgbG9vcHM6MWLrAnByZXBhcmU6IHt0b3RhbDogMzZtcywgYXV0b19pZF9hbGxvY2F0b3I6IHthAQxkX2NudDogMSwgR2V0OntudW1fcnBjOjQsIHQBPwBfBWewNDI0LjLCtXN9LCBjb21taXRfdHhuOiB7cHJld3JpdGU6NDUxwrVzLCBnZXRfESIQczoyMS4JFwkTDDo1NTQNERxzbG93ZXN0XxFBBXQEIHsFc2g6IDAuMDAwcywgcmVnaW9uX2lkOiAyLCBzdG8B1wUHCDEsIBmMGHByaW1hcnnWRAANZBhudW06MSwgBc4QX2tleXMZDqhieXRlOjMyfX19LCBpbnNlcnQ6MjEzLjNtc3C5hgZ4////////////ARgB')\nINSERT HIGH_PRIORITY INTO mysql.GLOBAL_VARIABLES VALUES (\"innodb_ft_user_stopword_table\", \"\"), (\"tidb_window_concurrency\", \"-1\"), (\"innodb_online_alter_log_max_size\", \"134217728\"), (\"tidb_enable_concurrent_ddl\", \"ON\"), (\"tidb_ignore_prepared_cache_close_stmt\", \"OFF\"), (\"log_timestamps\", \"\"), (\"tidb_evolve_plan_task_end_time\", \"23:59 +0000\"), (\"tidb_capture_plan_baselines\", \"OFF\"), (\"default_week_format\", \"0\"), (\"innodb_file_format_max\", \"Antelope\"), (\"keep_files_on_create\", \"OFF\"), (\"validate_password.dictionary\", \"\"), (\"innodb_autoextend_increment\", \"64\"), (\"rpl_stop_slave_timeout\", \"31536000\"), (\"log_syslog_include_pid\", \"\"), (\"tidb_ddl_error_count_limit\", \"512\"), (\"log_backward_compatible_user_definitions\", \"\"), (\"tidb_store_limit\", \"0\"), (\"ndb_eventbuffer_max_alloc\", \"\"), (\"rpl_semi_sync_master_wait_no_slave\", \"ON\"), (\"rpl_semi_sync_master_wait_point\", \"AFTER_SYNC\"), (\"big_tables\", \"OFF\"), (\"innodb_buffer_pool_dump_at_shutdown\", \"0\"), (\"tidb_restricted_read_only\", \"OFF\"), (\"auto_increment_increment\", \"1\"), (\"tidb_opt_force_inline_cte\", \"OFF\"), (\"sql_mode\", \"ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION\"), (\"tidb_tmp_table_max_size\", \"67108864\"), (\"optimizer_prune_level\", \"1\"), (\"ndb_log_empty_epochs\", \"\"), (\"tidb_enable_external_ts_read\", \"OFF\"), (\"ndb_index_stat_enable\", \"\"), (\"innodb_checksum_algorithm\", \"innodb\"), (\"innodb_sync_spin_loops\", \"30\"), (\"character_set_client\", \"utf8mb4\"), (\"sql_buffer_result\", \"OFF\"), (\"tidb_ddl_reorg_batch_size\", \"256\"), (\"innodb_compression_pad_pct_max\", \"50\"), (\"innodb_status_output_locks\", \"OFF\"), (\"innodb_read_ahead_threshold\", \"56\"), (\"slave_compressed_protocol\", \"OFF\"), (\"delay_key_write\", \"ON\"), (\"slave_pending_jobs_size_max\", \"16777216\"), (\"innodb_undo_logs\", \"128\"), (\"sync_relay_log\", \"10000\"), (\"range_alloc_block_size\", \"4096\"), (\"tidb_allow_mpp\", \"ON\"), (\"query_cache_type\", \"OFF\"), (\"myisam_stats_method\", \"nulls_unequal\"), (\"tidb_memory_usage_alarm_keep_record_num\", \"5\"), (\"tidb_redact_log\", \"OFF\"), (\"rpl_semi_sync_master_enabled\", \"OFF\"), (\"default_tmp_storage_engine\", \"InnoDB\"), (\"tidb_default_string_match_selectivity\", \"0.8\"), (\"tidb_constraint_check_in_place\", \"OFF\"), (\"tidb_evolve_plan_task_max_time\", \"600\"), (\"tidb_enable_batch_dml\", \"OFF\"), (\"tidb_gc_life_time\", \"10m0s\"), (\"slave_exec_mode\", \"STRICT\"), (\"key_buffer_size\", \"8388608\"), (\"innodb_flush_log_at_timeout\", \"1\"), (\"foreign_key_checks\", \"OFF\"), (\"session_track_gtids\", \"OFF\"), (\"validate_password.number_count\", \"1\"), (\"innodb_rollback_segments\", \"128\"), (\"optimizer_trace_limit\", \"1\"), (\"tidb_opt_concurrency_factor\", \"3\"), (\"character_set_database\", \"utf8mb4\"), (\"tidb_index_join_batch_size\", \"25000\"), (\"sql_select_limit\", \"18446744073709551615\"), (\"innodb_support_xa\", \"1\"), (\"innodb_adaptive_hash_index\", \"ON\"), (\"rpl_semi_sync_slave_enabled\", \"OFF\"), (\"password_reuse_interval\", \"0\"), (\"innodb_adaptive_flushing_lwm\", \"10\"), (\"log_slow_slave_statements\", \"OFF\"), (\"tidb_enable_extended_stats\", \"OFF\"), (\"tidb_sysdate_is_now\", \"OFF\"), (\"innodb_ft_num_word_optimize\", \"2000\"), (\"tidb_opt_agg_push_down\", \"OFF\"), (\"password_history\", \"0\"), (\"init_slave\", \"\"), (\"tidb_opt_join_reorder_threshold\", \"0\"), (\"innodb_flush_neighbors\", \"1\"), (\"tidb_enable_tiflash_read_for_write_stmt\", \"OFF\"), (\"tidb_skip_isolation_level_check\", \"OFF\"), (\"innodb_ft_result_cache_limit\", \"2000000000\"), (\"tidb_max_auto_analyze_time\", \"43200\"), (\"tidb_max_tiflash_threads\", \"-1\"), (\"tidb_enable_noop_functions\", \"OFF\"), (\"innodb_thread_sleep_delay\", \"10000\"), (\"tidb_opt_correlation_exp_factor\", \"1\"), (\"tidb_init_chunk_size\", \"32\"), (\"tidb_enable_auto_analyze\", \"OFF\"), (\"tidb_opt_advanced_join_hint\", \"OFF\"), (\"tidb_persist_analyze_options\", \"ON\"), (\"character_set_results\", \"utf8mb4\"), (\"tidb_build_stats_concurrency\", \"4\"), (\"myisam_use_mmap\", \"OFF\"), (\"tidb_stmt_summary_max_stmt_count\", \"3000\"), (\"tidb_enable_index_merge_join\", \"OFF\"), (\"tidb_analyze_partition_concurrency\", \"1\"), (\"tidb_source_id\", \"1\"), (\"innodb_cmp_per_index_enabled\", \"OFF\"), (\"tidb_enable_new_c(len:21519);"] [2024/05/06 16:36:15.618 +08:00] [INFO] [bootstrap.go:529] ["bootstrap successful"] ["take time"=31.549494881s] [2024/05/06 16:36:15.642 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:36:15.642 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 64, tp add index"] ["take time"=21.636µs] [2024/05/06 16:36:15.642 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 65, tp add index"] ["take time"=27.388µs] [2024/05/06 16:36:15.643 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 56, tp add index"] ["take time"=17.702µs] [2024/05/06 16:36:15.643 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 57, tp add index"] ["take time"=15.916µs] [2024/05/06 16:36:15.643 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 58, tp add index"] ["take time"=14.508µs] [2024/05/06 16:36:15.643 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 59, tp add index"] ["take time"=17.767µs] [2024/05/06 16:36:15.643 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 60, tp add index"] ["take time"=19.984µs] [2024/05/06 16:36:15.643 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 61, tp add index"] ["take time"=15.66µs] [2024/05/06 16:36:15.643 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 62, tp add index"] ["take time"=15.957µs] [2024/05/06 16:36:15.643 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 63, tp add index"] ["take time"=15.844µs] [2024/05/06 16:36:15.643 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:36:15.643 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 55, tp general"] ["take time"=14.632µs] [2024/05/06 16:36:15.643 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 53, tp general"] ["take time"=5.862µs] [2024/05/06 16:36:15.645 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 54, tp add index"] ["take time"=1.611783ms] [2024/05/06 16:36:15.646 +08:00] [INFO] [delete_range.go:148] ["[ddl] closing delRange"] [2024/05/06 16:36:15.646 +08:00] [INFO] [session_pool.go:94] ["[ddl] closing sessionPool"] [2024/05/06 16:36:15.666 +08:00] [INFO] [ddl.go:833] ["[ddl] DDL closed"] [ID=48805229-4eaf-4afd-88a9-7154e5d2b974] ["take time"=23.714184ms] [2024/05/06 16:36:15.666 +08:00] [INFO] [ddl.go:657] ["[ddl] stop DDL"] [ID=48805229-4eaf-4afd-88a9-7154e5d2b974] [2024/05/06 16:36:15.668 +08:00] [INFO] [domain.go:628] ["globalConfigSyncerKeeper exited."] [2024/05/06 16:36:15.668 +08:00] [INFO] [domain.go:792] ["loadSchemaInLoop exited."] [2024/05/06 16:36:15.669 +08:00] [INFO] [domain.go:651] ["topologySyncerKeeper exited."] [2024/05/06 16:36:15.669 +08:00] [INFO] [domain.go:603] ["infoSyncerKeeper exited."] [2024/05/06 16:36:15.669 +08:00] [INFO] [domain.go:574] ["topNSlowQueryLoop exited."] [2024/05/06 16:36:15.670 +08:00] [INFO] [domain.go:920] ["domain closed"] ["take time"=27.766074ms] [2024/05/06 16:36:15.670 +08:00] [INFO] [tidb.go:77] ["new domain"] [store=a996a5ec-29a9-4879-bf18-1af962a9da23] ["ddl lease"=500ms] ["stats lease"=-1ns] ["index usage sync lease"=0s] [2024/05/06 16:36:15.685 +08:00] [INFO] [domain.go:1156] ["closestReplicaReadCheckLoop exited."] [2024/05/06 16:36:15.835 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=39] ["start time"=163.005449ms] [2024/05/06 16:36:15.841 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:36:15.841 +08:00] [INFO] [ddl.go:719] ["[ddl] start DDL"] [ID=b16ee4fc-819b-4335-937a-ac628bfcab29] [runWorker=true] [2024/05/06 16:36:15.842 +08:00] [INFO] [ddl.go:665] ["[ddl] start delRangeManager OK"] ["is a emulator"=true] [2024/05/06 16:36:15.842 +08:00] [INFO] [delete_range.go:158] ["[ddl] start delRange emulator"] [2024/05/06 16:36:15.843 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 66, tp general"] [2024/05/06 16:36:15.844 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 67, tp add index"] [2024/05/06 16:36:15.847 +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:36:15.848 +08:00] [INFO] [env.go:108] ["[ddl-ingest] the lightning sorted dir"] ["data path:"=/tmp/tidb/tmp_ddl-4000] [2024/05/06 16:36:15.848 +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:36:15.849 +08:00] [WARN] [domain.go:1120] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 16:36:15.894 +08:00] [WARN] [sysvar_cache.go:50] ["sysvar cache is empty, triggering rebuild"] [2024/05/06 16:36:16.300 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=7] [schemaVersion=39] [cur_db=test] [sql="drop table if exists t1,t2"] [user=] [2024/05/06 16:36:16.303 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=7] [schemaVersion=39] [cur_db=test] [sql="create table t1 (id int primary key, v int)"] [user=] [2024/05/06 16:36:16.348 +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:36:16.317 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:16.348 +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:36:16.317 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="create table t1 (id int primary key, v int)"] [2024/05/06 16:36:16.977 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 68, 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:36:16.317 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:17.051 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=39] [neededSchemaVersion=40] ["start time"=1.575262ms] [phyTblIDs="[80]"] [actionTypes="[8]"] [2024/05/06 16:36:17.104 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=81] [version=40] [2024/05/06 16:36:17.106 +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"=57.360252ms] [job="ID:81, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:80, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:16.317 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:17.192 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 68, 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:36:16.317 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:17.302 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=81] [2024/05/06 16:36:17.302 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:17.304 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Conn_ID: 7\n# Query_time: 1.00204373\n# Parse_time: 0.000950037\n# Compile_time: 0.000995779\n# Rewrite_time: 0.000012096\n# Optimize_time: 0.000479198\n# Wait_TS: 0.000076122\n# DB: test\n# Is_internal: false\n# Digest: 58adff4e53b4dc3a2102ff826681d219bcf79edb1d10a7d7eddd3da56fcd9ce6\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 t1 (id int primary key, v int);"] [2024/05/06 16:36:17.314 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=7] [schemaVersion=40] [cur_db=test] [sql="create table t2 (id int)"] [user=] [2024/05/06 16:36:17.439 +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:2, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:17.329 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:17.439 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:83, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:17.329 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="create table t2 (id int)"] [2024/05/06 16:36:17.622 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 68, tp general"] [job="ID:83, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:36:17.329 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:17.721 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=40] [neededSchemaVersion=41] ["start time"=1.355926ms] [phyTblIDs="[82]"] [actionTypes="[8]"] [2024/05/06 16:36:17.749 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=83] [version=41] [2024/05/06 16:36:17.751 +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"=33.107626ms] [job="ID:83, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:17.329 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:17.806 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 68, tp general"] [job="ID:83, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:36:17.329 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:17.848 +08:00] [INFO] [info.go:1114] [SetTiFlashGroupConfig] [2024/05/06 16:36:17.895 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=83] [2024/05/06 16:36:17.895 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:17.897 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Conn_ID: 7\n# Query_time: 0.584853533\n# Parse_time: 0.000594579\n# Compile_time: 0.00087862\n# Rewrite_time: 0.000013022\n# Optimize_time: 0.000479198\n# Wait_TS: 0.000086811\n# DB: test\n# Is_internal: false\n# Digest: 022ec70336ed50328c0e53dd0419219aeef85a72279ec430eea3ccf10d0811fe\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\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\ncreate table t2 (id int);"] [2024/05/06 16:36:17.899 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=7] [schemaVersion=41] [cur_db=test] [sql="create temporary table tmp (id int)"] [user=] [2024/05/06 16:36:17.961 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=9] [schemaVersion=41] [cur_db=test] [sql="alter table t2 add column(c1 int)"] [user=] [2024/05/06 16:36:18.010 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:85, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:36:17.986 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:18.011 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:85, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:36:17.986 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="alter table t2 add column(c1 int)"] [2024/05/06 16:36:18.094 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 68, tp general"] [job="ID:85, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:36:17.986 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:18.096 +08:00] [INFO] [column.go:133] ["[ddl] run add column job"] [job="ID:85, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:36:17.986 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [columnInfo="{\"id\":2,\"name\":{\"O\":\"c1\",\"L\":\"c1\"},\"offset\":1,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{},\"state\":0,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2}"] [2024/05/06 16:36:18.140 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=41] [neededSchemaVersion=42] ["start time"=1.63437ms] [phyTblIDs="[82]"] [actionTypes="[32]"] [2024/05/06 16:36:18.257 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=85] [version=42] [2024/05/06 16:36:18.260 +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"=125.842741ms] [job="ID:85, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:36:17.986 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:18.414 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 68, tp general"] [job="ID:85, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:36:17.986 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:18.466 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=42] [neededSchemaVersion=43] ["start time"=1.873346ms] [phyTblIDs="[82]"] [actionTypes="[32]"] [2024/05/06 16:36:18.499 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=85] [version=43] [2024/05/06 16:36:18.500 +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"=37.003114ms] [job="ID:85, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:36:17.986 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:18.569 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 68, tp general"] [job="ID:85, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:36:17.986 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:18.640 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=43] [neededSchemaVersion=44] ["start time"=1.642656ms] [phyTblIDs="[82]"] [actionTypes="[32]"] [2024/05/06 16:36:18.700 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=85] [version=44] [2024/05/06 16:36:18.703 +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"=66.035144ms] [job="ID:85, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:36:17.986 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:18.751 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 68, tp general"] [job="ID:85, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:36:17.986 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:18.921 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=44] [neededSchemaVersion=45] ["start time"=7.27284ms] [phyTblIDs="[82]"] [actionTypes="[32]"] [2024/05/06 16:36:19.001 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=85] [version=45] [2024/05/06 16:36:19.003 +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"=108.716075ms] [job="ID:85, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:36:17.986 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:19.175 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 68, tp general"] [job="ID:85, Type:add column, State:synced, SchemaState:public, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:36:17.986 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:19.307 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=85] [2024/05/06 16:36:19.307 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:19.310 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Conn_ID: 9\n# Query_time: 1.350175767\n# Parse_time: 0.00078572\n# Compile_time: 0.001177491\n# Rewrite_time: 0.00001854\n# Optimize_time: 0.000535335\n# Wait_TS: 0.000141606\n# DB: test\n# Is_internal: false\n# Digest: 177e330fc6e13ff4b1b9f51ae04b524c419feabb143557fdc6a5807ebb58aed3\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;\nalter table t2 add column(c1 int);"] [2024/05/06 16:36:19.317 +08:00] [WARN] [2pc.go:1900] ["schemaLeaseChecker is not set for this transaction"] [sessionID=8] [startTS=449572917559951360] [checkTS=449572917560475648] [2024/05/06 16:36:19.361 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:36:19.362 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 74, tp add index"] ["take time"=23.262µs] [2024/05/06 16:36:19.362 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 75, tp add index"] ["take time"=22.724µs] [2024/05/06 16:36:19.362 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 76, tp add index"] ["take time"=12.81µs] [2024/05/06 16:36:19.363 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 77, tp add index"] ["take time"=8.574µs] [2024/05/06 16:36:19.363 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 78, tp add index"] ["take time"=6.784µs] [2024/05/06 16:36:19.364 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 69, tp add index"] ["take time"=22.115µs] [2024/05/06 16:36:19.364 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 70, tp add index"] ["take time"=23.082µs] [2024/05/06 16:36:19.364 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 71, tp add index"] ["take time"=26.628µs] [2024/05/06 16:36:19.365 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 72, tp add index"] ["take time"=19.283µs] [2024/05/06 16:36:19.365 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 73, tp add index"] ["take time"=20.072µs] [2024/05/06 16:36:19.365 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:36:19.366 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 68, tp general"] ["take time"=7.913µs] [2024/05/06 16:36:19.366 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 66, tp general"] ["take time"=2.848µs] [2024/05/06 16:36:19.366 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 67, tp add index"] ["take time"=2.673µs] [2024/05/06 16:36:19.366 +08:00] [INFO] [delete_range.go:148] ["[ddl] closing delRange"] [2024/05/06 16:36:19.366 +08:00] [INFO] [session_pool.go:94] ["[ddl] closing sessionPool"] [2024/05/06 16:36:19.368 +08:00] [INFO] [ddl.go:833] ["[ddl] DDL closed"] [ID=b16ee4fc-819b-4335-937a-ac628bfcab29] ["take time"=23.990809ms] [2024/05/06 16:36:19.368 +08:00] [INFO] [ddl.go:657] ["[ddl] stop DDL"] [ID=b16ee4fc-819b-4335-937a-ac628bfcab29] [2024/05/06 16:36:19.369 +08:00] [INFO] [domain.go:1156] ["closestReplicaReadCheckLoop exited."] [2024/05/06 16:36:19.369 +08:00] [INFO] [domain.go:1525] ["globalBindHandleWorkerLoop exited."] [2024/05/06 16:36:19.369 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:36:19.369 +08:00] [INFO] [domain.go:792] ["loadSchemaInLoop exited."] [2024/05/06 16:36:19.369 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:36:19.369 +08:00] [INFO] [domain.go:574] ["topNSlowQueryLoop exited."] [2024/05/06 16:36:19.369 +08:00] [INFO] [domain.go:603] ["infoSyncerKeeper exited."] [2024/05/06 16:36:19.369 +08:00] [INFO] [domain.go:628] ["globalConfigSyncerKeeper exited."] [2024/05/06 16:36:19.369 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:36:19.369 +08:00] [INFO] [domain.go:1394] ["loadPrivilegeInLoop exited."] [2024/05/06 16:36:19.369 +08:00] [INFO] [domain.go:1444] ["LoadSysVarCacheLoop exited."] [2024/05/06 16:36:19.369 +08:00] [INFO] [domain.go:651] ["topologySyncerKeeper exited."] [2024/05/06 16:36:19.370 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:36:19.370 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:36:19.369 +08:00] [INFO] [domain.go:1748] ["dumpFileGcChecker exited."] [2024/05/06 16:36:19.370 +08:00] [INFO] [domain.go:1569] ["handleEvolvePlanTasksLoop exited."] [2024/05/06 16:36:19.376 +08:00] [INFO] [domain.go:920] ["domain closed"] ["take time"=31.849838ms] [2024/05/06 16:36:19.380 +08:00] [INFO] [db.go:567] ["Closing database"] [2024/05/06 16:36:19.381 +08:00] [INFO] [db.go:592] ["Memtable flushed"] [2024/05/06 16:36:19.381 +08:00] [INFO] [db.go:596] ["Compaction finished"] [2024/05/06 16:36:19.382 +08:00] [INFO] [db.go:615] ["BlobManager finished"] [2024/05/06 16:36:19.382 +08:00] [INFO] [db.go:619] ["ResourceManager finished"] [2024/05/06 16:36:19.382 +08:00] [INFO] [db.go:625] ["Waiting for closer"] --- PASS: TestTxnContextInRC (35.46s) === RUN TestTxnContextInOptimisticRetry [2024/05/06 16:36:19.403 +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:36:19.407 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:36:19.407 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:36:19.417 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:36:19.417 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:36:19.424 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:36:19.427 +08:00] [INFO] [tidb.go:77] ["new domain"] [store=37669506-02a2-4b71-a735-1d2f917eb245] ["ddl lease"=500ms] ["stats lease"=-1ns] ["index usage sync lease"=0s] [2024/05/06 16:36:19.428 +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\nsessiontxn/sessiontxn_test_test.setupTxnContextTest\n\tsessiontxn/txn_context_test.go:61\nsessiontxn/sessiontxn_test_test.TestTxnContextInOptimisticRetry\n\tsessiontxn/txn_context_test.go:362\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1446\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:36:19.469 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=0] ["start time"=40.731606ms] [2024/05/06 16:36:19.475 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:36:19.476 +08:00] [INFO] [ddl.go:719] ["[ddl] start DDL"] [ID=82a7a1e7-3c52-46a8-a65b-00787cedf380] [runWorker=true] [2024/05/06 16:36:19.477 +08:00] [INFO] [ddl.go:665] ["[ddl] start delRangeManager OK"] ["is a emulator"=true] [2024/05/06 16:36:19.477 +08:00] [INFO] [delete_range.go:158] ["[ddl] start delRange emulator"] [2024/05/06 16:36:19.478 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 79, tp general"] [2024/05/06 16:36:19.478 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 80, tp add index"] [2024/05/06 16:36:19.479 +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:36:19.480 +08:00] [INFO] [env.go:108] ["[ddl-ingest] the lightning sorted dir"] ["data path:"=/tmp/tidb/tmp_ddl-4000] [2024/05/06 16:36:19.480 +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:36:19.481 +08:00] [WARN] [domain.go:1120] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 16:36:19.488 +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:36:19.530 +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:36:19.515 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:19.531 +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:36:19.515 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE DATABASE IF NOT EXISTS test"] [2024/05/06 16:36:19.732 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:36:19.982 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:36:20.232 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:36:20.486 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:36:20.630 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 81, 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:36:19.515 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:20.741 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=1] ["start time"=59.49998ms] [2024/05/06 16:36:20.779 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:36:20.832 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:20.832 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=3] [version=1] [2024/05/06 16:36:20.832 +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"=151.237609ms] [job="ID:3, Type:create schema, State:done, SchemaState:public, SchemaID:2, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 16:36:19.515 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:20.885 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 81, 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:36:19.515 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:20.928 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=3] [2024/05/06 16:36:20.928 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:20.930 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 1.442475565\n# Parse_time: 0\n# Compile_time: 0.000725346\n# Rewrite_time: 0.000012463\n# Optimize_time: 0\n# Wait_TS: 0.000085129\n# DB: mysql\n# Is_internal: true\n# Digest: 0a22979ad136f741465cf206b13e5717b9758dda34f7cae5a7a925f91711d6a0\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 mysql;\nCREATE DATABASE IF NOT EXISTS test;"] [2024/05/06 16:36:20.932 +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:36:21.110 +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:36:21.431 +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:36:21.144 +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:36:21.435 +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:36:21.144 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:21.480 +08:00] [INFO] [info.go:1114] [SetTiFlashGroupConfig] [2024/05/06 16:36:21.516 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 81, 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:36:21.144 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:22.182 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=1] [neededSchemaVersion=2] ["start time"=25.189229ms] [phyTblIDs="[4]"] [actionTypes="[8]"] [2024/05/06 16:36:22.238 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:22.238 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=5] [version=2] [2024/05/06 16:36:22.240 +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"=84.815383ms] [job="ID:5, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:4, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:21.144 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:22.314 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 81, 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:36:21.144 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:22.653 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=5] [2024/05/06 16:36:22.654 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:22.656 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 1.643008775\n# Parse_time: 0\n# Compile_time: 0.097501812\n# Rewrite_time: 0.000015148\n# Optimize_time: 0\n# Wait_TS: 0.000090619\n# DB: mysql\n# Is_internal: true\n# Digest: 14c6b489558060bdbede877927034270db5af07c6621aa28f87eeaec8727e925\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\nCREATE TABLE IF NOT EXISTS mysql.user ( Host CHAR(255), User CHAR(32), authentication_string TEXT, plugin CHAR(64), Select_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Insert_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Update_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Delete_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Drop_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Process_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Grant_priv ENUM('N','Y') NOT NULL DEFAULT 'N', References_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Show_db_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Super_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_tmp_table_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Lock_tables_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Execute_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Show_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Index_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_user_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Event_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Repl_slave_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Repl_client_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Trigger_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_role_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Drop_role_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Account_locked ENUM('N','Y') NOT NULL DEFAULT 'N', Shutdown_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Reload_priv ENUM('N','Y') NOT NULL DEFAULT 'N', FILE_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Config_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_Tablespace_Priv ENUM('N','Y') NOT NULL DEFAULT 'N', Password_reuse_history smallint unsigned DEFAULT NULL, Password_reuse_time smallint unsigned DEFAULT NULL, User_attributes json, Token_issuer VARCHAR(255), Password_expired ENUM('N','Y') NOT NULL DEFAULT 'N', Password_last_changed TIMESTAMP DEFAULT CURRENT_TIMESTAMP(), Password_lifetime SMALLINT UNSIGNED DEFAULT NULL, PRIMARY KEY (Host, User));"] [2024/05/06 16:36:22.663 +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:36:22.723 +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:36:22.677 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:22.723 +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:36:22.677 +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:36:22.828 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 81, 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:36:22.677 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:22.927 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=2] [neededSchemaVersion=3] ["start time"=2.150592ms] [phyTblIDs="[6]"] [actionTypes="[8]"] [2024/05/06 16:36:22.982 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:22.982 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=7] [version=3] [2024/05/06 16:36:22.986 +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"=61.800642ms] [job="ID:7, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:6, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:22.677 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:23.121 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 81, 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:36:22.677 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:23.237 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=7] [2024/05/06 16:36:23.256 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:23.258 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.597363509\n# Parse_time: 0\n# Compile_time: 0.002974313\n# Rewrite_time: 0.000013647\n# Optimize_time: 0\n# Wait_TS: 0.0000897\n# DB: mysql\n# Is_internal: true\n# Digest: eeb59bc0d98f65a2a5aef8eaa99596260e746b00eed183baf856558ef03533ac\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\nCREATE TABLE IF NOT EXISTS mysql.password_history ( Host char(255) NOT NULL DEFAULT '', User char(32) NOT NULL DEFAULT '', Password_timestamp timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), Password text, PRIMARY KEY (Host,User,Password_timestamp ) ) COMMENT='Password history for user accounts' ;"] [2024/05/06 16:36:23.262 +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:36:23.321 +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:36:23.279 +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:36:23.323 +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:36:23.279 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:23.388 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 81, 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:36:23.279 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:23.528 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=3] [neededSchemaVersion=4] ["start time"=1.90594ms] [phyTblIDs="[8]"] [actionTypes="[8]"] [2024/05/06 16:36:23.581 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:23.581 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=9] [version=4] [2024/05/06 16:36:23.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=4] ["take time"=56.990468ms] [job="ID:9, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:8, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:23.279 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:23.655 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 81, 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:36:23.279 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:23.804 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=9] [2024/05/06 16:36:23.808 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:23.809 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.548832775\n# Parse_time: 0\n# Compile_time: 0.002050882\n# Rewrite_time: 0.000012935\n# Optimize_time: 0\n# Wait_TS: 0.000093875\n# DB: mysql\n# Is_internal: true\n# Digest: 3bc9b46cf9e300a8d240915cf47216424544ed9f992c07151fba2e2cadc41632\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\nCREATE 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:36:23.829 +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:36:23.963 +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:36:23.848 +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:36:23.978 +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:36:23.848 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:24.054 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 81, 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:36:23.848 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:24.355 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=4] [neededSchemaVersion=5] ["start time"=6.033327ms] [phyTblIDs="[10]"] [actionTypes="[8]"] [2024/05/06 16:36:24.381 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:24.381 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=11] [version=5] [2024/05/06 16:36:24.382 +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"=34.34513ms] [job="ID:11, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:10, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:23.848 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:24.448 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 81, 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:36:23.848 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:24.652 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=11] [2024/05/06 16:36:24.653 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:24.657 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.83573375\n# Parse_time: 0\n# Compile_time: 0.008400057\n# Rewrite_time: 0.000013826\n# Optimize_time: 0\n# Wait_TS: 0.000431722\n# DB: mysql\n# Is_internal: true\n# Digest: aeaf612801484f0311f850d36f60f29e6d904828682c1f3bb7307dff25ca3a15\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\nCREATE TABLE IF NOT EXISTS mysql.db ( Host CHAR(255), DB CHAR(64), User CHAR(32), Select_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Insert_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Update_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Delete_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Drop_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Grant_priv ENUM('N','Y') NOT NULL DEFAULT 'N', References_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Index_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_tmp_table_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Lock_tables_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Show_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Execute_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Event_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Trigger_priv ENUM('N','Y') NOT NULL DEFAULT 'N', PRIMARY KEY (Host, DB, User));"] [2024/05/06 16:36:24.674 +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:36:24.853 +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:36:24.688 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:24.853 +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:36:24.688 +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:36:24.980 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 81, 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:36:24.688 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:25.180 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=5] [neededSchemaVersion=6] ["start time"=3.136468ms] [phyTblIDs="[12]"] [actionTypes="[8]"] [2024/05/06 16:36:25.231 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:25.231 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=13] [version=6] [2024/05/06 16:36:25.231 +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"=55.132478ms] [job="ID:13, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:12, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:24.688 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:25.296 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 81, 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:36:24.688 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:25.547 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=13] [2024/05/06 16:36:25.551 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:25.555 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.885016538\n# Parse_time: 0\n# Compile_time: 0.003429064\n# Rewrite_time: 0.000021932\n# Optimize_time: 0\n# Wait_TS: 0.000096082\n# DB: mysql\n# Is_internal: true\n# Digest: e8b37dad6cc7f05ee1f0be61455667495826928a93ddd09b94e02fbaed113955\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\nCREATE TABLE IF NOT EXISTS mysql.tables_priv ( Host CHAR(255), DB CHAR(64), User CHAR(32), Table_name CHAR(64), Grantor CHAR(77), Timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP, Table_priv SET('Select','Insert','Update','Delete','Create','Drop','Grant','Index','Alter','Create View','Show View','Trigger','References'), Column_priv SET('Select','Insert','Update','References'), PRIMARY KEY (Host, DB, User, Table_name));"] [2024/05/06 16:36:25.582 +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:36:25.729 +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:36:25.6 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:25.729 +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:36:25.6 +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:36:25.834 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 81, 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:36:25.6 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:25.985 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=6] [neededSchemaVersion=7] ["start time"=4.430414ms] [phyTblIDs="[14]"] [actionTypes="[8]"] [2024/05/06 16:36:26.032 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:26.032 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=15] [version=7] [2024/05/06 16:36:26.032 +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"=52.387405ms] [job="ID:15, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:14, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:25.6 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:26.085 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 81, 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:36:25.6 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:26.175 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=15] [2024/05/06 16:36:26.175 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:26.177 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.609223987\n# Parse_time: 0\n# Compile_time: 0.01422595\n# Rewrite_time: 0.000013765\n# Optimize_time: 0\n# Wait_TS: 0.000107157\n# DB: mysql\n# Is_internal: true\n# Digest: a19edbb3caff8cc57619278ab6eb5f791d7a821432309abe7184d0a7bca66b4d\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\nCREATE TABLE IF NOT EXISTS mysql.columns_priv( Host CHAR(255), DB CHAR(64), User CHAR(32), Table_name CHAR(64), Column_name CHAR(64), Timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP, Column_priv SET('Select','Insert','Update','References'), PRIMARY KEY (Host, DB, User, Table_name, Column_name));"] [2024/05/06 16:36:26.181 +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:36:26.235 +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:36:26.2 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:26.235 +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:36:26.2 +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:36:26.299 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 81, 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:36:26.2 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:26.378 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=7] [neededSchemaVersion=8] ["start time"=1.725789ms] [phyTblIDs="[16]"] [actionTypes="[8]"] [2024/05/06 16:36:26.434 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:26.434 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=17] [version=8] [2024/05/06 16:36:26.436 +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"=60.578259ms] [job="ID:17, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:16, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:26.2 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:26.517 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 81, 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:36:26.2 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:26.664 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=17] [2024/05/06 16:36:26.664 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:26.666 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.486972328\n# Parse_time: 0\n# Compile_time: 0.001741323\n# Rewrite_time: 0.000011902\n# Optimize_time: 0\n# Wait_TS: 0.00009171\n# DB: mysql\n# Is_internal: true\n# Digest: 55c1ea537145da60f32339dc7a3b69a3859f3f428fbae4e4023eb71dca836f47\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\nCREATE TABLE IF NOT EXISTS mysql.GLOBAL_VARIABLES( VARIABLE_NAME VARCHAR(64) NOT NULL PRIMARY KEY, VARIABLE_VALUE VARCHAR(1024) DEFAULT NULL);"] [2024/05/06 16:36:26.677 +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:36:26.728 +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:36:26.691 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:26.728 +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:36:26.691 +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:36:26.884 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 81, 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:36:26.691 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:27.006 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=8] [neededSchemaVersion=9] ["start time"=2.178611ms] [phyTblIDs="[18]"] [actionTypes="[8]"] [2024/05/06 16:36:27.036 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:27.036 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=19] [version=9] [2024/05/06 16:36:27.038 +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"=34.883975ms] [job="ID:19, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:18, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:26.691 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:27.093 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 81, 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:36:26.691 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:27.159 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=19] [2024/05/06 16:36:27.159 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:27.161 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.491877071\n# Parse_time: 0\n# Compile_time: 0.007538297\n# Rewrite_time: 0.000011902\n# Optimize_time: 0\n# Wait_TS: 0.000174611\n# DB: mysql\n# Is_internal: true\n# Digest: 0cc4a9cf54472ccff7c4fb8d7c6e34e6bd96af08b450ad4c9677473f1f517cf2\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\nCREATE TABLE IF NOT EXISTS mysql.tidb( VARIABLE_NAME VARCHAR(64) NOT NULL PRIMARY KEY, VARIABLE_VALUE VARCHAR(1024) DEFAULT NULL, COMMENT VARCHAR(1024));"] [2024/05/06 16:36:27.172 +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:36:27.285 +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:36:27.189 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:27.285 +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:36:27.189 +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:36:27.405 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 81, 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:36:27.189 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:27.553 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=9] [neededSchemaVersion=10] ["start time"=2.510382ms] [phyTblIDs="[20]"] [actionTypes="[8]"] [2024/05/06 16:36:27.581 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:27.581 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=21] [version=10] [2024/05/06 16:36:27.582 +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.414665ms] [job="ID:21, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:20, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:27.189 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:27.642 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 81, 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:36:27.189 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:27.725 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=21] [2024/05/06 16:36:27.726 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:27.728 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.561158354\n# Parse_time: 0\n# Compile_time: 0.005738609\n# Rewrite_time: 0.000012116\n# Optimize_time: 0\n# Wait_TS: 0.000085766\n# DB: mysql\n# Is_internal: true\n# Digest: ca851971407336dad93908a9f88f01d828a4e18f332111987f4a7675bced7ea4\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\nCREATE TABLE IF NOT EXISTS mysql.help_topic ( help_topic_id INT(10) UNSIGNED NOT NULL, name CHAR(64) NOT NULL, help_category_id SMALLINT(5) UNSIGNED NOT NULL, description TEXT NOT NULL, example TEXT NOT NULL, url TEXT NOT NULL, PRIMARY KEY (help_topic_id) clustered, UNIQUE KEY name (name) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='help topics';"] [2024/05/06 16:36:27.756 +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:36:27.836 +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:36:27.787 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:27.836 +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:36:27.787 +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:36:27.921 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 81, 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:36:27.787 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:28.067 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=10] [neededSchemaVersion=11] ["start time"=2.53113ms] [phyTblIDs="[22]"] [actionTypes="[8]"] [2024/05/06 16:36:28.131 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:28.131 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=23] [version=11] [2024/05/06 16:36:28.131 +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"=68.259755ms] [job="ID:23, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:22, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:27.787 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:28.205 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 81, 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:36:27.787 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:28.338 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=23] [2024/05/06 16:36:28.339 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:28.340 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.588851413\n# Parse_time: 0\n# Compile_time: 0.004670503\n# Rewrite_time: 0.000011113\n# Optimize_time: 0\n# Wait_TS: 0.000092826\n# DB: mysql\n# Is_internal: true\n# Digest: db16a74bd407cb00f071eafe96456094f48fc00e802128fc486ef4847b8910b0\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\nCREATE TABLE IF NOT EXISTS mysql.stats_meta ( version BIGINT(64) UNSIGNED NOT NULL, table_id BIGINT(64) NOT NULL, modify_count BIGINT(64) NOT NULL DEFAULT 0, count BIGINT(64) UNSIGNED NOT NULL DEFAULT 0, snapshot BIGINT(64) UNSIGNED NOT NULL DEFAULT 0, INDEX idx_ver(version), UNIQUE INDEX tbl(table_id) );"] [2024/05/06 16:36:28.405 +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:36:28.408 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(6291456) to MEDIUMBLOB"] [2024/05/06 16:36:28.596 +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:36:28.451 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:28.596 +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:36:28.451 +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:36:28.715 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 81, 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:36:28.451 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:28.932 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=11] [neededSchemaVersion=12] ["start time"=4.179634ms] [phyTblIDs="[24]"] [actionTypes="[8]"] [2024/05/06 16:36:28.986 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:28.986 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=25] [version=12] [2024/05/06 16:36:28.988 +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"=61.419024ms] [job="ID:25, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:24, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:28.451 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:29.065 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 81, 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:36:28.451 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:29.170 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=25] [2024/05/06 16:36:29.170 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:29.172 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.773040603\n# Parse_time: 0\n# Compile_time: 0.006389962\n# Rewrite_time: 0.000027287\n# Optimize_time: 0\n# Wait_TS: 0.000167739\n# DB: mysql\n# Is_internal: true\n# Digest: 7780c45a0aac5f123ac85a7e601e79c5d7779e7c09a19953908e547605ed45d2\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\nCREATE TABLE IF NOT EXISTS mysql.stats_histograms ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, distinct_count BIGINT(64) NOT NULL, null_count BIGINT(64) NOT NULL DEFAULT 0, tot_col_size BIGINT(64) NOT NULL DEFAULT 0, modify_count BIGINT(64) NOT NULL DEFAULT 0, version BIGINT(64) UNSIGNED NOT NULL DEFAULT 0, cm_sketch BLOB(6291456), stats_ver BIGINT(64) NOT NULL DEFAULT 0, flag BIGINT(64) NOT NULL DEFAULT 0, correlation DOUBLE NOT NULL DEFAULT 0, last_analyze_pos LONGBLOB DEFAULT NULL, UNIQUE INDEX tbl(table_id, is_index, hist_id) );"] [2024/05/06 16:36:29.180 +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:36:29.266 +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:36:29.196 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:29.266 +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:36:29.196 +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:36:29.334 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 81, 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:36:29.196 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:29.470 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=12] [neededSchemaVersion=13] ["start time"=3.242895ms] [phyTblIDs="[26]"] [actionTypes="[8]"] [2024/05/06 16:36:29.531 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:29.531 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=27] [version=13] [2024/05/06 16:36:29.532 +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"=65.089693ms] [job="ID:27, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:26, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:29.196 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:29.623 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 81, 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:36:29.196 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:29.773 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=27] [2024/05/06 16:36:29.773 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:29.775 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.597840225\n# Parse_time: 0\n# Compile_time: 0.003498553\n# Rewrite_time: 0.000014065\n# Optimize_time: 0\n# Wait_TS: 0.000106845\n# DB: mysql\n# Is_internal: true\n# Digest: 5615b5212342304015b027afb253371dae02f19e53871cfbb034deb145dfce32\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\nCREATE TABLE IF NOT EXISTS mysql.stats_buckets ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, bucket_id BIGINT(64) NOT NULL, count BIGINT(64) NOT NULL, repeats BIGINT(64) NOT NULL, upper_bound LONGBLOB NOT NULL, lower_bound LONGBLOB , ndv BIGINT NOT NULL DEFAULT 0, UNIQUE INDEX tbl(table_id, is_index, hist_id, bucket_id) );"] [2024/05/06 16:36:29.791 +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:36:29.870 +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:36:29.819 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:29.870 +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:36:29.819 +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:36:30.046 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 81, 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:36:29.819 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:30.170 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=13] [neededSchemaVersion=14] ["start time"=2.547966ms] [phyTblIDs="[28]"] [actionTypes="[8]"] [2024/05/06 16:36:30.231 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:30.231 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=29] [version=14] [2024/05/06 16:36:30.239 +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"=72.871808ms] [job="ID:29, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:28, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:29.819 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:30.377 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 81, 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:36:29.819 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:30.648 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=29] [2024/05/06 16:36:30.648 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:30.660 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.871605946\n# Parse_time: 0\n# Compile_time: 0.003115198\n# Rewrite_time: 0.000014693\n# Optimize_time: 0\n# Wait_TS: 0.000083979\n# DB: mysql\n# Is_internal: true\n# Digest: 4f764dd084d16197c847e23500fcaf8b96dbbabd598c823de37967bfa2ad51cd\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\nCREATE TABLE IF NOT EXISTS mysql.gc_delete_range ( job_id BIGINT NOT NULL COMMENT \"the DDL job ID\", element_id BIGINT NOT NULL COMMENT \"the schema element ID\", start_key VARCHAR(255) NOT NULL COMMENT \"encoded in hex\", end_key VARCHAR(255) NOT NULL COMMENT \"encoded in hex\", ts BIGINT NOT NULL COMMENT \"timestamp in uint64\", UNIQUE KEY delete_range_index (job_id, element_id) );"] [2024/05/06 16:36:30.667 +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:36:30.730 +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:36:30.683 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:30.740 +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:36:30.683 +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:36:30.878 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 81, 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:36:30.683 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:31.007 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=14] [neededSchemaVersion=15] ["start time"=2.417158ms] [phyTblIDs="[30]"] [actionTypes="[8]"] [2024/05/06 16:36:31.082 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:31.082 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=31] [version=15] [2024/05/06 16:36:31.082 +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"=78.408128ms] [job="ID:31, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:30, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:30.683 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:31.182 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 81, 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:36:30.683 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:31.405 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=31] [2024/05/06 16:36:31.407 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:31.409 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.744617452\n# Parse_time: 0\n# Compile_time: 0.003129377\n# Rewrite_time: 0.000013269\n# Optimize_time: 0\n# Wait_TS: 0.000086825\n# DB: mysql\n# Is_internal: true\n# Digest: 532cf71b38f2568975d61180716af7e2b05c9ca11023688224ed0c0eece42fa9\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\nCREATE TABLE IF NOT EXISTS mysql.gc_delete_range_done ( job_id BIGINT NOT NULL COMMENT \"the DDL job ID\", element_id BIGINT NOT NULL COMMENT \"the schema element ID\", start_key VARCHAR(255) NOT NULL COMMENT \"encoded in hex\", end_key VARCHAR(255) NOT NULL COMMENT \"encoded in hex\", ts BIGINT NOT NULL COMMENT \"timestamp in uint64\", UNIQUE KEY delete_range_done_index (job_id, element_id) );"] [2024/05/06 16:36:31.416 +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:36:31.594 +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:36:31.45 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:31.594 +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:36:31.45 +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:36:31.726 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 81, 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:36:31.45 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:31.879 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=15] [neededSchemaVersion=16] ["start time"=2.125215ms] [phyTblIDs="[32]"] [actionTypes="[8]"] [2024/05/06 16:36:31.931 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:31.932 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=33] [version=16] [2024/05/06 16:36:31.932 +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"=56.222293ms] [job="ID:33, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:32, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:31.45 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:31.997 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 81, 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:36:31.45 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:32.075 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=33] [2024/05/06 16:36:32.076 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:32.077 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.663740309\n# Parse_time: 0\n# Compile_time: 0.002645618\n# Rewrite_time: 0.000013511\n# Optimize_time: 0\n# Wait_TS: 0.000117132\n# DB: mysql\n# Is_internal: true\n# Digest: 28f04155dca9c7fd3a5e16199cefd152c629a57a64d0ccb2ed0f10309c23c59c\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\nCREATE TABLE IF NOT EXISTS mysql.stats_feedback ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, feedback BLOB NOT NULL, INDEX hist(table_id, is_index, hist_id) );"] [2024/05/06 16:36:32.087 +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:36:32.188 +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:36:32.102 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:32.188 +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:36:32.102 +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:36:32.336 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 81, 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:36:32.102 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:32.469 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=16] [neededSchemaVersion=17] ["start time"=2.945829ms] [phyTblIDs="[34]"] [actionTypes="[8]"] [2024/05/06 16:36:32.532 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:32.532 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=35] [version=17] [2024/05/06 16:36:32.533 +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"=67.298863ms] [job="ID:35, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:34, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:32.102 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:32.622 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 81, 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:36:32.102 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:32.698 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=35] [2024/05/06 16:36:32.698 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:32.700 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.616899915\n# Parse_time: 0\n# Compile_time: 0.003822944\n# Rewrite_time: 0.00001405\n# Optimize_time: 0\n# Wait_TS: 0.000105601\n# DB: mysql\n# Is_internal: true\n# Digest: 13e2fcff943423afddaa84c2d34108628854b5953bc7c41d2879240f077a5bd6\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\nCREATE TABLE IF NOT EXISTS mysql.role_edges ( FROM_HOST CHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '', FROM_USER CHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '', TO_HOST CHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '', TO_USER CHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '', WITH_ADMIN_OPTION ENUM('N','Y') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'N', PRIMARY KEY (FROM_HOST,FROM_USER,TO_HOST,TO_USER) );"] [2024/05/06 16:36:32.711 +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:36:32.795 +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:36:32.736 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:32.795 +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:36:32.736 +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:36:32.881 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 81, 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:36:32.736 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:33.014 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=17] [neededSchemaVersion=18] ["start time"=2.415001ms] [phyTblIDs="[36]"] [actionTypes="[8]"] [2024/05/06 16:36:33.032 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:33.032 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=37] [version=18] [2024/05/06 16:36:33.033 +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"=22.712268ms] [job="ID:37, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:36, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:32.736 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:33.085 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 81, 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:36:32.736 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:33.177 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=37] [2024/05/06 16:36:33.177 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:33.179 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.470948544\n# Parse_time: 0\n# Compile_time: 0.003153439\n# Rewrite_time: 0.000013602\n# Optimize_time: 0\n# Wait_TS: 0.000091824\n# DB: mysql\n# Is_internal: true\n# Digest: 9e6b544fb0287e9d8a74031560ed0cd6a5b4e54db073b893a68a76b05d929781\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\nCREATE TABLE IF NOT EXISTS mysql.default_roles ( HOST CHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '', USER CHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '', DEFAULT_ROLE_HOST CHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '%', DEFAULT_ROLE_USER CHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '', PRIMARY KEY (HOST,USER,DEFAULT_ROLE_HOST,DEFAULT_ROLE_USER) );"] [2024/05/06 16:36:33.211 +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:36:33.308 +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:36:33.229 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:33.308 +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:36:33.229 +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:36:33.390 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 81, 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:36:33.229 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:33.674 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=18] [neededSchemaVersion=19] ["start time"=3.830632ms] [phyTblIDs="[38]"] [actionTypes="[8]"] [2024/05/06 16:36:33.731 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:33.731 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=39] [version=19] [2024/05/06 16:36:33.737 +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"=67.072343ms] [job="ID:39, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:38, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:33.229 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:33.811 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 81, 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:36:33.229 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:33.919 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=39] [2024/05/06 16:36:33.919 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:33.921 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.714851963\n# Parse_time: 0\n# Compile_time: 0.005030945\n# Rewrite_time: 0.000013389\n# Optimize_time: 0\n# Wait_TS: 0.000099356\n# DB: mysql\n# Is_internal: true\n# Digest: 0a4bc55a9ab72ef62ddaa1ee6472d7872306066fd783a8bb67047a497fbb4dbe\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\nCREATE TABLE IF NOT EXISTS mysql.bind_info ( original_sql TEXT NOT NULL, bind_sql TEXT NOT NULL, default_db TEXT NOT NULL, status TEXT NOT NULL, create_time TIMESTAMP(3) NOT NULL, update_time TIMESTAMP(3) NOT NULL, charset TEXT NOT NULL, collation TEXT NOT NULL, source VARCHAR(10) NOT NULL DEFAULT 'unknown', sql_digest varchar(64), plan_digest varchar(64), INDEX sql_index(original_sql(700),default_db(68)) COMMENT \"accelerate the speed when add global binding query\", INDEX time_index(update_time) COMMENT \"accelerate the speed when querying with last update time\" ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;"] [2024/05/06 16:36:33.962 +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:36:34.040 +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:36:33.977 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:34.040 +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:36:33.977 +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:36:34.105 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 81, 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:36:33.977 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:34.209 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=19] [neededSchemaVersion=20] ["start time"=2.484593ms] [phyTblIDs="[40]"] [actionTypes="[8]"] [2024/05/06 16:36:34.282 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:34.282 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=41] [version=20] [2024/05/06 16:36:34.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=20] ["take time"=78.304354ms] [job="ID:41, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:40, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:33.977 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:34.341 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 81, 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:36:33.977 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:34.472 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=41] [2024/05/06 16:36:34.472 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:34.474 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.514163199\n# Parse_time: 0\n# Compile_time: 0.002401868\n# Rewrite_time: 0.000018862\n# Optimize_time: 0\n# Wait_TS: 0.000095919\n# DB: mysql\n# Is_internal: true\n# Digest: 04a90564803373a6eb3f5a52e8794d25c4d28f6c18af7899b0b9f1bf1539ec72\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\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\nCREATE TABLE IF NOT EXISTS mysql.stats_top_n ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, value LONGBLOB, count BIGINT(64) UNSIGNED NOT NULL, INDEX tbl(table_id, is_index, hist_id) );"] [2024/05/06 16:36:34.478 +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:36:34.524 +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:36:34.49 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:34.524 +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:36:34.49 +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:36:34.588 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 81, 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:36:34.49 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:34.678 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=20] [neededSchemaVersion=21] ["start time"=1.855975ms] [phyTblIDs="[42]"] [actionTypes="[8]"] [2024/05/06 16:36:34.732 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:34.733 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=43] [version=21] [2024/05/06 16:36:34.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=21] ["take time"=58.924633ms] [job="ID:43, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:42, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:34.49 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:34.807 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 81, 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:36:34.49 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:34.864 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=43] [2024/05/06 16:36:34.865 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:34.867 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.390092183\n# Parse_time: 0\n# Compile_time: 0.001877386\n# Rewrite_time: 0.0000107\n# Optimize_time: 0\n# Wait_TS: 0.00010217\n# DB: mysql\n# Is_internal: true\n# Digest: 3e05fb8977f83f4e32022552aded3680a039cddc4239c339119a655dc1cffdbb\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\nCREATE TABLE IF NOT EXISTS mysql.expr_pushdown_blacklist ( name CHAR(100) NOT NULL, store_type CHAR(100) NOT NULL DEFAULT 'tikv,tiflash,tidb', reason VARCHAR(200) );"] [2024/05/06 16:36:34.870 +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:36:34.925 +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:36:34.891 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:34.926 +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:36:34.891 +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:36:35.050 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 81, 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:36:34.891 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:35.117 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=21] [neededSchemaVersion=22] ["start time"=1.489347ms] [phyTblIDs="[44]"] [actionTypes="[8]"] [2024/05/06 16:36:35.131 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:35.131 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=45] [version=22] [2024/05/06 16:36:35.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=22] ["take time"=17.671087ms] [job="ID:45, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:44, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:34.891 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:35.205 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 81, 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:36:34.891 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:35.261 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=45] [2024/05/06 16:36:35.261 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:35.263 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.393750414\n# Parse_time: 0\n# Compile_time: 0.001779316\n# Rewrite_time: 0.00001342\n# Optimize_time: 0\n# Wait_TS: 0.000090095\n# DB: mysql\n# Is_internal: true\n# Digest: aee36d5dc7131e4b6e3321cc046ae8b5ec8156ec1ef82481df0b97b8c734325f\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\nCREATE TABLE IF NOT EXISTS mysql.opt_rule_blacklist ( name CHAR(100) NOT NULL );"] [2024/05/06 16:36:35.277 +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:36:35.371 +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:36:35.29 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:35.371 +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:36:35.29 +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:36:35.431 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 81, 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:36:35.29 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:35.602 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=22] [neededSchemaVersion=23] ["start time"=3.223211ms] [phyTblIDs="[46]"] [actionTypes="[8]"] [2024/05/06 16:36:35.632 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:35.632 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=47] [version=23] [2024/05/06 16:36:35.633 +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"=34.594123ms] [job="ID:47, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:46, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:35.29 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:35.682 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 81, 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:36:35.29 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:35.787 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=47] [2024/05/06 16:36:35.788 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:35.792 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.515745303\n# Parse_time: 0\n# Compile_time: 0.003440464\n# Rewrite_time: 0.000011513\n# Optimize_time: 0\n# Wait_TS: 0.00008377\n# DB: mysql\n# Is_internal: true\n# Digest: bd2a0d9809689d30e22f8d82b29b4ee110d16cda3353b77d74a1938afb746386\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\nCREATE TABLE IF NOT EXISTS mysql.stats_extended ( name varchar(32) NOT NULL, type tinyint(4) NOT NULL, table_id bigint(64) NOT NULL, column_ids varchar(32) NOT NULL, stats blob DEFAULT NULL, version bigint(64) unsigned NOT NULL, status tinyint(4) NOT NULL, PRIMARY KEY(name, table_id), KEY idx_1 (table_id, status, version), KEY idx_2 (status, version) );"] [2024/05/06 16:36:35.798 +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:36:35.882 +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:36:35.829 +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:36:35.888 +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:36:35.829 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:35.949 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 81, 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:36:35.829 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:36.066 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=23] [neededSchemaVersion=24] ["start time"=2.485629ms] [phyTblIDs="[48]"] [actionTypes="[8]"] [2024/05/06 16:36:36.081 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:36.081 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=49] [version=24] [2024/05/06 16:36:36.082 +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"=18.81611ms] [job="ID:49, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:48, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:35.829 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:36.152 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 81, 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:36:35.829 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:36.245 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=49] [2024/05/06 16:36:36.246 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:36.247 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.45142617\n# Parse_time: 0\n# Compile_time: 0.002256675\n# Rewrite_time: 0.000013761\n# Optimize_time: 0\n# Wait_TS: 0.000082895\n# DB: mysql\n# Is_internal: true\n# Digest: f72fffa4e6072164db3e01e2e29568b0b93c5045737047be527343b1737b0882\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\nCREATE TABLE IF NOT EXISTS mysql.schema_index_usage ( TABLE_ID bigint(64), INDEX_ID bigint(21), QUERY_COUNT bigint(64), ROWS_SELECTED bigint(64), LAST_USED_AT timestamp, PRIMARY KEY(TABLE_ID, INDEX_ID) );"] [2024/05/06 16:36:36.253 +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:36:36.324 +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:36:36.281 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:36.324 +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:36:36.281 +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:36:36.394 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 81, 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:36:36.281 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:36.525 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=24] [neededSchemaVersion=25] ["start time"=4.661273ms] [phyTblIDs="[50]"] [actionTypes="[8]"] [2024/05/06 16:36:36.581 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:36.581 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=51] [version=25] [2024/05/06 16:36:36.582 +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"=68.259549ms] [job="ID:51, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:50, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:36.281 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:36.667 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 81, 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:36:36.281 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:36.726 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=51] [2024/05/06 16:36:36.726 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:36.737 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.47658639\n# Parse_time: 0\n# Compile_time: 0.002194639\n# Rewrite_time: 0.000013378\n# Optimize_time: 0\n# Wait_TS: 0.000071877\n# DB: mysql\n# Is_internal: true\n# Digest: 27ef2533f9d97f96c8c86a69a0de51aad04499856acd05fe4a4b93fb5b6043d0\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\nCREATE TABLE IF NOT EXISTS mysql.stats_fm_sketch ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, value LONGBLOB, INDEX tbl(table_id, is_index, hist_id) );"] [2024/05/06 16:36:36.756 +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:36:36.829 +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:36:36.78 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:36.829 +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:36:36.78 +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:36:36.905 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 81, 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:36:36.78 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:37.024 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=25] [neededSchemaVersion=26] ["start time"=2.331753ms] [phyTblIDs="[52]"] [actionTypes="[8]"] [2024/05/06 16:36:37.081 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:37.081 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=53] [version=26] [2024/05/06 16:36:37.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=26] ["take time"=94.375124ms] [job="ID:53, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:52, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:36.78 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:37.158 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 81, 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:36:36.78 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:37.229 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=53] [2024/05/06 16:36:37.230 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:37.232 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.480717544\n# Parse_time: 0\n# Compile_time: 0.00561499\n# Rewrite_time: 0.000012155\n# Optimize_time: 0\n# Wait_TS: 0.000081956\n# DB: mysql\n# Is_internal: true\n# Digest: 79c6e54229df7b01d20ffaf8ac1077aa9ef39e604df30d5ce852dd7049cc3ddd\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\nCREATE TABLE IF NOT EXISTS mysql.global_grants ( USER char(32) NOT NULL DEFAULT '', HOST char(255) NOT NULL DEFAULT '', PRIV char(32) NOT NULL DEFAULT '', WITH_GRANT_OPTION enum('N','Y') NOT NULL DEFAULT 'N', PRIMARY KEY (USER,HOST,PRIV) );"] [2024/05/06 16:36:37.240 +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:36:37.315 +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:36:37.255 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:37.315 +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:36:37.255 +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:36:37.382 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 81, 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:36:37.255 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:37.462 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=26] [neededSchemaVersion=27] ["start time"=2.065474ms] [phyTblIDs="[54]"] [actionTypes="[8]"] [2024/05/06 16:36:37.485 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:37.486 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=55] [version=27] [2024/05/06 16:36:37.488 +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"=28.755067ms] [job="ID:55, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:54, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:37.255 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:37.628 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 81, 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:36:37.255 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:37.757 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=55] [2024/05/06 16:36:37.757 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:37.759 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.522585589\n# Parse_time: 0\n# Compile_time: 0.004057039\n# Rewrite_time: 0.000017872\n# Optimize_time: 0\n# Wait_TS: 0.000091664\n# DB: mysql\n# Is_internal: true\n# Digest: 08f858a5bd3a1fd5dfd809dd4b9d6c72db69f874b06ad0e91987f9e89a5cf89a\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\nCREATE TABLE IF NOT EXISTS mysql.capture_plan_baselines_blacklist ( id bigint(64) auto_increment, filter_type varchar(32) NOT NULL COMMENT \"type of the filter, only db, table and frequency supported now\", filter_value varchar(32) NOT NULL, key idx(filter_type), primary key(id) );"] [2024/05/06 16:36:37.764 +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:36:37.858 +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:36:37.778 +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:36:37.881 +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:36:37.778 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:37.959 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 81, 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:36:37.778 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:38.068 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=27] [neededSchemaVersion=28] ["start time"=2.20008ms] [phyTblIDs="[56]"] [actionTypes="[8]"] [2024/05/06 16:36:38.132 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:38.132 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=57] [version=28] [2024/05/06 16:36:38.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=28] ["take time"=68.93714ms] [job="ID:57, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:56, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:37.778 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:38.187 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 81, 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:36:37.778 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:38.249 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=57] [2024/05/06 16:36:38.249 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:38.252 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.489517936\n# Parse_time: 0\n# Compile_time: 0.002294788\n# Rewrite_time: 0.000014392\n# Optimize_time: 0\n# Wait_TS: 0.000091134\n# DB: mysql\n# Is_internal: true\n# Digest: 3a5634ff31bd7d32849c5404b7ffc419c7a7074307b815e5369eb6ca363cbcd0\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\nCREATE TABLE IF NOT EXISTS mysql.column_stats_usage ( table_id BIGINT(64) NOT NULL, column_id BIGINT(64) NOT NULL, last_used_at TIMESTAMP, last_analyzed_at TIMESTAMP, PRIMARY KEY (table_id, column_id) CLUSTERED );"] [2024/05/06 16:36:38.259 +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:36:38.312 +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:36:38.275 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:38.312 +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:36:38.275 +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:36:38.379 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 81, 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:36:38.275 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:38.455 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=28] [neededSchemaVersion=29] ["start time"=1.936465ms] [phyTblIDs="[58]"] [actionTypes="[8]"] [2024/05/06 16:36:38.481 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:38.481 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=59] [version=29] [2024/05/06 16:36:38.487 +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"=34.366524ms] [job="ID:59, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:58, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:38.275 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:38.639 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 81, 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:36:38.275 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:38.810 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=59] [2024/05/06 16:36:38.811 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:38.812 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.556408267\n# Parse_time: 0\n# Compile_time: 0.003289033\n# Rewrite_time: 0.000025077\n# Optimize_time: 0\n# Wait_TS: 0.000092905\n# DB: mysql\n# Is_internal: true\n# Digest: d5bebde055ca14bff3e131e086a86c4095b9d04ea6fc326b4c2f16ffd61fbd2d\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\nCREATE TABLE IF NOT EXISTS mysql.table_cache_meta ( tid bigint(11) NOT NULL DEFAULT 0, lock_type enum('NONE','READ', 'INTEND', 'WRITE') NOT NULL DEFAULT 'NONE', lease bigint(20) NOT NULL DEFAULT 0, oldReadLease bigint(20) NOT NULL DEFAULT 0, PRIMARY KEY (tid) );"] [2024/05/06 16:36:38.835 +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:36:38.862 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(19372) to MEDIUMBLOB"] [2024/05/06 16:36:38.996 +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:36:38.875 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:38.997 +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:36:38.875 +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:36:39.070 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 81, 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:36:38.875 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:39.176 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=29] [neededSchemaVersion=30] ["start time"=2.690703ms] [phyTblIDs="[60]"] [actionTypes="[8]"] [2024/05/06 16:36:39.232 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:39.232 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=61] [version=30] [2024/05/06 16:36:39.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=30] ["take time"=61.054893ms] [job="ID:61, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:60, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:38.875 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:39.290 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 81, 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:36:38.875 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:39.380 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=61] [2024/05/06 16:36:39.384 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:39.386 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.554722644\n# Parse_time: 0\n# Compile_time: 0.003611258\n# Rewrite_time: 0.00001287\n# Optimize_time: 0\n# Wait_TS: 0.000097567\n# DB: mysql\n# Is_internal: true\n# Digest: 987fcd9b9a604209ec1101d918419b993c42f84fe228e20aee2fcca2931ff93e\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\nCREATE TABLE IF NOT EXISTS mysql.analyze_options ( table_id BIGINT(64) NOT NULL, sample_num BIGINT(64) NOT NULL DEFAULT 0, sample_rate DOUBLE NOT NULL DEFAULT -1, buckets BIGINT(64) NOT NULL DEFAULT 0, topn BIGINT(64) NOT NULL DEFAULT -1, column_choice enum('DEFAULT','ALL','PREDICATE','LIST') NOT NULL DEFAULT 'DEFAULT', column_ids TEXT(19372), PRIMARY KEY (table_id) CLUSTERED );"] [2024/05/06 16:36:39.436 +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:36:39.574 +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:36:39.473 +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:36:39.575 +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:36:39.473 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:39.743 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 81, 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:36:39.473 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:39.969 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=30] [neededSchemaVersion=31] ["start time"=2.8403ms] [phyTblIDs="[62]"] [actionTypes="[8]"] [2024/05/06 16:36:40.032 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:40.032 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=63] [version=31] [2024/05/06 16:36:40.032 +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"=66.543782ms] [job="ID:63, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:62, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:39.473 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:40.102 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 81, 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:36:39.473 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:40.283 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=63] [2024/05/06 16:36:40.284 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:40.289 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.882229507\n# Parse_time: 0\n# Compile_time: 0.019516351\n# Rewrite_time: 0.000015041\n# Optimize_time: 0\n# Wait_TS: 0.000084839\n# DB: mysql\n# Is_internal: true\n# Digest: 11757f6de6b3d2a64e92f14cd7b7f739729563ede3b0139d016148eba0b27ebf\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\nCREATE TABLE IF NOT EXISTS mysql.stats_history ( table_id bigint(64) NOT NULL, stats_data longblob NOT NULL, seq_no bigint(64) NOT NULL comment 'sequence number of the gzipped data slice', version bigint(64) NOT NULL comment 'stats version which corresponding to stats:version in EXPLAIN', create_time datetime(6) NOT NULL, UNIQUE KEY table_version_seq (table_id, version, seq_no), KEY table_create_time (table_id, create_time, seq_no) );"] [2024/05/06 16:36:40.315 +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:36:40.431 +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:36:40.353 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:40.431 +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:36:40.353 +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:36:40.518 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 81, 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:36:40.353 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:40.735 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=31] [neededSchemaVersion=32] ["start time"=2.656747ms] [phyTblIDs="[64]"] [actionTypes="[8]"] [2024/05/06 16:36:40.781 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:40.781 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=65] [version=32] [2024/05/06 16:36:40.781 +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"=50.108043ms] [job="ID:65, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:64, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:40.353 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:40.901 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 81, 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:36:40.353 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:41.064 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=65] [2024/05/06 16:36:41.064 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:41.070 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.763877065\n# Parse_time: 0\n# Compile_time: 0.009178843\n# Rewrite_time: 0.000025276\n# Optimize_time: 0\n# Wait_TS: 0.00011266\n# DB: mysql\n# Is_internal: true\n# Digest: ebccd6f5d49fb0fcff4d7dc20bb3ae798d172a92ba5f6709445c980166f7e32f\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\nCREATE TABLE IF NOT EXISTS mysql.stats_meta_history ( table_id bigint(64) NOT NULL, modify_count bigint(64) NOT NULL, count bigint(64) NOT NULL, version bigint(64) NOT NULL comment 'stats version which corresponding to stats:version in EXPLAIN', create_time datetime(6) NOT NULL, UNIQUE KEY table_version (table_id, version), KEY table_create_time (table_id, create_time) );"] [2024/05/06 16:36:41.100 +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:36:41.333 +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:36:41.133 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:41.333 +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:36:41.133 +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:36:41.420 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 81, 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:36:41.133 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:41.791 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=32] [neededSchemaVersion=33] ["start time"=4.295614ms] [phyTblIDs="[66]"] [actionTypes="[8]"] [2024/05/06 16:36:41.831 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:41.831 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=67] [version=33] [2024/05/06 16:36:41.832 +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"=46.650654ms] [job="ID:67, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:66, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:41.133 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:41.884 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 81, 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:36:41.133 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:42.002 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=67] [2024/05/06 16:36:42.002 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:42.004 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.915612964\n# Parse_time: 0\n# Compile_time: 0.011815997\n# Rewrite_time: 0.000013018\n# Optimize_time: 0\n# Wait_TS: 0.000093026\n# DB: mysql\n# Is_internal: true\n# Digest: bfb9a3ff60c3c60c054a207c0a0db06c87e29edbe94005d8d5c89fe484f4f90a\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\nCREATE TABLE IF NOT EXISTS mysql.analyze_jobs ( id BIGINT(64) UNSIGNED NOT NULL AUTO_INCREMENT, update_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, table_schema CHAR(64) NOT NULL DEFAULT '', table_name CHAR(64) NOT NULL DEFAULT '', partition_name CHAR(64) NOT NULL DEFAULT '', job_info TEXT NOT NULL, processed_rows BIGINT(64) UNSIGNED NOT NULL DEFAULT 0, start_time TIMESTAMP, end_time TIMESTAMP, state ENUM('pending', 'running', 'finished', 'failed') NOT NULL, fail_reason TEXT, instance VARCHAR(512) NOT NULL comment 'address of the TiDB instance executing the analyze job', process_id BIGINT(64) UNSIGNED comment 'ID of the process executing the analyze job', PRIMARY KEY (id), KEY (update_time) );"] [2024/05/06 16:36:42.008 +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:36:42.073 +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:36:42.037 +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:36:42.074 +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:36:42.037 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:42.187 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 81, 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:36:42.037 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:42.275 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=33] [neededSchemaVersion=34] ["start time"=1.562284ms] [phyTblIDs="[68]"] [actionTypes="[8]"] [2024/05/06 16:36:42.332 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:42.332 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=69] [version=34] [2024/05/06 16:36:42.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"=61.093836ms] [job="ID:69, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:68, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:42.037 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:42.396 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 81, 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:36:42.037 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:42.501 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=69] [2024/05/06 16:36:42.501 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:42.503 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.496238056\n# Parse_time: 0\n# Compile_time: 0.00137811\n# Rewrite_time: 0.000015579\n# Optimize_time: 0\n# Wait_TS: 0.000086415\n# DB: mysql\n# Is_internal: true\n# Digest: 85d0480e8afeca7d94d07ca1a681df6c7f89f1fda753ceb6e02b51caf3714c1c\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\nCREATE TABLE IF NOT EXISTS mysql.advisory_locks ( lock_name VARCHAR(64) NOT NULL PRIMARY KEY );"] [2024/05/06 16:36:42.622 +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:36:42.545 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:42.623 +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:36:42.545 +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:36:42.691 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 81, 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:36:42.545 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:42.848 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=34] [neededSchemaVersion=35] ["start time"=7.445348ms] [phyTblIDs="[70]"] [actionTypes="[2097152]"] [2024/05/06 16:36:42.881 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:42.881 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=71] [version=35] [2024/05/06 16:36:42.882 +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"=42.310253ms] [job="ID:71, Type:create view, State:done, SchemaState:public, SchemaID:1, TableID:70, RowCount:0, ArgLen:3, start time: 2024-05-06 16:36:42.545 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:42.962 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 81, 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:36:42.545 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:43.120 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=71] [2024/05/06 16:36:43.120 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:43.124 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.616203437\n# Parse_time: 0\n# Compile_time: 0.007086733\n# Rewrite_time: 0.003886205\n# Optimize_time: 0\n# Wait_TS: 0.000111106\n# DB: mysql\n# Is_internal: true\n# Digest: 812c81f344f5d0c8b8aedcb68ff1dca865b59104853273f7e66b8abff5429992\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\nCREATE OR REPLACE VIEW mysql.tidb_mdl_view as ( select 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 );"] [2024/05/06 16:36:43.141 +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:36:43.237 +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:36:43.16 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:43.237 +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:36:43.16 +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:36:43.322 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 81, 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:36:43.16 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:43.460 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=35] [neededSchemaVersion=36] ["start time"=2.730511ms] [phyTblIDs="[72]"] [actionTypes="[8]"] [2024/05/06 16:36:43.486 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:43.486 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=73] [version=36] [2024/05/06 16:36:43.489 +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.229608ms] [job="ID:73, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:72, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:43.16 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:43.775 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 81, 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:36:43.16 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:43.894 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=73] [2024/05/06 16:36:43.894 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:43.895 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.761888733\n# Parse_time: 0\n# Compile_time: 0.007285054\n# Rewrite_time: 0.000013015\n# Optimize_time: 0\n# Wait_TS: 0.000098835\n# DB: mysql\n# Is_internal: true\n# Digest: 3d2f349b1c68ee2b30e34bad8bb3838af6c40d7a26072b2d29d801d7fedbac48\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\nCREATE TABLE IF NOT EXISTS mysql.plan_replayer_status ( sql_digest VARCHAR(128), plan_digest VARCHAR(128), origin_sql TEXT, token VARCHAR(128), update_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, fail_reason TEXT, instance VARCHAR(512) NOT NULL comment 'address of the TiDB instance executing the plan replayer job');"] [2024/05/06 16:36:43.901 +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:36:43.966 +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:36:43.914 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:43.966 +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:36:43.914 +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:36:44.047 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 81, 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:36:43.914 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:44.128 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=36] [neededSchemaVersion=37] ["start time"=2.187073ms] [phyTblIDs="[74]"] [actionTypes="[8]"] [2024/05/06 16:36:44.182 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:44.182 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=75] [version=37] [2024/05/06 16:36:44.182 +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"=57.472897ms] [job="ID:75, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:74, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:43.914 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:44.240 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 81, 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:36:43.914 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:44.329 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=75] [2024/05/06 16:36:44.329 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:44.331 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.431913611\n# Parse_time: 0\n# Compile_time: 0.002556621\n# Rewrite_time: 0.000014148\n# Optimize_time: 0\n# Wait_TS: 0.000102055\n# DB: mysql\n# Is_internal: true\n# Digest: 8d9754df14c826803fed84f1ae3eb8fc9729e76a793b6be6bf25967f1929d039\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\nCREATE TABLE IF NOT EXISTS mysql.plan_replayer_task ( sql_digest VARCHAR(128) NOT NULL, plan_digest VARCHAR(128) NOT NULL, update_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (sql_digest,plan_digest));"] [2024/05/06 16:36:44.342 +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:36:44.409 +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:36:44.369 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:44.409 +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:36:44.369 +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:36:44.506 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 81, 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:36:44.369 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:44.666 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=37] [neededSchemaVersion=38] ["start time"=2.075143ms] [phyTblIDs="[76]"] [actionTypes="[8]"] [2024/05/06 16:36:44.740 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:44.740 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=77] [version=38] [2024/05/06 16:36:44.741 +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"=78.408027ms] [job="ID:77, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:76, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:44.369 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:44.849 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 81, 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:36:44.369 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:44.955 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=77] [2024/05/06 16:36:44.955 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:44.957 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.616711119\n# Parse_time: 0\n# Compile_time: 0.002599755\n# Rewrite_time: 0.000014806\n# Optimize_time: 0\n# Wait_TS: 0.000112038\n# DB: mysql\n# Is_internal: true\n# Digest: b57fdc4b14aba5f29d915d04e5e4557f60a758fd65ec571368527cd45c6ef82a\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\nCREATE TABLE IF NOT EXISTS mysql.stats_table_locked( table_id bigint(64) NOT NULL, modify_count bigint(64) NOT NULL DEFAULT 0, count bigint(64) NOT NULL DEFAULT 0, version bigint(64) UNSIGNED NOT NULL DEFAULT 0, PRIMARY KEY (table_id));"] [2024/05/06 16:36:44.970 +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:36:45.125 +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:36:44.989 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:45.125 +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:36:44.989 +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:36:45.210 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 81, 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:36:44.989 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:45.430 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=38] [neededSchemaVersion=39] ["start time"=6.678883ms] [phyTblIDs="[78]"] [actionTypes="[8]"] [2024/05/06 16:36:45.489 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:45.489 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=79] [version=39] [2024/05/06 16:36:45.491 +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"=68.429374ms] [job="ID:79, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:78, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:44.989 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:45.665 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 81, 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:36:44.989 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:45.813 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=79] [2024/05/06 16:36:45.814 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:45.815 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.850254248\n# Parse_time: 0\n# Compile_time: 0.005468324\n# Rewrite_time: 0.000013828\n# Optimize_time: 0\n# Wait_TS: 0.00008577\n# DB: mysql\n# Is_internal: true\n# Digest: a30bd3c3a49070c554e65922e84c6b76e646842e3925a859fcde73941a7cb423\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\nCREATE TABLE IF NOT EXISTS mysql.tidb_ttl_table_status ( table_id bigint(64) PRIMARY KEY, parent_table_id bigint(64), table_statistics text DEFAULT NULL, last_job_id varchar(64) DEFAULT NULL, last_job_start_time timestamp NULL DEFAULT NULL, last_job_finish_time timestamp NULL DEFAULT NULL, last_job_ttl_expire timestamp NULL DEFAULT NULL, last_job_summary text DEFAULT NULL, current_job_id varchar(64) DEFAULT NULL, current_job_owner_id varchar(64) DEFAULT NULL, current_job_owner_addr varchar(256) DEFAULT NULL, current_job_owner_hb_time timestamp, current_job_start_time timestamp NULL DEFAULT NULL, current_job_ttl_expire timestamp NULL DEFAULT NULL, current_job_state text DEFAULT NULL, current_job_status varchar(64) DEFAULT NULL, current_job_status_update_time timestamp NULL DEFAULT NULL);"] [2024/05/06 16:36:46.705 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 449572924507291648\n# Query_time: 0.64035409\n# Parse_time: 0\n# Compile_time: 0.309192385\n# Rewrite_time: 0.007477751\n# Optimize_time: 0\n# Wait_TS: 0.000085892\n# DB: mysql\n# Is_internal: true\n# Digest: ca2019e08a331284bd0c64be228a0537fcf9f5983e95d94b67ef42dcb8f54385\n# Num_cop_tasks: 0\n# Mem_max: 350216\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: true\n# IsSyncStatsFailed: false\n# Plan: tidb_decode_plan('ogPwPDAJMjdfMQkwCTAJTi9BCTAJdGltZTozMTYuN21zLCBsb29wczoxLCBwcmVwYXJlOiB7dG90YWw6IDQ4LjkBIkxhdXRvX2lkX2FsbG9jYXRvcjogewUMZF9jbnQ6IDEsIEdldDp7bnVtX3JwYzo0LCB0AUEAXwVouDQ1OS42wrVzfSwgY29tbWl0X3R4bjoge3ByZXdyaXRlOjU1Ni44wrVzLCBnZXRfESQMczoyMwU4ETcQOjIuODkBjhxzbG93ZXN0XxFBBXQEIHsFc2g6IDAuMDAwcywgcmVnaW9uX2lkOiAyLCBzdG8B2QUHCDEsIBmMGHByaW1hcnlGRAAAM4pEAA1kGG51bToxLCAFzgxfa2V5JU0JDphieXRlOjMyfX19LCBpbnNlcnQ6MjY3Ljhtcwk5NC4wIEtCCU4vQQo=')\n# Binary_plan: tidb_decode_binary_plan('rgPwgQqpAwoISW5zZXJ0XzE4AUABUgNOL0FaFXRpbWU6MzE2LjdtcywgbG9vcHM6MWLtAnByZXBhcmU6IHt0b3RhbDogNDguOW1zLCBhdXRvX2lkX2FsbG9jYXRvcjoge2FsbG9jX2NudDogMSwgR2V0OntudW1fcnBjOjQsIHRvdGFsX3QBabg0NTkuNsK1c30sIGNvbW1pdF90eG46IHtwcmV3cml0ZTo1NTYuOMK1cywgZ2V0XxEkDHM6MjMFOBE3DDoyLjgFjhxzbG93ZXN0XxFBDF9ycGMZtGAwLjAwMHMsIHJlZ2lvbl9pZDogMiwgc3RvAdkFBwgxLCAZjBhwcmltYXJ5RkQAADOKRAANZBhudW06MSwgBc4QX2tleXMZDqhieXRlOjMyfX19LCBpbnNlcnQ6MjY3Ljhtc3CI8AV4////////////ARgB')\nINSERT HIGH_PRIORITY INTO mysql.GLOBAL_VARIABLES VALUES (\"optimizer_search_depth\", \"62\"), (\"innodb_undo_logs\", \"128\"), (\"old_passwords\", \"0\"), (\"optimizer_trace_max_mem_size\", \"16384\"), (\"host_cache_size\", \"279\"), (\"ndb_optimization_delay\", \"\"), (\"disconnect_on_expired_password\", \"ON\"), (\"tidb_scatter_region\", \"OFF\"), (\"expire_logs_days\", \"0\"), (\"slave_parallel_workers\", \"0\"), (\"tidb_auto_analyze_end_time\", \"23:59 +0000\"), (\"innodb_adaptive_flushing\", \"ON\"), (\"tidb_stmt_summary_max_sql_length\", \"4096\"), (\"innodb_buffer_pool_filename\", \"ib_buffer_pool\"), (\"avoid_temporal_upgrade\", \"OFF\"), (\"sql_safe_updates\", \"OFF\"), (\"tidb_sysproc_scan_concurrency\", \"1\"), (\"innodb_adaptive_hash_index\", \"ON\"), (\"tidb_backoff_lock_fast\", \"10\"), (\"tidb_mem_oom_action\", \"LOG\"), (\"table_definition_cache\", \"2000\"), (\"optimizer_prune_level\", \"1\"), (\"tidb_enable_extended_stats\", \"OFF\"), (\"tidb_opt_tiflash_concurrency_factor\", \"24\"), (\"innodb_compression_level\", \"6\"), (\"tidb_stmt_summary_max_stmt_count\", \"3000\"), (\"log_syslog_tag\", \"\"), (\"innodb_random_read_ahead\", \"OFF\"), (\"tidb_enable_amend_pessimistic_txn\", \"OFF\"), (\"innodb_default_row_format\", \"dynamic\"), (\"tidb_opt_scan_factor\", \"1.5\"), (\"tidb_window_concurrency\", \"-1\"), (\"concurrent_insert\", \"AUTO\"), (\"optimizer_trace_offset\", \"-1\"), (\"transaction_read_only\", \"OFF\"), (\"read_only\", \"OFF\"), (\"query_cache_wlock_invalidate\", \"OFF\"), (\"binlog_max_flush_queue_time\", \"0\"), (\"innodb_table_locks\", \"ON\"), (\"tidb_opt_limit_push_down_threshold\", \"100\"), (\"tidb_build_stats_concurrency\", \"4\"), (\"sql_log_bin\", \"ON\"), (\"tidb_tso_client_batch_max_wait_time\", \"0\"), (\"tidb_enable_metadata_lock\", \"ON\"), (\"tidb_allow_fallback_to_tikv\", \"\"), (\"default_password_lifetime\", \"0\"), (\"slave_net_timeout\", \"3600\"), (\"tidb_gc_scan_lock_mode\", \"LEGACY\"), (\"binlog_cache_size\", \"32768\"), (\"innodb_buffer_pool_load_abort\", \"OFF\"), (\"tidb_enable_inl_join_inner_multi_pattern\", \"OFF\"), (\"tidb_row_format_version\", \"2\"), (\"ndb_log_binlog_index\", \"\"), (\"tidb_enable_unsafe_substitute\", \"OFF\"), (\"innodb_buffer_pool_dump_now\", \"OFF\"), (\"tidb_partition_prune_mode\", \"dynamic\"), (\"log_slow_slave_statements\", \"OFF\"), (\"tidb_max_delta_schema_count\", \"1024\"), (\"optimizer_trace\", \"enabled=off,one_line=off\"), (\"tidb_enable_plan_replayer_capture\", \"OFF\"), (\"tidb_regard_null_as_point\", \"ON\"), (\"tidb_enable_noop_functions\", \"OFF\"), (\"tidb_enable_external_ts_read\", \"OFF\"), (\"binlog_order_commits\", \"ON\"), (\"tidb_hash_exchange_with_new_collation\", \"ON\"), (\"ndb_distribution\", \"\"), (\"innodb_fill_factor\", \"\"), (\"max_binlog_cache_size\", \"18446744073709547520\"), (\"tidb_gc_life_time\", \"10m0s\"), (\"tiflash_fine_grained_shuffle_stream_count\", \"0\"), (\"tidb_multi_statement_mode\", \"OFF\"), (\"binlog_direct_non_transactional_updates\", \"OFF\"), (\"tidb_enable_local_txn\", \"OFF\"), (\"tidb_enable_outer_join_reorder\", \"ON\"), (\"tidb_opt_three_stage_distinct_agg\", \"ON\"), (\"init_connect\", \"\"), (\"session_track_system_variables\", \"\"), (\"log_slow_admin_statements\", \"OFF\"), (\"tidb_ddl_enable_fast_reorg\", \"ON\"), (\"innodb_ft_enable_diag_print\", \"OFF\"), (\"innodb_checksum_algorithm\", \"innodb\"), (\"gtid_mode\", \"OFF\"), (\"tidb_auto_build_stats_concurrency\", \"1\"), (\"tidb_min_paging_size\", \"128\"), (\"delay_key_write\", \"ON\"), (\"new\", \"OFF\"), (\"lock_wait_timeout\", \"31536000\"), (\"div_precision_increment\", \"4\"), (\"net_buffer_length\", \"16384\"), (\"tidb_placement_mode\", \"STRICT\"), (\"auto_increment_offset\", \"1\"), (\"tidb_source_id\", \"1\"), (\"tidb_opt_disk_factor\", \"1.5\"), (\"innodb_api_bk_commit_interval\", \"5\"), (\"tidb_simplified_metrics\", \"OFF\"), (\"stored_program_cache\", \"256\"), (\"lc_time_names\", \"en_US\"), (\"transaction_write_set_extraction\", \"\"), (\"tidb_enable_index_merge\", \"ON\"), (\"thread_pool_size\", \"16\"), (\"tidb_enable_auto_increment_in_generated\", \"OFF\"), (\"tidb_stats_load_sync_wait\", \"100\"), (\"binlog_stmt_cache_size\", \"32768\"), (\"tidb_enable_legacy_instance_scope\", \"ON\"), (\"innodb_ft_num_word_optimize\", \"2000\"), (\"show_compatibility_56\", \"\"), (\"session_track_state_change\", \"\"), (\"innodb_file_format_max\", \"Antelope\"), (\"tidb_enable_table_partition\", \"ON\"), (\"innodb_purge_batch_size\", \"300\"), ((len:21519);"] [2024/05/06 16:36:47.083 +08:00] [INFO] [bootstrap.go:529] ["bootstrap successful"] ["take time"=27.60118354s] [2024/05/06 16:36:47.085 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:36:47.085 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 86, tp add index"] ["take time"=24.817µs] [2024/05/06 16:36:47.085 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 87, tp add index"] ["take time"=16.579µs] [2024/05/06 16:36:47.085 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 88, tp add index"] ["take time"=23.7µs] [2024/05/06 16:36:47.085 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 89, tp add index"] ["take time"=16.979µs] [2024/05/06 16:36:47.086 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 90, tp add index"] ["take time"=14.736µs] [2024/05/06 16:36:47.086 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 91, tp add index"] ["take time"=14.659µs] [2024/05/06 16:36:47.086 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 82, tp add index"] ["take time"=14.372µs] [2024/05/06 16:36:47.086 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 83, tp add index"] ["take time"=15.947µs] [2024/05/06 16:36:47.086 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 84, tp add index"] ["take time"=18.163µs] [2024/05/06 16:36:47.086 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 85, tp add index"] ["take time"=18.812µs] [2024/05/06 16:36:47.086 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:36:47.086 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 81, tp general"] ["take time"=25.255µs] [2024/05/06 16:36:47.086 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 80, tp add index"] ["take time"=2.588µs] [2024/05/06 16:36:47.086 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 79, tp general"] ["take time"=2.33µs] [2024/05/06 16:36:47.086 +08:00] [INFO] [delete_range.go:148] ["[ddl] closing delRange"] [2024/05/06 16:36:47.086 +08:00] [INFO] [session_pool.go:94] ["[ddl] closing sessionPool"] [2024/05/06 16:36:47.094 +08:00] [INFO] [ddl.go:833] ["[ddl] DDL closed"] [ID=82a7a1e7-3c52-46a8-a65b-00787cedf380] ["take time"=9.326908ms] [2024/05/06 16:36:47.094 +08:00] [INFO] [ddl.go:657] ["[ddl] stop DDL"] [ID=82a7a1e7-3c52-46a8-a65b-00787cedf380] [2024/05/06 16:36:47.094 +08:00] [INFO] [domain.go:792] ["loadSchemaInLoop exited."] [2024/05/06 16:36:47.094 +08:00] [INFO] [domain.go:628] ["globalConfigSyncerKeeper exited."] [2024/05/06 16:36:47.095 +08:00] [INFO] [domain.go:651] ["topologySyncerKeeper exited."] [2024/05/06 16:36:47.095 +08:00] [INFO] [domain.go:603] ["infoSyncerKeeper exited."] [2024/05/06 16:36:47.095 +08:00] [INFO] [domain.go:574] ["topNSlowQueryLoop exited."] [2024/05/06 16:36:47.095 +08:00] [INFO] [domain.go:1156] ["closestReplicaReadCheckLoop exited."] [2024/05/06 16:36:47.095 +08:00] [INFO] [domain.go:920] ["domain closed"] ["take time"=10.279394ms] [2024/05/06 16:36:47.095 +08:00] [INFO] [tidb.go:77] ["new domain"] [store=37669506-02a2-4b71-a735-1d2f917eb245] ["ddl lease"=500ms] ["stats lease"=-1ns] ["index usage sync lease"=0s] [2024/05/06 16:36:47.259 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=39] ["start time"=160.582565ms] [2024/05/06 16:36:47.278 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:36:47.278 +08:00] [INFO] [ddl.go:719] ["[ddl] start DDL"] [ID=84af94fc-06e8-46ea-be23-b66863488eb6] [runWorker=true] [2024/05/06 16:36:47.279 +08:00] [INFO] [ddl.go:665] ["[ddl] start delRangeManager OK"] ["is a emulator"=true] [2024/05/06 16:36:47.279 +08:00] [INFO] [delete_range.go:158] ["[ddl] start delRange emulator"] [2024/05/06 16:36:47.280 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 92, tp general"] [2024/05/06 16:36:47.281 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 93, tp add index"] [2024/05/06 16:36:47.304 +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:36:47.304 +08:00] [INFO] [env.go:108] ["[ddl-ingest] the lightning sorted dir"] ["data path:"=/tmp/tidb/tmp_ddl-4000] [2024/05/06 16:36:47.305 +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:36:47.305 +08:00] [WARN] [domain.go:1120] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 16:36:47.355 +08:00] [WARN] [sysvar_cache.go:50] ["sysvar cache is empty, triggering rebuild"] [2024/05/06 16:36:47.923 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=10] [schemaVersion=39] [cur_db=test] [sql="drop table if exists t1,t2"] [user=] [2024/05/06 16:36:47.926 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=10] [schemaVersion=39] [cur_db=test] [sql="create table t1 (id int primary key, v int)"] [user=] [2024/05/06 16:36:47.973 +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:36:47.94 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:47.973 +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:36:47.94 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="create table t1 (id int primary key, v int)"] [2024/05/06 16:36:48.399 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 94, 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:36:47.94 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:48.523 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=39] [neededSchemaVersion=40] ["start time"=1.645534ms] [phyTblIDs="[80]"] [actionTypes="[8]"] [2024/05/06 16:36:48.556 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=81] [version=40] [2024/05/06 16:36:48.563 +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"=42.686274ms] [job="ID:81, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:80, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:47.94 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:48.641 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 94, 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:36:47.94 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:48.722 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=81] [2024/05/06 16:36:48.722 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:48.723 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Conn_ID: 10\n# Query_time: 0.798950569\n# Parse_time: 0.000868772\n# Compile_time: 0.001001356\n# Rewrite_time: 0.000011916\n# Optimize_time: 0.000451463\n# Wait_TS: 0.000080455\n# DB: test\n# Is_internal: false\n# Digest: 58adff4e53b4dc3a2102ff826681d219bcf79edb1d10a7d7eddd3da56fcd9ce6\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 t1 (id int primary key, v int);"] [2024/05/06 16:36:48.733 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=10] [schemaVersion=40] [cur_db=test] [sql="create table t2 (id int)"] [user=] [2024/05/06 16:36:48.828 +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:2, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:48.773 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:48.828 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:83, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:48.773 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="create table t2 (id int)"] [2024/05/06 16:36:48.992 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 94, tp general"] [job="ID:83, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:36:48.773 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:49.089 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=40] [neededSchemaVersion=41] ["start time"=1.269912ms] [phyTblIDs="[82]"] [actionTypes="[8]"] [2024/05/06 16:36:49.156 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=83] [version=41] [2024/05/06 16:36:49.157 +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"=70.14033ms] [job="ID:83, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:48.773 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:49.226 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 94, tp general"] [job="ID:83, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:36:48.773 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:49.283 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=83] [2024/05/06 16:36:49.283 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:49.285 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Conn_ID: 10\n# Query_time: 0.553572386\n# Parse_time: 0.000624736\n# Compile_time: 0.000966089\n# Rewrite_time: 0.000012485\n# Optimize_time: 0.000451463\n# Wait_TS: 0.000083877\n# DB: test\n# Is_internal: false\n# Digest: 022ec70336ed50328c0e53dd0419219aeef85a72279ec430eea3ccf10d0811fe\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\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\ncreate table t2 (id int);"] [2024/05/06 16:36:49.288 +08:00] [INFO] [info.go:1114] [SetTiFlashGroupConfig] [2024/05/06 16:36:49.289 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=10] [schemaVersion=41] [cur_db=test] [sql="create temporary table tmp (id int)"] [user=] [2024/05/06 16:36:49.328 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=12] [schemaVersion=41] [cur_db=test] [sql="alter table t2 add column(c1 int)"] [user=] [2024/05/06 16:36:49.383 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:85, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:36:49.342 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:49.384 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:85, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:36:49.342 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="alter table t2 add column(c1 int)"] [2024/05/06 16:36:49.497 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 94, tp general"] [job="ID:85, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:36:49.342 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:49.499 +08:00] [INFO] [column.go:133] ["[ddl] run add column job"] [job="ID:85, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:36:49.342 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [columnInfo="{\"id\":2,\"name\":{\"O\":\"c1\",\"L\":\"c1\"},\"offset\":1,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{},\"state\":0,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2}"] [2024/05/06 16:36:49.557 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=41] [neededSchemaVersion=42] ["start time"=1.604671ms] [phyTblIDs="[82]"] [actionTypes="[32]"] [2024/05/06 16:36:49.607 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=85] [version=42] [2024/05/06 16:36:49.608 +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"=53.24462ms] [job="ID:85, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:36:49.342 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:49.673 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 94, tp general"] [job="ID:85, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:36:49.342 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:49.716 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=42] [neededSchemaVersion=43] ["start time"=1.468109ms] [phyTblIDs="[82]"] [actionTypes="[32]"] [2024/05/06 16:36:49.756 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=85] [version=43] [2024/05/06 16:36:49.756 +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.916552ms] [job="ID:85, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:36:49.342 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:49.827 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 94, tp general"] [job="ID:85, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:36:49.342 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:49.860 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=43] [neededSchemaVersion=44] ["start time"=1.493335ms] [phyTblIDs="[82]"] [actionTypes="[32]"] [2024/05/06 16:36:49.906 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=85] [version=44] [2024/05/06 16:36:49.909 +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"=51.694129ms] [job="ID:85, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:36:49.342 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:49.956 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 94, tp general"] [job="ID:85, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:36:49.342 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:50.008 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=44] [neededSchemaVersion=45] ["start time"=1.577326ms] [phyTblIDs="[82]"] [actionTypes="[32]"] [2024/05/06 16:36:50.058 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=85] [version=45] [2024/05/06 16:36:50.062 +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"=56.479563ms] [job="ID:85, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:36:49.342 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:50.138 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 94, tp general"] [job="ID:85, Type:add column, State:synced, SchemaState:public, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:36:49.342 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:50.205 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=85] [2024/05/06 16:36:50.206 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:50.208 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Conn_ID: 12\n# Query_time: 0.882496298\n# Parse_time: 0.000723092\n# Compile_time: 0.003291264\n# Rewrite_time: 0.000022895\n# Optimize_time: 0.000450834\n# Wait_TS: 0.000088974\n# DB: test\n# Is_internal: false\n# Digest: 177e330fc6e13ff4b1b9f51ae04b524c419feabb143557fdc6a5807ebb58aed3\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\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;\nalter table t2 add column(c1 int);"] [2024/05/06 16:36:50.244 +08:00] [WARN] [session.go:1015] [sql] [label=general] [error="[kv:9007]Write conflict, txnStartTS=449572925422174209, conflictStartTS=449572925425582080, conflictCommitTS=449572925426368512, key={tableID=80, tableName=test.t1, handle=1}, originalKey=7480000000000000505f728000000000000001, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [txn="Txn{state=invalid}"] [2024/05/06 16:36:50.245 +08:00] [WARN] [session.go:1298] [retrying] [schemaVersion=45] [retryCnt=0] [queryNum=0] [sql="begin optimistic"] [2024/05/06 16:36:50.268 +08:00] [WARN] [session.go:1298] [retrying] [schemaVersion=45] [retryCnt=0] [queryNum=1] [sql="update t1 set v=12 where id=1"] [2024/05/06 16:36:50.270 +08:00] [WARN] [session.go:1298] [retrying] [schemaVersion=45] [retryCnt=0] [queryNum=2] [sql=commit] [2024/05/06 16:36:50.275 +08:00] [WARN] [session.go:1321] ["transaction association"] ["retrying txnStartTS"=449572925668065280] ["original txnStartTS"=449572925422174209] [2024/05/06 16:36:50.282 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:36:50.282 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 99, tp add index"] ["take time"=8.533µs] [2024/05/06 16:36:50.282 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 100, tp add index"] ["take time"=6.779µs] [2024/05/06 16:36:50.282 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 101, tp add index"] ["take time"=4.584µs] [2024/05/06 16:36:50.282 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 102, tp add index"] ["take time"=4.488µs] [2024/05/06 16:36:50.282 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 103, tp add index"] ["take time"=5.163µs] [2024/05/06 16:36:50.282 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 104, tp add index"] ["take time"=5.074µs] [2024/05/06 16:36:50.282 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 95, tp add index"] ["take time"=15.778µs] [2024/05/06 16:36:50.282 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 96, tp add index"] ["take time"=13.734µs] [2024/05/06 16:36:50.282 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 97, tp add index"] ["take time"=12.494µs] [2024/05/06 16:36:50.282 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 98, tp add index"] ["take time"=3.632µs] [2024/05/06 16:36:50.282 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:36:50.283 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 94, tp general"] ["take time"=3.966µs] [2024/05/06 16:36:50.283 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 92, tp general"] ["take time"=2.162µs] [2024/05/06 16:36:50.283 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 93, tp add index"] ["take time"=2.277µs] [2024/05/06 16:36:50.283 +08:00] [INFO] [delete_range.go:148] ["[ddl] closing delRange"] [2024/05/06 16:36:50.283 +08:00] [INFO] [session_pool.go:94] ["[ddl] closing sessionPool"] [2024/05/06 16:36:50.284 +08:00] [INFO] [ddl.go:833] ["[ddl] DDL closed"] [ID=84af94fc-06e8-46ea-be23-b66863488eb6] ["take time"=3.101171ms] [2024/05/06 16:36:50.285 +08:00] [INFO] [ddl.go:657] ["[ddl] stop DDL"] [ID=84af94fc-06e8-46ea-be23-b66863488eb6] [2024/05/06 16:36:50.285 +08:00] [INFO] [domain.go:1156] ["closestReplicaReadCheckLoop exited."] [2024/05/06 16:36:50.285 +08:00] [INFO] [domain.go:792] ["loadSchemaInLoop exited."] [2024/05/06 16:36:50.286 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:36:50.286 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:36:50.286 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:36:50.286 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:36:50.287 +08:00] [INFO] [domain.go:1748] ["dumpFileGcChecker exited."] [2024/05/06 16:36:50.287 +08:00] [INFO] [domain.go:1444] ["LoadSysVarCacheLoop exited."] [2024/05/06 16:36:50.287 +08:00] [INFO] [domain.go:1394] ["loadPrivilegeInLoop exited."] [2024/05/06 16:36:50.287 +08:00] [INFO] [domain.go:1525] ["globalBindHandleWorkerLoop exited."] [2024/05/06 16:36:50.287 +08:00] [INFO] [domain.go:1569] ["handleEvolvePlanTasksLoop exited."] [2024/05/06 16:36:50.288 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:36:50.288 +08:00] [INFO] [domain.go:651] ["topologySyncerKeeper exited."] [2024/05/06 16:36:50.288 +08:00] [INFO] [domain.go:603] ["infoSyncerKeeper exited."] [2024/05/06 16:36:50.288 +08:00] [INFO] [domain.go:628] ["globalConfigSyncerKeeper exited."] [2024/05/06 16:36:50.288 +08:00] [INFO] [domain.go:574] ["topNSlowQueryLoop exited."] [2024/05/06 16:36:50.297 +08:00] [INFO] [domain.go:920] ["domain closed"] ["take time"=15.975836ms] [2024/05/06 16:36:50.301 +08:00] [INFO] [db.go:567] ["Closing database"] [2024/05/06 16:36:50.302 +08:00] [INFO] [db.go:592] ["Memtable flushed"] [2024/05/06 16:36:50.302 +08:00] [INFO] [db.go:596] ["Compaction finished"] [2024/05/06 16:36:50.302 +08:00] [INFO] [db.go:615] ["BlobManager finished"] [2024/05/06 16:36:50.302 +08:00] [INFO] [db.go:619] ["ResourceManager finished"] [2024/05/06 16:36:50.302 +08:00] [INFO] [db.go:625] ["Waiting for closer"] --- PASS: TestTxnContextInOptimisticRetry (30.92s) === RUN TestTxnContextForStaleRead [2024/05/06 16:36:50.311 +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:36:50.316 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:36:50.316 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:36:50.327 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:36:50.328 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:36:50.336 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:36:50.339 +08:00] [INFO] [tidb.go:77] ["new domain"] [store=5a0552e0-e7f8-44f4-9ab2-696d8391b22e] ["ddl lease"=500ms] ["stats lease"=-1ns] ["index usage sync lease"=0s] [2024/05/06 16:36:50.341 +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\nsessiontxn/sessiontxn_test_test.setupTxnContextTest\n\tsessiontxn/txn_context_test.go:61\nsessiontxn/sessiontxn_test_test.TestTxnContextForStaleRead\n\tsessiontxn/txn_context_test.go:447\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1446\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:36:50.379 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=0] ["start time"=36.468512ms] [2024/05/06 16:36:50.385 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:36:50.386 +08:00] [INFO] [ddl.go:719] ["[ddl] start DDL"] [ID=23e80579-9194-417d-9046-b84d811262e0] [runWorker=true] [2024/05/06 16:36:50.386 +08:00] [INFO] [ddl.go:665] ["[ddl] start delRangeManager OK"] ["is a emulator"=true] [2024/05/06 16:36:50.386 +08:00] [INFO] [delete_range.go:158] ["[ddl] start delRange emulator"] [2024/05/06 16:36:50.388 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 105, tp general"] [2024/05/06 16:36:50.388 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 106, tp add index"] [2024/05/06 16:36:50.389 +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:36:50.389 +08:00] [INFO] [env.go:108] ["[ddl-ingest] the lightning sorted dir"] ["data path:"=/tmp/tidb/tmp_ddl-4000] [2024/05/06 16:36:50.389 +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:36:50.390 +08:00] [WARN] [domain.go:1120] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 16:36:50.405 +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:36:50.450 +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:36:50.426 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE DATABASE IF NOT EXISTS test"] [2024/05/06 16:36:50.449 +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:36:50.426 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:50.641 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:36:50.891 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:36:51.141 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:36:51.397 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:36:51.480 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 107, 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:36:50.426 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:51.615 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=1] ["start time"=70.05424ms] [2024/05/06 16:36:51.621 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:36:51.692 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:51.692 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=3] [version=1] [2024/05/06 16:36:51.694 +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"=149.008881ms] [job="ID:3, Type:create schema, State:done, SchemaState:public, SchemaID:2, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 16:36:50.426 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:51.756 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 107, 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:36:50.426 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:51.792 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=3] [2024/05/06 16:36:51.792 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:51.794 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 1.396210445\n# Parse_time: 0\n# Compile_time: 0.007913783\n# Rewrite_time: 0.000010832\n# Optimize_time: 0\n# Wait_TS: 0.000145316\n# DB: mysql\n# Is_internal: true\n# Digest: 0a22979ad136f741465cf206b13e5717b9758dda34f7cae5a7a925f91711d6a0\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 mysql;\nCREATE DATABASE IF NOT EXISTS test;"] [2024/05/06 16:36:51.795 +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:36:51.835 +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:36:52.152 +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:36:51.854 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:52.152 +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:36:51.854 +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:36:52.255 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 107, 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:36:51.854 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:52.389 +08:00] [INFO] [info.go:1114] [SetTiFlashGroupConfig] [2024/05/06 16:36:52.771 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=1] [neededSchemaVersion=2] ["start time"=10.396693ms] [phyTblIDs="[4]"] [actionTypes="[8]"] [2024/05/06 16:36:52.843 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:52.844 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=5] [version=2] [2024/05/06 16:36:52.844 +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"=84.20984ms] [job="ID:5, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:4, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:51.854 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:52.943 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 107, 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:36:51.854 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:53.380 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=5] [2024/05/06 16:36:53.381 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:53.382 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 1.562652741\n# Parse_time: 0\n# Compile_time: 0.015651492\n# Rewrite_time: 0.000012032\n# Optimize_time: 0\n# Wait_TS: 0.000090715\n# DB: mysql\n# Is_internal: true\n# Digest: 14c6b489558060bdbede877927034270db5af07c6621aa28f87eeaec8727e925\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\nCREATE TABLE IF NOT EXISTS mysql.user ( Host CHAR(255), User CHAR(32), authentication_string TEXT, plugin CHAR(64), Select_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Insert_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Update_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Delete_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Drop_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Process_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Grant_priv ENUM('N','Y') NOT NULL DEFAULT 'N', References_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Show_db_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Super_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_tmp_table_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Lock_tables_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Execute_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Show_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Index_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_user_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Event_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Repl_slave_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Repl_client_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Trigger_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_role_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Drop_role_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Account_locked ENUM('N','Y') NOT NULL DEFAULT 'N', Shutdown_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Reload_priv ENUM('N','Y') NOT NULL DEFAULT 'N', FILE_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Config_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_Tablespace_Priv ENUM('N','Y') NOT NULL DEFAULT 'N', Password_reuse_history smallint unsigned DEFAULT NULL, Password_reuse_time smallint unsigned DEFAULT NULL, User_attributes json, Token_issuer VARCHAR(255), Password_expired ENUM('N','Y') NOT NULL DEFAULT 'N', Password_last_changed TIMESTAMP DEFAULT CURRENT_TIMESTAMP(), Password_lifetime SMALLINT UNSIGNED DEFAULT NULL, PRIMARY KEY (Host, User));"] [2024/05/06 16:36:53.394 +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:36:53.472 +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:36:53.407 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:53.472 +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:36:53.407 +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:36:53.574 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 107, 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:36:53.407 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:53.727 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=2] [neededSchemaVersion=3] ["start time"=2.687936ms] [phyTblIDs="[6]"] [actionTypes="[8]"] [2024/05/06 16:36:53.791 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:53.791 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=7] [version=3] [2024/05/06 16:36:53.792 +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"=68.967784ms] [job="ID:7, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:6, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:53.407 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:53.862 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 107, 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:36:53.407 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:53.935 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=7] [2024/05/06 16:36:53.935 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:53.937 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.546921947\n# Parse_time: 0\n# Compile_time: 0.004485137\n# Rewrite_time: 0.000013087\n# Optimize_time: 0\n# Wait_TS: 0.000102592\n# DB: mysql\n# Is_internal: true\n# Digest: eeb59bc0d98f65a2a5aef8eaa99596260e746b00eed183baf856558ef03533ac\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\nCREATE TABLE IF NOT EXISTS mysql.password_history ( Host char(255) NOT NULL DEFAULT '', User char(32) NOT NULL DEFAULT '', Password_timestamp timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), Password text, PRIMARY KEY (Host,User,Password_timestamp ) ) COMMENT='Password history for user accounts' ;"] [2024/05/06 16:36:53.952 +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:36:54.009 +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:36:53.965 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:54.009 +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:36:53.965 +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:36:54.115 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 107, 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:36:53.965 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:54.218 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=3] [neededSchemaVersion=4] ["start time"=2.060969ms] [phyTblIDs="[8]"] [actionTypes="[8]"] [2024/05/06 16:36:54.240 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:54.241 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=9] [version=4] [2024/05/06 16:36:54.241 +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"=26.377936ms] [job="ID:9, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:8, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:53.965 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:54.291 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 107, 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:36:53.965 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:54.381 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=9] [2024/05/06 16:36:54.382 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:54.383 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.433237475\n# Parse_time: 0\n# Compile_time: 0.002132707\n# Rewrite_time: 0.000012174\n# Optimize_time: 0\n# Wait_TS: 0.000122926\n# DB: mysql\n# Is_internal: true\n# Digest: 3bc9b46cf9e300a8d240915cf47216424544ed9f992c07151fba2e2cadc41632\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\nCREATE 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:36:54.451 +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:36:54.662 +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:36:54.467 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:54.662 +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:36:54.467 +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:36:54.786 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 107, 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:36:54.467 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:55.114 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=4] [neededSchemaVersion=5] ["start time"=6.220546ms] [phyTblIDs="[10]"] [actionTypes="[8]"] [2024/05/06 16:36:55.141 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:55.141 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=11] [version=5] [2024/05/06 16:36:55.141 +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"=34.962031ms] [job="ID:11, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:10, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:54.467 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:55.207 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 107, 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:36:54.467 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:55.450 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=11] [2024/05/06 16:36:55.450 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:55.452 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 1.016589475\n# Parse_time: 0\n# Compile_time: 0.015340638\n# Rewrite_time: 0.000013311\n# Optimize_time: 0\n# Wait_TS: 0.000105172\n# DB: mysql\n# Is_internal: true\n# Digest: aeaf612801484f0311f850d36f60f29e6d904828682c1f3bb7307dff25ca3a15\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\nCREATE TABLE IF NOT EXISTS mysql.db ( Host CHAR(255), DB CHAR(64), User CHAR(32), Select_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Insert_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Update_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Delete_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Drop_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Grant_priv ENUM('N','Y') NOT NULL DEFAULT 'N', References_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Index_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_tmp_table_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Lock_tables_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Show_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Execute_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Event_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Trigger_priv ENUM('N','Y') NOT NULL DEFAULT 'N', PRIMARY KEY (Host, DB, User));"] [2024/05/06 16:36:55.468 +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:36:55.602 +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:36:55.496 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:55.603 +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:36:55.496 +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:36:55.674 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 107, 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:36:55.496 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:55.801 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=5] [neededSchemaVersion=6] ["start time"=3.038073ms] [phyTblIDs="[12]"] [actionTypes="[8]"] [2024/05/06 16:36:55.841 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:55.841 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=13] [version=6] [2024/05/06 16:36:55.844 +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"=46.727127ms] [job="ID:13, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:12, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:55.496 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:55.900 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 107, 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:36:55.496 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:56.037 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=13] [2024/05/06 16:36:56.037 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:56.039 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.574637331\n# Parse_time: 0\n# Compile_time: 0.004251384\n# Rewrite_time: 0.00001136\n# Optimize_time: 0\n# Wait_TS: 0.000081962\n# DB: mysql\n# Is_internal: true\n# Digest: e8b37dad6cc7f05ee1f0be61455667495826928a93ddd09b94e02fbaed113955\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\nCREATE TABLE IF NOT EXISTS mysql.tables_priv ( Host CHAR(255), DB CHAR(64), User CHAR(32), Table_name CHAR(64), Grantor CHAR(77), Timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP, Table_priv SET('Select','Insert','Update','Delete','Create','Drop','Grant','Index','Alter','Create View','Show View','Trigger','References'), Column_priv SET('Select','Insert','Update','References'), PRIMARY KEY (Host, DB, User, Table_name));"] [2024/05/06 16:36:56.050 +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:36:56.123 +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:36:56.067 +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:36:56.127 +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:36:56.067 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:56.191 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 107, 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:36:56.067 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:56.315 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=6] [neededSchemaVersion=7] ["start time"=2.900386ms] [phyTblIDs="[14]"] [actionTypes="[8]"] [2024/05/06 16:36:56.343 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:56.343 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=15] [version=7] [2024/05/06 16:36:56.345 +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"=33.812134ms] [job="ID:15, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:14, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:56.067 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:56.425 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 107, 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:36:56.067 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:56.536 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=15] [2024/05/06 16:36:56.536 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:56.538 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.491408754\n# Parse_time: 0\n# Compile_time: 0.003163974\n# Rewrite_time: 0.000012555\n# Optimize_time: 0\n# Wait_TS: 0.000087231\n# DB: mysql\n# Is_internal: true\n# Digest: a19edbb3caff8cc57619278ab6eb5f791d7a821432309abe7184d0a7bca66b4d\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\nCREATE TABLE IF NOT EXISTS mysql.columns_priv( Host CHAR(255), DB CHAR(64), User CHAR(32), Table_name CHAR(64), Column_name CHAR(64), Timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP, Column_priv SET('Select','Insert','Update','References'), PRIMARY KEY (Host, DB, User, Table_name, Column_name));"] [2024/05/06 16:36:56.542 +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:36:56.641 +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:36:56.583 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:56.641 +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:36:56.583 +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:36:56.820 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 107, 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:36:56.583 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:56.994 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=7] [neededSchemaVersion=8] ["start time"=1.656949ms] [phyTblIDs="[16]"] [actionTypes="[8]"] [2024/05/06 16:36:57.040 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:57.040 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=17] [version=8] [2024/05/06 16:36:57.041 +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"=50.105783ms] [job="ID:17, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:16, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:56.583 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:57.102 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 107, 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:36:56.583 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:57.238 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=17] [2024/05/06 16:36:57.238 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:57.240 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.699247252\n# Parse_time: 0\n# Compile_time: 0.001771514\n# Rewrite_time: 0.000012103\n# Optimize_time: 0\n# Wait_TS: 0.00009055\n# DB: mysql\n# Is_internal: true\n# Digest: 55c1ea537145da60f32339dc7a3b69a3859f3f428fbae4e4023eb71dca836f47\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\nCREATE TABLE IF NOT EXISTS mysql.GLOBAL_VARIABLES( VARIABLE_NAME VARCHAR(64) NOT NULL PRIMARY KEY, VARIABLE_VALUE VARCHAR(1024) DEFAULT NULL);"] [2024/05/06 16:36:57.244 +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:36:57.343 +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:36:57.262 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:57.343 +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:36:57.262 +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:36:57.409 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 107, 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:36:57.262 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:57.541 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=8] [neededSchemaVersion=9] ["start time"=1.93637ms] [phyTblIDs="[18]"] [actionTypes="[8]"] [2024/05/06 16:36:57.591 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:57.591 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=19] [version=9] [2024/05/06 16:36:57.591 +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"=52.964522ms] [job="ID:19, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:18, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:57.262 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:57.705 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 107, 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:36:57.262 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:57.811 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=19] [2024/05/06 16:36:57.812 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:57.813 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.570384154\n# Parse_time: 0\n# Compile_time: 0.001740179\n# Rewrite_time: 0.000012895\n# Optimize_time: 0\n# Wait_TS: 0.000078471\n# DB: mysql\n# Is_internal: true\n# Digest: 0cc4a9cf54472ccff7c4fb8d7c6e34e6bd96af08b450ad4c9677473f1f517cf2\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\nCREATE TABLE IF NOT EXISTS mysql.tidb( VARIABLE_NAME VARCHAR(64) NOT NULL PRIMARY KEY, VARIABLE_VALUE VARCHAR(1024) DEFAULT NULL, COMMENT VARCHAR(1024));"] [2024/05/06 16:36:57.822 +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:36:57.914 +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:36:57.838 +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:36:57.929 +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:36:57.838 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:57.979 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 107, 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:36:57.838 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:58.108 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=9] [neededSchemaVersion=10] ["start time"=2.556143ms] [phyTblIDs="[20]"] [actionTypes="[8]"] [2024/05/06 16:36:58.142 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:58.142 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=21] [version=10] [2024/05/06 16:36:58.143 +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"=38.126341ms] [job="ID:21, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:20, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:57.838 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:58.199 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 107, 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:36:57.838 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:58.317 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=21] [2024/05/06 16:36:58.318 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:58.319 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.500924653\n# Parse_time: 0\n# Compile_time: 0.00367972\n# Rewrite_time: 0.000014267\n# Optimize_time: 0\n# Wait_TS: 0.000084621\n# DB: mysql\n# Is_internal: true\n# Digest: ca851971407336dad93908a9f88f01d828a4e18f332111987f4a7675bced7ea4\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\nCREATE TABLE IF NOT EXISTS mysql.help_topic ( help_topic_id INT(10) UNSIGNED NOT NULL, name CHAR(64) NOT NULL, help_category_id SMALLINT(5) UNSIGNED NOT NULL, description TEXT NOT NULL, example TEXT NOT NULL, url TEXT NOT NULL, PRIMARY KEY (help_topic_id) clustered, UNIQUE KEY name (name) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='help topics';"] [2024/05/06 16:36:58.328 +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:36:58.511 +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:36:58.367 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:58.512 +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:36:58.367 +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:36:58.583 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 107, 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:36:58.367 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:58.719 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=10] [neededSchemaVersion=11] ["start time"=2.510304ms] [phyTblIDs="[22]"] [actionTypes="[8]"] [2024/05/06 16:36:58.741 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:58.741 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=23] [version=11] [2024/05/06 16:36:58.743 +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"=26.85679ms] [job="ID:23, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:22, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:58.367 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:58.809 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 107, 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:36:58.367 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:58.899 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=23] [2024/05/06 16:36:58.899 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:58.901 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.576255532\n# Parse_time: 0\n# Compile_time: 0.003104979\n# Rewrite_time: 0.000012092\n# Optimize_time: 0\n# Wait_TS: 0.000086203\n# DB: mysql\n# Is_internal: true\n# Digest: db16a74bd407cb00f071eafe96456094f48fc00e802128fc486ef4847b8910b0\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\nCREATE TABLE IF NOT EXISTS mysql.stats_meta ( version BIGINT(64) UNSIGNED NOT NULL, table_id BIGINT(64) NOT NULL, modify_count BIGINT(64) NOT NULL DEFAULT 0, count BIGINT(64) UNSIGNED NOT NULL DEFAULT 0, snapshot BIGINT(64) UNSIGNED NOT NULL DEFAULT 0, INDEX idx_ver(version), UNIQUE INDEX tbl(table_id) );"] [2024/05/06 16:36:58.915 +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:36:58.917 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(6291456) to MEDIUMBLOB"] [2024/05/06 16:36:59.021 +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:36:58.931 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:59.022 +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:36:58.931 +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:36:59.089 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 107, 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:36:58.931 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:59.303 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=11] [neededSchemaVersion=12] ["start time"=4.215ms] [phyTblIDs="[24]"] [actionTypes="[8]"] [2024/05/06 16:36:59.340 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:59.341 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=25] [version=12] [2024/05/06 16:36:59.343 +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"=44.513548ms] [job="ID:25, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:24, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:58.931 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:59.404 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 107, 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:36:58.931 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:59.516 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=25] [2024/05/06 16:36:59.516 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:36:59.518 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.609587133\n# Parse_time: 0\n# Compile_time: 0.006982025\n# Rewrite_time: 0.000014435\n# Optimize_time: 0\n# Wait_TS: 0.000089897\n# DB: mysql\n# Is_internal: true\n# Digest: 7780c45a0aac5f123ac85a7e601e79c5d7779e7c09a19953908e547605ed45d2\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\nCREATE TABLE IF NOT EXISTS mysql.stats_histograms ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, distinct_count BIGINT(64) NOT NULL, null_count BIGINT(64) NOT NULL DEFAULT 0, tot_col_size BIGINT(64) NOT NULL DEFAULT 0, modify_count BIGINT(64) NOT NULL DEFAULT 0, version BIGINT(64) UNSIGNED NOT NULL DEFAULT 0, cm_sketch BLOB(6291456), stats_ver BIGINT(64) NOT NULL DEFAULT 0, flag BIGINT(64) NOT NULL DEFAULT 0, correlation DOUBLE NOT NULL DEFAULT 0, last_analyze_pos LONGBLOB DEFAULT NULL, UNIQUE INDEX tbl(table_id, is_index, hist_id) );"] [2024/05/06 16:36:59.527 +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:36:59.641 +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:36:59.543 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:36:59.641 +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:36:59.543 +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:36:59.722 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 107, 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:36:59.543 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:36:59.927 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=12] [neededSchemaVersion=13] ["start time"=3.360522ms] [phyTblIDs="[26]"] [actionTypes="[8]"] [2024/05/06 16:36:59.990 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:36:59.990 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=27] [version=13] [2024/05/06 16:36:59.991 +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"=67.255073ms] [job="ID:27, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:26, RowCount:0, ArgLen:2, start time: 2024-05-06 16:36:59.543 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:00.072 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 107, 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:36:59.543 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:00.197 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=27] [2024/05/06 16:37:00.198 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:00.199 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.676368431\n# Parse_time: 0\n# Compile_time: 0.003774659\n# Rewrite_time: 0.000015216\n# Optimize_time: 0\n# Wait_TS: 0.000093311\n# DB: mysql\n# Is_internal: true\n# Digest: 5615b5212342304015b027afb253371dae02f19e53871cfbb034deb145dfce32\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\nCREATE TABLE IF NOT EXISTS mysql.stats_buckets ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, bucket_id BIGINT(64) NOT NULL, count BIGINT(64) NOT NULL, repeats BIGINT(64) NOT NULL, upper_bound LONGBLOB NOT NULL, lower_bound LONGBLOB , ndv BIGINT NOT NULL DEFAULT 0, UNIQUE INDEX tbl(table_id, is_index, hist_id, bucket_id) );"] [2024/05/06 16:37:00.223 +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:37:00.290 +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:37:00.237 +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:37:00.306 +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:37:00.237 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:00.389 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 107, 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:37:00.237 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:00.538 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=13] [neededSchemaVersion=14] ["start time"=2.525803ms] [phyTblIDs="[28]"] [actionTypes="[8]"] [2024/05/06 16:37:00.590 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:00.590 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=29] [version=14] [2024/05/06 16:37:00.591 +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"=56.584648ms] [job="ID:29, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:28, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:00.237 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:00.650 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 107, 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:37:00.237 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:00.753 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=29] [2024/05/06 16:37:00.754 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:00.755 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.538480804\n# Parse_time: 0\n# Compile_time: 0.006704378\n# Rewrite_time: 0.000011751\n# Optimize_time: 0\n# Wait_TS: 0.000081554\n# DB: mysql\n# Is_internal: true\n# Digest: 4f764dd084d16197c847e23500fcaf8b96dbbabd598c823de37967bfa2ad51cd\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\nCREATE TABLE IF NOT EXISTS mysql.gc_delete_range ( job_id BIGINT NOT NULL COMMENT \"the DDL job ID\", element_id BIGINT NOT NULL COMMENT \"the schema element ID\", start_key VARCHAR(255) NOT NULL COMMENT \"encoded in hex\", end_key VARCHAR(255) NOT NULL COMMENT \"encoded in hex\", ts BIGINT NOT NULL COMMENT \"timestamp in uint64\", UNIQUE KEY delete_range_index (job_id, element_id) );"] [2024/05/06 16:37:00.812 +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:37:00.906 +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:37:00.833 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:00.906 +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:37:00.833 +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:37:01.047 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 107, 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:37:00.833 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:01.187 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=14] [neededSchemaVersion=15] ["start time"=2.446033ms] [phyTblIDs="[30]"] [actionTypes="[8]"] [2024/05/06 16:37:01.241 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:01.241 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=31] [version=15] [2024/05/06 16:37:01.242 +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"=58.052224ms] [job="ID:31, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:30, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:00.833 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:01.320 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 107, 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:37:00.833 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:01.463 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=31] [2024/05/06 16:37:01.464 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:01.466 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.69160619\n# Parse_time: 0\n# Compile_time: 0.038052484\n# Rewrite_time: 0.000011403\n# Optimize_time: 0\n# Wait_TS: 0.000105617\n# DB: mysql\n# Is_internal: true\n# Digest: 532cf71b38f2568975d61180716af7e2b05c9ca11023688224ed0c0eece42fa9\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\nCREATE TABLE IF NOT EXISTS mysql.gc_delete_range_done ( job_id BIGINT NOT NULL COMMENT \"the DDL job ID\", element_id BIGINT NOT NULL COMMENT \"the schema element ID\", start_key VARCHAR(255) NOT NULL COMMENT \"encoded in hex\", end_key VARCHAR(255) NOT NULL COMMENT \"encoded in hex\", ts BIGINT NOT NULL COMMENT \"timestamp in uint64\", UNIQUE KEY delete_range_done_index (job_id, element_id) );"] [2024/05/06 16:37:01.471 +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:37:01.633 +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:37:01.541 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:01.633 +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:37:01.541 +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:37:01.721 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 107, 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:37:01.541 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:01.863 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=15] [neededSchemaVersion=16] ["start time"=2.434788ms] [phyTblIDs="[32]"] [actionTypes="[8]"] [2024/05/06 16:37:01.890 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:01.890 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=33] [version=16] [2024/05/06 16:37:01.893 +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.767825ms] [job="ID:33, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:32, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:01.541 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:01.947 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 107, 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:37:01.541 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:02.044 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=33] [2024/05/06 16:37:02.044 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:02.046 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.576553747\n# Parse_time: 0\n# Compile_time: 0.002229224\n# Rewrite_time: 0.00001353\n# Optimize_time: 0\n# Wait_TS: 0.000092743\n# DB: mysql\n# Is_internal: true\n# Digest: 28f04155dca9c7fd3a5e16199cefd152c629a57a64d0ccb2ed0f10309c23c59c\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\nCREATE TABLE IF NOT EXISTS mysql.stats_feedback ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, feedback BLOB NOT NULL, INDEX hist(table_id, is_index, hist_id) );"] [2024/05/06 16:37:02.055 +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:37:02.159 +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:37:02.07 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:02.159 +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:37:02.07 +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:37:02.280 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 107, 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:37:02.07 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:02.418 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=16] [neededSchemaVersion=17] ["start time"=4.129294ms] [phyTblIDs="[34]"] [actionTypes="[8]"] [2024/05/06 16:37:02.446 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:02.446 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=35] [version=17] [2024/05/06 16:37:02.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=17] ["take time"=36.11705ms] [job="ID:35, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:34, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:02.07 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:02.517 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 107, 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:37:02.07 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:02.603 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=35] [2024/05/06 16:37:02.603 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:02.605 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.553052486\n# Parse_time: 0\n# Compile_time: 0.003581319\n# Rewrite_time: 0.000012465\n# Optimize_time: 0\n# Wait_TS: 0.000090922\n# DB: mysql\n# Is_internal: true\n# Digest: 13e2fcff943423afddaa84c2d34108628854b5953bc7c41d2879240f077a5bd6\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\nCREATE TABLE IF NOT EXISTS mysql.role_edges ( FROM_HOST CHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '', FROM_USER CHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '', TO_HOST CHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '', TO_USER CHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '', WITH_ADMIN_OPTION ENUM('N','Y') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'N', PRIMARY KEY (FROM_HOST,FROM_USER,TO_HOST,TO_USER) );"] [2024/05/06 16:37:02.612 +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:37:02.719 +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:37:02.659 +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:37:02.719 +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:37:02.659 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:02.795 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 107, 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:37:02.659 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:02.984 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=17] [neededSchemaVersion=18] ["start time"=2.348706ms] [phyTblIDs="[36]"] [actionTypes="[8]"] [2024/05/06 16:37:03.041 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:03.041 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=37] [version=18] [2024/05/06 16:37:03.043 +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"=62.625423ms] [job="ID:37, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:36, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:02.659 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:03.118 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 107, 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:37:02.659 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:03.225 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=37] [2024/05/06 16:37:03.225 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:03.227 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.618048961\n# Parse_time: 0\n# Compile_time: 0.003182225\n# Rewrite_time: 0.000013618\n# Optimize_time: 0\n# Wait_TS: 0.000084716\n# DB: mysql\n# Is_internal: true\n# Digest: 9e6b544fb0287e9d8a74031560ed0cd6a5b4e54db073b893a68a76b05d929781\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\nCREATE TABLE IF NOT EXISTS mysql.default_roles ( HOST CHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '', USER CHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '', DEFAULT_ROLE_HOST CHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '%', DEFAULT_ROLE_USER CHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '', PRIMARY KEY (HOST,USER,DEFAULT_ROLE_HOST,DEFAULT_ROLE_USER) );"] [2024/05/06 16:37:03.261 +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:37:03.399 +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:37:03.289 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:03.399 +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:37:03.289 +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:37:03.455 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 107, 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:37:03.289 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:03.675 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=18] [neededSchemaVersion=19] ["start time"=3.497574ms] [phyTblIDs="[38]"] [actionTypes="[8]"] [2024/05/06 16:37:03.690 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:03.690 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=39] [version=19] [2024/05/06 16:37:03.691 +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"=22.052535ms] [job="ID:39, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:38, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:03.289 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:03.741 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 107, 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:37:03.289 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:03.878 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=39] [2024/05/06 16:37:03.878 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:03.904 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.646274294\n# Parse_time: 0\n# Compile_time: 0.027037101\n# Rewrite_time: 0.000013905\n# Optimize_time: 0\n# Wait_TS: 0.000086934\n# DB: mysql\n# Is_internal: true\n# Digest: 0a4bc55a9ab72ef62ddaa1ee6472d7872306066fd783a8bb67047a497fbb4dbe\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\nCREATE TABLE IF NOT EXISTS mysql.bind_info ( original_sql TEXT NOT NULL, bind_sql TEXT NOT NULL, default_db TEXT NOT NULL, status TEXT NOT NULL, create_time TIMESTAMP(3) NOT NULL, update_time TIMESTAMP(3) NOT NULL, charset TEXT NOT NULL, collation TEXT NOT NULL, source VARCHAR(10) NOT NULL DEFAULT 'unknown', sql_digest varchar(64), plan_digest varchar(64), INDEX sql_index(original_sql(700),default_db(68)) COMMENT \"accelerate the speed when add global binding query\", INDEX time_index(update_time) COMMENT \"accelerate the speed when querying with last update time\" ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;"] [2024/05/06 16:37:03.939 +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:37:04.017 +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:37:03.952 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:04.017 +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:37:03.952 +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:37:04.112 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 107, 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:37:03.952 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:04.217 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=19] [neededSchemaVersion=20] ["start time"=2.439846ms] [phyTblIDs="[40]"] [actionTypes="[8]"] [2024/05/06 16:37:04.240 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:04.240 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=41] [version=20] [2024/05/06 16:37:04.240 +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"=26.241261ms] [job="ID:41, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:40, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:03.952 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:04.305 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 107, 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:37:03.952 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:04.422 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=41] [2024/05/06 16:37:04.423 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:04.424 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.501719737\n# Parse_time: 0\n# Compile_time: 0.016643767\n# Rewrite_time: 0.000012033\n# Optimize_time: 0\n# Wait_TS: 0.000108373\n# DB: mysql\n# Is_internal: true\n# Digest: 04a90564803373a6eb3f5a52e8794d25c4d28f6c18af7899b0b9f1bf1539ec72\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\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\nCREATE TABLE IF NOT EXISTS mysql.stats_top_n ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, value LONGBLOB, count BIGINT(64) UNSIGNED NOT NULL, INDEX tbl(table_id, is_index, hist_id) );"] [2024/05/06 16:37:04.429 +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:37:04.506 +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:37:04.443 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:04.507 +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:37:04.443 +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:37:04.578 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 107, 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:37:04.443 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:04.679 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=20] [neededSchemaVersion=21] ["start time"=1.836515ms] [phyTblIDs="[42]"] [actionTypes="[8]"] [2024/05/06 16:37:04.741 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:04.741 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=43] [version=21] [2024/05/06 16:37:04.745 +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"=68.123216ms] [job="ID:43, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:42, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:04.443 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:04.791 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 107, 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:37:04.443 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:04.859 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=43] [2024/05/06 16:37:04.859 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:04.861 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.433834074\n# Parse_time: 0\n# Compile_time: 0.00196966\n# Rewrite_time: 0.000012682\n# Optimize_time: 0\n# Wait_TS: 0.000066491\n# DB: mysql\n# Is_internal: true\n# Digest: 3e05fb8977f83f4e32022552aded3680a039cddc4239c339119a655dc1cffdbb\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\nCREATE TABLE IF NOT EXISTS mysql.expr_pushdown_blacklist ( name CHAR(100) NOT NULL, store_type CHAR(100) NOT NULL DEFAULT 'tikv,tiflash,tidb', reason VARCHAR(200) );"] [2024/05/06 16:37:04.864 +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:37:04.926 +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:37:04.884 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:04.926 +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:37:04.884 +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:37:05.056 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 107, 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:37:04.884 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:05.142 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=21] [neededSchemaVersion=22] ["start time"=1.397556ms] [phyTblIDs="[44]"] [actionTypes="[8]"] [2024/05/06 16:37:05.191 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:05.191 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=45] [version=22] [2024/05/06 16:37:05.193 +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"=52.979544ms] [job="ID:45, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:44, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:04.884 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:05.250 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 107, 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:37:04.884 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:05.343 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=45] [2024/05/06 16:37:05.343 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:05.345 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.481635096\n# Parse_time: 0\n# Compile_time: 0.001253344\n# Rewrite_time: 0.000011361\n# Optimize_time: 0\n# Wait_TS: 0.000083608\n# DB: mysql\n# Is_internal: true\n# Digest: aee36d5dc7131e4b6e3321cc046ae8b5ec8156ec1ef82481df0b97b8c734325f\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\nCREATE TABLE IF NOT EXISTS mysql.opt_rule_blacklist ( name CHAR(100) NOT NULL );"] [2024/05/06 16:37:05.355 +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:37:05.472 +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:37:05.381 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:05.472 +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:37:05.381 +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:37:05.570 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 107, 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:37:05.381 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:05.717 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=22] [neededSchemaVersion=23] ["start time"=3.275537ms] [phyTblIDs="[46]"] [actionTypes="[8]"] [2024/05/06 16:37:05.741 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:05.741 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=47] [version=23] [2024/05/06 16:37:05.741 +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.245786ms] [job="ID:47, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:46, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:05.381 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:05.809 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 107, 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:37:05.381 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:05.971 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=47] [2024/05/06 16:37:05.971 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:05.974 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.623393552\n# Parse_time: 0\n# Compile_time: 0.004370875\n# Rewrite_time: 0.000013247\n# Optimize_time: 0\n# Wait_TS: 0.000112812\n# DB: mysql\n# Is_internal: true\n# Digest: bd2a0d9809689d30e22f8d82b29b4ee110d16cda3353b77d74a1938afb746386\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\nCREATE TABLE IF NOT EXISTS mysql.stats_extended ( name varchar(32) NOT NULL, type tinyint(4) NOT NULL, table_id bigint(64) NOT NULL, column_ids varchar(32) NOT NULL, stats blob DEFAULT NULL, version bigint(64) unsigned NOT NULL, status tinyint(4) NOT NULL, PRIMARY KEY(name, table_id), KEY idx_1 (table_id, status, version), KEY idx_2 (status, version) );"] [2024/05/06 16:37:05.983 +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:37:06.102 +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:37:06.002 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:06.113 +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:37:06.002 +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:37:06.270 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 107, 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:37:06.002 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:06.492 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=23] [neededSchemaVersion=24] ["start time"=2.417297ms] [phyTblIDs="[48]"] [actionTypes="[8]"] [2024/05/06 16:37:06.540 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:06.540 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=49] [version=24] [2024/05/06 16:37:06.541 +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"=52.266618ms] [job="ID:49, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:48, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:06.002 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:06.633 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 107, 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:37:06.002 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:06.735 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=49] [2024/05/06 16:37:06.736 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:06.738 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.757479075\n# Parse_time: 0\n# Compile_time: 0.003372417\n# Rewrite_time: 0.000013149\n# Optimize_time: 0\n# Wait_TS: 0.000098111\n# DB: mysql\n# Is_internal: true\n# Digest: f72fffa4e6072164db3e01e2e29568b0b93c5045737047be527343b1737b0882\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\nCREATE TABLE IF NOT EXISTS mysql.schema_index_usage ( TABLE_ID bigint(64), INDEX_ID bigint(21), QUERY_COUNT bigint(64), ROWS_SELECTED bigint(64), LAST_USED_AT timestamp, PRIMARY KEY(TABLE_ID, INDEX_ID) );"] [2024/05/06 16:37:06.749 +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:37:06.818 +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:37:06.774 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:06.818 +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:37:06.774 +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:37:06.918 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 107, 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:37:06.774 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:07.016 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=24] [neededSchemaVersion=25] ["start time"=2.300004ms] [phyTblIDs="[50]"] [actionTypes="[8]"] [2024/05/06 16:37:07.040 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:07.041 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=51] [version=25] [2024/05/06 16:37:07.042 +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"=28.934928ms] [job="ID:51, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:50, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:06.774 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:07.096 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 107, 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:37:06.774 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:07.189 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=51] [2024/05/06 16:37:07.190 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:07.192 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.450277971\n# Parse_time: 0\n# Compile_time: 0.005783467\n# Rewrite_time: 0.00001468\n# Optimize_time: 0\n# Wait_TS: 0.000153111\n# DB: mysql\n# Is_internal: true\n# Digest: 27ef2533f9d97f96c8c86a69a0de51aad04499856acd05fe4a4b93fb5b6043d0\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\nCREATE TABLE IF NOT EXISTS mysql.stats_fm_sketch ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, value LONGBLOB, INDEX tbl(table_id, is_index, hist_id) );"] [2024/05/06 16:37:07.200 +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:37:07.289 +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:37:07.225 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:07.290 +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:37:07.225 +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:37:07.516 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 107, 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:37:07.225 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:07.933 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=25] [neededSchemaVersion=26] ["start time"=3.118888ms] [phyTblIDs="[52]"] [actionTypes="[8]"] [2024/05/06 16:37:07.990 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:07.990 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=53] [version=26] [2024/05/06 16:37:07.991 +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"=66.102405ms] [job="ID:53, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:52, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:07.225 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:08.090 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 107, 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:37:07.225 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:08.233 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=53] [2024/05/06 16:37:08.242 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:08.244 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 1.046656167\n# Parse_time: 0\n# Compile_time: 0.003323099\n# Rewrite_time: 0.00001219\n# Optimize_time: 0\n# Wait_TS: 0.00010819\n# DB: mysql\n# Is_internal: true\n# Digest: 79c6e54229df7b01d20ffaf8ac1077aa9ef39e604df30d5ce852dd7049cc3ddd\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\nCREATE TABLE IF NOT EXISTS mysql.global_grants ( USER char(32) NOT NULL DEFAULT '', HOST char(255) NOT NULL DEFAULT '', PRIV char(32) NOT NULL DEFAULT '', WITH_GRANT_OPTION enum('N','Y') NOT NULL DEFAULT 'N', PRIMARY KEY (USER,HOST,PRIV) );"] [2024/05/06 16:37:08.269 +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:37:08.422 +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:37:08.299 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:08.422 +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:37:08.299 +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:37:08.487 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 107, 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:37:08.299 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:08.707 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=26] [neededSchemaVersion=27] ["start time"=2.105761ms] [phyTblIDs="[54]"] [actionTypes="[8]"] [2024/05/06 16:37:08.740 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:08.751 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=55] [version=27] [2024/05/06 16:37:08.752 +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"=48.55218ms] [job="ID:55, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:54, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:08.299 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:08.816 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 107, 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:37:08.299 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:08.928 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=55] [2024/05/06 16:37:08.929 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:08.945 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.66596091\n# Parse_time: 0\n# Compile_time: 0.004852204\n# Rewrite_time: 0.000017601\n# Optimize_time: 0\n# Wait_TS: 0.00008379\n# DB: mysql\n# Is_internal: true\n# Digest: 08f858a5bd3a1fd5dfd809dd4b9d6c72db69f874b06ad0e91987f9e89a5cf89a\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\nCREATE TABLE IF NOT EXISTS mysql.capture_plan_baselines_blacklist ( id bigint(64) auto_increment, filter_type varchar(32) NOT NULL COMMENT \"type of the filter, only db, table and frequency supported now\", filter_value varchar(32) NOT NULL, key idx(filter_type), primary key(id) );"] [2024/05/06 16:37:08.965 +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:37:09.064 +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:37:08.986 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:09.064 +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:37:08.986 +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:37:09.169 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 107, 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:37:08.986 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:09.375 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=27] [neededSchemaVersion=28] ["start time"=2.203706ms] [phyTblIDs="[56]"] [actionTypes="[8]"] [2024/05/06 16:37:09.390 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:09.390 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=57] [version=28] [2024/05/06 16:37:09.404 +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"=32.242976ms] [job="ID:57, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:56, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:08.986 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:09.587 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 107, 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:37:08.986 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:09.726 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=57] [2024/05/06 16:37:09.726 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:09.728 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.778695865\n# Parse_time: 0\n# Compile_time: 0.015331628\n# Rewrite_time: 0.000012914\n# Optimize_time: 0\n# Wait_TS: 0.00008965\n# DB: mysql\n# Is_internal: true\n# Digest: 3a5634ff31bd7d32849c5404b7ffc419c7a7074307b815e5369eb6ca363cbcd0\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\nCREATE TABLE IF NOT EXISTS mysql.column_stats_usage ( table_id BIGINT(64) NOT NULL, column_id BIGINT(64) NOT NULL, last_used_at TIMESTAMP, last_analyzed_at TIMESTAMP, PRIMARY KEY (table_id, column_id) CLUSTERED );"] [2024/05/06 16:37:09.743 +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:37:09.848 +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:37:09.758 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:09.848 +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:37:09.758 +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:37:09.950 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 107, 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:37:09.758 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:10.175 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=28] [neededSchemaVersion=29] ["start time"=2.010279ms] [phyTblIDs="[58]"] [actionTypes="[8]"] [2024/05/06 16:37:10.241 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:10.241 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=59] [version=29] [2024/05/06 16:37:10.243 +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"=71.054621ms] [job="ID:59, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:58, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:09.758 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:10.313 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 107, 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:37:09.758 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:10.490 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=59] [2024/05/06 16:37:10.491 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:10.493 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.755334273\n# Parse_time: 0\n# Compile_time: 0.005148941\n# Rewrite_time: 0.000013044\n# Optimize_time: 0\n# Wait_TS: 0.000090698\n# DB: mysql\n# Is_internal: true\n# Digest: d5bebde055ca14bff3e131e086a86c4095b9d04ea6fc326b4c2f16ffd61fbd2d\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\nCREATE TABLE IF NOT EXISTS mysql.table_cache_meta ( tid bigint(11) NOT NULL DEFAULT 0, lock_type enum('NONE','READ', 'INTEND', 'WRITE') NOT NULL DEFAULT 'NONE', lease bigint(20) NOT NULL DEFAULT 0, oldReadLease bigint(20) NOT NULL DEFAULT 0, PRIMARY KEY (tid) );"] [2024/05/06 16:37:10.523 +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:37:10.540 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(19372) to MEDIUMBLOB"] [2024/05/06 16:37:10.657 +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:37:10.567 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:10.657 +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:37:10.567 +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:37:10.701 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 107, 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:37:10.567 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:10.806 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=29] [neededSchemaVersion=30] ["start time"=2.457743ms] [phyTblIDs="[60]"] [actionTypes="[8]"] [2024/05/06 16:37:10.845 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:10.845 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=61] [version=30] [2024/05/06 16:37:10.847 +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"=44.385389ms] [job="ID:61, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:60, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:10.567 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:10.915 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 107, 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:37:10.567 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:11.003 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=61] [2024/05/06 16:37:11.006 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:11.009 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.488467571\n# Parse_time: 0\n# Compile_time: 0.003441004\n# Rewrite_time: 0.000011413\n# Optimize_time: 0\n# Wait_TS: 0.000097905\n# DB: mysql\n# Is_internal: true\n# Digest: 987fcd9b9a604209ec1101d918419b993c42f84fe228e20aee2fcca2931ff93e\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\nCREATE TABLE IF NOT EXISTS mysql.analyze_options ( table_id BIGINT(64) NOT NULL, sample_num BIGINT(64) NOT NULL DEFAULT 0, sample_rate DOUBLE NOT NULL DEFAULT -1, buckets BIGINT(64) NOT NULL DEFAULT 0, topn BIGINT(64) NOT NULL DEFAULT -1, column_choice enum('DEFAULT','ALL','PREDICATE','LIST') NOT NULL DEFAULT 'DEFAULT', column_ids TEXT(19372), PRIMARY KEY (table_id) CLUSTERED );"] [2024/05/06 16:37:11.043 +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:37:11.195 +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:37:11.063 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:11.196 +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:37:11.063 +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:37:11.378 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 107, 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:37:11.063 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:11.525 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=30] [neededSchemaVersion=31] ["start time"=2.766912ms] [phyTblIDs="[62]"] [actionTypes="[8]"] [2024/05/06 16:37:11.590 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:11.590 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=63] [version=31] [2024/05/06 16:37:11.592 +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"=70.462172ms] [job="ID:63, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:62, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:11.063 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:11.652 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 107, 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:37:11.063 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:11.724 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=63] [2024/05/06 16:37:11.733 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:11.743 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.72788006\n# Parse_time: 0\n# Compile_time: 0.028822233\n# Rewrite_time: 0.000013529\n# Optimize_time: 0\n# Wait_TS: 0.00010626\n# DB: mysql\n# Is_internal: true\n# Digest: 11757f6de6b3d2a64e92f14cd7b7f739729563ede3b0139d016148eba0b27ebf\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\nCREATE TABLE IF NOT EXISTS mysql.stats_history ( table_id bigint(64) NOT NULL, stats_data longblob NOT NULL, seq_no bigint(64) NOT NULL comment 'sequence number of the gzipped data slice', version bigint(64) NOT NULL comment 'stats version which corresponding to stats:version in EXPLAIN', create_time datetime(6) NOT NULL, UNIQUE KEY table_version_seq (table_id, version, seq_no), KEY table_create_time (table_id, create_time, seq_no) );"] [2024/05/06 16:37:11.757 +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:37:11.921 +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:37:11.771 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:11.921 +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:37:11.771 +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:37:12.072 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 107, 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:37:11.771 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:12.318 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=31] [neededSchemaVersion=32] ["start time"=2.968348ms] [phyTblIDs="[64]"] [actionTypes="[8]"] [2024/05/06 16:37:12.398 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:12.398 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=65] [version=32] [2024/05/06 16:37:12.401 +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"=86.398714ms] [job="ID:65, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:64, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:11.771 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:12.614 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 107, 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:37:11.771 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:12.712 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=65] [2024/05/06 16:37:12.712 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:12.735 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.986515283\n# Parse_time: 0\n# Compile_time: 0.008873233\n# Rewrite_time: 0.000013772\n# Optimize_time: 0\n# Wait_TS: 0.000090297\n# DB: mysql\n# Is_internal: true\n# Digest: ebccd6f5d49fb0fcff4d7dc20bb3ae798d172a92ba5f6709445c980166f7e32f\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\nCREATE TABLE IF NOT EXISTS mysql.stats_meta_history ( table_id bigint(64) NOT NULL, modify_count bigint(64) NOT NULL, count bigint(64) NOT NULL, version bigint(64) NOT NULL comment 'stats version which corresponding to stats:version in EXPLAIN', create_time datetime(6) NOT NULL, UNIQUE KEY table_version (table_id, version), KEY table_create_time (table_id, create_time) );"] [2024/05/06 16:37:12.777 +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:37:13.173 +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:37:12.822 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:13.173 +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:37:12.822 +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:37:13.240 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 107, 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:37:12.822 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:13.516 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=32] [neededSchemaVersion=33] ["start time"=3.788448ms] [phyTblIDs="[66]"] [actionTypes="[8]"] [2024/05/06 16:37:13.540 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:13.540 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=67] [version=33] [2024/05/06 16:37:13.542 +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"=30.932056ms] [job="ID:67, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:66, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:12.822 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:13.620 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 107, 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:37:12.822 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:13.809 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=67] [2024/05/06 16:37:13.809 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:13.811 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 1.047504924\n# Parse_time: 0\n# Compile_time: 0.014024611\n# Rewrite_time: 0.000013804\n# Optimize_time: 0\n# Wait_TS: 0.0000935\n# DB: mysql\n# Is_internal: true\n# Digest: bfb9a3ff60c3c60c054a207c0a0db06c87e29edbe94005d8d5c89fe484f4f90a\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\nCREATE TABLE IF NOT EXISTS mysql.analyze_jobs ( id BIGINT(64) UNSIGNED NOT NULL AUTO_INCREMENT, update_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, table_schema CHAR(64) NOT NULL DEFAULT '', table_name CHAR(64) NOT NULL DEFAULT '', partition_name CHAR(64) NOT NULL DEFAULT '', job_info TEXT NOT NULL, processed_rows BIGINT(64) UNSIGNED NOT NULL DEFAULT 0, start_time TIMESTAMP, end_time TIMESTAMP, state ENUM('pending', 'running', 'finished', 'failed') NOT NULL, fail_reason TEXT, instance VARCHAR(512) NOT NULL comment 'address of the TiDB instance executing the analyze job', process_id BIGINT(64) UNSIGNED comment 'ID of the process executing the analyze job', PRIMARY KEY (id), KEY (update_time) );"] [2024/05/06 16:37:13.829 +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:37:13.969 +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:37:13.848 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:13.969 +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:37:13.848 +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:37:14.207 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 107, 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:37:13.848 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:14.329 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=33] [neededSchemaVersion=34] ["start time"=1.726427ms] [phyTblIDs="[68]"] [actionTypes="[8]"] [2024/05/06 16:37:14.391 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:14.391 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=69] [version=34] [2024/05/06 16:37:14.393 +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"=66.841392ms] [job="ID:69, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:68, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:13.848 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:14.564 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 107, 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:37:13.848 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:14.697 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=69] [2024/05/06 16:37:14.697 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:14.699 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.877857453\n# Parse_time: 0\n# Compile_time: 0.008594584\n# Rewrite_time: 0.000014297\n# Optimize_time: 0\n# Wait_TS: 0.000087357\n# DB: mysql\n# Is_internal: true\n# Digest: 85d0480e8afeca7d94d07ca1a681df6c7f89f1fda753ceb6e02b51caf3714c1c\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\nCREATE TABLE IF NOT EXISTS mysql.advisory_locks ( lock_name VARCHAR(64) NOT NULL PRIMARY KEY );"] [2024/05/06 16:37:14.803 +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:37:14.746 +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:37:14.818 +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:37:14.746 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:14.928 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 107, 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:37:14.746 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:15.057 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=34] [neededSchemaVersion=35] ["start time"=2.684898ms] [phyTblIDs="[70]"] [actionTypes="[2097152]"] [2024/05/06 16:37:15.091 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:15.091 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=71] [version=35] [2024/05/06 16:37:15.091 +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"=38.167813ms] [job="ID:71, Type:create view, State:done, SchemaState:public, SchemaID:1, TableID:70, RowCount:0, ArgLen:3, start time: 2024-05-06 16:37:14.746 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:15.205 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 107, 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:37:14.746 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:15.324 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=71] [2024/05/06 16:37:15.325 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:15.326 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.619446752\n# Parse_time: 0\n# Compile_time: 0.007037476\n# Rewrite_time: 0.003907979\n# Optimize_time: 0\n# Wait_TS: 0.000081829\n# DB: mysql\n# Is_internal: true\n# Digest: 812c81f344f5d0c8b8aedcb68ff1dca865b59104853273f7e66b8abff5429992\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\nCREATE OR REPLACE VIEW mysql.tidb_mdl_view as ( select 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 );"] [2024/05/06 16:37:15.396 +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:37:15.476 +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:37:15.422 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:15.476 +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:37:15.422 +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:37:15.536 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 107, 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:37:15.422 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:15.683 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=35] [neededSchemaVersion=36] ["start time"=2.574107ms] [phyTblIDs="[72]"] [actionTypes="[8]"] [2024/05/06 16:37:15.741 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:15.741 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=73] [version=36] [2024/05/06 16:37:15.741 +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"=64.877195ms] [job="ID:73, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:72, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:15.422 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:15.802 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 107, 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:37:15.422 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:15.927 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=73] [2024/05/06 16:37:15.928 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:15.930 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.598144297\n# Parse_time: 0\n# Compile_time: 0.064563706\n# Rewrite_time: 0.000011615\n# Optimize_time: 0\n# Wait_TS: 0.000086796\n# DB: mysql\n# Is_internal: true\n# Digest: 3d2f349b1c68ee2b30e34bad8bb3838af6c40d7a26072b2d29d801d7fedbac48\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\nCREATE TABLE IF NOT EXISTS mysql.plan_replayer_status ( sql_digest VARCHAR(128), plan_digest VARCHAR(128), origin_sql TEXT, token VARCHAR(128), update_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, fail_reason TEXT, instance VARCHAR(512) NOT NULL comment 'address of the TiDB instance executing the plan replayer job');"] [2024/05/06 16:37:15.938 +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:37:15.993 +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:37:15.951 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:15.993 +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:37:15.951 +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:37:16.069 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 107, 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:37:15.951 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:16.159 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=36] [neededSchemaVersion=37] ["start time"=2.208072ms] [phyTblIDs="[74]"] [actionTypes="[8]"] [2024/05/06 16:37:16.241 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:16.241 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=75] [version=37] [2024/05/06 16:37:16.241 +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"=90.33231ms] [job="ID:75, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:74, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:15.951 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:16.324 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 107, 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:37:15.951 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:16.436 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=75] [2024/05/06 16:37:16.436 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:16.438 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.50474223\n# Parse_time: 0\n# Compile_time: 0.004700452\n# Rewrite_time: 0.000015111\n# Optimize_time: 0\n# Wait_TS: 0.000085013\n# DB: mysql\n# Is_internal: true\n# Digest: 8d9754df14c826803fed84f1ae3eb8fc9729e76a793b6be6bf25967f1929d039\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\nCREATE TABLE IF NOT EXISTS mysql.plan_replayer_task ( sql_digest VARCHAR(128) NOT NULL, plan_digest VARCHAR(128) NOT NULL, update_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (sql_digest,plan_digest));"] [2024/05/06 16:37:16.444 +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:37:16.522 +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:37:16.481 +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:37:16.523 +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:37:16.481 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:16.642 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 107, 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:37:16.481 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:16.878 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=37] [neededSchemaVersion=38] ["start time"=2.350359ms] [phyTblIDs="[76]"] [actionTypes="[8]"] [2024/05/06 16:37:16.940 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:16.940 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=77] [version=38] [2024/05/06 16:37:16.941 +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"=66.318803ms] [job="ID:77, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:76, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:16.481 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:16.995 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 107, 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:37:16.481 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:17.072 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=77] [2024/05/06 16:37:17.072 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:17.074 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.632064868\n# Parse_time: 0\n# Compile_time: 0.002512455\n# Rewrite_time: 0.000013136\n# Optimize_time: 0\n# Wait_TS: 0.00006662\n# DB: mysql\n# Is_internal: true\n# Digest: b57fdc4b14aba5f29d915d04e5e4557f60a758fd65ec571368527cd45c6ef82a\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\nCREATE TABLE IF NOT EXISTS mysql.stats_table_locked( table_id bigint(64) NOT NULL, modify_count bigint(64) NOT NULL DEFAULT 0, count bigint(64) NOT NULL DEFAULT 0, version bigint(64) UNSIGNED NOT NULL DEFAULT 0, PRIMARY KEY (table_id));"] [2024/05/06 16:37:17.086 +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:37:17.243 +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:37:17.115 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:17.244 +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:37:17.115 +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:37:17.304 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 107, 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:37:17.115 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:17.531 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=38] [neededSchemaVersion=39] ["start time"=4.684798ms] [phyTblIDs="[78]"] [actionTypes="[8]"] [2024/05/06 16:37:17.590 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:17.590 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=79] [version=39] [2024/05/06 16:37:17.592 +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"=66.888774ms] [job="ID:79, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:78, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:17.115 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:17.654 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 107, 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:37:17.115 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:17.847 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=79] [2024/05/06 16:37:17.868 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:17.871 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.789495267\n# Parse_time: 0\n# Compile_time: 0.005130378\n# Rewrite_time: 0.000011707\n# Optimize_time: 0\n# Wait_TS: 0.000089782\n# DB: mysql\n# Is_internal: true\n# Digest: a30bd3c3a49070c554e65922e84c6b76e646842e3925a859fcde73941a7cb423\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\nCREATE TABLE IF NOT EXISTS mysql.tidb_ttl_table_status ( table_id bigint(64) PRIMARY KEY, parent_table_id bigint(64), table_statistics text DEFAULT NULL, last_job_id varchar(64) DEFAULT NULL, last_job_start_time timestamp NULL DEFAULT NULL, last_job_finish_time timestamp NULL DEFAULT NULL, last_job_ttl_expire timestamp NULL DEFAULT NULL, last_job_summary text DEFAULT NULL, current_job_id varchar(64) DEFAULT NULL, current_job_owner_id varchar(64) DEFAULT NULL, current_job_owner_addr varchar(256) DEFAULT NULL, current_job_owner_hb_time timestamp, current_job_start_time timestamp NULL DEFAULT NULL, current_job_ttl_expire timestamp NULL DEFAULT NULL, current_job_state text DEFAULT NULL, current_job_status varchar(64) DEFAULT NULL, current_job_status_update_time timestamp NULL DEFAULT NULL);"] [2024/05/06 16:37:18.837 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 449572932911890432\n# Query_time: 0.519946063\n# Parse_time: 0\n# Compile_time: 0.271998683\n# Rewrite_time: 0.007027693\n# Optimize_time: 0\n# Wait_TS: 0.00008537\n# DB: mysql\n# Is_internal: true\n# Digest: ca2019e08a331284bd0c64be228a0537fcf9f5983e95d94b67ef42dcb8f54385\n# Num_cop_tasks: 0\n# Mem_max: 348497\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: true\n# IsSyncStatsFailed: false\n# Plan: tidb_decode_plan('pAPgMAkyN18xCTAJMAlOL0EJMAl0aW1lOjIzNC40bXMsIGxvb3BzOjEsIHByZXBhcmU6IHt0b3RhbDogESJMYXV0b19pZF9hbGxvY2F0b3I6IHsFDGRfY250OiAxLCBHZXQ6e251bV9ycGM6NCwgdAFBAF8FaLg0NDMuMcK1c30sIGNvbW1pdF90eG46IHtwcmV3cml0ZTo3MjEuM8K1cywgZ2V0XxEkGHM6MjQuOcIBFwkTDDo1MDIFSSQsIHNsb3dlc3RfEUMFdgQgewV1aDogMC4wMDFzLCByZWdpb25faWQ6IDIsIHN0bwHbBQcIMSwgGY4YcHJpbWFyeUZEAAAwikQADWQYbnVtOjEsIAXQEF9rZXlzGQ6YYnl0ZTozMn19fSwgaW5zZXJ0OjE5OS45bXMJOTIuMyBLQglOL0EK')\n# Binary_plan: tidb_decode_binary_plan('sAPwQAqrAwoISW5zZXJ0XzE4AUABUgNOL0FaFXRpbWU6MjM0LjRtcywgbG9vcHM6MWLvAnByZXBhcmU6IHt0b3RhbDogESNMYXV0b19pZF9hbGxvY2F0b3I6IHsFDGRfY250OiAxLCBHZXQ6e251bV9ycGM6NCwgdAFBAF8Fabg0NDMuMcK1c30sIGNvbW1pdF90eG46IHtwcmV3cml0ZTo3MjEuM8K1cywgZ2V0XxEkGHM6MjQuOcIBFwkTDDo1MDIFSSQsIHNsb3dlc3RfEUMFdgQgewV1aDogMC4wMDFzLCByZWdpb25faWQ6IDIsIHN0bwHbBQcIMSwgGY4YcHJpbWFyeUZEAAAwikQADWQYbnVtOjEsIAXQEF9rZXlzGQ6oYnl0ZTozMn19fSwgaW5zZXJ0OjE5OS45bXNw0eIFeP///////////wEYAQ==')\nINSERT HIGH_PRIORITY INTO mysql.GLOBAL_VARIABLES VALUES (\"sync_master_info\", \"10000\"), (\"innodb_compression_level\", \"6\"), (\"tidb_index_lookup_join_concurrency\", \"-1\"), (\"tidb_enable_extended_stats\", \"OFF\"), (\"tidb_opt_skew_distinct_agg\", \"OFF\"), (\"slave_rows_search_algorithms\", \"TABLE_SCAN,INDEX_SCAN\"), (\"tidb_ttl_job_run_interval\", \"1h0m0s\"), (\"gtid_executed_compression_period\", \"\"), (\"flush_time\", \"0\"), (\"lc_messages\", \"en_US\"), (\"windowing_use_high_precision\", \"ON\"), (\"tidb_mem_oom_action\", \"LOG\"), (\"sql_safe_updates\", \"OFF\"), (\"tidb_enable_metadata_lock\", \"ON\"), (\"time_zone\", \"SYSTEM\"), (\"tidb_server_memory_limit_sess_min_size\", \"134217728\"), (\"log_syslog_include_pid\", \"\"), (\"innodb_purge_rseg_truncate_frequency\", \"\"), (\"max_connect_errors\", \"100\"), (\"ndbinfo_max_rows\", \"\"), (\"tidb_window_concurrency\", \"-1\"), (\"innodb_buffer_pool_dump_pct\", \"\"), (\"tidb_merge_partition_stats_concurrency\", \"1\"), (\"tidb_distsql_scan_concurrency\", \"15\"), (\"rpl_semi_sync_master_wait_point\", \"AFTER_SYNC\"), (\"tidb_opt_correlation_exp_factor\", \"1\"), (\"tidb_store_batch_size\", \"0\"), (\"tidb_auto_analyze_partition_batch_size\", \"1\"), (\"tidb_enable_top_sql\", \"OFF\"), (\"sha256_password_proxy_users\", \"\"), (\"myisam_data_pointer_size\", \"6\"), (\"tidb_mem_quota_binding_cache\", \"67108864\"), (\"tidb_top_sql_max_time_series_count\", \"100\"), (\"innodb_max_purge_lag\", \"0\"), (\"validate_password.dictionary\", \"\"), (\"innodb_cmp_per_index_enabled\", \"OFF\"), (\"ndb_eventbuffer_max_alloc\", \"\"), (\"tidb_rc_write_check_ts\", \"OFF\"), (\"tidb_ddl_reorg_worker_cnt\", \"4\"), (\"tidb_evolve_plan_task_end_time\", \"23:59 +0000\"), (\"innodb_commit_concurrency\", \"0\"), (\"mysql_native_password_proxy_users\", \"\"), (\"net_read_timeout\", \"30\"), (\"innodb_thread_concurrency\", \"0\"), (\"innodb_buffer_pool_filename\", \"ib_buffer_pool\"), (\"tidb_enable_gc_aware_memory_track\", \"OFF\"), (\"slave_allow_batching\", \"OFF\"), (\"tidb_txn_commit_batch_size\", \"16384\"), (\"transaction_alloc_block_size\", \"8192\"), (\"tidb_index_lookup_size\", \"20000\"), (\"innodb_buffer_pool_dump_now\", \"OFF\"), (\"innodb_status_output_locks\", \"OFF\"), (\"delay_key_write\", \"ON\"), (\"tidb_ddl_flashback_concurrency\", \"64\"), (\"local_infile\", \"ON\"), (\"log_syslog_facility\", \"\"), (\"interactive_timeout\", \"28800\"), (\"innodb_fast_shutdown\", \"1\"), (\"tiflash_fastscan\", \"OFF\"), (\"tidb_remove_orderby_in_subquery\", \"OFF\"), (\"tidb_enable_stmt_summary\", \"ON\"), (\"innodb_file_format\", \"Barracuda\"), (\"key_cache_block_size\", \"1024\"), (\"lock_wait_timeout\", \"31536000\"), (\"innodb_flush_sync\", \"\"), (\"join_buffer_size\", \"262144\"), (\"enforce_gtid_consistency\", \"OFF\"), (\"tidb_opt_prefer_range_scan\", \"OFF\"), (\"ndbinfo_show_hidden\", \"\"), (\"innodb_strict_mode\", \"ON\"), (\"innodb_adaptive_flushing\", \"ON\"), (\"tidb_auto_analyze_ratio\", \"0.5\"), (\"innodb_stats_on_metadata\", \"0\"), (\"read_buffer_size\", \"131072\"), (\"tidb_enable_plan_replayer_capture\", \"OFF\"), (\"innodb_sync_spin_loops\", \"30\"), (\"tidb_stmt_summary_history_size\", \"24\"), (\"tidb_enable_analyze_snapshot\", \"OFF\"), (\"bulk_insert_buffer_size\", \"8388608\"), (\"tidb_index_serial_scan_concurrency\", \"1\"), (\"tidb_external_ts\", \"0\"), (\"tidb_shard_allocate_step\", \"9223372036854775807\"), (\"group_concat_max_len\", \"1024\"), (\"password_reuse_interval\", \"0\"), (\"query_cache_type\", \"OFF\"), (\"max_length_for_sort_data\", \"1024\"), (\"default_week_format\", \"0\"), (\"lc_time_names\", \"en_US\"), (\"thread_pool_size\", \"16\"), (\"tidb_adaptive_closest_read_threshold\", \"4096\"), (\"sync_frm\", \"ON\"), (\"innodb_flush_log_at_timeout\", \"1\"), (\"tidb_auto_analyze_start_time\", \"00:00 +0000\"), (\"tidb_ignore_prepared_cache_close_stmt\", \"OFF\"), (\"default_authentication_plugin\", \"mysql_native_password\"), (\"log_warnings\", \"1\"), (\"max_points_in_geometry\", \"65536\"), (\"innodb_buffer_pool_size\", \"134217728\"), (\"min_examined_row_limit\", \"0\"), (\"ndb_eventbuffer_free_percent\", \"\"), (\"host_cache_size\", \"279\"), (\"tidb_max_tiflash_threads\", \"-1\"), (\"sql_warnings\", \"OFF\"), (\"tidb_ttl_job_schedule_window_end_time\", \"23:59 +0000\"), (\"tidb_partition_prune_mode\", \"dynamic\"), (\"query_prealloc_size\", \"8192\"), (\"tidb_gogc_tuner_threshold\", \"0.6\"), (\"tidb_store_limit\", \"0\"), (\"tidb_opt_agg_push_dow(len:21519);"] [2024/05/06 16:37:19.162 +08:00] [INFO] [bootstrap.go:529] ["bootstrap successful"] ["take time"=28.771488279s] [2024/05/06 16:37:19.179 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:37:19.179 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 113, tp add index"] ["take time"=25.399µs] [2024/05/06 16:37:19.179 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 114, tp add index"] ["take time"=18.197µs] [2024/05/06 16:37:19.179 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 115, tp add index"] ["take time"=16.154µs] [2024/05/06 16:37:19.180 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 116, tp add index"] ["take time"=13.57µs] [2024/05/06 16:37:19.180 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 117, tp add index"] ["take time"=18.748µs] [2024/05/06 16:37:19.180 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 108, tp add index"] ["take time"=18.31µs] [2024/05/06 16:37:19.180 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 109, tp add index"] ["take time"=18.831µs] [2024/05/06 16:37:19.180 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 110, tp add index"] ["take time"=17.614µs] [2024/05/06 16:37:19.180 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 111, tp add index"] ["take time"=20.005µs] [2024/05/06 16:37:19.180 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 112, tp add index"] ["take time"=17.053µs] [2024/05/06 16:37:19.180 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:37:19.180 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 107, tp general"] ["take time"=14.726µs] [2024/05/06 16:37:19.180 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 105, tp general"] ["take time"=2.041µs] [2024/05/06 16:37:19.180 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 106, tp add index"] ["take time"=2.372µs] [2024/05/06 16:37:19.180 +08:00] [INFO] [delete_range.go:148] ["[ddl] closing delRange"] [2024/05/06 16:37:19.181 +08:00] [INFO] [session_pool.go:94] ["[ddl] closing sessionPool"] [2024/05/06 16:37:19.191 +08:00] [INFO] [ddl.go:833] ["[ddl] DDL closed"] [ID=23e80579-9194-417d-9046-b84d811262e0] ["take time"=12.512137ms] [2024/05/06 16:37:19.192 +08:00] [INFO] [ddl.go:657] ["[ddl] stop DDL"] [ID=23e80579-9194-417d-9046-b84d811262e0] [2024/05/06 16:37:19.200 +08:00] [INFO] [domain.go:792] ["loadSchemaInLoop exited."] [2024/05/06 16:37:19.200 +08:00] [INFO] [domain.go:628] ["globalConfigSyncerKeeper exited."] [2024/05/06 16:37:19.200 +08:00] [INFO] [domain.go:651] ["topologySyncerKeeper exited."] [2024/05/06 16:37:19.200 +08:00] [INFO] [domain.go:574] ["topNSlowQueryLoop exited."] [2024/05/06 16:37:19.200 +08:00] [INFO] [domain.go:1156] ["closestReplicaReadCheckLoop exited."] [2024/05/06 16:37:19.200 +08:00] [INFO] [domain.go:603] ["infoSyncerKeeper exited."] [2024/05/06 16:37:19.200 +08:00] [INFO] [domain.go:920] ["domain closed"] ["take time"=21.349262ms] [2024/05/06 16:37:19.200 +08:00] [INFO] [tidb.go:77] ["new domain"] [store=5a0552e0-e7f8-44f4-9ab2-696d8391b22e] ["ddl lease"=500ms] ["stats lease"=-1ns] ["index usage sync lease"=0s] [2024/05/06 16:37:19.390 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=39] ["start time"=185.48228ms] [2024/05/06 16:37:19.396 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:37:19.397 +08:00] [INFO] [ddl.go:719] ["[ddl] start DDL"] [ID=6c95920d-e3ee-49d0-b895-b1b14a464aaa] [runWorker=true] [2024/05/06 16:37:19.398 +08:00] [INFO] [ddl.go:665] ["[ddl] start delRangeManager OK"] ["is a emulator"=true] [2024/05/06 16:37:19.398 +08:00] [INFO] [delete_range.go:158] ["[ddl] start delRange emulator"] [2024/05/06 16:37:19.399 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 118, tp general"] [2024/05/06 16:37:19.400 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 119, tp add index"] [2024/05/06 16:37:19.403 +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:37:19.404 +08:00] [INFO] [env.go:108] ["[ddl-ingest] the lightning sorted dir"] ["data path:"=/tmp/tidb/tmp_ddl-4000] [2024/05/06 16:37:19.404 +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:37:19.405 +08:00] [WARN] [domain.go:1120] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 16:37:19.446 +08:00] [WARN] [sysvar_cache.go:50] ["sysvar cache is empty, triggering rebuild"] [2024/05/06 16:37:19.815 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=13] [schemaVersion=39] [cur_db=test] [sql="drop table if exists t1,t2"] [user=] [2024/05/06 16:37:19.819 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=13] [schemaVersion=39] [cur_db=test] [sql="create table t1 (id int primary key, v int)"] [user=] [2024/05/06 16:37:19.882 +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:37:19.834 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:19.882 +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:37:19.834 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="create table t1 (id int primary key, v int)"] [2024/05/06 16:37:20.538 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 120, 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:37:19.834 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:20.619 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=39] [neededSchemaVersion=40] ["start time"=1.780195ms] [phyTblIDs="[80]"] [actionTypes="[8]"] [2024/05/06 16:37:20.656 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=81] [version=40] [2024/05/06 16:37:20.671 +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"=54.011946ms] [job="ID:81, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:80, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:19.834 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:20.742 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 120, 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:37:19.834 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:20.795 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=81] [2024/05/06 16:37:20.796 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:20.798 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Conn_ID: 13\n# Query_time: 0.981029044\n# Parse_time: 0.001012987\n# Compile_time: 0.000991269\n# Rewrite_time: 0.000012999\n# Optimize_time: 0.000496782\n# Wait_TS: 0.000083143\n# DB: test\n# Is_internal: false\n# Digest: 58adff4e53b4dc3a2102ff826681d219bcf79edb1d10a7d7eddd3da56fcd9ce6\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 t1 (id int primary key, v int);"] [2024/05/06 16:37:20.806 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=13] [schemaVersion=40] [cur_db=test] [sql="create table t2 (id int)"] [user=] [2024/05/06 16:37:20.843 +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:2, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:20.82 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:20.843 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:83, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:20.82 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="create table t2 (id int)"] [2024/05/06 16:37:20.969 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 120, tp general"] [job="ID:83, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:37:20.82 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:21.024 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=40] [neededSchemaVersion=41] ["start time"=1.097933ms] [phyTblIDs="[82]"] [actionTypes="[8]"] [2024/05/06 16:37:21.055 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=83] [version=41] [2024/05/06 16:37:21.055 +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"=32.561148ms] [job="ID:83, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:20.82 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:21.129 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 120, tp general"] [job="ID:83, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:37:20.82 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:21.212 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=83] [2024/05/06 16:37:21.212 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:21.214 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Conn_ID: 13\n# Query_time: 0.408944591\n# Parse_time: 0.000637635\n# Compile_time: 0.00089423\n# Rewrite_time: 0.000012201\n# Optimize_time: 0.000496782\n# Wait_TS: 0.000098313\n# DB: test\n# Is_internal: false\n# Digest: 022ec70336ed50328c0e53dd0419219aeef85a72279ec430eea3ccf10d0811fe\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\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\ncreate table t2 (id int);"] [2024/05/06 16:37:21.217 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=13] [schemaVersion=41] [cur_db=test] [sql="create temporary table tmp (id int)"] [user=] [2024/05/06 16:37:21.273 +08:00] [WARN] [2pc.go:1900] ["schemaLeaseChecker is not set for this transaction"] [sessionID=14] [startTS=449572933801345024] [checkTS=449572933801869312] [2024/05/06 16:37:21.404 +08:00] [INFO] [info.go:1114] [SetTiFlashGroupConfig] [2024/05/06 16:37:22.588 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=14] [schemaVersion=41] [cur_db=test] [sql="alter table t2 add column(c1 int)"] [user=] [2024/05/06 16:37:22.636 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:85, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:37:22.616 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:22.636 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:85, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:37:22.616 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="alter table t2 add column(c1 int)"] [2024/05/06 16:37:22.714 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 120, tp general"] [job="ID:85, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:37:22.616 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:22.720 +08:00] [INFO] [column.go:133] ["[ddl] run add column job"] [job="ID:85, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:37:22.616 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [columnInfo="{\"id\":2,\"name\":{\"O\":\"c1\",\"L\":\"c1\"},\"offset\":1,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{},\"state\":0,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2}"] [2024/05/06 16:37:22.754 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=41] [neededSchemaVersion=42] ["start time"=1.662658ms] [phyTblIDs="[82]"] [actionTypes="[32]"] [2024/05/06 16:37:22.805 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=85] [version=42] [2024/05/06 16:37:22.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=42] ["take time"=66.707997ms] [job="ID:85, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:37:22.616 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:22.946 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 120, tp general"] [job="ID:85, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:37:22.616 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:23.072 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=42] [neededSchemaVersion=43] ["start time"=1.590647ms] [phyTblIDs="[82]"] [actionTypes="[32]"] [2024/05/06 16:37:23.106 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=85] [version=43] [2024/05/06 16:37:23.108 +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"=38.750533ms] [job="ID:85, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:37:22.616 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:23.193 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 120, tp general"] [job="ID:85, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:37:22.616 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:23.279 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=43] [neededSchemaVersion=44] ["start time"=1.631135ms] [phyTblIDs="[82]"] [actionTypes="[32]"] [2024/05/06 16:37:23.355 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=85] [version=44] [2024/05/06 16:37:23.357 +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"=80.723582ms] [job="ID:85, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:37:22.616 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:23.431 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 120, tp general"] [job="ID:85, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:37:22.616 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:23.524 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=44] [neededSchemaVersion=45] ["start time"=1.669653ms] [phyTblIDs="[82]"] [actionTypes="[32]"] [2024/05/06 16:37:23.555 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=85] [version=45] [2024/05/06 16:37:23.556 +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"=34.157094ms] [job="ID:85, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:37:22.616 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:23.689 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 120, tp general"] [job="ID:85, Type:add column, State:synced, SchemaState:public, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:37:22.616 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:23.746 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=85] [2024/05/06 16:37:23.746 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:23.748 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Conn_ID: 14\n# Query_time: 1.161714891\n# Parse_time: 0.000782809\n# Compile_time: 0.001262428\n# Rewrite_time: 0.000017809\n# Optimize_time: 0.000591204\n# Wait_TS: 0.000089387\n# DB: test\n# Is_internal: false\n# Digest: 177e330fc6e13ff4b1b9f51ae04b524c419feabb143557fdc6a5807ebb58aed3\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\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;\nalter table t2 add column(c1 int);"] [2024/05/06 16:37:23.824 +08:00] [INFO] [set.go:308] ["load snapshot info schema"] [conn=14] [SnapshotTS=449572933830967296] [2024/05/06 16:37:23.827 +08:00] [INFO] [session.go:3962] ["use snapshot schema"] [conn=14] [schemaVersion=41] [2024/05/06 16:37:23.836 +08:00] [INFO] [set.go:308] ["load snapshot info schema"] [conn=14] [SnapshotTS=449572933830967296] [2024/05/06 16:37:23.919 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:37:23.919 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 127, tp add index"] ["take time"=34.89µs] [2024/05/06 16:37:23.919 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 128, tp add index"] ["take time"=23.855µs] [2024/05/06 16:37:23.919 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 129, tp add index"] ["take time"=19.827µs] [2024/05/06 16:37:23.920 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 130, tp add index"] ["take time"=26.296µs] [2024/05/06 16:37:23.920 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 121, tp add index"] ["take time"=26.617µs] [2024/05/06 16:37:23.920 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 122, tp add index"] ["take time"=37.291µs] [2024/05/06 16:37:23.920 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 123, tp add index"] ["take time"=21.488µs] [2024/05/06 16:37:23.920 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 124, tp add index"] ["take time"=27.396µs] [2024/05/06 16:37:23.920 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 125, tp add index"] ["take time"=19.921µs] [2024/05/06 16:37:23.920 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 126, tp add index"] ["take time"=20.079µs] [2024/05/06 16:37:23.923 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:37:23.923 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 120, tp general"] ["take time"=26.252µs] [2024/05/06 16:37:23.923 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 118, tp general"] ["take time"=7.884µs] [2024/05/06 16:37:23.923 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 119, tp add index"] ["take time"=2.257µs] [2024/05/06 16:37:23.923 +08:00] [INFO] [delete_range.go:148] ["[ddl] closing delRange"] [2024/05/06 16:37:23.924 +08:00] [INFO] [session_pool.go:94] ["[ddl] closing sessionPool"] [2024/05/06 16:37:23.928 +08:00] [INFO] [ddl.go:833] ["[ddl] DDL closed"] [ID=6c95920d-e3ee-49d0-b895-b1b14a464aaa] ["take time"=11.701009ms] [2024/05/06 16:37:23.928 +08:00] [INFO] [ddl.go:657] ["[ddl] stop DDL"] [ID=6c95920d-e3ee-49d0-b895-b1b14a464aaa] [2024/05/06 16:37:23.928 +08:00] [INFO] [domain.go:1156] ["closestReplicaReadCheckLoop exited."] [2024/05/06 16:37:23.928 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:37:23.928 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:37:23.928 +08:00] [INFO] [domain.go:792] ["loadSchemaInLoop exited."] [2024/05/06 16:37:23.928 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:37:23.928 +08:00] [INFO] [domain.go:1569] ["handleEvolvePlanTasksLoop exited."] [2024/05/06 16:37:23.928 +08:00] [INFO] [domain.go:1748] ["dumpFileGcChecker exited."] [2024/05/06 16:37:23.928 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:37:23.928 +08:00] [INFO] [domain.go:1444] ["LoadSysVarCacheLoop exited."] [2024/05/06 16:37:23.929 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:37:23.929 +08:00] [INFO] [domain.go:1525] ["globalBindHandleWorkerLoop exited."] [2024/05/06 16:37:23.929 +08:00] [INFO] [domain.go:651] ["topologySyncerKeeper exited."] [2024/05/06 16:37:23.929 +08:00] [INFO] [domain.go:574] ["topNSlowQueryLoop exited."] [2024/05/06 16:37:23.929 +08:00] [INFO] [domain.go:603] ["infoSyncerKeeper exited."] [2024/05/06 16:37:23.929 +08:00] [INFO] [domain.go:628] ["globalConfigSyncerKeeper exited."] [2024/05/06 16:37:23.930 +08:00] [INFO] [domain.go:1394] ["loadPrivilegeInLoop exited."] [2024/05/06 16:37:23.937 +08:00] [INFO] [domain.go:920] ["domain closed"] ["take time"=20.950674ms] [2024/05/06 16:37:23.944 +08:00] [INFO] [db.go:567] ["Closing database"] [2024/05/06 16:37:23.945 +08:00] [INFO] [db.go:592] ["Memtable flushed"] [2024/05/06 16:37:23.945 +08:00] [INFO] [db.go:596] ["Compaction finished"] [2024/05/06 16:37:23.945 +08:00] [INFO] [db.go:615] ["BlobManager finished"] [2024/05/06 16:37:23.945 +08:00] [INFO] [db.go:619] ["ResourceManager finished"] [2024/05/06 16:37:23.945 +08:00] [INFO] [db.go:625] ["Waiting for closer"] --- PASS: TestTxnContextForStaleRead (33.64s) === RUN TestTxnContextForStaleReadInPrepare [2024/05/06 16:37:24.001 +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:37:24.005 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:37:24.006 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:37:24.036 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:37:24.036 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:37:24.053 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:37:24.056 +08:00] [INFO] [tidb.go:77] ["new domain"] [store=91a32eaa-bd1b-4afa-81d1-0e62af968a3f] ["ddl lease"=500ms] ["stats lease"=-1ns] ["index usage sync lease"=0s] [2024/05/06 16:37:24.058 +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\nsessiontxn/sessiontxn_test_test.setupTxnContextTest\n\tsessiontxn/txn_context_test.go:61\nsessiontxn/sessiontxn_test_test.TestTxnContextForStaleReadInPrepare\n\tsessiontxn/txn_context_test.go:581\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1446\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:37:24.102 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=0] ["start time"=43.817218ms] [2024/05/06 16:37:24.113 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:37:24.114 +08:00] [INFO] [ddl.go:719] ["[ddl] start DDL"] [ID=24046a78-06f1-41b9-bcb2-caa1c28df616] [runWorker=true] [2024/05/06 16:37:24.116 +08:00] [INFO] [ddl.go:665] ["[ddl] start delRangeManager OK"] ["is a emulator"=true] [2024/05/06 16:37:24.117 +08:00] [INFO] [delete_range.go:158] ["[ddl] start delRange emulator"] [2024/05/06 16:37:24.118 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 131, tp general"] [2024/05/06 16:37:24.119 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 132, tp add index"] [2024/05/06 16:37:24.121 +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:37:24.121 +08:00] [INFO] [env.go:108] ["[ddl-ingest] the lightning sorted dir"] ["data path:"=/tmp/tidb/tmp_ddl-4000] [2024/05/06 16:37:24.122 +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:37:24.122 +08:00] [WARN] [domain.go:1120] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 16:37:24.130 +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:37:24.175 +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:37:24.155 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:24.175 +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:37:24.155 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE DATABASE IF NOT EXISTS test"] [2024/05/06 16:37:24.374 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:37:24.626 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:37:24.874 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:37:25.124 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:37:25.247 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 133, 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:37:24.155 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:25.413 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=1] ["start time"=86.863879ms] [2024/05/06 16:37:25.460 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:37:25.523 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:25.523 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=3] [version=1] [2024/05/06 16:37:25.523 +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"=198.151407ms] [job="ID:3, Type:create schema, State:done, SchemaState:public, SchemaID:2, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 16:37:24.155 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:25.597 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 133, 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:37:24.155 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:25.722 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=3] [2024/05/06 16:37:25.722 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:25.724 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 1.594451973\n# Parse_time: 0\n# Compile_time: 0.000852243\n# Rewrite_time: 0.000011023\n# Optimize_time: 0\n# Wait_TS: 0.000122092\n# DB: mysql\n# Is_internal: true\n# Digest: 0a22979ad136f741465cf206b13e5717b9758dda34f7cae5a7a925f91711d6a0\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 mysql;\nCREATE DATABASE IF NOT EXISTS test;"] [2024/05/06 16:37:25.725 +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:37:25.865 +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:37:26.127 +08:00] [INFO] [info.go:1114] [SetTiFlashGroupConfig] [2024/05/06 16:37:26.305 +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:37:25.899 +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:37:26.312 +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:37:25.899 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:26.381 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 133, 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:37:25.899 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:26.902 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=1] [neededSchemaVersion=2] ["start time"=10.60927ms] [phyTblIDs="[4]"] [actionTypes="[8]"] [2024/05/06 16:37:26.923 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:26.923 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=5] [version=2] [2024/05/06 16:37:26.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=2] ["take time"=37.147058ms] [job="ID:5, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:4, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:25.899 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:26.988 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 133, 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:37:25.899 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:27.445 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=5] [2024/05/06 16:37:27.448 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:27.450 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 1.642736881\n# Parse_time: 0\n# Compile_time: 0.057383908\n# Rewrite_time: 0.000015161\n# Optimize_time: 0\n# Wait_TS: 0.000104578\n# DB: mysql\n# Is_internal: true\n# Digest: 14c6b489558060bdbede877927034270db5af07c6621aa28f87eeaec8727e925\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\nCREATE TABLE IF NOT EXISTS mysql.user ( Host CHAR(255), User CHAR(32), authentication_string TEXT, plugin CHAR(64), Select_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Insert_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Update_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Delete_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Drop_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Process_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Grant_priv ENUM('N','Y') NOT NULL DEFAULT 'N', References_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Show_db_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Super_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_tmp_table_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Lock_tables_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Execute_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Show_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Index_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_user_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Event_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Repl_slave_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Repl_client_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Trigger_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_role_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Drop_role_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Account_locked ENUM('N','Y') NOT NULL DEFAULT 'N', Shutdown_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Reload_priv ENUM('N','Y') NOT NULL DEFAULT 'N', FILE_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Config_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_Tablespace_Priv ENUM('N','Y') NOT NULL DEFAULT 'N', Password_reuse_history smallint unsigned DEFAULT NULL, Password_reuse_time smallint unsigned DEFAULT NULL, User_attributes json, Token_issuer VARCHAR(255), Password_expired ENUM('N','Y') NOT NULL DEFAULT 'N', Password_last_changed TIMESTAMP DEFAULT CURRENT_TIMESTAMP(), Password_lifetime SMALLINT UNSIGNED DEFAULT NULL, PRIMARY KEY (Host, User));"] [2024/05/06 16:37:27.457 +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:37:27.517 +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:37:27.472 +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:37:27.520 +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:37:27.472 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:27.625 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 133, 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:37:27.472 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:27.751 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=2] [neededSchemaVersion=3] ["start time"=2.32257ms] [phyTblIDs="[6]"] [actionTypes="[8]"] [2024/05/06 16:37:27.772 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:27.773 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=7] [version=3] [2024/05/06 16:37:27.773 +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.710604ms] [job="ID:7, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:6, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:27.472 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:27.858 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 133, 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:37:27.472 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:27.940 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=7] [2024/05/06 16:37:27.940 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:27.942 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.487439655\n# Parse_time: 0\n# Compile_time: 0.002921837\n# Rewrite_time: 0.000012276\n# Optimize_time: 0\n# Wait_TS: 0.000095631\n# DB: mysql\n# Is_internal: true\n# Digest: eeb59bc0d98f65a2a5aef8eaa99596260e746b00eed183baf856558ef03533ac\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\nCREATE TABLE IF NOT EXISTS mysql.password_history ( Host char(255) NOT NULL DEFAULT '', User char(32) NOT NULL DEFAULT '', Password_timestamp timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), Password text, PRIMARY KEY (Host,User,Password_timestamp ) ) COMMENT='Password history for user accounts' ;"] [2024/05/06 16:37:27.952 +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:37:28.028 +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:37:27.972 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:28.028 +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:37:27.972 +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:37:28.118 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 133, 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:37:27.972 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:28.253 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=3] [neededSchemaVersion=4] ["start time"=1.701557ms] [phyTblIDs="[8]"] [actionTypes="[8]"] [2024/05/06 16:37:28.273 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:28.273 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=9] [version=4] [2024/05/06 16:37:28.275 +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"=24.665422ms] [job="ID:9, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:8, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:27.972 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:28.326 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 133, 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:37:27.972 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:28.418 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=9] [2024/05/06 16:37:28.418 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:28.420 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.472522597\n# Parse_time: 0\n# Compile_time: 0.004080612\n# Rewrite_time: 0.000012473\n# Optimize_time: 0\n# Wait_TS: 0.000086417\n# DB: mysql\n# Is_internal: true\n# Digest: 3bc9b46cf9e300a8d240915cf47216424544ed9f992c07151fba2e2cadc41632\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\nCREATE 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:37:28.463 +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:37:28.684 +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:37:28.483 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:28.684 +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:37:28.483 +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:37:28.752 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 133, 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:37:28.483 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:29.122 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=4] [neededSchemaVersion=5] ["start time"=7.030459ms] [phyTblIDs="[10]"] [actionTypes="[8]"] [2024/05/06 16:37:29.173 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:29.173 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=11] [version=5] [2024/05/06 16:37:29.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=5] ["take time"=60.177963ms] [job="ID:11, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:10, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:28.483 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:29.267 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 133, 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:37:28.483 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:29.429 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=11] [2024/05/06 16:37:29.429 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:29.431 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.998695089\n# Parse_time: 0\n# Compile_time: 0.031334379\n# Rewrite_time: 0.000013875\n# Optimize_time: 0\n# Wait_TS: 0.000073329\n# DB: mysql\n# Is_internal: true\n# Digest: aeaf612801484f0311f850d36f60f29e6d904828682c1f3bb7307dff25ca3a15\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\nCREATE TABLE IF NOT EXISTS mysql.db ( Host CHAR(255), DB CHAR(64), User CHAR(32), Select_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Insert_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Update_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Delete_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Drop_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Grant_priv ENUM('N','Y') NOT NULL DEFAULT 'N', References_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Index_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_tmp_table_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Lock_tables_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Show_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Execute_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Event_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Trigger_priv ENUM('N','Y') NOT NULL DEFAULT 'N', PRIMARY KEY (Host, DB, User));"] [2024/05/06 16:37:29.440 +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:37:29.525 +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:37:29.457 +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:37:29.527 +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:37:29.457 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:29.595 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 133, 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:37:29.457 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:29.762 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=5] [neededSchemaVersion=6] ["start time"=3.26312ms] [phyTblIDs="[12]"] [actionTypes="[8]"] [2024/05/06 16:37:29.823 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:29.823 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=13] [version=6] [2024/05/06 16:37:29.824 +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"=66.826548ms] [job="ID:13, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:12, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:29.457 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:29.889 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 133, 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:37:29.457 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:29.998 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=13] [2024/05/06 16:37:29.999 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:30.000 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.564188516\n# Parse_time: 0\n# Compile_time: 0.003641853\n# Rewrite_time: 0.000019857\n# Optimize_time: 0\n# Wait_TS: 0.000103872\n# DB: mysql\n# Is_internal: true\n# Digest: e8b37dad6cc7f05ee1f0be61455667495826928a93ddd09b94e02fbaed113955\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\nCREATE TABLE IF NOT EXISTS mysql.tables_priv ( Host CHAR(255), DB CHAR(64), User CHAR(32), Table_name CHAR(64), Grantor CHAR(77), Timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP, Table_priv SET('Select','Insert','Update','Delete','Create','Drop','Grant','Index','Alter','Create View','Show View','Trigger','References'), Column_priv SET('Select','Insert','Update','References'), PRIMARY KEY (Host, DB, User, Table_name));"] [2024/05/06 16:37:30.007 +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:37:30.109 +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:37:30.023 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:30.109 +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:37:30.023 +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:37:30.194 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 133, 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:37:30.023 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:30.410 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=6] [neededSchemaVersion=7] ["start time"=2.864493ms] [phyTblIDs="[14]"] [actionTypes="[8]"] [2024/05/06 16:37:30.473 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:30.473 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=15] [version=7] [2024/05/06 16:37:30.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=7] ["take time"=66.761616ms] [job="ID:15, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:14, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:30.023 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:30.551 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 133, 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:37:30.023 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:30.639 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=15] [2024/05/06 16:37:30.640 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:30.641 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.637337999\n# Parse_time: 0\n# Compile_time: 0.002919095\n# Rewrite_time: 0.000013382\n# Optimize_time: 0\n# Wait_TS: 0.000105301\n# DB: mysql\n# Is_internal: true\n# Digest: a19edbb3caff8cc57619278ab6eb5f791d7a821432309abe7184d0a7bca66b4d\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\nCREATE TABLE IF NOT EXISTS mysql.columns_priv( Host CHAR(255), DB CHAR(64), User CHAR(32), Table_name CHAR(64), Column_name CHAR(64), Timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP, Column_priv SET('Select','Insert','Update','References'), PRIMARY KEY (Host, DB, User, Table_name, Column_name));"] [2024/05/06 16:37:30.646 +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:37:30.701 +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:37:30.659 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:30.701 +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:37:30.659 +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:37:30.770 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 133, 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:37:30.659 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:30.905 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=7] [neededSchemaVersion=8] ["start time"=1.757409ms] [phyTblIDs="[16]"] [actionTypes="[8]"] [2024/05/06 16:37:30.923 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:30.923 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=17] [version=8] [2024/05/06 16:37:30.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=8] ["take time"=22.347901ms] [job="ID:17, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:16, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:30.659 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:30.975 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 133, 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:37:30.659 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:31.031 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=17] [2024/05/06 16:37:31.031 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:31.032 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.38820582\n# Parse_time: 0\n# Compile_time: 0.00174902\n# Rewrite_time: 0.00001352\n# Optimize_time: 0\n# Wait_TS: 0.000091404\n# DB: mysql\n# Is_internal: true\n# Digest: 55c1ea537145da60f32339dc7a3b69a3859f3f428fbae4e4023eb71dca836f47\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\nCREATE TABLE IF NOT EXISTS mysql.GLOBAL_VARIABLES( VARIABLE_NAME VARCHAR(64) NOT NULL PRIMARY KEY, VARIABLE_VALUE VARCHAR(1024) DEFAULT NULL);"] [2024/05/06 16:37:31.037 +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:37:31.157 +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:37:31.088 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:31.157 +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:37:31.088 +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:37:31.232 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 133, 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:37:31.088 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:31.337 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=8] [neededSchemaVersion=9] ["start time"=2.139038ms] [phyTblIDs="[18]"] [actionTypes="[8]"] [2024/05/06 16:37:31.372 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:31.372 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=19] [version=9] [2024/05/06 16:37:31.374 +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"=40.103859ms] [job="ID:19, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:18, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:31.088 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:31.428 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 133, 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:37:31.088 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:31.525 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=19] [2024/05/06 16:37:31.526 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:31.530 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.494499642\n# Parse_time: 0\n# Compile_time: 0.00187516\n# Rewrite_time: 0.000017356\n# Optimize_time: 0\n# Wait_TS: 0.000093115\n# DB: mysql\n# Is_internal: true\n# Digest: 0cc4a9cf54472ccff7c4fb8d7c6e34e6bd96af08b450ad4c9677473f1f517cf2\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\nCREATE TABLE IF NOT EXISTS mysql.tidb( VARIABLE_NAME VARCHAR(64) NOT NULL PRIMARY KEY, VARIABLE_VALUE VARCHAR(1024) DEFAULT NULL, COMMENT VARCHAR(1024));"] [2024/05/06 16:37:31.539 +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:37:31.625 +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:37:31.555 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:31.626 +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:37:31.555 +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:37:31.716 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 133, 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:37:31.555 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:31.823 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=9] [neededSchemaVersion=10] ["start time"=2.431262ms] [phyTblIDs="[20]"] [actionTypes="[8]"] [2024/05/06 16:37:31.873 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:31.873 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=21] [version=10] [2024/05/06 16:37:31.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=10] ["take time"=54.101704ms] [job="ID:21, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:20, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:31.555 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:31.942 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 133, 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:37:31.555 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:32.056 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=21] [2024/05/06 16:37:32.056 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:32.058 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.522527093\n# Parse_time: 0\n# Compile_time: 0.003484381\n# Rewrite_time: 0.000012791\n# Optimize_time: 0\n# Wait_TS: 0.000103343\n# DB: mysql\n# Is_internal: true\n# Digest: ca851971407336dad93908a9f88f01d828a4e18f332111987f4a7675bced7ea4\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\nCREATE TABLE IF NOT EXISTS mysql.help_topic ( help_topic_id INT(10) UNSIGNED NOT NULL, name CHAR(64) NOT NULL, help_category_id SMALLINT(5) UNSIGNED NOT NULL, description TEXT NOT NULL, example TEXT NOT NULL, url TEXT NOT NULL, PRIMARY KEY (help_topic_id) clustered, UNIQUE KEY name (name) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='help topics';"] [2024/05/06 16:37:32.065 +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:37:32.151 +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:37:32.097 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:32.151 +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:37:32.097 +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:37:32.213 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 133, 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:37:32.097 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:32.318 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=10] [neededSchemaVersion=11] ["start time"=2.437356ms] [phyTblIDs="[22]"] [actionTypes="[8]"] [2024/05/06 16:37:32.373 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:32.373 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=23] [version=11] [2024/05/06 16:37:32.374 +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"=58.936542ms] [job="ID:23, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:22, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:32.097 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:32.453 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 133, 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:37:32.097 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:32.546 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=23] [2024/05/06 16:37:32.546 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:32.548 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.485226466\n# Parse_time: 0\n# Compile_time: 0.002934133\n# Rewrite_time: 0.000012296\n# Optimize_time: 0\n# Wait_TS: 0.000093193\n# DB: mysql\n# Is_internal: true\n# Digest: db16a74bd407cb00f071eafe96456094f48fc00e802128fc486ef4847b8910b0\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\nCREATE TABLE IF NOT EXISTS mysql.stats_meta ( version BIGINT(64) UNSIGNED NOT NULL, table_id BIGINT(64) NOT NULL, modify_count BIGINT(64) NOT NULL DEFAULT 0, count BIGINT(64) UNSIGNED NOT NULL DEFAULT 0, snapshot BIGINT(64) UNSIGNED NOT NULL DEFAULT 0, INDEX idx_ver(version), UNIQUE INDEX tbl(table_id) );"] [2024/05/06 16:37:32.560 +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:37:32.562 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(6291456) to MEDIUMBLOB"] [2024/05/06 16:37:32.673 +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:37:32.574 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:32.673 +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:37:32.574 +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:37:32.742 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 133, 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:37:32.574 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:33.026 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=11] [neededSchemaVersion=12] ["start time"=4.087626ms] [phyTblIDs="[24]"] [actionTypes="[8]"] [2024/05/06 16:37:33.073 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:33.073 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=25] [version=12] [2024/05/06 16:37:33.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=12] ["take time"=54.961393ms] [job="ID:25, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:24, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:32.574 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:33.153 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 133, 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:37:32.574 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:33.266 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=25] [2024/05/06 16:37:33.267 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:33.269 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.713676715\n# Parse_time: 0\n# Compile_time: 0.004990603\n# Rewrite_time: 0.000012575\n# Optimize_time: 0\n# Wait_TS: 0.000112804\n# DB: mysql\n# Is_internal: true\n# Digest: 7780c45a0aac5f123ac85a7e601e79c5d7779e7c09a19953908e547605ed45d2\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\nCREATE TABLE IF NOT EXISTS mysql.stats_histograms ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, distinct_count BIGINT(64) NOT NULL, null_count BIGINT(64) NOT NULL DEFAULT 0, tot_col_size BIGINT(64) NOT NULL DEFAULT 0, modify_count BIGINT(64) NOT NULL DEFAULT 0, version BIGINT(64) UNSIGNED NOT NULL DEFAULT 0, cm_sketch BLOB(6291456), stats_ver BIGINT(64) NOT NULL DEFAULT 0, flag BIGINT(64) NOT NULL DEFAULT 0, correlation DOUBLE NOT NULL DEFAULT 0, last_analyze_pos LONGBLOB DEFAULT NULL, UNIQUE INDEX tbl(table_id, is_index, hist_id) );"] [2024/05/06 16:37:33.277 +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:37:33.386 +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:37:33.31 +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:37:33.391 +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:37:33.31 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:33.464 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 133, 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:37:33.31 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:33.616 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=12] [neededSchemaVersion=13] ["start time"=3.242506ms] [phyTblIDs="[26]"] [actionTypes="[8]"] [2024/05/06 16:37:33.673 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:33.673 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=27] [version=13] [2024/05/06 16:37:33.673 +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"=61.018476ms] [job="ID:27, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:26, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:33.31 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:33.727 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 133, 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:37:33.31 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:33.815 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=27] [2024/05/06 16:37:33.815 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:33.817 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.543099276\n# Parse_time: 0\n# Compile_time: 0.003509019\n# Rewrite_time: 0.000011915\n# Optimize_time: 0\n# Wait_TS: 0.00008845\n# DB: mysql\n# Is_internal: true\n# Digest: 5615b5212342304015b027afb253371dae02f19e53871cfbb034deb145dfce32\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\nCREATE TABLE IF NOT EXISTS mysql.stats_buckets ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, bucket_id BIGINT(64) NOT NULL, count BIGINT(64) NOT NULL, repeats BIGINT(64) NOT NULL, upper_bound LONGBLOB NOT NULL, lower_bound LONGBLOB , ndv BIGINT NOT NULL DEFAULT 0, UNIQUE INDEX tbl(table_id, is_index, hist_id, bucket_id) );"] [2024/05/06 16:37:33.824 +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:37:33.895 +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:37:33.844 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:33.896 +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:37:33.844 +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:37:33.966 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 133, 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:37:33.844 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:34.109 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=13] [neededSchemaVersion=14] ["start time"=2.467169ms] [phyTblIDs="[28]"] [actionTypes="[8]"] [2024/05/06 16:37:34.173 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:34.173 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=29] [version=14] [2024/05/06 16:37:34.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=14] ["take time"=67.216193ms] [job="ID:29, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:28, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:33.844 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:34.330 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 133, 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:37:33.844 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:34.500 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=29] [2024/05/06 16:37:34.500 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:34.502 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.681167482\n# Parse_time: 0\n# Compile_time: 0.003154061\n# Rewrite_time: 0.000013011\n# Optimize_time: 0\n# Wait_TS: 0.000095894\n# DB: mysql\n# Is_internal: true\n# Digest: 4f764dd084d16197c847e23500fcaf8b96dbbabd598c823de37967bfa2ad51cd\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\nCREATE TABLE IF NOT EXISTS mysql.gc_delete_range ( job_id BIGINT NOT NULL COMMENT \"the DDL job ID\", element_id BIGINT NOT NULL COMMENT \"the schema element ID\", start_key VARCHAR(255) NOT NULL COMMENT \"encoded in hex\", end_key VARCHAR(255) NOT NULL COMMENT \"encoded in hex\", ts BIGINT NOT NULL COMMENT \"timestamp in uint64\", UNIQUE KEY delete_range_index (job_id, element_id) );"] [2024/05/06 16:37:34.554 +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:37:34.668 +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:37:34.578 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:34.668 +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:37:34.578 +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:37:34.749 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 133, 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:37:34.578 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:34.875 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=14] [neededSchemaVersion=15] ["start time"=2.594799ms] [phyTblIDs="[30]"] [actionTypes="[8]"] [2024/05/06 16:37:34.923 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:34.923 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=31] [version=15] [2024/05/06 16:37:34.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=15] ["take time"=53.054775ms] [job="ID:31, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:30, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:34.578 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:34.977 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 133, 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:37:34.578 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:35.043 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=31] [2024/05/06 16:37:35.043 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:35.045 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.507713867\n# Parse_time: 0\n# Compile_time: 0.01665916\n# Rewrite_time: 0.004281851\n# Optimize_time: 0\n# Wait_TS: 0.000096497\n# DB: mysql\n# Is_internal: true\n# Digest: 532cf71b38f2568975d61180716af7e2b05c9ca11023688224ed0c0eece42fa9\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\nCREATE TABLE IF NOT EXISTS mysql.gc_delete_range_done ( job_id BIGINT NOT NULL COMMENT \"the DDL job ID\", element_id BIGINT NOT NULL COMMENT \"the schema element ID\", start_key VARCHAR(255) NOT NULL COMMENT \"encoded in hex\", end_key VARCHAR(255) NOT NULL COMMENT \"encoded in hex\", ts BIGINT NOT NULL COMMENT \"timestamp in uint64\", UNIQUE KEY delete_range_done_index (job_id, element_id) );"] [2024/05/06 16:37:35.051 +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:37:35.121 +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:37:35.064 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:35.121 +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:37:35.064 +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:37:35.253 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 133, 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:37:35.064 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:35.346 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=15] [neededSchemaVersion=16] ["start time"=2.334433ms] [phyTblIDs="[32]"] [actionTypes="[8]"] [2024/05/06 16:37:35.374 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:35.374 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=33] [version=16] [2024/05/06 16:37:35.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=16] ["take time"=32.651316ms] [job="ID:33, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:32, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:35.064 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:35.437 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 133, 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:37:35.064 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:35.498 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=33] [2024/05/06 16:37:35.499 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:35.500 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.451154354\n# Parse_time: 0\n# Compile_time: 0.002160937\n# Rewrite_time: 0.00001246\n# Optimize_time: 0\n# Wait_TS: 0.000091357\n# DB: mysql\n# Is_internal: true\n# Digest: 28f04155dca9c7fd3a5e16199cefd152c629a57a64d0ccb2ed0f10309c23c59c\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\nCREATE TABLE IF NOT EXISTS mysql.stats_feedback ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, feedback BLOB NOT NULL, INDEX hist(table_id, is_index, hist_id) );"] [2024/05/06 16:37:35.521 +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:37:35.664 +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:37:35.545 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:35.664 +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:37:35.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:37:35.780 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 133, 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:37:35.545 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:35.892 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=16] [neededSchemaVersion=17] ["start time"=2.74845ms] [phyTblIDs="[34]"] [actionTypes="[8]"] [2024/05/06 16:37:35.923 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:35.923 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=35] [version=17] [2024/05/06 16:37:35.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=17] ["take time"=38.638556ms] [job="ID:35, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:34, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:35.545 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:35.977 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 133, 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:37:35.545 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:36.078 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=35] [2024/05/06 16:37:36.078 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:36.080 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.561544511\n# Parse_time: 0\n# Compile_time: 0.003402723\n# Rewrite_time: 0.000012539\n# Optimize_time: 0\n# Wait_TS: 0.00008729\n# DB: mysql\n# Is_internal: true\n# Digest: 13e2fcff943423afddaa84c2d34108628854b5953bc7c41d2879240f077a5bd6\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\nCREATE TABLE IF NOT EXISTS mysql.role_edges ( FROM_HOST CHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '', FROM_USER CHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '', TO_HOST CHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '', TO_USER CHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '', WITH_ADMIN_OPTION ENUM('N','Y') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'N', PRIMARY KEY (FROM_HOST,FROM_USER,TO_HOST,TO_USER) );"] [2024/05/06 16:37:36.087 +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:37:36.262 +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:37:36.123 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:36.262 +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:37:36.123 +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:37:36.327 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 133, 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:37:36.123 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:36.527 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=17] [neededSchemaVersion=18] ["start time"=2.594573ms] [phyTblIDs="[36]"] [actionTypes="[8]"] [2024/05/06 16:37:36.573 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:36.573 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=37] [version=18] [2024/05/06 16:37:36.574 +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"=49.792993ms] [job="ID:37, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:36, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:36.123 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:36.644 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 133, 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:37:36.123 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:36.746 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=37] [2024/05/06 16:37:36.747 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:36.748 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.664654794\n# Parse_time: 0\n# Compile_time: 0.003257034\n# Rewrite_time: 0.000013164\n# Optimize_time: 0\n# Wait_TS: 0.000090274\n# DB: mysql\n# Is_internal: true\n# Digest: 9e6b544fb0287e9d8a74031560ed0cd6a5b4e54db073b893a68a76b05d929781\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\nCREATE TABLE IF NOT EXISTS mysql.default_roles ( HOST CHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '', USER CHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '', DEFAULT_ROLE_HOST CHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '%', DEFAULT_ROLE_USER CHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '', PRIMARY KEY (HOST,USER,DEFAULT_ROLE_HOST,DEFAULT_ROLE_USER) );"] [2024/05/06 16:37:36.773 +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:37:36.891 +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:37:36.796 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:36.892 +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:37:36.796 +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:37:36.960 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 133, 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:37:36.796 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:37.171 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=18] [neededSchemaVersion=19] ["start time"=10.925849ms] [phyTblIDs="[38]"] [actionTypes="[8]"] [2024/05/06 16:37:37.223 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:37.223 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=39] [version=19] [2024/05/06 16:37:37.224 +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"=64.540824ms] [job="ID:39, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:38, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:36.796 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:37.292 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 133, 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:37:36.796 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:37.403 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=39] [2024/05/06 16:37:37.403 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:37.404 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.649074877\n# Parse_time: 0\n# Compile_time: 0.017865149\n# Rewrite_time: 0.000011794\n# Optimize_time: 0\n# Wait_TS: 0.000079975\n# DB: mysql\n# Is_internal: true\n# Digest: 0a4bc55a9ab72ef62ddaa1ee6472d7872306066fd783a8bb67047a497fbb4dbe\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\nCREATE TABLE IF NOT EXISTS mysql.bind_info ( original_sql TEXT NOT NULL, bind_sql TEXT NOT NULL, default_db TEXT NOT NULL, status TEXT NOT NULL, create_time TIMESTAMP(3) NOT NULL, update_time TIMESTAMP(3) NOT NULL, charset TEXT NOT NULL, collation TEXT NOT NULL, source VARCHAR(10) NOT NULL DEFAULT 'unknown', sql_digest varchar(64), plan_digest varchar(64), INDEX sql_index(original_sql(700),default_db(68)) COMMENT \"accelerate the speed when add global binding query\", INDEX time_index(update_time) COMMENT \"accelerate the speed when querying with last update time\" ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;"] [2024/05/06 16:37:37.434 +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:37:37.491 +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:37:37.446 +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:37:37.491 +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:37:37.446 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:37.557 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 133, 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:37:37.446 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:37.645 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=19] [neededSchemaVersion=20] ["start time"=1.92103ms] [phyTblIDs="[40]"] [actionTypes="[8]"] [2024/05/06 16:37:37.679 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:37.680 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=41] [version=20] [2024/05/06 16:37:37.681 +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"=38.098316ms] [job="ID:41, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:40, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:37.446 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:37.745 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 133, 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:37:37.446 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:37.817 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=41] [2024/05/06 16:37:37.817 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:37.819 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.386858361\n# Parse_time: 0\n# Compile_time: 0.002218278\n# Rewrite_time: 0.000012875\n# Optimize_time: 0\n# Wait_TS: 0.000082073\n# DB: mysql\n# Is_internal: true\n# Digest: 04a90564803373a6eb3f5a52e8794d25c4d28f6c18af7899b0b9f1bf1539ec72\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\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\nCREATE TABLE IF NOT EXISTS mysql.stats_top_n ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, value LONGBLOB, count BIGINT(64) UNSIGNED NOT NULL, INDEX tbl(table_id, is_index, hist_id) );"] [2024/05/06 16:37:37.825 +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:37:37.915 +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:37:37.841 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:37.915 +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:37:37.841 +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:37:38.067 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 133, 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:37:37.841 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:38.165 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=20] [neededSchemaVersion=21] ["start time"=1.785001ms] [phyTblIDs="[42]"] [actionTypes="[8]"] [2024/05/06 16:37:38.223 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:38.223 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=43] [version=21] [2024/05/06 16:37:38.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=21] ["take time"=60.604149ms] [job="ID:43, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:42, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:37.841 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:38.278 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 133, 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:37:37.841 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:38.342 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=43] [2024/05/06 16:37:38.343 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:38.344 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.523051506\n# Parse_time: 0\n# Compile_time: 0.004219027\n# Rewrite_time: 0.000011863\n# Optimize_time: 0\n# Wait_TS: 0.00009119\n# DB: mysql\n# Is_internal: true\n# Digest: 3e05fb8977f83f4e32022552aded3680a039cddc4239c339119a655dc1cffdbb\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\nCREATE TABLE IF NOT EXISTS mysql.expr_pushdown_blacklist ( name CHAR(100) NOT NULL, store_type CHAR(100) NOT NULL DEFAULT 'tikv,tiflash,tidb', reason VARCHAR(200) );"] [2024/05/06 16:37:38.347 +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:37:38.399 +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:37:38.36 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:38.399 +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:37:38.36 +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:37:38.492 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 133, 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:37:38.36 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:38.544 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=21] [neededSchemaVersion=22] ["start time"=1.673359ms] [phyTblIDs="[44]"] [actionTypes="[8]"] [2024/05/06 16:37:38.574 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:38.574 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=45] [version=22] [2024/05/06 16:37:38.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=22] ["take time"=33.023884ms] [job="ID:45, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:44, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:38.36 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:38.647 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 133, 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:37:38.36 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:38.693 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=45] [2024/05/06 16:37:38.693 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:38.695 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.349032809\n# Parse_time: 0\n# Compile_time: 0.001283273\n# Rewrite_time: 0.000012392\n# Optimize_time: 0\n# Wait_TS: 0.000102536\n# DB: mysql\n# Is_internal: true\n# Digest: aee36d5dc7131e4b6e3321cc046ae8b5ec8156ec1ef82481df0b97b8c734325f\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\nCREATE TABLE IF NOT EXISTS mysql.opt_rule_blacklist ( name CHAR(100) NOT NULL );"] [2024/05/06 16:37:38.722 +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:37:38.804 +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:37:38.74 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:38.804 +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:37:38.74 +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:37:38.889 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 133, 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:37:38.74 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:39.024 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=22] [neededSchemaVersion=23] ["start time"=3.012053ms] [phyTblIDs="[46]"] [actionTypes="[8]"] [2024/05/06 16:37:39.073 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:39.073 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=47] [version=23] [2024/05/06 16:37:39.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=23] ["take time"=54.556162ms] [job="ID:47, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:46, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:38.74 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:39.150 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 133, 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:37:38.74 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:39.241 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=47] [2024/05/06 16:37:39.255 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:39.257 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.553786316\n# Parse_time: 0\n# Compile_time: 0.01929811\n# Rewrite_time: 0.000018243\n# Optimize_time: 0\n# Wait_TS: 0.000096483\n# DB: mysql\n# Is_internal: true\n# Digest: bd2a0d9809689d30e22f8d82b29b4ee110d16cda3353b77d74a1938afb746386\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\nCREATE TABLE IF NOT EXISTS mysql.stats_extended ( name varchar(32) NOT NULL, type tinyint(4) NOT NULL, table_id bigint(64) NOT NULL, column_ids varchar(32) NOT NULL, stats blob DEFAULT NULL, version bigint(64) unsigned NOT NULL, status tinyint(4) NOT NULL, PRIMARY KEY(name, table_id), KEY idx_1 (table_id, status, version), KEY idx_2 (status, version) );"] [2024/05/06 16:37:39.276 +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:37:39.375 +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:37:39.303 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:39.375 +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:37:39.303 +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:37:39.496 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 133, 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:37:39.303 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:39.647 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=23] [neededSchemaVersion=24] ["start time"=3.668265ms] [phyTblIDs="[48]"] [actionTypes="[8]"] [2024/05/06 16:37:39.679 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:39.679 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=49] [version=24] [2024/05/06 16:37:39.686 +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"=48.998001ms] [job="ID:49, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:48, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:39.303 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:39.754 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 133, 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:37:39.303 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:39.850 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=49] [2024/05/06 16:37:39.850 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:39.852 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.578341578\n# Parse_time: 0\n# Compile_time: 0.003102307\n# Rewrite_time: 0.000014855\n# Optimize_time: 0\n# Wait_TS: 0.000097757\n# DB: mysql\n# Is_internal: true\n# Digest: f72fffa4e6072164db3e01e2e29568b0b93c5045737047be527343b1737b0882\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\nCREATE TABLE IF NOT EXISTS mysql.schema_index_usage ( TABLE_ID bigint(64), INDEX_ID bigint(21), QUERY_COUNT bigint(64), ROWS_SELECTED bigint(64), LAST_USED_AT timestamp, PRIMARY KEY(TABLE_ID, INDEX_ID) );"] [2024/05/06 16:37:39.857 +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:37:39.916 +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:37:39.872 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:39.917 +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:37:39.872 +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:37:39.994 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 133, 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:37:39.872 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:40.108 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=24] [neededSchemaVersion=25] ["start time"=2.23005ms] [phyTblIDs="[50]"] [actionTypes="[8]"] [2024/05/06 16:37:40.123 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:40.123 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=51] [version=25] [2024/05/06 16:37:40.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=25] ["take time"=18.269561ms] [job="ID:51, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:50, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:39.872 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:40.229 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 133, 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:37:39.872 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:40.292 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=51] [2024/05/06 16:37:40.292 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:40.294 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.439126779\n# Parse_time: 0\n# Compile_time: 0.002255323\n# Rewrite_time: 0.00001416\n# Optimize_time: 0\n# Wait_TS: 0.000096887\n# DB: mysql\n# Is_internal: true\n# Digest: 27ef2533f9d97f96c8c86a69a0de51aad04499856acd05fe4a4b93fb5b6043d0\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\nCREATE TABLE IF NOT EXISTS mysql.stats_fm_sketch ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, value LONGBLOB, INDEX tbl(table_id, is_index, hist_id) );"] [2024/05/06 16:37:40.303 +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:37:40.360 +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:37:40.317 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:40.360 +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:37:40.317 +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:37:40.439 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 133, 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:37:40.317 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:40.538 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=25] [neededSchemaVersion=26] ["start time"=2.232352ms] [phyTblIDs="[52]"] [actionTypes="[8]"] [2024/05/06 16:37:40.574 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:40.574 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=53] [version=26] [2024/05/06 16:37:40.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=26] ["take time"=40.629477ms] [job="ID:53, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:52, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:40.317 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:40.646 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 133, 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:37:40.317 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:40.735 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=53] [2024/05/06 16:37:40.736 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:40.738 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.438501052\n# Parse_time: 0\n# Compile_time: 0.003982096\n# Rewrite_time: 0.000014288\n# Optimize_time: 0\n# Wait_TS: 0.000085808\n# DB: mysql\n# Is_internal: true\n# Digest: 79c6e54229df7b01d20ffaf8ac1077aa9ef39e604df30d5ce852dd7049cc3ddd\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\nCREATE TABLE IF NOT EXISTS mysql.global_grants ( USER char(32) NOT NULL DEFAULT '', HOST char(255) NOT NULL DEFAULT '', PRIV char(32) NOT NULL DEFAULT '', WITH_GRANT_OPTION enum('N','Y') NOT NULL DEFAULT 'N', PRIMARY KEY (USER,HOST,PRIV) );"] [2024/05/06 16:37:40.747 +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:37:40.833 +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:37:40.781 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:40.833 +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:37:40.781 +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:37:40.910 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 133, 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:37:40.781 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:41.000 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=26] [neededSchemaVersion=27] ["start time"=1.985906ms] [phyTblIDs="[54]"] [actionTypes="[8]"] [2024/05/06 16:37:41.023 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:41.023 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=55] [version=27] [2024/05/06 16:37:41.024 +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.340956ms] [job="ID:55, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:54, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:40.781 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:41.080 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 133, 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:37:40.781 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:41.169 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=55] [2024/05/06 16:37:41.170 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:41.172 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.430924176\n# Parse_time: 0\n# Compile_time: 0.006188888\n# Rewrite_time: 0.000014574\n# Optimize_time: 0\n# Wait_TS: 0.000104406\n# DB: mysql\n# Is_internal: true\n# Digest: 08f858a5bd3a1fd5dfd809dd4b9d6c72db69f874b06ad0e91987f9e89a5cf89a\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\nCREATE TABLE IF NOT EXISTS mysql.capture_plan_baselines_blacklist ( id bigint(64) auto_increment, filter_type varchar(32) NOT NULL COMMENT \"type of the filter, only db, table and frequency supported now\", filter_value varchar(32) NOT NULL, key idx(filter_type), primary key(id) );"] [2024/05/06 16:37:41.178 +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:37:41.245 +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:37:41.195 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:41.245 +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:37:41.195 +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:37:41.300 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 133, 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:37:41.195 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:41.419 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=27] [neededSchemaVersion=28] ["start time"=2.183178ms] [phyTblIDs="[56]"] [actionTypes="[8]"] [2024/05/06 16:37:41.473 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:41.473 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=57] [version=28] [2024/05/06 16:37:41.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=28] ["take time"=59.024979ms] [job="ID:57, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:56, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:41.195 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:41.522 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 133, 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:37:41.195 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:41.608 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=57] [2024/05/06 16:37:41.608 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:41.610 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.4342291\n# Parse_time: 0\n# Compile_time: 0.002226758\n# Rewrite_time: 0.000012219\n# Optimize_time: 0\n# Wait_TS: 0.000109649\n# DB: mysql\n# Is_internal: true\n# Digest: 3a5634ff31bd7d32849c5404b7ffc419c7a7074307b815e5369eb6ca363cbcd0\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\nCREATE TABLE IF NOT EXISTS mysql.column_stats_usage ( table_id BIGINT(64) NOT NULL, column_id BIGINT(64) NOT NULL, last_used_at TIMESTAMP, last_analyzed_at TIMESTAMP, PRIMARY KEY (table_id, column_id) CLUSTERED );"] [2024/05/06 16:37:41.617 +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:37:41.691 +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:37:41.653 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:41.691 +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:37:41.653 +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:37:41.755 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 133, 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:37:41.653 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:41.846 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=28] [neededSchemaVersion=29] ["start time"=1.91246ms] [phyTblIDs="[58]"] [actionTypes="[8]"] [2024/05/06 16:37:41.873 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:41.873 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=59] [version=29] [2024/05/06 16:37:41.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=29] ["take time"=30.615782ms] [job="ID:59, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:58, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:41.653 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:41.940 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 133, 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:37:41.653 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:42.037 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=59] [2024/05/06 16:37:42.038 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:42.041 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.426943396\n# Parse_time: 0\n# Compile_time: 0.003518505\n# Rewrite_time: 0.000013082\n# Optimize_time: 0\n# Wait_TS: 0.000081599\n# DB: mysql\n# Is_internal: true\n# Digest: d5bebde055ca14bff3e131e086a86c4095b9d04ea6fc326b4c2f16ffd61fbd2d\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\nCREATE TABLE IF NOT EXISTS mysql.table_cache_meta ( tid bigint(11) NOT NULL DEFAULT 0, lock_type enum('NONE','READ', 'INTEND', 'WRITE') NOT NULL DEFAULT 'NONE', lease bigint(20) NOT NULL DEFAULT 0, oldReadLease bigint(20) NOT NULL DEFAULT 0, PRIMARY KEY (tid) );"] [2024/05/06 16:37:42.050 +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:37:42.053 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(19372) to MEDIUMBLOB"] [2024/05/06 16:37:42.127 +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:37:42.068 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:42.127 +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:37:42.068 +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:37:42.194 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 133, 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:37:42.068 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:42.308 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=29] [neededSchemaVersion=30] ["start time"=2.755427ms] [phyTblIDs="[60]"] [actionTypes="[8]"] [2024/05/06 16:37:42.372 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:42.373 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=61] [version=30] [2024/05/06 16:37:42.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=30] ["take time"=68.7569ms] [job="ID:61, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:60, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:42.068 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:42.421 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 133, 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:37:42.068 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:42.494 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=61] [2024/05/06 16:37:42.495 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:42.496 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.450089081\n# Parse_time: 0\n# Compile_time: 0.004037423\n# Rewrite_time: 0.000014558\n# Optimize_time: 0\n# Wait_TS: 0.000111571\n# DB: mysql\n# Is_internal: true\n# Digest: 987fcd9b9a604209ec1101d918419b993c42f84fe228e20aee2fcca2931ff93e\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\nCREATE TABLE IF NOT EXISTS mysql.analyze_options ( table_id BIGINT(64) NOT NULL, sample_num BIGINT(64) NOT NULL DEFAULT 0, sample_rate DOUBLE NOT NULL DEFAULT -1, buckets BIGINT(64) NOT NULL DEFAULT 0, topn BIGINT(64) NOT NULL DEFAULT -1, column_choice enum('DEFAULT','ALL','PREDICATE','LIST') NOT NULL DEFAULT 'DEFAULT', column_ids TEXT(19372), PRIMARY KEY (table_id) CLUSTERED );"] [2024/05/06 16:37:42.507 +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:37:42.601 +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:37:42.52 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:42.602 +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:37:42.52 +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:37:42.710 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 133, 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:37:42.52 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:42.811 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=30] [neededSchemaVersion=31] ["start time"=3.003033ms] [phyTblIDs="[62]"] [actionTypes="[8]"] [2024/05/06 16:37:42.873 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:42.873 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=63] [version=31] [2024/05/06 16:37:42.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=31] ["take time"=66.645607ms] [job="ID:63, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:62, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:42.52 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:42.942 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 133, 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:37:42.52 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:43.019 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=63] [2024/05/06 16:37:43.019 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:43.021 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.520159022\n# Parse_time: 0\n# Compile_time: 0.006279379\n# Rewrite_time: 0.000017599\n# Optimize_time: 0\n# Wait_TS: 0.000089378\n# DB: mysql\n# Is_internal: true\n# Digest: 11757f6de6b3d2a64e92f14cd7b7f739729563ede3b0139d016148eba0b27ebf\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\nCREATE TABLE IF NOT EXISTS mysql.stats_history ( table_id bigint(64) NOT NULL, stats_data longblob NOT NULL, seq_no bigint(64) NOT NULL comment 'sequence number of the gzipped data slice', version bigint(64) NOT NULL comment 'stats version which corresponding to stats:version in EXPLAIN', create_time datetime(6) NOT NULL, UNIQUE KEY table_version_seq (table_id, version, seq_no), KEY table_create_time (table_id, create_time, seq_no) );"] [2024/05/06 16:37:43.030 +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:37:43.110 +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:37:43.043 +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:37:43.111 +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:37:43.043 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:43.169 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 133, 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:37:43.043 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:43.272 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=31] [neededSchemaVersion=32] ["start time"=2.400681ms] [phyTblIDs="[64]"] [actionTypes="[8]"] [2024/05/06 16:37:43.322 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:43.323 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=65] [version=32] [2024/05/06 16:37:43.323 +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"=54.11317ms] [job="ID:65, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:64, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:43.043 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:43.372 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 133, 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:37:43.043 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:43.441 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=65] [2024/05/06 16:37:43.441 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:43.443 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.415895876\n# Parse_time: 0\n# Compile_time: 0.003186315\n# Rewrite_time: 0.000013532\n# Optimize_time: 0\n# Wait_TS: 0.000085868\n# DB: mysql\n# Is_internal: true\n# Digest: ebccd6f5d49fb0fcff4d7dc20bb3ae798d172a92ba5f6709445c980166f7e32f\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\nCREATE TABLE IF NOT EXISTS mysql.stats_meta_history ( table_id bigint(64) NOT NULL, modify_count bigint(64) NOT NULL, count bigint(64) NOT NULL, version bigint(64) NOT NULL comment 'stats version which corresponding to stats:version in EXPLAIN', create_time datetime(6) NOT NULL, UNIQUE KEY table_version (table_id, version), KEY table_create_time (table_id, create_time) );"] [2024/05/06 16:37:43.455 +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:37:43.561 +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:37:43.47 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:43.561 +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:37:43.47 +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:37:43.627 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 133, 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:37:43.47 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:43.789 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=32] [neededSchemaVersion=33] ["start time"=4.056567ms] [phyTblIDs="[66]"] [actionTypes="[8]"] [2024/05/06 16:37:43.823 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:43.823 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=67] [version=33] [2024/05/06 16:37:43.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=33] ["take time"=41.977672ms] [job="ID:67, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:66, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:43.47 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:43.878 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 133, 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:37:43.47 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:44.009 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=67] [2024/05/06 16:37:44.010 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:44.012 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.561737715\n# Parse_time: 0\n# Compile_time: 0.00574389\n# Rewrite_time: 0.000014386\n# Optimize_time: 0\n# Wait_TS: 0.000091359\n# DB: mysql\n# Is_internal: true\n# Digest: bfb9a3ff60c3c60c054a207c0a0db06c87e29edbe94005d8d5c89fe484f4f90a\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\nCREATE TABLE IF NOT EXISTS mysql.analyze_jobs ( id BIGINT(64) UNSIGNED NOT NULL AUTO_INCREMENT, update_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, table_schema CHAR(64) NOT NULL DEFAULT '', table_name CHAR(64) NOT NULL DEFAULT '', partition_name CHAR(64) NOT NULL DEFAULT '', job_info TEXT NOT NULL, processed_rows BIGINT(64) UNSIGNED NOT NULL DEFAULT 0, start_time TIMESTAMP, end_time TIMESTAMP, state ENUM('pending', 'running', 'finished', 'failed') NOT NULL, fail_reason TEXT, instance VARCHAR(512) NOT NULL comment 'address of the TiDB instance executing the analyze job', process_id BIGINT(64) UNSIGNED comment 'ID of the process executing the analyze job', PRIMARY KEY (id), KEY (update_time) );"] [2024/05/06 16:37:44.015 +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:37:44.065 +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:37:44.03 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:44.065 +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:37:44.03 +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:37:44.132 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 133, 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:37:44.03 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:44.195 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=33] [neededSchemaVersion=34] ["start time"=1.71186ms] [phyTblIDs="[68]"] [actionTypes="[8]"] [2024/05/06 16:37:44.222 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:44.223 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=69] [version=34] [2024/05/06 16:37:44.224 +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"=31.09818ms] [job="ID:69, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:68, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:44.03 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:44.281 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 133, 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:37:44.03 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:44.317 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=69] [2024/05/06 16:37:44.318 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:44.319 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.305237439\n# Parse_time: 0\n# Compile_time: 0.001251608\n# Rewrite_time: 0.000011729\n# Optimize_time: 0\n# Wait_TS: 0.000081276\n# DB: mysql\n# Is_internal: true\n# Digest: 85d0480e8afeca7d94d07ca1a681df6c7f89f1fda753ceb6e02b51caf3714c1c\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\nCREATE TABLE IF NOT EXISTS mysql.advisory_locks ( lock_name VARCHAR(64) NOT NULL PRIMARY KEY );"] [2024/05/06 16:37:44.415 +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:37:44.348 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:44.416 +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:37:44.348 +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:37:44.479 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 133, 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:37:44.348 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:44.592 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=34] [neededSchemaVersion=35] ["start time"=2.688541ms] [phyTblIDs="[70]"] [actionTypes="[2097152]"] [2024/05/06 16:37:44.622 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:44.623 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=71] [version=35] [2024/05/06 16:37:44.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=35] ["take time"=36.56826ms] [job="ID:71, Type:create view, State:done, SchemaState:public, SchemaID:1, TableID:70, RowCount:0, ArgLen:3, start time: 2024-05-06 16:37:44.348 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:44.676 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 133, 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:37:44.348 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:44.745 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=71] [2024/05/06 16:37:44.745 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:44.746 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.421021325\n# Parse_time: 0\n# Compile_time: 0.007287621\n# Rewrite_time: 0.004128971\n# Optimize_time: 0\n# Wait_TS: 0.000104957\n# DB: mysql\n# Is_internal: true\n# Digest: 812c81f344f5d0c8b8aedcb68ff1dca865b59104853273f7e66b8abff5429992\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\nCREATE OR REPLACE VIEW mysql.tidb_mdl_view as ( select 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 );"] [2024/05/06 16:37:44.752 +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:37:44.821 +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:37:44.766 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:44.821 +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:37:44.766 +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:37:44.879 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 133, 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:37:44.766 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:44.981 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=35] [neededSchemaVersion=36] ["start time"=2.552011ms] [phyTblIDs="[72]"] [actionTypes="[8]"] [2024/05/06 16:37:45.023 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:45.023 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=73] [version=36] [2024/05/06 16:37:45.024 +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"=46.717329ms] [job="ID:73, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:72, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:44.766 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:45.080 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 133, 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:37:44.766 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:45.173 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=73] [2024/05/06 16:37:45.173 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:45.175 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.425570829\n# Parse_time: 0\n# Compile_time: 0.00283801\n# Rewrite_time: 0.000013388\n# Optimize_time: 0\n# Wait_TS: 0.000128306\n# DB: mysql\n# Is_internal: true\n# Digest: 3d2f349b1c68ee2b30e34bad8bb3838af6c40d7a26072b2d29d801d7fedbac48\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\nCREATE TABLE IF NOT EXISTS mysql.plan_replayer_status ( sql_digest VARCHAR(128), plan_digest VARCHAR(128), origin_sql TEXT, token VARCHAR(128), update_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, fail_reason TEXT, instance VARCHAR(512) NOT NULL comment 'address of the TiDB instance executing the plan replayer job');"] [2024/05/06 16:37:45.180 +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:37:45.236 +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:37:45.194 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:45.236 +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:37:45.194 +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:37:45.293 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 133, 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:37:45.194 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:45.367 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=36] [neededSchemaVersion=37] ["start time"=2.156033ms] [phyTblIDs="[74]"] [actionTypes="[8]"] [2024/05/06 16:37:45.423 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:45.423 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=75] [version=37] [2024/05/06 16:37:45.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=37] ["take time"=60.78503ms] [job="ID:75, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:74, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:45.194 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:45.470 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 133, 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:37:45.194 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:45.527 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=75] [2024/05/06 16:37:45.528 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:45.529 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.350967822\n# Parse_time: 0\n# Compile_time: 0.002326628\n# Rewrite_time: 0.000018643\n# Optimize_time: 0\n# Wait_TS: 0.000100484\n# DB: mysql\n# Is_internal: true\n# Digest: 8d9754df14c826803fed84f1ae3eb8fc9729e76a793b6be6bf25967f1929d039\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\nCREATE TABLE IF NOT EXISTS mysql.plan_replayer_task ( sql_digest VARCHAR(128) NOT NULL, plan_digest VARCHAR(128) NOT NULL, update_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (sql_digest,plan_digest));"] [2024/05/06 16:37:45.535 +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:37:45.591 +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:37:45.551 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:45.591 +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:37:45.551 +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:37:45.654 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 133, 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:37:45.551 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:45.734 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=37] [neededSchemaVersion=38] ["start time"=1.96675ms] [phyTblIDs="[76]"] [actionTypes="[8]"] [2024/05/06 16:37:45.782 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:45.782 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=77] [version=38] [2024/05/06 16:37:45.784 +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"=52.701755ms] [job="ID:77, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:76, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:45.551 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:45.831 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 133, 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:37:45.551 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:45.886 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=77] [2024/05/06 16:37:45.886 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:45.887 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.354464304\n# Parse_time: 0\n# Compile_time: 0.002623677\n# Rewrite_time: 0.000013086\n# Optimize_time: 0\n# Wait_TS: 0.000099844\n# DB: mysql\n# Is_internal: true\n# Digest: b57fdc4b14aba5f29d915d04e5e4557f60a758fd65ec571368527cd45c6ef82a\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\nCREATE TABLE IF NOT EXISTS mysql.stats_table_locked( table_id bigint(64) NOT NULL, modify_count bigint(64) NOT NULL DEFAULT 0, count bigint(64) NOT NULL DEFAULT 0, version bigint(64) UNSIGNED NOT NULL DEFAULT 0, PRIMARY KEY (table_id));"] [2024/05/06 16:37:45.901 +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:37:46.008 +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:37:45.914 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:46.008 +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:37:45.914 +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:37:46.062 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 133, 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:37:45.914 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:46.251 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=38] [neededSchemaVersion=39] ["start time"=4.539745ms] [phyTblIDs="[78]"] [actionTypes="[8]"] [2024/05/06 16:37:46.273 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:46.273 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=79] [version=39] [2024/05/06 16:37:46.275 +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.758679ms] [job="ID:79, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:78, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:45.914 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:46.341 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 133, 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:37:45.914 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:46.451 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=79] [2024/05/06 16:37:46.451 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:46.452 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.556297192\n# Parse_time: 0\n# Compile_time: 0.004918102\n# Rewrite_time: 0.000024873\n# Optimize_time: 0\n# Wait_TS: 0.000070827\n# DB: mysql\n# Is_internal: true\n# Digest: a30bd3c3a49070c554e65922e84c6b76e646842e3925a859fcde73941a7cb423\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\nCREATE TABLE IF NOT EXISTS mysql.tidb_ttl_table_status ( table_id bigint(64) PRIMARY KEY, parent_table_id bigint(64), table_statistics text DEFAULT NULL, last_job_id varchar(64) DEFAULT NULL, last_job_start_time timestamp NULL DEFAULT NULL, last_job_finish_time timestamp NULL DEFAULT NULL, last_job_ttl_expire timestamp NULL DEFAULT NULL, last_job_summary text DEFAULT NULL, current_job_id varchar(64) DEFAULT NULL, current_job_owner_id varchar(64) DEFAULT NULL, current_job_owner_addr varchar(256) DEFAULT NULL, current_job_owner_hb_time timestamp, current_job_start_time timestamp NULL DEFAULT NULL, current_job_ttl_expire timestamp NULL DEFAULT NULL, current_job_state text DEFAULT NULL, current_job_status varchar(64) DEFAULT NULL, current_job_status_update_time timestamp NULL DEFAULT NULL);"] [2024/05/06 16:37:47.077 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 449572940403179520\n# Query_time: 0.423173796\n# Parse_time: 0\n# Compile_time: 0.196706482\n# Rewrite_time: 0.006059386\n# Optimize_time: 0\n# Wait_TS: 0.000082006\n# DB: mysql\n# Is_internal: true\n# Digest: ca2019e08a331284bd0c64be228a0537fcf9f5983e95d94b67ef42dcb8f54385\n# Num_cop_tasks: 0\n# Mem_max: 346778\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: true\n# IsSyncStatsFailed: false\n# Plan: tidb_decode_plan('ogPwPDAJMjdfMQkwCTAJTi9BCTAJdGltZToyMTIuOG1zLCBsb29wczoxLCBwcmVwYXJlOiB7dG90YWw6IDM0LjkBIkxhdXRvX2lkX2FsbG9jYXRvcjogewUMZF9jbnQ6IDEsIEdldDp7bnVtX3JwYzo0LCB0AUEAXwVouDQ1Ny4xwrVzfSwgY29tbWl0X3R4bjoge3ByZXdyaXRlOjQ3Ni41wrVzLCBnZXRfESQQczoyMMIBFQkREDo2MTQuCSYcc2xvd2VzdF8RQQV0BCB7BXNoOiAwLjAwMHMsIHJlZ2lvbl9pZDogMiwgc3RvAdkFBwgxLCAZjBhwcmltYXJ5RkQAADGKRAANZBhudW06MSwgBc4MX2tleSVNCQ5UYnl0ZTozMn19fSwgaW5zZXJ0OjE3NyFWMAk5MC43IEtCCU4vQQo=')\n# Binary_plan: tidb_decode_binary_plan('rgPwgQqpAwoISW5zZXJ0XzE4AUABUgNOL0FaFXRpbWU6MjEyLjhtcywgbG9vcHM6MWLtAnByZXBhcmU6IHt0b3RhbDogMzQuOW1zLCBhdXRvX2lkX2FsbG9jYXRvcjoge2FsbG9jX2NudDogMSwgR2V0OntudW1fcnBjOjQsIHRvdGFsX3QBabg0NTcuMcK1c30sIGNvbW1pdF90eG46IHtwcmV3cml0ZTo0NzYuNcK1cywgZ2V0XxEkEHM6MjDCARUJERA6NjE0LgkmHHNsb3dlc3RfEUEMX3JwYxm0YDAuMDAwcywgcmVnaW9uX2lkOiAyLCBzdG8B2QUHCDEsIBmMGHByaW1hcnlGRAAAMYpEAA1kGG51bToxLCAFzhBfa2V5cxkOqGJ5dGU6MzJ9fX0sIGluc2VydDoxNzcuOW1zcJrVBXj///////////8BGAE=')\nINSERT HIGH_PRIORITY INTO mysql.GLOBAL_VARIABLES VALUES (\"tidb_redact_log\", \"OFF\"), (\"low_priority_updates\", \"OFF\"), (\"innodb_buffer_pool_dump_pct\", \"\"), (\"tidb_shard_allocate_step\", \"9223372036854775807\"), (\"range_alloc_block_size\", \"4096\"), (\"tidb_enable_new_cost_interface\", \"ON\"), (\"tidb_auto_analyze_end_time\", \"23:59 +0000\"), (\"max_sort_length\", \"1024\"), (\"master_info_repository\", \"FILE\"), (\"tidb_enable_concurrent_ddl\", \"ON\"), (\"binlogging_impossible_mode\", \"IGNORE_ERROR\"), (\"tidb_use_plan_baselines\", \"ON\"), (\"tidb_enable_amend_pessimistic_txn\", \"OFF\"), (\"lock_wait_timeout\", \"31536000\"), (\"tidb_enable_gogc_tuner\", \"ON\"), (\"innodb_table_locks\", \"ON\"), (\"autocommit\", \"ON\"), (\"innodb_adaptive_hash_index\", \"ON\"), (\"tidb_opt_seek_factor\", \"20\"), (\"event_scheduler\", \"OFF\"), (\"lc_time_names\", \"en_US\"), (\"slave_transaction_retries\", \"10\"), (\"tidb_enable_historical_stats\", \"OFF\"), (\"skip_name_resolve\", \"OFF\"), (\"tidb_store_limit\", \"0\"), (\"tidb_gc_concurrency\", \"-1\"), (\"flush_time\", \"0\"), (\"character_set_server\", \"utf8mb4\"), (\"innodb_monitor_enable\", \"\"), (\"net_buffer_length\", \"16384\"), (\"tidb_ddl_error_count_limit\", \"512\"), (\"tidb_opt_correlation_threshold\", \"0.9\"), (\"tidb_streamagg_concurrency\", \"1\"), (\"log_slow_admin_statements\", \"OFF\"), (\"tidb_hashagg_partial_concurrency\", \"-1\"), (\"tidb_enable_tso_follower_proxy\", \"OFF\"), (\"innodb_buffer_pool_filename\", \"ib_buffer_pool\"), (\"query_cache_size\", \"1048576\"), (\"tidb_evolve_plan_task_end_time\", \"23:59 +0000\"), (\"tidb_nontransactional_ignore_error\", \"OFF\"), (\"auto_increment_offset\", \"1\"), (\"tidb_merge_partition_stats_concurrency\", \"1\"), (\"innodb_log_checksum_algorithm\", \"\"), (\"tidb_ttl_job_schedule_window_end_time\", \"23:59 +0000\"), (\"net_read_timeout\", \"30\"), (\"tidb_ttl_delete_worker_count\", \"4\"), (\"max_seeks_for_key\", \"18446744073709551615\"), (\"read_rnd_buffer_size\", \"262144\"), (\"relay_log_info_repository\", \"FILE\"), (\"tidb_opt_fix_control\", \"\"), (\"end_markers_in_json\", \"OFF\"), (\"rpl_semi_sync_master_wait_no_slave\", \"ON\"), (\"tidb_enable_async_commit\", \"OFF\"), (\"tidb_ddl_disk_quota\", \"107374182400\"), (\"slave_net_timeout\", \"3600\"), (\"tidb_opt_prefix_index_single_scan\", \"ON\"), (\"tidb_mem_oom_action\", \"LOG\"), (\"sync_relay_log\", \"10000\"), (\"tidb_top_sql_max_meta_count\", \"5000\"), (\"innodb_api_bk_commit_interval\", \"5\"), (\"profiling_history_size\", \"15\"), (\"ndb_index_stat_enable\", \"\"), (\"innodb_default_row_format\", \"dynamic\"), (\"innodb_undo_log_truncate\", \"\"), (\"tidb_general_plan_cache_size\", \"100\"), (\"tidb_max_delta_schema_count\", \"1024\"), (\"relay_log_purge\", \"ON\"), (\"tidb_build_stats_concurrency\", \"4\"), (\"tidb_index_join_double_read_penalty_cost_rate\", \"0\"), (\"tidb_ttl_scan_worker_count\", \"4\"), (\"ndb_deferred_constraints\", \"\"), (\"tidb_stmt_summary_max_sql_length\", \"4096\"), (\"tidb_min_paging_size\", \"128\"), (\"delayed_insert_timeout\", \"300\"), (\"tidb_mem_quota_query\", \"1073741824\"), (\"log_slow_slave_statements\", \"OFF\"), (\"myisam_stats_method\", \"nulls_unequal\"), (\"secure_auth\", \"ON\"), (\"ndb_eventbuffer_max_alloc\", \"\"), (\"tidb_sysdate_is_now\", \"OFF\"), (\"sql_mode\", \"ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION\"), (\"tidb_multi_statement_mode\", \"OFF\"), (\"log_queries_not_using_indexes\", \"OFF\"), (\"disconnect_on_expired_password\", \"ON\"), (\"profiling\", \"OFF\"), (\"tidb_enable_index_merge_join\", \"OFF\"), (\"tidb_enable_auto_increment_in_generated\", \"OFF\"), (\"innodb_checksum_algorithm\", \"innodb\"), (\"tidb_auto_build_stats_concurrency\", \"1\"), (\"tidb_mem_quota_analyze\", \"-1\"), (\"tidb_enable_prepared_plan_cache\", \"ON\"), (\"log_error_verbosity\", \"\"), (\"expire_logs_days\", \"0\"), (\"innodb_optimize_fulltext_only\", \"0\"), (\"innodb_support_xa\", \"1\"), (\"ft_boolean_syntax\", \"+ -><()~*:\\\"\\\"&|\"), (\"optimizer_trace_offset\", \"-1\"), (\"innodb_concurrency_tickets\", \"5000\"), (\"sql_select_limit\", \"18446744073709551615\"), (\"tidb_dml_batch_size\", \"0\"), (\"default_storage_engine\", \"InnoDB\"), (\"tidb_analyze_version\", \"2\"), (\"optimizer_trace_limit\", \"1\"), (\"delay_key_write\", \"ON\"), (\"tidb_backoff_weight\", \"2\"), (\"tidb_allow_mpp\", \"ON\"), (\"auto(len:21519);"] [2024/05/06 16:37:47.337 +08:00] [INFO] [bootstrap.go:529] ["bootstrap successful"] ["take time"=23.214285426s] [2024/05/06 16:37:47.339 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:37:47.339 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 134, tp add index"] ["take time"=29.439µs] [2024/05/06 16:37:47.339 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 135, tp add index"] ["take time"=17.942µs] [2024/05/06 16:37:47.339 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 136, tp add index"] ["take time"=17.494µs] [2024/05/06 16:37:47.339 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 137, tp add index"] ["take time"=22.004µs] [2024/05/06 16:37:47.340 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 138, tp add index"] ["take time"=19.772µs] [2024/05/06 16:37:47.340 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 139, tp add index"] ["take time"=23.334µs] [2024/05/06 16:37:47.340 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 140, tp add index"] ["take time"=20.81µs] [2024/05/06 16:37:47.340 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 141, tp add index"] ["take time"=18.171µs] [2024/05/06 16:37:47.340 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 142, tp add index"] ["take time"=18.85µs] [2024/05/06 16:37:47.340 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 143, tp add index"] ["take time"=20.771µs] [2024/05/06 16:37:47.340 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:37:47.340 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 133, tp general"] ["take time"=4.589µs] [2024/05/06 16:37:47.340 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 131, tp general"] ["take time"=1.97µs] [2024/05/06 16:37:47.340 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 132, tp add index"] ["take time"=2.132µs] [2024/05/06 16:37:47.340 +08:00] [INFO] [delete_range.go:148] ["[ddl] closing delRange"] [2024/05/06 16:37:47.341 +08:00] [INFO] [session_pool.go:94] ["[ddl] closing sessionPool"] [2024/05/06 16:37:47.349 +08:00] [INFO] [ddl.go:833] ["[ddl] DDL closed"] [ID=24046a78-06f1-41b9-bcb2-caa1c28df616] ["take time"=10.111574ms] [2024/05/06 16:37:47.349 +08:00] [INFO] [ddl.go:657] ["[ddl] stop DDL"] [ID=24046a78-06f1-41b9-bcb2-caa1c28df616] [2024/05/06 16:37:47.349 +08:00] [INFO] [domain.go:792] ["loadSchemaInLoop exited."] [2024/05/06 16:37:47.349 +08:00] [INFO] [domain.go:651] ["topologySyncerKeeper exited."] [2024/05/06 16:37:47.349 +08:00] [INFO] [domain.go:603] ["infoSyncerKeeper exited."] [2024/05/06 16:37:47.349 +08:00] [INFO] [domain.go:628] ["globalConfigSyncerKeeper exited."] [2024/05/06 16:37:47.349 +08:00] [INFO] [domain.go:1156] ["closestReplicaReadCheckLoop exited."] [2024/05/06 16:37:47.349 +08:00] [INFO] [domain.go:574] ["topNSlowQueryLoop exited."] [2024/05/06 16:37:47.350 +08:00] [INFO] [domain.go:920] ["domain closed"] ["take time"=10.862179ms] [2024/05/06 16:37:47.350 +08:00] [INFO] [tidb.go:77] ["new domain"] [store=91a32eaa-bd1b-4afa-81d1-0e62af968a3f] ["ddl lease"=500ms] ["stats lease"=-1ns] ["index usage sync lease"=0s] [2024/05/06 16:37:47.485 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=39] ["start time"=132.979511ms] [2024/05/06 16:37:47.492 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:37:47.492 +08:00] [INFO] [ddl.go:719] ["[ddl] start DDL"] [ID=6166d41b-344f-47b5-bccc-bae50963a283] [runWorker=true] [2024/05/06 16:37:47.494 +08:00] [INFO] [ddl.go:665] ["[ddl] start delRangeManager OK"] ["is a emulator"=true] [2024/05/06 16:37:47.494 +08:00] [INFO] [delete_range.go:158] ["[ddl] start delRange emulator"] [2024/05/06 16:37:47.495 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 144, tp general"] [2024/05/06 16:37:47.495 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 145, tp add index"] [2024/05/06 16:37:47.498 +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:37:47.499 +08:00] [INFO] [env.go:108] ["[ddl-ingest] the lightning sorted dir"] ["data path:"=/tmp/tidb/tmp_ddl-4000] [2024/05/06 16:37:47.499 +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:37:47.499 +08:00] [WARN] [domain.go:1120] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 16:37:47.532 +08:00] [WARN] [sysvar_cache.go:50] ["sysvar cache is empty, triggering rebuild"] [2024/05/06 16:37:47.758 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=15] [schemaVersion=39] [cur_db=test] [sql="drop table if exists t1,t2"] [user=] [2024/05/06 16:37:47.762 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=15] [schemaVersion=39] [cur_db=test] [sql="create table t1 (id int primary key, v int)"] [user=] [2024/05/06 16:37:47.801 +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:37:47.775 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:47.801 +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:37:47.775 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="create table t1 (id int primary key, v int)"] [2024/05/06 16:37:48.552 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 146, 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:37:47.775 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:48.613 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=39] [neededSchemaVersion=40] ["start time"=1.707537ms] [phyTblIDs="[80]"] [actionTypes="[8]"] [2024/05/06 16:37:48.650 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=81] [version=40] [2024/05/06 16:37:48.652 +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"=40.952232ms] [job="ID:81, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:80, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:47.775 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:48.698 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 146, 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:37:47.775 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:48.745 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=81] [2024/05/06 16:37:48.746 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:48.747 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Conn_ID: 15\n# Query_time: 0.987472416\n# Parse_time: 0.000933046\n# Compile_time: 0.001037291\n# Rewrite_time: 0.000010212\n# Optimize_time: 0.00045898\n# Wait_TS: 0.000093742\n# DB: test\n# Is_internal: false\n# Digest: 58adff4e53b4dc3a2102ff826681d219bcf79edb1d10a7d7eddd3da56fcd9ce6\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 t1 (id int primary key, v int);"] [2024/05/06 16:37:48.756 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=15] [schemaVersion=40] [cur_db=test] [sql="create table t2 (id int)"] [user=] [2024/05/06 16:37:48.798 +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:2, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:48.769 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:48.798 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:83, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:48.769 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="create table t2 (id int)"] [2024/05/06 16:37:48.867 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 146, tp general"] [job="ID:83, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:37:48.769 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:48.913 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=40] [neededSchemaVersion=41] ["start time"=1.162635ms] [phyTblIDs="[82]"] [actionTypes="[8]"] [2024/05/06 16:37:48.951 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=83] [version=41] [2024/05/06 16:37:48.952 +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"=40.130907ms] [job="ID:83, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:48.769 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:48.996 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 146, tp general"] [job="ID:83, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:37:48.769 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:49.039 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=83] [2024/05/06 16:37:49.039 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:49.042 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=15] [schemaVersion=41] [cur_db=test] [sql="create temporary table tmp (id int)"] [user=] [2024/05/06 16:37:49.191 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=16] [schemaVersion=41] [cur_db=test] [sql="alter table t2 add column(c1 int)"] [user=] [2024/05/06 16:37:49.222 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:85, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:37:49.204 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:49.223 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:85, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:37:49.204 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="alter table t2 add column(c1 int)"] [2024/05/06 16:37:49.282 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 146, tp general"] [job="ID:85, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:37:49.204 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:49.284 +08:00] [INFO] [column.go:133] ["[ddl] run add column job"] [job="ID:85, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:37:49.204 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [columnInfo="{\"id\":2,\"name\":{\"O\":\"c1\",\"L\":\"c1\"},\"offset\":1,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{},\"state\":0,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2}"] [2024/05/06 16:37:49.313 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=41] [neededSchemaVersion=42] ["start time"=1.469693ms] [phyTblIDs="[82]"] [actionTypes="[32]"] [2024/05/06 16:37:49.350 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=85] [version=42] [2024/05/06 16:37:49.352 +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"=40.981293ms] [job="ID:85, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:37:49.204 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:49.392 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 146, tp general"] [job="ID:85, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:37:49.204 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:49.425 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=42] [neededSchemaVersion=43] ["start time"=1.776008ms] [phyTblIDs="[82]"] [actionTypes="[32]"] [2024/05/06 16:37:49.458 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=85] [version=43] [2024/05/06 16:37:49.459 +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"=36.162131ms] [job="ID:85, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:37:49.204 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:49.499 +08:00] [INFO] [info.go:1114] [SetTiFlashGroupConfig] [2024/05/06 16:37:49.500 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 146, tp general"] [job="ID:85, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:37:49.204 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:49.530 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=43] [neededSchemaVersion=44] ["start time"=1.621107ms] [phyTblIDs="[82]"] [actionTypes="[32]"] [2024/05/06 16:37:49.550 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=85] [version=44] [2024/05/06 16:37:49.551 +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"=23.002746ms] [job="ID:85, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:37:49.204 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:49.653 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 146, tp general"] [job="ID:85, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:37:49.204 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:49.700 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=44] [neededSchemaVersion=45] ["start time"=1.68388ms] [phyTblIDs="[82]"] [actionTypes="[32]"] [2024/05/06 16:37:49.750 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=85] [version=45] [2024/05/06 16:37:49.751 +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"=54.415718ms] [job="ID:85, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:82, RowCount:0, ArgLen:4, start time: 2024-05-06 16:37:49.204 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:49.801 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 146, tp general"] [job="ID:85, Type:add column, State:synced, SchemaState:public, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:37:49.204 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:49.846 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=85] [2024/05/06 16:37:49.846 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:49.847 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Conn_ID: 16\n# Query_time: 0.657827617\n# Parse_time: 0.000671174\n# Compile_time: 0.001082611\n# Rewrite_time: 0.000016873\n# Optimize_time: 0.000445847\n# Wait_TS: 0.000097685\n# DB: test\n# Is_internal: false\n# Digest: 177e330fc6e13ff4b1b9f51ae04b524c419feabb143557fdc6a5807ebb58aed3\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\nalter table t2 add column(c1 int);"] [2024/05/06 16:37:49.859 +08:00] [INFO] [set.go:308] ["load snapshot info schema"] [conn=16] [SnapshotTS=449572941113589760] [2024/05/06 16:37:49.868 +08:00] [INFO] [set.go:308] ["load snapshot info schema"] [conn=16] [SnapshotTS=449572941113589760] [2024/05/06 16:37:49.877 +08:00] [INFO] [set.go:308] ["load snapshot info schema"] [conn=16] [SnapshotTS=449572941113589760] [2024/05/06 16:37:49.879 +08:00] [INFO] [session.go:3962] ["use snapshot schema"] [conn=16] [schemaVersion=41] [2024/05/06 16:37:49.887 +08:00] [INFO] [set.go:308] ["load snapshot info schema"] [conn=16] [SnapshotTS=449572941113589760] [2024/05/06 16:37:50.125 +08:00] [INFO] [set.go:308] ["load snapshot info schema"] [conn=16] [SnapshotTS=449572941335101440] [2024/05/06 16:37:50.129 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:37:50.130 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 151, tp add index"] ["take time"=25.25µs] [2024/05/06 16:37:50.130 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 152, tp add index"] ["take time"=14.275µs] [2024/05/06 16:37:50.130 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 153, tp add index"] ["take time"=27.347µs] [2024/05/06 16:37:50.130 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 154, tp add index"] ["take time"=13.646µs] [2024/05/06 16:37:50.130 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 155, tp add index"] ["take time"=14.266µs] [2024/05/06 16:37:50.130 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 156, tp add index"] ["take time"=14.196µs] [2024/05/06 16:37:50.130 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 147, tp add index"] ["take time"=16.414µs] [2024/05/06 16:37:50.130 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 148, tp add index"] ["take time"=13.71µs] [2024/05/06 16:37:50.130 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 149, tp add index"] ["take time"=10.415µs] [2024/05/06 16:37:50.130 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 150, tp add index"] ["take time"=13.004µs] [2024/05/06 16:37:50.130 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:37:50.130 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 146, tp general"] ["take time"=7.344µs] [2024/05/06 16:37:50.131 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 144, tp general"] ["take time"=6.555µs] [2024/05/06 16:37:50.131 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 145, tp add index"] ["take time"=2.008µs] [2024/05/06 16:37:50.131 +08:00] [INFO] [delete_range.go:148] ["[ddl] closing delRange"] [2024/05/06 16:37:50.131 +08:00] [INFO] [session_pool.go:94] ["[ddl] closing sessionPool"] [2024/05/06 16:37:50.133 +08:00] [INFO] [ddl.go:833] ["[ddl] DDL closed"] [ID=6166d41b-344f-47b5-bccc-bae50963a283] ["take time"=3.456206ms] [2024/05/06 16:37:50.133 +08:00] [INFO] [ddl.go:657] ["[ddl] stop DDL"] [ID=6166d41b-344f-47b5-bccc-bae50963a283] [2024/05/06 16:37:50.133 +08:00] [INFO] [domain.go:1156] ["closestReplicaReadCheckLoop exited."] [2024/05/06 16:37:50.133 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:37:50.133 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:37:50.133 +08:00] [INFO] [domain.go:1525] ["globalBindHandleWorkerLoop exited."] [2024/05/06 16:37:50.133 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:37:50.133 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:37:50.133 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:37:50.133 +08:00] [INFO] [domain.go:651] ["topologySyncerKeeper exited."] [2024/05/06 16:37:50.133 +08:00] [INFO] [domain.go:628] ["globalConfigSyncerKeeper exited."] [2024/05/06 16:37:50.133 +08:00] [INFO] [domain.go:792] ["loadSchemaInLoop exited."] [2024/05/06 16:37:50.133 +08:00] [INFO] [domain.go:574] ["topNSlowQueryLoop exited."] [2024/05/06 16:37:50.133 +08:00] [INFO] [domain.go:1444] ["LoadSysVarCacheLoop exited."] [2024/05/06 16:37:50.133 +08:00] [INFO] [domain.go:1569] ["handleEvolvePlanTasksLoop exited."] [2024/05/06 16:37:50.133 +08:00] [INFO] [domain.go:603] ["infoSyncerKeeper exited."] [2024/05/06 16:37:50.133 +08:00] [INFO] [domain.go:1394] ["loadPrivilegeInLoop exited."] [2024/05/06 16:37:50.133 +08:00] [INFO] [domain.go:1748] ["dumpFileGcChecker exited."] [2024/05/06 16:37:50.138 +08:00] [INFO] [domain.go:920] ["domain closed"] ["take time"=8.751431ms] [2024/05/06 16:37:50.140 +08:00] [INFO] [db.go:567] ["Closing database"] [2024/05/06 16:37:50.140 +08:00] [INFO] [db.go:592] ["Memtable flushed"] [2024/05/06 16:37:50.140 +08:00] [INFO] [db.go:596] ["Compaction finished"] [2024/05/06 16:37:50.140 +08:00] [INFO] [db.go:615] ["BlobManager finished"] [2024/05/06 16:37:50.140 +08:00] [INFO] [db.go:619] ["ResourceManager finished"] [2024/05/06 16:37:50.140 +08:00] [INFO] [db.go:625] ["Waiting for closer"] --- PASS: TestTxnContextForStaleReadInPrepare (26.19s) === RUN TestStillWriteConflictAfterRetry [2024/05/06 16:37:50.148 +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:37:50.152 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:37:50.153 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:37:50.162 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:37:50.162 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:37:50.168 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:37:50.171 +08:00] [INFO] [tidb.go:77] ["new domain"] [store=f06a5f6a-e2b8-459b-836b-d60f4c3d6850] ["ddl lease"=500ms] ["stats lease"=-1ns] ["index usage sync lease"=0s] [2024/05/06 16:37:50.172 +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\nsessiontxn/sessiontxn_test_test.setupTxnContextTest\n\tsessiontxn/txn_context_test.go:61\nsessiontxn/sessiontxn_test_test.TestStillWriteConflictAfterRetry\n\tsessiontxn/txn_context_test.go:721\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1446\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:37:50.204 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=0] ["start time"=31.381454ms] [2024/05/06 16:37:50.209 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:37:50.209 +08:00] [INFO] [ddl.go:719] ["[ddl] start DDL"] [ID=cba867ab-0070-492c-a365-1cc305ecfdfd] [runWorker=true] [2024/05/06 16:37:50.209 +08:00] [INFO] [ddl.go:665] ["[ddl] start delRangeManager OK"] ["is a emulator"=true] [2024/05/06 16:37:50.209 +08:00] [INFO] [delete_range.go:158] ["[ddl] start delRange emulator"] [2024/05/06 16:37:50.210 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 157, tp general"] [2024/05/06 16:37:50.210 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 158, tp add index"] [2024/05/06 16:37:50.210 +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:37:50.211 +08:00] [INFO] [env.go:108] ["[ddl-ingest] the lightning sorted dir"] ["data path:"=/tmp/tidb/tmp_ddl-4000] [2024/05/06 16:37:50.211 +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:37:50.211 +08:00] [WARN] [domain.go:1120] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 16:37:50.217 +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:37:50.238 +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:37:50.227 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:50.238 +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:37:50.227 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE DATABASE IF NOT EXISTS test"] [2024/05/06 16:37:50.462 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:37:50.713 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:37:50.963 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:37:51.212 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:37:51.275 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 159, 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:37:50.227 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:51.321 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=1] ["start time"=18.503338ms] [2024/05/06 16:37:51.326 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:37:51.362 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:51.362 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=3] [version=1] [2024/05/06 16:37:51.362 +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"=60.228815ms] [job="ID:3, Type:create schema, State:done, SchemaState:public, SchemaID:2, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 16:37:50.227 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:51.399 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 159, 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:37:50.227 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:51.426 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=3] [2024/05/06 16:37:51.427 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:51.428 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 1.211413875\n# Parse_time: 0\n# Compile_time: 0.000543883\n# Rewrite_time: 0.000009126\n# Optimize_time: 0\n# Wait_TS: 0.000066747\n# DB: mysql\n# Is_internal: true\n# Digest: 0a22979ad136f741465cf206b13e5717b9758dda34f7cae5a7a925f91711d6a0\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 mysql;\nCREATE DATABASE IF NOT EXISTS test;"] [2024/05/06 16:37:51.430 +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:37:51.465 +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:37:51.682 +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:37:51.483 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:51.682 +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:37:51.483 +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:37:51.743 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 159, 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:37:51.483 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:52.180 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=1] [neededSchemaVersion=2] ["start time"=9.880726ms] [phyTblIDs="[4]"] [actionTypes="[8]"] [2024/05/06 16:37:52.211 +08:00] [INFO] [info.go:1114] [SetTiFlashGroupConfig] [2024/05/06 16:37:52.211 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:52.211 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=5] [version=2] [2024/05/06 16:37:52.214 +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"=44.91634ms] [job="ID:5, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:4, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:51.483 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:52.315 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 159, 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:37:51.483 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:52.552 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=5] [2024/05/06 16:37:52.552 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:52.554 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 1.103950213\n# Parse_time: 0\n# Compile_time: 0.014745993\n# Rewrite_time: 0.000011941\n# Optimize_time: 0\n# Wait_TS: 0.000099306\n# DB: mysql\n# Is_internal: true\n# Digest: 14c6b489558060bdbede877927034270db5af07c6621aa28f87eeaec8727e925\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\nCREATE TABLE IF NOT EXISTS mysql.user ( Host CHAR(255), User CHAR(32), authentication_string TEXT, plugin CHAR(64), Select_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Insert_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Update_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Delete_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Drop_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Process_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Grant_priv ENUM('N','Y') NOT NULL DEFAULT 'N', References_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Show_db_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Super_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_tmp_table_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Lock_tables_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Execute_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Show_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Index_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_user_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Event_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Repl_slave_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Repl_client_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Trigger_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_role_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Drop_role_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Account_locked ENUM('N','Y') NOT NULL DEFAULT 'N', Shutdown_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Reload_priv ENUM('N','Y') NOT NULL DEFAULT 'N', FILE_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Config_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_Tablespace_Priv ENUM('N','Y') NOT NULL DEFAULT 'N', Password_reuse_history smallint unsigned DEFAULT NULL, Password_reuse_time smallint unsigned DEFAULT NULL, User_attributes json, Token_issuer VARCHAR(255), Password_expired ENUM('N','Y') NOT NULL DEFAULT 'N', Password_last_changed TIMESTAMP DEFAULT CURRENT_TIMESTAMP(), Password_lifetime SMALLINT UNSIGNED DEFAULT NULL, PRIMARY KEY (Host, User));"] [2024/05/06 16:37:52.565 +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:37:52.619 +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:37:52.579 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:52.619 +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:37:52.579 +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:37:52.671 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 159, 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:37:52.579 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:52.750 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=2] [neededSchemaVersion=3] ["start time"=2.100986ms] [phyTblIDs="[6]"] [actionTypes="[8]"] [2024/05/06 16:37:52.811 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:52.811 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=7] [version=3] [2024/05/06 16:37:52.813 +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"=66.396141ms] [job="ID:7, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:6, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:52.579 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:52.856 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 159, 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:37:52.579 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:52.917 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=7] [2024/05/06 16:37:52.917 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:52.919 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.357586581\n# Parse_time: 0\n# Compile_time: 0.00372582\n# Rewrite_time: 0.000011937\n# Optimize_time: 0\n# Wait_TS: 0.000085754\n# DB: mysql\n# Is_internal: true\n# Digest: eeb59bc0d98f65a2a5aef8eaa99596260e746b00eed183baf856558ef03533ac\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\nCREATE TABLE IF NOT EXISTS mysql.password_history ( Host char(255) NOT NULL DEFAULT '', User char(32) NOT NULL DEFAULT '', Password_timestamp timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), Password text, PRIMARY KEY (Host,User,Password_timestamp ) ) COMMENT='Password history for user accounts' ;"] [2024/05/06 16:37:52.925 +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:37:52.979 +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:37:52.937 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:52.979 +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:37:52.937 +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:37:53.031 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 159, 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:37:52.937 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:53.120 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=3] [neededSchemaVersion=4] ["start time"=1.992792ms] [phyTblIDs="[8]"] [actionTypes="[8]"] [2024/05/06 16:37:53.161 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:53.162 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=9] [version=4] [2024/05/06 16:37:53.165 +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"=47.797022ms] [job="ID:9, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:8, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:52.937 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:53.209 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 159, 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:37:52.937 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:53.267 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=9] [2024/05/06 16:37:53.268 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:53.270 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.346198197\n# Parse_time: 0\n# Compile_time: 0.001939045\n# Rewrite_time: 0.000014047\n# Optimize_time: 0\n# Wait_TS: 0.000072877\n# DB: mysql\n# Is_internal: true\n# Digest: 3bc9b46cf9e300a8d240915cf47216424544ed9f992c07151fba2e2cadc41632\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\nCREATE 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:37:53.292 +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:37:53.421 +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:37:53.305 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:53.421 +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:37:53.305 +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:37:53.483 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 159, 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:37:53.305 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:53.740 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=4] [neededSchemaVersion=5] ["start time"=4.99395ms] [phyTblIDs="[10]"] [actionTypes="[8]"] [2024/05/06 16:37:53.761 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:53.762 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=11] [version=5] [2024/05/06 16:37:53.763 +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.439122ms] [job="ID:11, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:10, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:53.305 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:53.806 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 159, 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:37:53.305 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:53.944 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=11] [2024/05/06 16:37:53.944 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:53.946 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.660534872\n# Parse_time: 0\n# Compile_time: 0.007051026\n# Rewrite_time: 0.000010221\n# Optimize_time: 0\n# Wait_TS: 0.000059792\n# DB: mysql\n# Is_internal: true\n# Digest: aeaf612801484f0311f850d36f60f29e6d904828682c1f3bb7307dff25ca3a15\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\nCREATE TABLE IF NOT EXISTS mysql.db ( Host CHAR(255), DB CHAR(64), User CHAR(32), Select_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Insert_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Update_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Delete_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Drop_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Grant_priv ENUM('N','Y') NOT NULL DEFAULT 'N', References_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Index_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_tmp_table_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Lock_tables_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Show_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Execute_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Event_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Trigger_priv ENUM('N','Y') NOT NULL DEFAULT 'N', PRIMARY KEY (Host, DB, User));"] [2024/05/06 16:37:53.957 +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:37:54.034 +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:37:53.971 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:54.034 +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:37:53.971 +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:37:54.100 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 159, 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:37:53.971 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:54.239 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=5] [neededSchemaVersion=6] ["start time"=3.313117ms] [phyTblIDs="[12]"] [actionTypes="[8]"] [2024/05/06 16:37:54.262 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:54.262 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=13] [version=6] [2024/05/06 16:37:54.264 +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"=28.389588ms] [job="ID:13, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:12, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:53.971 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:54.318 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 159, 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:37:53.971 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:54.394 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=13] [2024/05/06 16:37:54.394 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:54.396 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.442798941\n# Parse_time: 0\n# Compile_time: 0.00365378\n# Rewrite_time: 0.000017197\n# Optimize_time: 0\n# Wait_TS: 0.000099687\n# DB: mysql\n# Is_internal: true\n# Digest: e8b37dad6cc7f05ee1f0be61455667495826928a93ddd09b94e02fbaed113955\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\nCREATE TABLE IF NOT EXISTS mysql.tables_priv ( Host CHAR(255), DB CHAR(64), User CHAR(32), Table_name CHAR(64), Grantor CHAR(77), Timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP, Table_priv SET('Select','Insert','Update','Delete','Create','Drop','Grant','Index','Alter','Create View','Show View','Trigger','References'), Column_priv SET('Select','Insert','Update','References'), PRIMARY KEY (Host, DB, User, Table_name));"] [2024/05/06 16:37:54.401 +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:37:54.474 +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:37:54.414 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:54.474 +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:37:54.414 +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:37:54.529 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 159, 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:37:54.414 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:54.643 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=6] [neededSchemaVersion=7] ["start time"=2.848049ms] [phyTblIDs="[14]"] [actionTypes="[8]"] [2024/05/06 16:37:54.661 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:54.661 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=15] [version=7] [2024/05/06 16:37:54.662 +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.470928ms] [job="ID:15, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:14, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:54.414 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:54.712 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 159, 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:37:54.414 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:54.781 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=15] [2024/05/06 16:37:54.781 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:54.784 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.384827344\n# Parse_time: 0\n# Compile_time: 0.002343321\n# Rewrite_time: 0.000009859\n# Optimize_time: 0\n# Wait_TS: 0.000091222\n# DB: mysql\n# Is_internal: true\n# Digest: a19edbb3caff8cc57619278ab6eb5f791d7a821432309abe7184d0a7bca66b4d\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\nCREATE TABLE IF NOT EXISTS mysql.columns_priv( Host CHAR(255), DB CHAR(64), User CHAR(32), Table_name CHAR(64), Column_name CHAR(64), Timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP, Column_priv SET('Select','Insert','Update','References'), PRIMARY KEY (Host, DB, User, Table_name, Column_name));"] [2024/05/06 16:37:54.788 +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:37:54.836 +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:37:54.8 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:54.836 +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:37:54.8 +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:37:54.892 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 159, 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:37:54.8 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:54.949 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=7] [neededSchemaVersion=8] ["start time"=1.882096ms] [phyTblIDs="[16]"] [actionTypes="[8]"] [2024/05/06 16:37:55.011 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:55.012 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=17] [version=8] [2024/05/06 16:37:55.012 +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"=66.314967ms] [job="ID:17, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:16, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:54.8 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:55.058 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 159, 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:37:54.8 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:55.107 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=17] [2024/05/06 16:37:55.107 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:55.108 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.322239378\n# Parse_time: 0\n# Compile_time: 0.001626809\n# Rewrite_time: 0.000020402\n# Optimize_time: 0\n# Wait_TS: 0.000082427\n# DB: mysql\n# Is_internal: true\n# Digest: 55c1ea537145da60f32339dc7a3b69a3859f3f428fbae4e4023eb71dca836f47\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\nCREATE TABLE IF NOT EXISTS mysql.GLOBAL_VARIABLES( VARIABLE_NAME VARCHAR(64) NOT NULL PRIMARY KEY, VARIABLE_VALUE VARCHAR(1024) DEFAULT NULL);"] [2024/05/06 16:37:55.113 +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:37:55.167 +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:37:55.127 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:55.167 +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:37:55.127 +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:37:55.225 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 159, 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:37:55.127 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:55.335 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=8] [neededSchemaVersion=9] ["start time"=2.646932ms] [phyTblIDs="[18]"] [actionTypes="[8]"] [2024/05/06 16:37:55.362 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:55.362 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=19] [version=9] [2024/05/06 16:37:55.364 +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"=33.11598ms] [job="ID:19, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:18, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:55.127 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:55.410 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 159, 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:37:55.127 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:55.464 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=19] [2024/05/06 16:37:55.464 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:55.466 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.354757579\n# Parse_time: 0\n# Compile_time: 0.002365346\n# Rewrite_time: 0.000010387\n# Optimize_time: 0\n# Wait_TS: 0.000085386\n# DB: mysql\n# Is_internal: true\n# Digest: 0cc4a9cf54472ccff7c4fb8d7c6e34e6bd96af08b450ad4c9677473f1f517cf2\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\nCREATE TABLE IF NOT EXISTS mysql.tidb( VARIABLE_NAME VARCHAR(64) NOT NULL PRIMARY KEY, VARIABLE_VALUE VARCHAR(1024) DEFAULT NULL, COMMENT VARCHAR(1024));"] [2024/05/06 16:37:55.477 +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:37:55.540 +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:37:55.491 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:55.540 +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:37:55.491 +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:37:55.599 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 159, 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:37:55.491 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:55.693 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=9] [neededSchemaVersion=10] ["start time"=2.460561ms] [phyTblIDs="[20]"] [actionTypes="[8]"] [2024/05/06 16:37:55.713 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:55.713 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=21] [version=10] [2024/05/06 16:37:55.715 +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"=25.064226ms] [job="ID:21, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:20, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:55.491 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:55.762 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 159, 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:37:55.491 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:55.826 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=21] [2024/05/06 16:37:55.826 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:55.827 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.353598779\n# Parse_time: 0\n# Compile_time: 0.003090882\n# Rewrite_time: 0.000011339\n# Optimize_time: 0\n# Wait_TS: 0.000089272\n# DB: mysql\n# Is_internal: true\n# Digest: ca851971407336dad93908a9f88f01d828a4e18f332111987f4a7675bced7ea4\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\nCREATE TABLE IF NOT EXISTS mysql.help_topic ( help_topic_id INT(10) UNSIGNED NOT NULL, name CHAR(64) NOT NULL, help_category_id SMALLINT(5) UNSIGNED NOT NULL, description TEXT NOT NULL, example TEXT NOT NULL, url TEXT NOT NULL, PRIMARY KEY (help_topic_id) clustered, UNIQUE KEY name (name) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='help topics';"] [2024/05/06 16:37:55.834 +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:37:55.891 +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:37:55.846 +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:37:55.891 +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:37:55.846 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:55.946 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 159, 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:37:55.846 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:56.043 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=10] [neededSchemaVersion=11] ["start time"=2.377649ms] [phyTblIDs="[22]"] [actionTypes="[8]"] [2024/05/06 16:37:56.061 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:56.061 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=23] [version=11] [2024/05/06 16:37:56.063 +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"=23.129165ms] [job="ID:23, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:22, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:55.846 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:56.110 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 159, 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:37:55.846 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:56.183 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=23] [2024/05/06 16:37:56.183 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:56.184 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.352565476\n# Parse_time: 0\n# Compile_time: 0.002831763\n# Rewrite_time: 0.000009065\n# Optimize_time: 0\n# Wait_TS: 0.000084188\n# DB: mysql\n# Is_internal: true\n# Digest: db16a74bd407cb00f071eafe96456094f48fc00e802128fc486ef4847b8910b0\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\nCREATE TABLE IF NOT EXISTS mysql.stats_meta ( version BIGINT(64) UNSIGNED NOT NULL, table_id BIGINT(64) NOT NULL, modify_count BIGINT(64) NOT NULL DEFAULT 0, count BIGINT(64) UNSIGNED NOT NULL DEFAULT 0, snapshot BIGINT(64) UNSIGNED NOT NULL DEFAULT 0, INDEX idx_ver(version), UNIQUE INDEX tbl(table_id) );"] [2024/05/06 16:37:56.196 +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:37:56.197 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(6291456) to MEDIUMBLOB"] [2024/05/06 16:37:56.295 +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:37:56.209 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:56.295 +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:37:56.209 +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:37:56.356 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 159, 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:37:56.209 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:56.530 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=11] [neededSchemaVersion=12] ["start time"=4.031485ms] [phyTblIDs="[24]"] [actionTypes="[8]"] [2024/05/06 16:37:56.561 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:56.561 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=25] [version=12] [2024/05/06 16:37:56.563 +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"=38.379235ms] [job="ID:25, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:24, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:56.209 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:56.606 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 159, 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:37:56.209 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:56.699 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=25] [2024/05/06 16:37:56.699 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:56.701 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.509782038\n# Parse_time: 0\n# Compile_time: 0.004867458\n# Rewrite_time: 0.000012595\n# Optimize_time: 0\n# Wait_TS: 0.000092514\n# DB: mysql\n# Is_internal: true\n# Digest: 7780c45a0aac5f123ac85a7e601e79c5d7779e7c09a19953908e547605ed45d2\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\nCREATE TABLE IF NOT EXISTS mysql.stats_histograms ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, distinct_count BIGINT(64) NOT NULL, null_count BIGINT(64) NOT NULL DEFAULT 0, tot_col_size BIGINT(64) NOT NULL DEFAULT 0, modify_count BIGINT(64) NOT NULL DEFAULT 0, version BIGINT(64) UNSIGNED NOT NULL DEFAULT 0, cm_sketch BLOB(6291456), stats_ver BIGINT(64) NOT NULL DEFAULT 0, flag BIGINT(64) NOT NULL DEFAULT 0, correlation DOUBLE NOT NULL DEFAULT 0, last_analyze_pos LONGBLOB DEFAULT NULL, UNIQUE INDEX tbl(table_id, is_index, hist_id) );"] [2024/05/06 16:37:56.709 +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:37:56.784 +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:37:56.722 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:56.784 +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:37:56.722 +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:37:56.840 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 159, 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:37:56.722 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:56.956 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=12] [neededSchemaVersion=13] ["start time"=2.008823ms] [phyTblIDs="[26]"] [actionTypes="[8]"] [2024/05/06 16:37:57.012 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:57.012 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=27] [version=13] [2024/05/06 16:37:57.014 +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"=60.929359ms] [job="ID:27, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:26, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:56.722 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:57.054 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 159, 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:37:56.722 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:57.121 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=27] [2024/05/06 16:37:57.122 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:57.123 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.417575922\n# Parse_time: 0\n# Compile_time: 0.003389027\n# Rewrite_time: 0.000012473\n# Optimize_time: 0\n# Wait_TS: 0.00006476\n# DB: mysql\n# Is_internal: true\n# Digest: 5615b5212342304015b027afb253371dae02f19e53871cfbb034deb145dfce32\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\nCREATE TABLE IF NOT EXISTS mysql.stats_buckets ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, bucket_id BIGINT(64) NOT NULL, count BIGINT(64) NOT NULL, repeats BIGINT(64) NOT NULL, upper_bound LONGBLOB NOT NULL, lower_bound LONGBLOB , ndv BIGINT NOT NULL DEFAULT 0, UNIQUE INDEX tbl(table_id, is_index, hist_id, bucket_id) );"] [2024/05/06 16:37:57.130 +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:37:57.188 +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:37:57.143 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:57.188 +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:37:57.143 +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:37:57.242 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 159, 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:37:57.143 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:57.319 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=13] [neededSchemaVersion=14] ["start time"=2.240088ms] [phyTblIDs="[28]"] [actionTypes="[8]"] [2024/05/06 16:37:57.361 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:57.361 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=29] [version=14] [2024/05/06 16:37:57.363 +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"=46.87113ms] [job="ID:29, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:28, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:57.143 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:57.407 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 159, 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:37:57.143 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:57.470 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=29] [2024/05/06 16:37:57.470 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:57.471 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.34430816\n# Parse_time: 0\n# Compile_time: 0.003110451\n# Rewrite_time: 0.000013572\n# Optimize_time: 0\n# Wait_TS: 0.000103244\n# DB: mysql\n# Is_internal: true\n# Digest: 4f764dd084d16197c847e23500fcaf8b96dbbabd598c823de37967bfa2ad51cd\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\nCREATE TABLE IF NOT EXISTS mysql.gc_delete_range ( job_id BIGINT NOT NULL COMMENT \"the DDL job ID\", element_id BIGINT NOT NULL COMMENT \"the schema element ID\", start_key VARCHAR(255) NOT NULL COMMENT \"encoded in hex\", end_key VARCHAR(255) NOT NULL COMMENT \"encoded in hex\", ts BIGINT NOT NULL COMMENT \"timestamp in uint64\", UNIQUE KEY delete_range_index (job_id, element_id) );"] [2024/05/06 16:37:57.478 +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:37:57.560 +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:37:57.489 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:57.560 +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:37:57.489 +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:37:57.622 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 159, 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:37:57.489 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:57.706 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=14] [neededSchemaVersion=15] ["start time"=2.028154ms] [phyTblIDs="[30]"] [actionTypes="[8]"] [2024/05/06 16:37:57.761 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:57.761 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=31] [version=15] [2024/05/06 16:37:57.762 +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"=58.676131ms] [job="ID:31, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:30, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:57.489 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:57.802 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 159, 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:37:57.489 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:57.867 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=31] [2024/05/06 16:37:57.868 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:57.869 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.394572301\n# Parse_time: 0\n# Compile_time: 0.003191653\n# Rewrite_time: 0.000015201\n# Optimize_time: 0\n# Wait_TS: 0.000092007\n# DB: mysql\n# Is_internal: true\n# Digest: 532cf71b38f2568975d61180716af7e2b05c9ca11023688224ed0c0eece42fa9\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\nCREATE TABLE IF NOT EXISTS mysql.gc_delete_range_done ( job_id BIGINT NOT NULL COMMENT \"the DDL job ID\", element_id BIGINT NOT NULL COMMENT \"the schema element ID\", start_key VARCHAR(255) NOT NULL COMMENT \"encoded in hex\", end_key VARCHAR(255) NOT NULL COMMENT \"encoded in hex\", ts BIGINT NOT NULL COMMENT \"timestamp in uint64\", UNIQUE KEY delete_range_done_index (job_id, element_id) );"] [2024/05/06 16:37:57.875 +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:37:57.933 +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:37:57.889 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:57.933 +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:37:57.889 +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:37:57.990 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 159, 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:37:57.889 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:58.066 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=15] [neededSchemaVersion=16] ["start time"=1.872965ms] [phyTblIDs="[32]"] [actionTypes="[8]"] [2024/05/06 16:37:58.112 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:58.112 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=33] [version=16] [2024/05/06 16:37:58.114 +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"=50.668071ms] [job="ID:33, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:32, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:57.889 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:58.158 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 159, 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:37:57.889 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:58.211 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=33] [2024/05/06 16:37:58.212 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:58.213 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.340207412\n# Parse_time: 0\n# Compile_time: 0.002295805\n# Rewrite_time: 0.000013892\n# Optimize_time: 0\n# Wait_TS: 0.00009817\n# DB: mysql\n# Is_internal: true\n# Digest: 28f04155dca9c7fd3a5e16199cefd152c629a57a64d0ccb2ed0f10309c23c59c\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\nCREATE TABLE IF NOT EXISTS mysql.stats_feedback ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, feedback BLOB NOT NULL, INDEX hist(table_id, is_index, hist_id) );"] [2024/05/06 16:37:58.223 +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:37:58.289 +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:37:58.234 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:58.289 +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:37:58.234 +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:37:58.331 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 159, 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:37:58.234 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:58.421 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=16] [neededSchemaVersion=17] ["start time"=2.440468ms] [phyTblIDs="[34]"] [actionTypes="[8]"] [2024/05/06 16:37:58.462 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:58.462 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=35] [version=17] [2024/05/06 16:37:58.464 +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"=46.243706ms] [job="ID:35, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:34, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:58.234 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:58.512 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 159, 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:37:58.234 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:58.581 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=35] [2024/05/06 16:37:58.581 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:58.583 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.363238505\n# Parse_time: 0\n# Compile_time: 0.003527905\n# Rewrite_time: 0.00001347\n# Optimize_time: 0\n# Wait_TS: 0.000082913\n# DB: mysql\n# Is_internal: true\n# Digest: 13e2fcff943423afddaa84c2d34108628854b5953bc7c41d2879240f077a5bd6\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\nCREATE TABLE IF NOT EXISTS mysql.role_edges ( FROM_HOST CHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '', FROM_USER CHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '', TO_HOST CHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '', TO_USER CHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '', WITH_ADMIN_OPTION ENUM('N','Y') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'N', PRIMARY KEY (FROM_HOST,FROM_USER,TO_HOST,TO_USER) );"] [2024/05/06 16:37:58.589 +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:37:58.643 +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:37:58.602 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:58.644 +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:37:58.602 +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:37:58.699 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 159, 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:37:58.602 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:58.810 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=17] [neededSchemaVersion=18] ["start time"=2.398652ms] [phyTblIDs="[36]"] [actionTypes="[8]"] [2024/05/06 16:37:58.861 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:58.862 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=37] [version=18] [2024/05/06 16:37:58.864 +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"=57.088325ms] [job="ID:37, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:36, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:58.602 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:58.907 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 159, 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:37:58.602 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:58.967 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=37] [2024/05/06 16:37:58.968 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:58.969 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.382743686\n# Parse_time: 0\n# Compile_time: 0.002829165\n# Rewrite_time: 0.00001028\n# Optimize_time: 0\n# Wait_TS: 0.000076164\n# DB: mysql\n# Is_internal: true\n# Digest: 9e6b544fb0287e9d8a74031560ed0cd6a5b4e54db073b893a68a76b05d929781\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\nCREATE TABLE IF NOT EXISTS mysql.default_roles ( HOST CHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '', USER CHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '', DEFAULT_ROLE_HOST CHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '%', DEFAULT_ROLE_USER CHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '', PRIMARY KEY (HOST,USER,DEFAULT_ROLE_HOST,DEFAULT_ROLE_USER) );"] [2024/05/06 16:37:58.982 +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:37:59.075 +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:37:59 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:59.075 +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:37:59 +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:37:59.129 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 159, 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:37:59 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:59.257 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=18] [neededSchemaVersion=19] ["start time"=3.641967ms] [phyTblIDs="[38]"] [actionTypes="[8]"] [2024/05/06 16:37:59.312 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:59.312 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=39] [version=19] [2024/05/06 16:37:59.313 +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"=60.584006ms] [job="ID:39, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:38, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:59 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:59.357 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 159, 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:37:59 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:59.456 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=39] [2024/05/06 16:37:59.457 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:59.458 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.480603572\n# Parse_time: 0\n# Compile_time: 0.004636115\n# Rewrite_time: 0.000024903\n# Optimize_time: 0\n# Wait_TS: 0.000080379\n# DB: mysql\n# Is_internal: true\n# Digest: 0a4bc55a9ab72ef62ddaa1ee6472d7872306066fd783a8bb67047a497fbb4dbe\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\nCREATE TABLE IF NOT EXISTS mysql.bind_info ( original_sql TEXT NOT NULL, bind_sql TEXT NOT NULL, default_db TEXT NOT NULL, status TEXT NOT NULL, create_time TIMESTAMP(3) NOT NULL, update_time TIMESTAMP(3) NOT NULL, charset TEXT NOT NULL, collation TEXT NOT NULL, source VARCHAR(10) NOT NULL DEFAULT 'unknown', sql_digest varchar(64), plan_digest varchar(64), INDEX sql_index(original_sql(700),default_db(68)) COMMENT \"accelerate the speed when add global binding query\", INDEX time_index(update_time) COMMENT \"accelerate the speed when querying with last update time\" ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;"] [2024/05/06 16:37:59.480 +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:37:59.534 +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:37:59.493 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:59.534 +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:37:59.493 +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:37:59.590 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 159, 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:37:59.493 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:59.670 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=19] [neededSchemaVersion=20] ["start time"=2.361633ms] [phyTblIDs="[40]"] [actionTypes="[8]"] [2024/05/06 16:37:59.711 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:37:59.711 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=41] [version=20] [2024/05/06 16:37:59.713 +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"=46.229333ms] [job="ID:41, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:40, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:59.493 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:59.759 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 159, 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:37:59.493 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:37:59.819 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=41] [2024/05/06 16:37:59.820 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:37:59.821 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.342994733\n# Parse_time: 0\n# Compile_time: 0.002319697\n# Rewrite_time: 0.000017394\n# Optimize_time: 0\n# Wait_TS: 0.000101096\n# DB: mysql\n# Is_internal: true\n# Digest: 04a90564803373a6eb3f5a52e8794d25c4d28f6c18af7899b0b9f1bf1539ec72\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\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\nCREATE TABLE IF NOT EXISTS mysql.stats_top_n ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, value LONGBLOB, count BIGINT(64) UNSIGNED NOT NULL, INDEX tbl(table_id, is_index, hist_id) );"] [2024/05/06 16:37:59.824 +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:37:59.894 +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:37:59.836 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:37:59.894 +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:37:59.836 +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:37:59.949 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 159, 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:37:59.836 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:00.015 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=20] [neededSchemaVersion=21] ["start time"=1.781344ms] [phyTblIDs="[42]"] [actionTypes="[8]"] [2024/05/06 16:38:00.061 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:00.061 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=43] [version=21] [2024/05/06 16:38:00.062 +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"=50.2664ms] [job="ID:43, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:42, RowCount:0, ArgLen:2, start time: 2024-05-06 16:37:59.836 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:00.104 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 159, 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:37:59.836 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:00.151 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=43] [2024/05/06 16:38:00.151 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:00.153 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.330127088\n# Parse_time: 0\n# Compile_time: 0.001455546\n# Rewrite_time: 0.000013029\n# Optimize_time: 0\n# Wait_TS: 0.000062585\n# DB: mysql\n# Is_internal: true\n# Digest: 3e05fb8977f83f4e32022552aded3680a039cddc4239c339119a655dc1cffdbb\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\nCREATE TABLE IF NOT EXISTS mysql.expr_pushdown_blacklist ( name CHAR(100) NOT NULL, store_type CHAR(100) NOT NULL DEFAULT 'tikv,tiflash,tidb', reason VARCHAR(200) );"] [2024/05/06 16:38:00.156 +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:38:00.190 +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:38:00.166 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:00.190 +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:38:00.166 +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:38:00.255 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 159, 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:38:00.166 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:00.303 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=21] [neededSchemaVersion=22] ["start time"=1.480412ms] [phyTblIDs="[44]"] [actionTypes="[8]"] [2024/05/06 16:38:00.361 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:00.361 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=45] [version=22] [2024/05/06 16:38:00.363 +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"=62.817201ms] [job="ID:45, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:44, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:00.166 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:00.404 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 159, 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:38:00.166 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:00.440 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=45] [2024/05/06 16:38:00.440 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:00.451 +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:38:00.531 +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:38:00.464 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:00.531 +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:38:00.464 +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:38:00.584 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 159, 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:38:00.464 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:00.699 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=22] [neededSchemaVersion=23] ["start time"=3.168069ms] [phyTblIDs="[46]"] [actionTypes="[8]"] [2024/05/06 16:38:00.712 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:00.712 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=47] [version=23] [2024/05/06 16:38:00.713 +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.561892ms] [job="ID:47, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:46, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:00.464 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:00.757 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 159, 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:38:00.464 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:00.828 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=47] [2024/05/06 16:38:00.828 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:00.830 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.381362255\n# Parse_time: 0\n# Compile_time: 0.003284646\n# Rewrite_time: 0.000015048\n# Optimize_time: 0\n# Wait_TS: 0.000091543\n# DB: mysql\n# Is_internal: true\n# Digest: bd2a0d9809689d30e22f8d82b29b4ee110d16cda3353b77d74a1938afb746386\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\nCREATE TABLE IF NOT EXISTS mysql.stats_extended ( name varchar(32) NOT NULL, type tinyint(4) NOT NULL, table_id bigint(64) NOT NULL, column_ids varchar(32) NOT NULL, stats blob DEFAULT NULL, version bigint(64) unsigned NOT NULL, status tinyint(4) NOT NULL, PRIMARY KEY(name, table_id), KEY idx_1 (table_id, status, version), KEY idx_2 (status, version) );"] [2024/05/06 16:38:00.834 +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:38:00.894 +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:38:00.846 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:00.894 +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:38:00.846 +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:38:00.941 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 159, 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:38:00.846 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:01.022 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=23] [neededSchemaVersion=24] ["start time"=2.381492ms] [phyTblIDs="[48]"] [actionTypes="[8]"] [2024/05/06 16:38:01.061 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:01.061 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=49] [version=24] [2024/05/06 16:38:01.063 +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"=44.596748ms] [job="ID:49, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:48, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:00.846 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:01.133 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 159, 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:38:00.846 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:01.189 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=49] [2024/05/06 16:38:01.190 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:01.191 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.359123332\n# Parse_time: 0\n# Compile_time: 0.002119948\n# Rewrite_time: 0.000014544\n# Optimize_time: 0\n# Wait_TS: 0.000089025\n# DB: mysql\n# Is_internal: true\n# Digest: f72fffa4e6072164db3e01e2e29568b0b93c5045737047be527343b1737b0882\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\nCREATE TABLE IF NOT EXISTS mysql.schema_index_usage ( TABLE_ID bigint(64), INDEX_ID bigint(21), QUERY_COUNT bigint(64), ROWS_SELECTED bigint(64), LAST_USED_AT timestamp, PRIMARY KEY(TABLE_ID, INDEX_ID) );"] [2024/05/06 16:38:01.198 +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:38:01.265 +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:38:01.211 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:01.265 +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:38:01.211 +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:38:01.309 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 159, 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:38:01.211 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:01.401 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=24] [neededSchemaVersion=25] ["start time"=2.332995ms] [phyTblIDs="[50]"] [actionTypes="[8]"] [2024/05/06 16:38:01.462 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:01.462 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=51] [version=25] [2024/05/06 16:38:01.464 +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"=66.259122ms] [job="ID:51, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:50, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:01.211 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:01.505 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 159, 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:38:01.211 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:01.555 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=51] [2024/05/06 16:38:01.555 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:01.556 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.360108018\n# Parse_time: 0\n# Compile_time: 0.002156236\n# Rewrite_time: 0.000013134\n# Optimize_time: 0\n# Wait_TS: 0.000095594\n# DB: mysql\n# Is_internal: true\n# Digest: 27ef2533f9d97f96c8c86a69a0de51aad04499856acd05fe4a4b93fb5b6043d0\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\nCREATE TABLE IF NOT EXISTS mysql.stats_fm_sketch ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, value LONGBLOB, INDEX tbl(table_id, is_index, hist_id) );"] [2024/05/06 16:38:01.562 +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:38:01.622 +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:38:01.576 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:01.622 +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:38:01.576 +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:38:01.674 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 159, 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:38:01.576 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:01.750 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=25] [neededSchemaVersion=26] ["start time"=2.245691ms] [phyTblIDs="[52]"] [actionTypes="[8]"] [2024/05/06 16:38:01.812 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:01.812 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=53] [version=26] [2024/05/06 16:38:01.814 +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"=66.512068ms] [job="ID:53, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:52, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:01.576 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:01.849 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 159, 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:38:01.576 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:01.897 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=53] [2024/05/06 16:38:01.897 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:01.898 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.338580055\n# Parse_time: 0\n# Compile_time: 0.002645501\n# Rewrite_time: 0.000021469\n# Optimize_time: 0\n# Wait_TS: 0.000086202\n# DB: mysql\n# Is_internal: true\n# Digest: 79c6e54229df7b01d20ffaf8ac1077aa9ef39e604df30d5ce852dd7049cc3ddd\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\nCREATE TABLE IF NOT EXISTS mysql.global_grants ( USER char(32) NOT NULL DEFAULT '', HOST char(255) NOT NULL DEFAULT '', PRIV char(32) NOT NULL DEFAULT '', WITH_GRANT_OPTION enum('N','Y') NOT NULL DEFAULT 'N', PRIMARY KEY (USER,HOST,PRIV) );"] [2024/05/06 16:38:01.902 +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:38:01.945 +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:38:01.913 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:01.945 +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:38:01.913 +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:38:01.991 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 159, 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:38:01.913 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:02.057 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=26] [neededSchemaVersion=27] ["start time"=1.873828ms] [phyTblIDs="[54]"] [actionTypes="[8]"] [2024/05/06 16:38:02.111 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:02.111 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=55] [version=27] [2024/05/06 16:38:02.113 +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"=58.696775ms] [job="ID:55, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:54, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:01.913 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:02.150 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 159, 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:38:01.913 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:02.192 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=55] [2024/05/06 16:38:02.193 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:02.199 +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:38:02.273 +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:38:02.211 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:02.274 +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:38:02.211 +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:38:02.327 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 159, 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:38:02.211 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:02.405 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=27] [neededSchemaVersion=28] ["start time"=2.134715ms] [phyTblIDs="[56]"] [actionTypes="[8]"] [2024/05/06 16:38:02.461 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:02.461 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=57] [version=28] [2024/05/06 16:38:02.462 +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"=60.46309ms] [job="ID:57, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:56, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:02.211 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:02.497 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 159, 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:38:02.211 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:02.549 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=57] [2024/05/06 16:38:02.550 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:02.551 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.354901477\n# Parse_time: 0\n# Compile_time: 0.003450399\n# Rewrite_time: 0.000010696\n# Optimize_time: 0\n# Wait_TS: 0.000092486\n# DB: mysql\n# Is_internal: true\n# Digest: 3a5634ff31bd7d32849c5404b7ffc419c7a7074307b815e5369eb6ca363cbcd0\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\nCREATE TABLE IF NOT EXISTS mysql.column_stats_usage ( table_id BIGINT(64) NOT NULL, column_id BIGINT(64) NOT NULL, last_used_at TIMESTAMP, last_analyzed_at TIMESTAMP, PRIMARY KEY (table_id, column_id) CLUSTERED );"] [2024/05/06 16:38:02.557 +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:38:02.603 +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:38:02.569 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:02.603 +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:38:02.569 +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:38:02.655 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 159, 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:38:02.569 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:02.724 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=28] [neededSchemaVersion=29] ["start time"=1.880852ms] [phyTblIDs="[58]"] [actionTypes="[8]"] [2024/05/06 16:38:02.761 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:02.761 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=59] [version=29] [2024/05/06 16:38:02.763 +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"=48.612195ms] [job="ID:59, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:58, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:02.569 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:02.800 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 159, 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:38:02.569 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:02.856 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=59] [2024/05/06 16:38:02.856 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:02.857 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.302436457\n# Parse_time: 0\n# Compile_time: 0.002472249\n# Rewrite_time: 0.000010325\n# Optimize_time: 0\n# Wait_TS: 0.000077433\n# DB: mysql\n# Is_internal: true\n# Digest: d5bebde055ca14bff3e131e086a86c4095b9d04ea6fc326b4c2f16ffd61fbd2d\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\nCREATE TABLE IF NOT EXISTS mysql.table_cache_meta ( tid bigint(11) NOT NULL DEFAULT 0, lock_type enum('NONE','READ', 'INTEND', 'WRITE') NOT NULL DEFAULT 'NONE', lease bigint(20) NOT NULL DEFAULT 0, oldReadLease bigint(20) NOT NULL DEFAULT 0, PRIMARY KEY (tid) );"] [2024/05/06 16:38:02.865 +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:38:02.867 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(19372) to MEDIUMBLOB"] [2024/05/06 16:38:02.926 +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:38:02.879 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:02.926 +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:38:02.879 +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:38:02.976 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 159, 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:38:02.879 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:03.071 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=29] [neededSchemaVersion=30] ["start time"=1.573451ms] [phyTblIDs="[60]"] [actionTypes="[8]"] [2024/05/06 16:38:03.111 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:03.111 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=61] [version=30] [2024/05/06 16:38:03.113 +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"=44.714034ms] [job="ID:61, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:60, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:02.879 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:03.158 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 159, 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:38:02.879 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:03.225 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=61] [2024/05/06 16:38:03.225 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:03.227 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.364840892\n# Parse_time: 0\n# Compile_time: 0.003435742\n# Rewrite_time: 0.000016138\n# Optimize_time: 0\n# Wait_TS: 0.000083294\n# DB: mysql\n# Is_internal: true\n# Digest: 987fcd9b9a604209ec1101d918419b993c42f84fe228e20aee2fcca2931ff93e\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\nCREATE TABLE IF NOT EXISTS mysql.analyze_options ( table_id BIGINT(64) NOT NULL, sample_num BIGINT(64) NOT NULL DEFAULT 0, sample_rate DOUBLE NOT NULL DEFAULT -1, buckets BIGINT(64) NOT NULL DEFAULT 0, topn BIGINT(64) NOT NULL DEFAULT -1, column_choice enum('DEFAULT','ALL','PREDICATE','LIST') NOT NULL DEFAULT 'DEFAULT', column_ids TEXT(19372), PRIMARY KEY (table_id) CLUSTERED );"] [2024/05/06 16:38:03.234 +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:38:03.286 +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:38:03.247 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:03.286 +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:38:03.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:38:03.334 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 159, 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:38:03.247 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:03.439 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=30] [neededSchemaVersion=31] ["start time"=2.86716ms] [phyTblIDs="[62]"] [actionTypes="[8]"] [2024/05/06 16:38:03.461 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:03.461 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=63] [version=31] [2024/05/06 16:38:03.463 +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"=28.43133ms] [job="ID:63, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:62, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:03.247 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:03.506 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 159, 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:38:03.247 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:03.569 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=63] [2024/05/06 16:38:03.569 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:03.570 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.339264236\n# Parse_time: 0\n# Compile_time: 0.00327218\n# Rewrite_time: 0.000013225\n# Optimize_time: 0\n# Wait_TS: 0.000083332\n# DB: mysql\n# Is_internal: true\n# Digest: 11757f6de6b3d2a64e92f14cd7b7f739729563ede3b0139d016148eba0b27ebf\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\nCREATE TABLE IF NOT EXISTS mysql.stats_history ( table_id bigint(64) NOT NULL, stats_data longblob NOT NULL, seq_no bigint(64) NOT NULL comment 'sequence number of the gzipped data slice', version bigint(64) NOT NULL comment 'stats version which corresponding to stats:version in EXPLAIN', create_time datetime(6) NOT NULL, UNIQUE KEY table_version_seq (table_id, version, seq_no), KEY table_create_time (table_id, create_time, seq_no) );"] [2024/05/06 16:38:03.577 +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:38:03.638 +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:38:03.588 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:03.638 +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:38:03.588 +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:38:03.689 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 159, 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:38:03.588 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:03.790 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=31] [neededSchemaVersion=32] ["start time"=2.190168ms] [phyTblIDs="[64]"] [actionTypes="[8]"] [2024/05/06 16:38:03.811 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:03.812 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=65] [version=32] [2024/05/06 16:38:03.814 +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"=26.533777ms] [job="ID:65, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:64, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:03.588 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:03.849 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 159, 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:38:03.588 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:03.901 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=65] [2024/05/06 16:38:03.901 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:03.902 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.32719661\n# Parse_time: 0\n# Compile_time: 0.002352066\n# Rewrite_time: 0.000009121\n# Optimize_time: 0\n# Wait_TS: 0.000068164\n# DB: mysql\n# Is_internal: true\n# Digest: ebccd6f5d49fb0fcff4d7dc20bb3ae798d172a92ba5f6709445c980166f7e32f\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\nCREATE TABLE IF NOT EXISTS mysql.stats_meta_history ( table_id bigint(64) NOT NULL, modify_count bigint(64) NOT NULL, count bigint(64) NOT NULL, version bigint(64) NOT NULL comment 'stats version which corresponding to stats:version in EXPLAIN', create_time datetime(6) NOT NULL, UNIQUE KEY table_version (table_id, version), KEY table_create_time (table_id, create_time) );"] [2024/05/06 16:38:03.915 +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:38:03.995 +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:38:03.928 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:03.995 +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:38:03.928 +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:38:04.040 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 159, 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:38:03.928 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:04.175 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=32] [neededSchemaVersion=33] ["start time"=2.586279ms] [phyTblIDs="[66]"] [actionTypes="[8]"] [2024/05/06 16:38:04.211 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:04.212 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=67] [version=33] [2024/05/06 16:38:04.214 +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"=42.232971ms] [job="ID:67, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:66, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:03.928 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:04.291 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 159, 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:38:03.928 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:04.403 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=67] [2024/05/06 16:38:04.403 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:04.405 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.494369584\n# Parse_time: 0\n# Compile_time: 0.00507466\n# Rewrite_time: 0.000010882\n# Optimize_time: 0\n# Wait_TS: 0.000070067\n# DB: mysql\n# Is_internal: true\n# Digest: bfb9a3ff60c3c60c054a207c0a0db06c87e29edbe94005d8d5c89fe484f4f90a\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\nCREATE TABLE IF NOT EXISTS mysql.analyze_jobs ( id BIGINT(64) UNSIGNED NOT NULL AUTO_INCREMENT, update_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, table_schema CHAR(64) NOT NULL DEFAULT '', table_name CHAR(64) NOT NULL DEFAULT '', partition_name CHAR(64) NOT NULL DEFAULT '', job_info TEXT NOT NULL, processed_rows BIGINT(64) UNSIGNED NOT NULL DEFAULT 0, start_time TIMESTAMP, end_time TIMESTAMP, state ENUM('pending', 'running', 'finished', 'failed') NOT NULL, fail_reason TEXT, instance VARCHAR(512) NOT NULL comment 'address of the TiDB instance executing the analyze job', process_id BIGINT(64) UNSIGNED comment 'ID of the process executing the analyze job', PRIMARY KEY (id), KEY (update_time) );"] [2024/05/06 16:38:04.408 +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:38:04.448 +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:38:04.42 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:04.448 +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:38:04.42 +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:38:04.504 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 159, 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:38:04.42 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:04.543 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=33] [neededSchemaVersion=34] ["start time"=1.289083ms] [phyTblIDs="[68]"] [actionTypes="[8]"] [2024/05/06 16:38:04.561 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:04.562 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=69] [version=34] [2024/05/06 16:38:04.564 +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"=22.713867ms] [job="ID:69, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:68, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:04.42 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:04.604 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 159, 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:38:04.42 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:04.638 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=69] [2024/05/06 16:38:04.639 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:04.711 +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:38:04.663 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:04.711 +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:38:04.663 +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:38:04.759 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 159, 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:38:04.663 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:04.853 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=34] [neededSchemaVersion=35] ["start time"=2.530312ms] [phyTblIDs="[70]"] [actionTypes="[2097152]"] [2024/05/06 16:38:04.911 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:04.911 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=71] [version=35] [2024/05/06 16:38:04.912 +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"=62.281665ms] [job="ID:71, Type:create view, State:done, SchemaState:public, SchemaID:1, TableID:70, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:04.663 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:04.956 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 159, 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:38:04.663 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:05.016 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=71] [2024/05/06 16:38:05.016 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:05.017 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.372060801\n# Parse_time: 0\n# Compile_time: 0.006568735\n# Rewrite_time: 0.003474277\n# Optimize_time: 0\n# Wait_TS: 0.000065367\n# DB: mysql\n# Is_internal: true\n# Digest: 812c81f344f5d0c8b8aedcb68ff1dca865b59104853273f7e66b8abff5429992\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\nCREATE OR REPLACE VIEW mysql.tidb_mdl_view as ( select 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 );"] [2024/05/06 16:38:05.022 +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:38:05.084 +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:38:05.035 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:05.085 +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:38:05.035 +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:38:05.138 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 159, 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:38:05.035 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:05.246 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=35] [neededSchemaVersion=36] ["start time"=2.488601ms] [phyTblIDs="[72]"] [actionTypes="[8]"] [2024/05/06 16:38:05.261 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:05.261 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=73] [version=36] [2024/05/06 16:38:05.261 +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"=18.316906ms] [job="ID:73, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:72, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:05.035 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:05.307 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 159, 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:38:05.035 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:05.377 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=73] [2024/05/06 16:38:05.378 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:05.379 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.359065591\n# Parse_time: 0\n# Compile_time: 0.002323107\n# Rewrite_time: 0.000011805\n# Optimize_time: 0\n# Wait_TS: 0.000080334\n# DB: mysql\n# Is_internal: true\n# Digest: 3d2f349b1c68ee2b30e34bad8bb3838af6c40d7a26072b2d29d801d7fedbac48\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\nCREATE TABLE IF NOT EXISTS mysql.plan_replayer_status ( sql_digest VARCHAR(128), plan_digest VARCHAR(128), origin_sql TEXT, token VARCHAR(128), update_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, fail_reason TEXT, instance VARCHAR(512) NOT NULL comment 'address of the TiDB instance executing the plan replayer job');"] [2024/05/06 16:38:05.384 +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:38:05.452 +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:38:05.396 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:05.452 +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:38:05.396 +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:38:05.499 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 159, 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:38:05.396 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:05.562 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=36] [neededSchemaVersion=37] ["start time"=1.454043ms] [phyTblIDs="[74]"] [actionTypes="[8]"] [2024/05/06 16:38:05.612 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:05.612 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=75] [version=37] [2024/05/06 16:38:05.614 +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"=54.421185ms] [job="ID:75, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:74, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:05.396 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:05.655 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 159, 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:38:05.396 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:05.703 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=75] [2024/05/06 16:38:05.704 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:05.705 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.323087517\n# Parse_time: 0\n# Compile_time: 0.002311737\n# Rewrite_time: 0.000013614\n# Optimize_time: 0\n# Wait_TS: 0.000085791\n# DB: mysql\n# Is_internal: true\n# Digest: 8d9754df14c826803fed84f1ae3eb8fc9729e76a793b6be6bf25967f1929d039\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\nCREATE TABLE IF NOT EXISTS mysql.plan_replayer_task ( sql_digest VARCHAR(128) NOT NULL, plan_digest VARCHAR(128) NOT NULL, update_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (sql_digest,plan_digest));"] [2024/05/06 16:38:05.710 +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:38:05.761 +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:38:05.72 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:05.761 +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:38:05.72 +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:38:05.806 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 159, 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:38:05.72 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:05.863 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=37] [neededSchemaVersion=38] ["start time"=2.010045ms] [phyTblIDs="[76]"] [actionTypes="[8]"] [2024/05/06 16:38:05.912 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:05.912 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=77] [version=38] [2024/05/06 16:38:05.914 +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"=54.313353ms] [job="ID:77, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:76, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:05.72 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:05.950 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 159, 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:38:05.72 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:06.000 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=77] [2024/05/06 16:38:06.000 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:06.012 +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:38:06.096 +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:38:06.022 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:06.096 +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:38:06.022 +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:38:06.143 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 159, 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:38:06.022 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:06.316 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=38] [neededSchemaVersion=39] ["start time"=3.292832ms] [phyTblIDs="[78]"] [actionTypes="[8]"] [2024/05/06 16:38:06.361 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:06.361 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=79] [version=39] [2024/05/06 16:38:06.362 +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"=50.575241ms] [job="ID:79, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:78, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:06.022 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:06.403 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 159, 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:38:06.022 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:06.537 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=79] [2024/05/06 16:38:06.538 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:06.539 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.531275736\n# Parse_time: 0\n# Compile_time: 0.004329028\n# Rewrite_time: 0.000009881\n# Optimize_time: 0\n# Wait_TS: 0.000060045\n# DB: mysql\n# Is_internal: true\n# Digest: a30bd3c3a49070c554e65922e84c6b76e646842e3925a859fcde73941a7cb423\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\nCREATE TABLE IF NOT EXISTS mysql.tidb_ttl_table_status ( table_id bigint(64) PRIMARY KEY, parent_table_id bigint(64), table_statistics text DEFAULT NULL, last_job_id varchar(64) DEFAULT NULL, last_job_start_time timestamp NULL DEFAULT NULL, last_job_finish_time timestamp NULL DEFAULT NULL, last_job_ttl_expire timestamp NULL DEFAULT NULL, last_job_summary text DEFAULT NULL, current_job_id varchar(64) DEFAULT NULL, current_job_owner_id varchar(64) DEFAULT NULL, current_job_owner_addr varchar(256) DEFAULT NULL, current_job_owner_hb_time timestamp, current_job_start_time timestamp NULL DEFAULT NULL, current_job_ttl_expire timestamp NULL DEFAULT NULL, current_job_state text DEFAULT NULL, current_job_status varchar(64) DEFAULT NULL, current_job_status_update_time timestamp NULL DEFAULT NULL);"] [2024/05/06 16:38:07.124 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 449572945668603904\n# Query_time: 0.418660262\n# Parse_time: 0\n# Compile_time: 0.209161129\n# Rewrite_time: 0.00594001\n# Optimize_time: 0\n# Wait_TS: 0.000069412\n# DB: mysql\n# Is_internal: true\n# Digest: ca2019e08a331284bd0c64be228a0537fcf9f5983e95d94b67ef42dcb8f54385\n# Num_cop_tasks: 0\n# Mem_max: 351935\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: true\n# IsSyncStatsFailed: false\n# Plan: tidb_decode_plan('pAPwPDAJMjdfMQkwCTAJTi9BCTAJdGltZToxOTUuOG1zLCBsb29wczoxLCBwcmVwYXJlOiB7dG90YWw6IDMzLjQBIkxhdXRvX2lkX2FsbG9jYXRvcjogewUMZF9jbnQ6IDEsIEdldDp7bnVtX3JwYzo0LCB0AUEAXwVokDM1Ny40wrVzfSwgY29tbWl0X3R4bjoge3ByZXdyaXRlOjM3My4BIRQsIGdldF8RJCBzOjE2LjLCtXMRNxQ6MzcxLjYFERxzbG93ZXN0XxFDBXYEIHsFdWg6IDAuMDAwcywgcmVnaW9uX2lkOiAyLCBzdG8B2wUHCDEsIBmOGHByaW1hcnnWRAANZBhudW06MSwgBdAMX2tleSVPCQ4EYnkB44AyfX19LCBpbnNlcnQ6MTYyLjVtcwk5NS43IEtCCU4vQQo=')\n# Binary_plan: tidb_decode_binary_plan('sAPwgQqrAwoISW5zZXJ0XzE4AUABUgNOL0FaFXRpbWU6MTk1LjhtcywgbG9vcHM6MWLvAnByZXBhcmU6IHt0b3RhbDogMzMuNG1zLCBhdXRvX2lkX2FsbG9jYXRvcjoge2FsbG9jX2NudDogMSwgR2V0OntudW1fcnBjOjQsIHRvdGFsX3QBaZAzNTcuNMK1c30sIGNvbW1pdF90eG46IHtwcmV3cml0ZTozNzMuASEULCBnZXRfESQgczoxNi4ywrVzETcUOjM3MS42BREcc2xvd2VzdF8RQwxfcnBjGbZgMC4wMDBzLCByZWdpb25faWQ6IDIsIHN0bwHbBQcIMSwgGY4YcHJpbWFyedZEAA1kGG51bToxLCAF0BBfa2V5cxkOBGJ5AeOQMn19fSwgaW5zZXJ0OjE2Mi41bXNwv/0FeP///////////wEYAQ==')\nINSERT HIGH_PRIORITY INTO mysql.GLOBAL_VARIABLES VALUES (\"require_secure_transport\", \"OFF\"), (\"optimizer_trace_limit\", \"1\"), (\"tidb_opt_advanced_join_hint\", \"OFF\"), (\"tidb_index_lookup_join_concurrency\", \"-1\"), (\"tidb_enable_rate_limit_action\", \"OFF\"), (\"tidb_enable_plan_replayer_capture\", \"OFF\"), (\"tidb_stmt_summary_internal_query\", \"OFF\"), (\"tidb_broadcast_join_threshold_count\", \"10240\"), (\"relay_log_info_repository\", \"FILE\"), (\"slave_net_timeout\", \"3600\"), (\"validate_password.length\", \"8\"), (\"innodb_change_buffer_max_size\", \"25\"), (\"innodb_commit_concurrency\", \"0\"), (\"tidb_opt_copcpu_factor\", \"3\"), (\"tidb_enable_ordered_result_mode\", \"OFF\"), (\"ndb_optimization_delay\", \"\"), (\"transaction_read_only\", \"OFF\"), (\"new\", \"OFF\"), (\"tidb_rc_write_check_ts\", \"OFF\"), (\"profiling\", \"OFF\"), (\"innodb_fast_shutdown\", \"1\"), (\"innodb_sync_spin_loops\", \"30\"), (\"tidb_capture_plan_baselines\", \"OFF\"), (\"max_heap_table_size\", \"16777216\"), (\"tidb_ddl_reorg_worker_cnt\", \"4\"), (\"tidb_enable_foreign_key\", \"OFF\"), (\"connect_timeout\", \"10\"), (\"tiflash_fine_grained_shuffle_stream_count\", \"0\"), (\"tidb_evolve_plan_task_max_time\", \"600\"), (\"innodb_flushing_avg_loops\", \"30\"), (\"storage_engine\", \"InnoDB\"), (\"rewriter_verbose\", \"\"), (\"ndb_log_updated_only\", \"\"), (\"init_connect\", \"\"), (\"tidb_skip_isolation_level_check\", \"OFF\"), (\"optimizer_trace_offset\", \"-1\"), (\"innodb_buffer_pool_dump_at_shutdown\", \"0\"), (\"innodb_log_write_ahead_size\", \"\"), (\"stored_program_cache\", \"256\"), (\"binlog_row_image\", \"FULL\"), (\"validate_password.dictionary\", \"\"), (\"tidb_enable_telemetry\", \"OFF\"), (\"validate_password.enable\", \"OFF\"), (\"default_tmp_storage_engine\", \"InnoDB\"), (\"tidb_backoff_lock_fast\", \"10\"), (\"tmp_table_size\", \"16777216\"), (\"tidb_txn_mode\", \"pessimistic\"), (\"innodb_stats_method\", \"nulls_equal\"), (\"tidb_stats_load_sync_wait\", \"100\"), (\"tidb_hash_exchange_with_new_collation\", \"ON\"), (\"gtid_purged\", \"\"), (\"keep_files_on_create\", \"OFF\"), (\"max_seeks_for_key\", \"18446744073709551615\"), (\"validate_password.policy\", \"MEDIUM\"), (\"tidb_opt_disk_factor\", \"1.5\"), (\"block_encryption_mode\", \"aes-128-ecb\"), (\"innodb_online_alter_log_max_size\", \"134217728\"), (\"gtid_executed_compression_period\", \"\"), (\"sql_big_selects\", \"ON\"), (\"tidb_enable_table_partition\", \"ON\"), (\"tidb_prepared_plan_cache_size\", \"100\"), (\"read_buffer_size\", \"131072\"), (\"table_definition_cache\", \"2000\"), (\"max_length_for_sort_data\", \"1024\"), (\"tidb_restricted_read_only\", \"OFF\"), (\"completion_type\", \"NO_CHAIN\"), (\"foreign_key_checks\", \"OFF\"), (\"innodb_max_dirty_pages_pct_lwm\", \"0\"), (\"innodb_max_purge_lag_delay\", \"0\"), (\"tidb_mem_quota_binding_cache\", \"67108864\"), (\"max_sort_length\", \"1024\"), (\"tidb_index_merge_intersection_concurrency\", \"-1\"), (\"slave_max_allowed_packet\", \"1073741824\"), (\"tidb_multi_statement_mode\", \"OFF\"), (\"rpl_semi_sync_slave_trace_level\", \"\"), (\"max_statement_time\", \"\"), (\"innodb_purge_batch_size\", \"300\"), (\"collation_server\", \"utf8mb4_bin\"), (\"tidb_streamagg_concurrency\", \"1\"), (\"innodb_ft_enable_diag_print\", \"OFF\"), (\"innodb_status_output\", \"OFF\"), (\"tidb_opt_limit_push_down_threshold\", \"100\"), (\"ndb_deferred_constraints\", \"\"), (\"innodb_old_blocks_pct\", \"37\"), (\"sort_buffer_size\", \"262144\"), (\"sql_select_limit\", \"18446744073709551615\"), (\"optimizer_search_depth\", \"62\"), (\"innodb_undo_logs\", \"128\"), (\"tidb_enable_parallel_apply\", \"OFF\"), (\"read_rnd_buffer_size\", \"262144\"), (\"slave_parallel_type\", \"\"), (\"tidb_opt_broadcast_cartesian_join\", \"1\"), (\"innodb_ft_server_stopword_table\", \"\"), (\"tidb_enable_new_only_full_group_by_check\", \"OFF\"), (\"ndb_show_foreign_key_mock_tables\", \"\"), (\"tidb_opt_agg_push_down\", \"OFF\"), (\"log_backward_compatible_user_definitions\", \"\"), (\"transaction_write_set_extraction\", \"\"), (\"collation_database\", \"utf8mb4_bin\"), (\"delay_key_write\", \"ON\"), (\"div_precision_increment\", \"4\"), (\"innodb_stats_sample_pages\", \"8\"), (\"character_set_filesystem\", \"binary\"), (\"default_authentication_plugin\", \"mysql_native_password\"), (\"slave_rows_search_algorithms\", \"TABLE_SCAN,INDEX_SCAN\"), (\"tidb_stmt_summary_max_sql_length\", \"4096\"), (\"log_error_verbosity\", \"\"), (\"internal_tmp_disk_(len:21519);"] [2024/05/06 16:38:07.284 +08:00] [INFO] [bootstrap.go:529] ["bootstrap successful"] ["take time"=17.073085388s] [2024/05/06 16:38:07.285 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:38:07.286 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 164, tp add index"] ["take time"=15.023µs] [2024/05/06 16:38:07.286 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 165, tp add index"] ["take time"=15.116µs] [2024/05/06 16:38:07.286 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 166, tp add index"] ["take time"=9.58µs] [2024/05/06 16:38:07.286 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 167, tp add index"] ["take time"=15.059µs] [2024/05/06 16:38:07.286 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 168, tp add index"] ["take time"=23.269µs] [2024/05/06 16:38:07.286 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 169, tp add index"] ["take time"=19.656µs] [2024/05/06 16:38:07.286 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 160, tp add index"] ["take time"=9.638µs] [2024/05/06 16:38:07.286 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 161, tp add index"] ["take time"=9.24µs] [2024/05/06 16:38:07.286 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 162, tp add index"] ["take time"=9.24µs] [2024/05/06 16:38:07.286 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 163, tp add index"] ["take time"=18.462µs] [2024/05/06 16:38:07.286 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:38:07.287 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 159, tp general"] ["take time"=5.08µs] [2024/05/06 16:38:07.287 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 157, tp general"] ["take time"=2.156µs] [2024/05/06 16:38:07.287 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 158, tp add index"] ["take time"=1.913µs] [2024/05/06 16:38:07.287 +08:00] [INFO] [delete_range.go:148] ["[ddl] closing delRange"] [2024/05/06 16:38:07.287 +08:00] [INFO] [session_pool.go:94] ["[ddl] closing sessionPool"] [2024/05/06 16:38:07.293 +08:00] [INFO] [ddl.go:833] ["[ddl] DDL closed"] [ID=cba867ab-0070-492c-a365-1cc305ecfdfd] ["take time"=7.851683ms] [2024/05/06 16:38:07.293 +08:00] [INFO] [ddl.go:657] ["[ddl] stop DDL"] [ID=cba867ab-0070-492c-a365-1cc305ecfdfd] [2024/05/06 16:38:07.293 +08:00] [INFO] [domain.go:1156] ["closestReplicaReadCheckLoop exited."] [2024/05/06 16:38:07.293 +08:00] [INFO] [domain.go:603] ["infoSyncerKeeper exited."] [2024/05/06 16:38:07.293 +08:00] [INFO] [domain.go:574] ["topNSlowQueryLoop exited."] [2024/05/06 16:38:07.293 +08:00] [INFO] [domain.go:628] ["globalConfigSyncerKeeper exited."] [2024/05/06 16:38:07.293 +08:00] [INFO] [domain.go:792] ["loadSchemaInLoop exited."] [2024/05/06 16:38:07.293 +08:00] [INFO] [domain.go:651] ["topologySyncerKeeper exited."] [2024/05/06 16:38:07.294 +08:00] [INFO] [domain.go:920] ["domain closed"] ["take time"=8.28213ms] [2024/05/06 16:38:07.294 +08:00] [INFO] [tidb.go:77] ["new domain"] [store=f06a5f6a-e2b8-459b-836b-d60f4c3d6850] ["ddl lease"=500ms] ["stats lease"=-1ns] ["index usage sync lease"=0s] [2024/05/06 16:38:07.391 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=39] ["start time"=95.63858ms] [2024/05/06 16:38:07.395 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:38:07.396 +08:00] [INFO] [ddl.go:719] ["[ddl] start DDL"] [ID=e0ff0dea-84f8-4c3d-93bc-1c0bd20bcbe1] [runWorker=true] [2024/05/06 16:38:07.396 +08:00] [INFO] [ddl.go:665] ["[ddl] start delRangeManager OK"] ["is a emulator"=true] [2024/05/06 16:38:07.396 +08:00] [INFO] [delete_range.go:158] ["[ddl] start delRange emulator"] [2024/05/06 16:38:07.396 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 170, tp general"] [2024/05/06 16:38:07.396 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 171, tp add index"] [2024/05/06 16:38:07.398 +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:38:07.399 +08:00] [INFO] [env.go:108] ["[ddl-ingest] the lightning sorted dir"] ["data path:"=/tmp/tidb/tmp_ddl-4000] [2024/05/06 16:38:07.399 +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:38:07.399 +08:00] [WARN] [domain.go:1120] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 16:38:07.439 +08:00] [WARN] [sysvar_cache.go:50] ["sysvar cache is empty, triggering rebuild"] [2024/05/06 16:38:07.632 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=17] [schemaVersion=39] [cur_db=test] [sql="drop table if exists t1,t2"] [user=] [2024/05/06 16:38:07.635 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=17] [schemaVersion=39] [cur_db=test] [sql="create table t1 (id int primary key, v int)"] [user=] [2024/05/06 16:38:07.676 +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:38:07.646 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:07.676 +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:38:07.646 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="create table t1 (id int primary key, v int)"] [2024/05/06 16:38:08.449 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, 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:38:07.646 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:08.491 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=39] [neededSchemaVersion=40] ["start time"=997.387µs] [phyTblIDs="[80]"] [actionTypes="[8]"] [2024/05/06 16:38:08.549 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=81] [version=40] [2024/05/06 16:38:08.550 +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"=60.603178ms] [job="ID:81, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:80, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:07.646 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:08.584 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, 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:38:07.646 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:08.623 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=81] [2024/05/06 16:38:08.623 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:08.624 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Conn_ID: 17\n# Query_time: 0.990304015\n# Parse_time: 0.000902854\n# Compile_time: 0.000954238\n# Rewrite_time: 0.000011905\n# Optimize_time: 0.000449072\n# Wait_TS: 0.000076781\n# DB: test\n# Is_internal: false\n# Digest: 58adff4e53b4dc3a2102ff826681d219bcf79edb1d10a7d7eddd3da56fcd9ce6\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 t1 (id int primary key, v int);"] [2024/05/06 16:38:08.631 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=17] [schemaVersion=40] [cur_db=test] [sql="create table t2 (id int)"] [user=] [2024/05/06 16:38:08.669 +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:2, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:08.641 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:08.669 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:83, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:08.641 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="create table t2 (id int)"] [2024/05/06 16:38:08.716 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:83, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:08.641 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:08.754 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=40] [neededSchemaVersion=41] ["start time"=1.464771ms] [phyTblIDs="[82]"] [actionTypes="[8]"] [2024/05/06 16:38:08.800 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=83] [version=41] [2024/05/06 16:38:08.802 +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"=50.523631ms] [job="ID:83, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:08.641 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:08.832 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:83, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:08.641 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:08.866 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=83] [2024/05/06 16:38:08.866 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:08.870 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=17] [schemaVersion=41] [cur_db=test] [sql="create temporary table tmp (id int)"] [user=] === RUN TestStillWriteConflictAfterRetry/#00 [2024/05/06 16:38:08.885 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=18] [schemaVersion=41] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:38:08.912 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:86, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:80, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:08.896 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:08.912 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:86, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:80, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:08.896 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:38:08.952 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:86, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:80, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:08.896 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:08.990 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=41] [neededSchemaVersion=42] ["start time"=1.520292ms] [phyTblIDs="[80,85]"] [actionTypes="[2048,2048]"] [2024/05/06 16:38:09.049 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=86] [version=42] [2024/05/06 16:38:09.051 +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"=62.731296ms] [job="ID:86, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:80, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:08.896 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:09.078 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=86] [elementID=1] [comment="table ID is 80"] [2024/05/06 16:38:09.087 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=86] [jobType="truncate table"] [2024/05/06 16:38:09.090 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:86, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:80, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:08.896 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:09.129 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=86] [elementID=1] [startKey=748000000000000050] [endKey=748000000000000051] [2024/05/06 16:38:09.147 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=86] [2024/05/06 16:38:09.147 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] === RUN TestStillWriteConflictAfterRetry/#01 [2024/05/06 16:38:09.198 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=20] [schemaVersion=42] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:38:09.222 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:88, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:85, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:09.209 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:09.222 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:88, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:85, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:09.209 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:38:09.267 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:88, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:85, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:09.209 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:09.305 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=42] [neededSchemaVersion=43] ["start time"=1.033896ms] [phyTblIDs="[85,87]"] [actionTypes="[2048,2048]"] [2024/05/06 16:38:09.349 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=88] [version=43] [2024/05/06 16:38:09.350 +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"=46.696222ms] [job="ID:88, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:85, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:09.209 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:09.381 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=88] [elementID=1] [comment="table ID is 85"] [2024/05/06 16:38:09.405 +08:00] [INFO] [info.go:1114] [SetTiFlashGroupConfig] [2024/05/06 16:38:09.414 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=88] [jobType="truncate table"] [2024/05/06 16:38:09.418 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:88, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:85, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:09.209 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:09.460 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=88] [elementID=1] [startKey=748000000000000055] [endKey=748000000000000056] [2024/05/06 16:38:09.478 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=88] [2024/05/06 16:38:09.479 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] === RUN TestStillWriteConflictAfterRetry/#02 [2024/05/06 16:38:09.528 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=22] [schemaVersion=43] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:38:09.549 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:90, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:87, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:09.537 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:09.549 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:90, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:87, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:09.537 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:38:09.592 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:90, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:87, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:09.537 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:09.630 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=43] [neededSchemaVersion=44] ["start time"=1.252445ms] [phyTblIDs="[87,89]"] [actionTypes="[2048,2048]"] [2024/05/06 16:38:09.650 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=90] [version=44] [2024/05/06 16:38:09.650 +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"=22.240244ms] [job="ID:90, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:87, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:09.537 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:09.681 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=90] [elementID=1] [comment="table ID is 87"] [2024/05/06 16:38:09.688 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=90] [jobType="truncate table"] [2024/05/06 16:38:09.692 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:90, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:87, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:09.537 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:09.727 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=90] [elementID=1] [startKey=748000000000000057] [endKey=748000000000000058] [2024/05/06 16:38:09.745 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=90] [2024/05/06 16:38:09.745 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] === RUN TestStillWriteConflictAfterRetry/#03 [2024/05/06 16:38:09.794 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=24] [schemaVersion=44] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:38:09.812 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:92, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:89, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:09.803 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:09.812 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:92, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:89, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:09.803 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:38:09.850 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:92, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:89, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:09.803 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:09.879 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=44] [neededSchemaVersion=45] ["start time"=1.011253ms] [phyTblIDs="[89,91]"] [actionTypes="[2048,2048]"] [2024/05/06 16:38:09.899 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=92] [version=45] [2024/05/06 16:38:09.900 +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"=22.44746ms] [job="ID:92, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:89, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:09.803 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:09.932 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=92] [elementID=1] [comment="table ID is 89"] [2024/05/06 16:38:09.937 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=92] [jobType="truncate table"] [2024/05/06 16:38:09.940 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:92, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:89, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:09.803 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:09.980 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=92] [elementID=1] [startKey=748000000000000059] [endKey=74800000000000005a] [2024/05/06 16:38:09.994 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=92] [2024/05/06 16:38:09.994 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] === RUN TestStillWriteConflictAfterRetry/#04 [2024/05/06 16:38:10.049 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=26] [schemaVersion=45] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:38:10.073 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:94, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:91, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:10.06 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:10.073 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:94, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:91, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:10.06 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:38:10.118 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:94, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:91, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:10.06 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:10.147 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=45] [neededSchemaVersion=46] ["start time"=1.500674ms] [phyTblIDs="[91,93]"] [actionTypes="[2048,2048]"] [2024/05/06 16:38:10.200 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=94] [version=46] [2024/05/06 16:38:10.202 +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"=56.656126ms] [job="ID:94, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:91, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:10.06 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:10.235 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=94] [elementID=1] [comment="table ID is 91"] [2024/05/06 16:38:10.241 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=94] [jobType="truncate table"] [2024/05/06 16:38:10.245 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:94, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:91, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:10.06 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:10.290 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=94] [elementID=1] [startKey=74800000000000005b] [endKey=74800000000000005c] [2024/05/06 16:38:10.310 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=94] [2024/05/06 16:38:10.310 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] === RUN TestStillWriteConflictAfterRetry/#05 [2024/05/06 16:38:10.378 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=28] [schemaVersion=46] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:38:10.397 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:96, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:93, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:10.387 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:38:10.397 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:96, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:93, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:10.387 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:10.438 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:96, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:93, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:10.387 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:10.470 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=46] [neededSchemaVersion=47] ["start time"=1.122585ms] [phyTblIDs="[93,95]"] [actionTypes="[2048,2048]"] [2024/05/06 16:38:10.550 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=96] [version=47] [2024/05/06 16:38:10.550 +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"=82.162911ms] [job="ID:96, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:93, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:10.387 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:10.585 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=96] [elementID=1] [comment="table ID is 93"] [2024/05/06 16:38:10.592 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=96] [jobType="truncate table"] [2024/05/06 16:38:10.597 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:96, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:93, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:10.387 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:10.640 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=96] [elementID=1] [startKey=74800000000000005d] [endKey=74800000000000005e] [2024/05/06 16:38:10.657 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=96] [2024/05/06 16:38:10.658 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] === RUN TestStillWriteConflictAfterRetry/#06 [2024/05/06 16:38:10.724 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=30] [schemaVersion=47] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:38:10.744 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:98, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:95, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:10.734 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:38:10.744 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:98, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:95, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:10.734 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:10.794 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:98, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:95, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:10.734 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:10.823 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=47] [neededSchemaVersion=48] ["start time"=1.372968ms] [phyTblIDs="[95,97]"] [actionTypes="[2048,2048]"] [2024/05/06 16:38:10.850 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=98] [version=48] [2024/05/06 16:38:10.851 +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"=30.402034ms] [job="ID:98, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:95, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:10.734 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:10.881 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=98] [elementID=1] [comment="table ID is 95"] [2024/05/06 16:38:10.887 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=98] [jobType="truncate table"] [2024/05/06 16:38:10.892 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:98, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:95, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:10.734 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:10.928 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=98] [elementID=1] [startKey=74800000000000005f] [endKey=748000000000000060] [2024/05/06 16:38:10.955 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=98] [2024/05/06 16:38:10.955 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] === RUN TestStillWriteConflictAfterRetry/#07 [2024/05/06 16:38:11.008 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=32] [schemaVersion=48] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:38:11.028 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:100, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:97, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:11.018 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:11.028 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:100, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:97, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:11.018 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:38:11.070 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:100, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:97, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:11.018 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:11.103 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=48] [neededSchemaVersion=49] ["start time"=1.233322ms] [phyTblIDs="[97,99]"] [actionTypes="[2048,2048]"] [2024/05/06 16:38:11.149 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=100] [version=49] [2024/05/06 16:38:11.150 +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"=48.533057ms] [job="ID:100, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:97, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:11.018 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:11.181 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=100] [elementID=1] [comment="table ID is 97"] [2024/05/06 16:38:11.185 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=100] [jobType="truncate table"] [2024/05/06 16:38:11.189 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:100, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:97, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:11.018 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:11.226 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=100] [elementID=1] [startKey=748000000000000061] [endKey=748000000000000062] [2024/05/06 16:38:11.254 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=100] [2024/05/06 16:38:11.254 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] === RUN TestStillWriteConflictAfterRetry/#08 [2024/05/06 16:38:11.318 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=34] [schemaVersion=49] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:38:11.337 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:102, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:99, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:11.327 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:11.337 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:102, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:99, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:11.327 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:38:11.379 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:102, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:99, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:11.327 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:11.411 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=49] [neededSchemaVersion=50] ["start time"=1.023199ms] [phyTblIDs="[99,101]"] [actionTypes="[2048,2048]"] [2024/05/06 16:38:11.450 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=102] [version=50] [2024/05/06 16:38:11.452 +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"=46.225894ms] [job="ID:102, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:99, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:11.327 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:11.481 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=102] [elementID=1] [comment="table ID is 99"] [2024/05/06 16:38:11.485 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=102] [jobType="truncate table"] [2024/05/06 16:38:11.488 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:102, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:99, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:11.327 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:11.528 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=102] [elementID=1] [startKey=748000000000000063] [endKey=748000000000000064] [2024/05/06 16:38:11.548 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=102] [2024/05/06 16:38:11.549 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] === RUN TestStillWriteConflictAfterRetry/#09 [2024/05/06 16:38:11.608 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=36] [schemaVersion=50] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:38:11.627 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:104, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:101, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:11.616 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:11.627 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:104, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:101, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:11.616 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:38:11.675 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:104, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:101, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:11.616 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:11.734 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=50] [neededSchemaVersion=51] ["start time"=1.685863ms] [phyTblIDs="[101,103]"] [actionTypes="[2048,2048]"] [2024/05/06 16:38:11.750 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=104] [version=51] [2024/05/06 16:38:11.752 +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"=20.647952ms] [job="ID:104, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:101, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:11.616 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:11.783 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=104] [elementID=1] [comment="table ID is 101"] [2024/05/06 16:38:11.790 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=104] [jobType="truncate table"] [2024/05/06 16:38:11.794 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:104, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:101, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:11.616 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:11.831 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=104] [elementID=1] [startKey=748000000000000065] [endKey=748000000000000066] [2024/05/06 16:38:11.852 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=104] [2024/05/06 16:38:11.852 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] === RUN TestStillWriteConflictAfterRetry/#10 [2024/05/06 16:38:11.914 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=38] [schemaVersion=51] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:38:11.935 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:106, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:103, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:11.923 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:11.935 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:106, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:103, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:11.923 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:38:11.972 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:106, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:103, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:11.923 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:12.002 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=51] [neededSchemaVersion=52] ["start time"=1.519247ms] [phyTblIDs="[103,105]"] [actionTypes="[2048,2048]"] [2024/05/06 16:38:12.049 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=106] [version=52] [2024/05/06 16:38:12.049 +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"=49.899152ms] [job="ID:106, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:103, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:11.923 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:12.077 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=106] [elementID=1] [comment="table ID is 103"] [2024/05/06 16:38:12.082 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=106] [jobType="truncate table"] [2024/05/06 16:38:12.085 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:106, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:103, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:11.923 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:12.117 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=106] [elementID=1] [startKey=748000000000000067] [endKey=748000000000000068] [2024/05/06 16:38:12.136 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=106] [2024/05/06 16:38:12.137 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] === RUN TestStillWriteConflictAfterRetry/#11 [2024/05/06 16:38:12.195 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=40] [schemaVersion=52] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:38:12.215 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:108, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:105, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:12.205 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:12.215 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:108, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:105, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:12.205 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:38:12.263 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:108, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:105, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:12.205 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:12.289 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=52] [neededSchemaVersion=53] ["start time"=1.005435ms] [phyTblIDs="[105,107]"] [actionTypes="[2048,2048]"] [2024/05/06 16:38:12.299 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=108] [version=53] [2024/05/06 16:38:12.299 +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"=12.229602ms] [job="ID:108, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:105, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:12.205 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:12.328 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=108] [elementID=1] [comment="table ID is 105"] [2024/05/06 16:38:12.334 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=108] [jobType="truncate table"] [2024/05/06 16:38:12.338 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:108, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:105, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:12.205 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:12.384 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=108] [elementID=1] [startKey=748000000000000069] [endKey=74800000000000006a] [2024/05/06 16:38:12.389 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=108] [2024/05/06 16:38:12.389 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] === RUN TestStillWriteConflictAfterRetry/#12 [2024/05/06 16:38:12.450 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=42] [schemaVersion=53] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:38:12.469 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:110, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:107, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:12.459 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:12.469 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:110, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:107, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:12.459 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:38:12.517 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:110, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:107, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:12.459 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:12.558 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=53] [neededSchemaVersion=54] ["start time"=1.139279ms] [phyTblIDs="[107,109]"] [actionTypes="[2048,2048]"] [2024/05/06 16:38:12.600 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=110] [version=54] [2024/05/06 16:38:12.601 +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"=44.175565ms] [job="ID:110, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:107, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:12.459 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:12.635 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=110] [elementID=1] [comment="table ID is 107"] [2024/05/06 16:38:12.651 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=110] [jobType="truncate table"] [2024/05/06 16:38:12.654 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:110, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:107, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:12.459 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:12.698 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=110] [elementID=1] [startKey=74800000000000006b] [endKey=74800000000000006c] [2024/05/06 16:38:12.708 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=110] [2024/05/06 16:38:12.709 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] === RUN TestStillWriteConflictAfterRetry/#13 [2024/05/06 16:38:12.758 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=44] [schemaVersion=54] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:38:12.776 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:112, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:109, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:12.767 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:12.776 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:112, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:109, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:12.767 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:38:12.817 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:112, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:109, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:12.767 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:12.877 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=54] [neededSchemaVersion=55] ["start time"=1.044174ms] [phyTblIDs="[109,111]"] [actionTypes="[2048,2048]"] [2024/05/06 16:38:12.900 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=112] [version=55] [2024/05/06 16:38:12.902 +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"=26.927641ms] [job="ID:112, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:109, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:12.767 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:12.933 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=112] [elementID=1] [comment="table ID is 109"] [2024/05/06 16:38:12.940 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=112] [jobType="truncate table"] [2024/05/06 16:38:12.945 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:112, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:109, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:12.767 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:12.978 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=112] [elementID=1] [startKey=74800000000000006d] [endKey=74800000000000006e] [2024/05/06 16:38:13.006 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=112] [2024/05/06 16:38:13.006 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] === RUN TestStillWriteConflictAfterRetry/#14 [2024/05/06 16:38:13.067 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=46] [schemaVersion=55] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:38:13.089 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:114, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:13.077 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:13.090 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:114, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:13.077 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:38:13.133 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:114, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:13.077 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:13.169 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=55] [neededSchemaVersion=56] ["start time"=1.019367ms] [phyTblIDs="[111,113]"] [actionTypes="[2048,2048]"] [2024/05/06 16:38:13.200 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=114] [version=56] [2024/05/06 16:38:13.200 +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"=32.195975ms] [job="ID:114, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:13.077 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:13.245 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=114] [elementID=1] [comment="table ID is 111"] [2024/05/06 16:38:13.251 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=114] [jobType="truncate table"] [2024/05/06 16:38:13.254 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:114, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:13.077 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:13.293 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=114] [elementID=1] [startKey=74800000000000006f] [endKey=748000000000000070] [2024/05/06 16:38:13.310 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=114] [2024/05/06 16:38:13.310 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] === RUN TestStillWriteConflictAfterRetry/#15 [2024/05/06 16:38:13.383 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=48] [schemaVersion=56] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:38:13.404 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:116, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:113, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:13.393 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:13.404 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:116, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:113, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:13.393 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:38:13.448 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:116, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:113, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:13.393 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:13.478 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=56] [neededSchemaVersion=57] ["start time"=1.028756ms] [phyTblIDs="[113,115]"] [actionTypes="[2048,2048]"] [2024/05/06 16:38:13.500 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=116] [version=57] [2024/05/06 16:38:13.501 +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"=24.231813ms] [job="ID:116, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:113, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:13.393 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:13.532 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=116] [elementID=1] [comment="table ID is 113"] [2024/05/06 16:38:13.541 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=116] [jobType="truncate table"] [2024/05/06 16:38:13.545 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:116, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:113, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:13.393 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:13.588 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=116] [elementID=1] [startKey=748000000000000071] [endKey=748000000000000072] [2024/05/06 16:38:13.607 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=116] [2024/05/06 16:38:13.607 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] === RUN TestStillWriteConflictAfterRetry/#16 [2024/05/06 16:38:13.677 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=50] [schemaVersion=57] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:38:13.698 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:118, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:115, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:13.685 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:13.698 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:118, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:115, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:13.685 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:38:13.743 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:118, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:115, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:13.685 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:13.779 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=57] [neededSchemaVersion=58] ["start time"=1.538534ms] [phyTblIDs="[115,117]"] [actionTypes="[2048,2048]"] [2024/05/06 16:38:13.799 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=118] [version=58] [2024/05/06 16:38:13.801 +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"=24.656548ms] [job="ID:118, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:115, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:13.685 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:13.842 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=118] [elementID=1] [comment="table ID is 115"] [2024/05/06 16:38:13.848 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=118] [jobType="truncate table"] [2024/05/06 16:38:13.853 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:118, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:115, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:13.685 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:13.894 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=118] [elementID=1] [startKey=748000000000000073] [endKey=748000000000000074] [2024/05/06 16:38:13.910 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=118] [2024/05/06 16:38:13.910 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] === RUN TestStillWriteConflictAfterRetry/#17 [2024/05/06 16:38:13.969 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=52] [schemaVersion=58] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:38:13.985 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:120, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:117, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:13.976 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:13.985 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:120, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:117, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:13.976 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:38:14.060 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:120, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:117, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:13.976 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:14.090 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=58] [neededSchemaVersion=59] ["start time"=1.521122ms] [phyTblIDs="[117,119]"] [actionTypes="[2048,2048]"] [2024/05/06 16:38:14.151 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=120] [version=59] [2024/05/06 16:38:14.153 +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"=64.740126ms] [job="ID:120, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:117, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:13.976 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:14.184 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=120] [elementID=1] [comment="table ID is 117"] [2024/05/06 16:38:14.189 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=120] [jobType="truncate table"] [2024/05/06 16:38:14.193 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:120, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:117, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:13.976 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:14.228 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=120] [elementID=1] [startKey=748000000000000075] [endKey=748000000000000076] [2024/05/06 16:38:14.252 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=120] [2024/05/06 16:38:14.253 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] === RUN TestStillWriteConflictAfterRetry/#18 [2024/05/06 16:38:14.310 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=54] [schemaVersion=59] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:38:14.337 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:122, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:119, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:14.32 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:14.338 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:122, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:119, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:14.32 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:38:14.380 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:122, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:119, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:14.32 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:14.416 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=59] [neededSchemaVersion=60] ["start time"=1.035121ms] [phyTblIDs="[119,121]"] [actionTypes="[2048,2048]"] [2024/05/06 16:38:14.450 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=122] [version=60] [2024/05/06 16:38:14.452 +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"=37.004533ms] [job="ID:122, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:119, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:14.32 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:14.485 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=122] [elementID=1] [comment="table ID is 119"] [2024/05/06 16:38:14.492 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=122] [jobType="truncate table"] [2024/05/06 16:38:14.495 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:122, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:119, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:14.32 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:14.533 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=122] [elementID=1] [startKey=748000000000000077] [endKey=748000000000000078] [2024/05/06 16:38:14.563 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=122] [2024/05/06 16:38:14.563 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] === RUN TestStillWriteConflictAfterRetry/#19 [2024/05/06 16:38:14.623 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=56] [schemaVersion=60] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:38:14.651 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:124, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:121, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:14.637 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:14.651 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:124, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:121, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:14.637 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:38:14.703 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:124, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:121, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:14.637 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:14.744 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=60] [neededSchemaVersion=61] ["start time"=1.554836ms] [phyTblIDs="[121,123]"] [actionTypes="[2048,2048]"] [2024/05/06 16:38:14.800 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=124] [version=61] [2024/05/06 16:38:14.801 +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"=58.524968ms] [job="ID:124, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:121, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:14.637 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:14.838 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=124] [elementID=1] [comment="table ID is 121"] [2024/05/06 16:38:14.845 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=124] [jobType="truncate table"] [2024/05/06 16:38:14.850 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:124, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:121, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:14.637 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:14.891 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=124] [elementID=1] [startKey=748000000000000079] [endKey=74800000000000007a] [2024/05/06 16:38:14.900 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=124] [2024/05/06 16:38:14.901 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] === RUN TestStillWriteConflictAfterRetry/#20 [2024/05/06 16:38:14.964 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=58] [schemaVersion=61] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:38:14.982 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:126, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:123, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:14.974 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:14.982 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:126, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:123, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:14.974 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:38:15.017 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:126, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:123, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:14.974 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:15.048 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=61] [neededSchemaVersion=62] ["start time"=1.031762ms] [phyTblIDs="[123,125]"] [actionTypes="[2048,2048]"] [2024/05/06 16:38:15.100 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=126] [version=62] [2024/05/06 16:38:15.100 +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"=54.328285ms] [job="ID:126, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:123, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:14.974 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:15.134 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=126] [elementID=1] [comment="table ID is 123"] [2024/05/06 16:38:15.140 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=126] [jobType="truncate table"] [2024/05/06 16:38:15.143 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:126, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:123, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:14.974 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:15.179 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=126] [elementID=1] [startKey=74800000000000007b] [endKey=74800000000000007c] [2024/05/06 16:38:15.201 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=126] [2024/05/06 16:38:15.201 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] === RUN TestStillWriteConflictAfterRetry/#21 [2024/05/06 16:38:15.274 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=60] [schemaVersion=62] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:38:15.295 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:128, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:125, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:15.285 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:15.295 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:128, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:125, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:15.285 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:38:15.344 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:128, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:125, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:15.285 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:15.376 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=62] [neededSchemaVersion=63] ["start time"=999.112µs] [phyTblIDs="[125,127]"] [actionTypes="[2048,2048]"] [2024/05/06 16:38:15.401 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=128] [version=63] [2024/05/06 16:38:15.402 +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"=28.06022ms] [job="ID:128, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:125, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:15.285 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:15.463 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=128] [elementID=1] [comment="table ID is 125"] [2024/05/06 16:38:15.468 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=128] [jobType="truncate table"] [2024/05/06 16:38:15.471 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:128, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:125, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:15.285 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:15.506 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=128] [elementID=1] [startKey=74800000000000007d] [endKey=74800000000000007e] [2024/05/06 16:38:15.525 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=128] [2024/05/06 16:38:15.525 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] === RUN TestStillWriteConflictAfterRetry/#22 [2024/05/06 16:38:15.572 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=62] [schemaVersion=63] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:38:15.592 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:130, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:127, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:15.582 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:15.592 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:130, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:127, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:15.582 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:38:15.638 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:130, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:127, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:15.582 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:15.672 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=63] [neededSchemaVersion=64] ["start time"=961.641µs] [phyTblIDs="[127,129]"] [actionTypes="[2048,2048]"] [2024/05/06 16:38:15.700 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=130] [version=64] [2024/05/06 16:38:15.701 +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"=30.245938ms] [job="ID:130, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:127, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:15.582 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:15.731 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=130] [elementID=1] [comment="table ID is 127"] [2024/05/06 16:38:15.738 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=130] [jobType="truncate table"] [2024/05/06 16:38:15.742 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:130, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:127, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:15.582 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:15.775 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=130] [elementID=1] [startKey=74800000000000007f] [endKey=748000000000000080] [2024/05/06 16:38:15.790 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=130] [2024/05/06 16:38:15.790 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] === RUN TestStillWriteConflictAfterRetry/#23 [2024/05/06 16:38:15.834 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=64] [schemaVersion=64] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:38:15.857 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:132, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:129, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:15.844 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:15.858 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:132, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:129, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:15.844 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:38:15.896 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:132, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:129, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:15.844 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:15.931 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=64] [neededSchemaVersion=65] ["start time"=1.445555ms] [phyTblIDs="[129,131]"] [actionTypes="[2048,2048]"] [2024/05/06 16:38:15.950 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=132] [version=65] [2024/05/06 16:38:15.951 +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"=22.234928ms] [job="ID:132, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:129, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:15.844 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:15.979 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=132] [elementID=1] [comment="table ID is 129"] [2024/05/06 16:38:15.985 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=132] [jobType="truncate table"] [2024/05/06 16:38:15.991 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:132, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:129, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:15.844 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:16.023 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=132] [elementID=1] [startKey=748000000000000081] [endKey=748000000000000082] [2024/05/06 16:38:16.045 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=132] [2024/05/06 16:38:16.045 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] === RUN TestStillWriteConflictAfterRetry/#24 [2024/05/06 16:38:16.094 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=66] [schemaVersion=65] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:38:16.117 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:134, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:131, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:16.104 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:38:16.117 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:134, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:131, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:16.104 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:16.166 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:134, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:131, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:16.104 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:16.200 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=65] [neededSchemaVersion=66] ["start time"=1.087232ms] [phyTblIDs="[131,133]"] [actionTypes="[2048,2048]"] [2024/05/06 16:38:16.250 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=134] [version=66] [2024/05/06 16:38:16.250 +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=66] ["take time"=52.256652ms] [job="ID:134, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:131, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:16.104 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:16.281 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=134] [elementID=1] [comment="table ID is 131"] [2024/05/06 16:38:16.288 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=134] [jobType="truncate table"] [2024/05/06 16:38:16.292 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:134, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:131, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:16.104 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:16.331 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=134] [elementID=1] [startKey=748000000000000083] [endKey=748000000000000084] [2024/05/06 16:38:16.347 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=134] [2024/05/06 16:38:16.347 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] === RUN TestStillWriteConflictAfterRetry/#25 [2024/05/06 16:38:16.441 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=68] [schemaVersion=66] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:38:16.462 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:136, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:133, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:16.451 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:38:16.462 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:136, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:133, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:16.451 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:16.504 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:136, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:133, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:16.451 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:16.534 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=66] [neededSchemaVersion=67] ["start time"=1.536826ms] [phyTblIDs="[133,135]"] [actionTypes="[2048,2048]"] [2024/05/06 16:38:16.550 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=136] [version=67] [2024/05/06 16:38:16.552 +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=67] ["take time"=20.411392ms] [job="ID:136, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:133, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:16.451 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:16.585 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=136] [elementID=1] [comment="table ID is 133"] [2024/05/06 16:38:16.591 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=136] [jobType="truncate table"] [2024/05/06 16:38:16.596 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:136, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:133, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:16.451 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:16.632 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=136] [elementID=1] [startKey=748000000000000085] [endKey=748000000000000086] [2024/05/06 16:38:16.654 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=136] [2024/05/06 16:38:16.654 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] === RUN TestStillWriteConflictAfterRetry/#26 [2024/05/06 16:38:16.720 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=70] [schemaVersion=67] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:38:16.740 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:138, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:135, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:16.73 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:16.740 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:138, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:135, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:16.73 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:38:16.787 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:138, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:135, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:16.73 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:16.818 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=67] [neededSchemaVersion=68] ["start time"=1.346487ms] [phyTblIDs="[135,137]"] [actionTypes="[2048,2048]"] [2024/05/06 16:38:16.849 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=138] [version=68] [2024/05/06 16:38:16.850 +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=68] ["take time"=34.058077ms] [job="ID:138, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:135, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:16.73 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:16.877 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=138] [elementID=1] [comment="table ID is 135"] [2024/05/06 16:38:16.883 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=138] [jobType="truncate table"] [2024/05/06 16:38:16.886 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:138, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:135, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:16.73 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:16.921 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=138] [elementID=1] [startKey=748000000000000087] [endKey=748000000000000088] [2024/05/06 16:38:16.934 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=138] [2024/05/06 16:38:16.935 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] === RUN TestStillWriteConflictAfterRetry/#27 [2024/05/06 16:38:16.995 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=72] [schemaVersion=68] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:38:17.016 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:140, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:137, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:17.004 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:17.017 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:140, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:137, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:17.004 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:38:17.057 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:140, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:137, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:17.004 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:17.084 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=68] [neededSchemaVersion=69] ["start time"=986.409µs] [phyTblIDs="[137,139]"] [actionTypes="[2048,2048]"] [2024/05/06 16:38:17.100 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=140] [version=69] [2024/05/06 16:38:17.101 +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=69] ["take time"=18.051902ms] [job="ID:140, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:137, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:17.004 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:17.128 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=140] [elementID=1] [comment="table ID is 137"] [2024/05/06 16:38:17.133 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=140] [jobType="truncate table"] [2024/05/06 16:38:17.136 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:140, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:137, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:17.004 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:17.176 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=140] [elementID=1] [startKey=748000000000000089] [endKey=74800000000000008a] [2024/05/06 16:38:17.192 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=140] [2024/05/06 16:38:17.193 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] === RUN TestStillWriteConflictAfterRetry/#28 [2024/05/06 16:38:17.252 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=74] [schemaVersion=69] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:38:17.270 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:142, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:139, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:17.261 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:17.270 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:142, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:139, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:17.261 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:38:17.309 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:142, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:139, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:17.261 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:17.347 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=69] [neededSchemaVersion=70] ["start time"=1.006403ms] [phyTblIDs="[139,141]"] [actionTypes="[2048,2048]"] [2024/05/06 16:38:17.400 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=142] [version=70] [2024/05/06 16:38:17.400 +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=70] ["take time"=54.426755ms] [job="ID:142, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:139, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:17.261 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:17.465 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=142] [elementID=1] [comment="table ID is 139"] [2024/05/06 16:38:17.471 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=142] [jobType="truncate table"] [2024/05/06 16:38:17.475 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:142, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:139, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:17.261 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:17.535 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=142] [elementID=1] [startKey=74800000000000008b] [endKey=74800000000000008c] [2024/05/06 16:38:17.550 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=142] [2024/05/06 16:38:17.551 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:17.552 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Conn_ID: 74\n# Query_time: 0.301036431\n# Parse_time: 0.000244475\n# Compile_time: 0.00064466\n# Rewrite_time: 0.00001112\n# Optimize_time: 0.000428448\n# Wait_TS: 0.000080769\n# DB: test\n# Is_internal: false\n# Digest: c23bafcfeac092443d2513300e8cf6875b499aa7a1632d7dcac28316f40222cc\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;\ntruncate table t1;"] === RUN TestStillWriteConflictAfterRetry/#29 [2024/05/06 16:38:17.605 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=76] [schemaVersion=70] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:38:17.625 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:144, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:141, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:17.616 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:38:17.625 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:144, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:141, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:17.616 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:17.664 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:144, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:141, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:17.616 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:17.693 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=70] [neededSchemaVersion=71] ["start time"=955.628µs] [phyTblIDs="[141,143]"] [actionTypes="[2048,2048]"] [2024/05/06 16:38:17.750 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=144] [version=71] [2024/05/06 16:38:17.751 +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=71] ["take time"=60.224702ms] [job="ID:144, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:141, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:17.616 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:17.777 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=144] [elementID=1] [comment="table ID is 141"] [2024/05/06 16:38:17.783 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=144] [jobType="truncate table"] [2024/05/06 16:38:17.786 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:144, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:141, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:17.616 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:17.818 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=144] [elementID=1] [startKey=74800000000000008d] [endKey=74800000000000008e] [2024/05/06 16:38:17.838 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=144] [2024/05/06 16:38:17.838 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] === RUN TestStillWriteConflictAfterRetry/#30 [2024/05/06 16:38:17.905 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=78] [schemaVersion=71] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:38:17.924 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:146, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:143, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:17.914 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:17.924 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:146, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:143, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:17.914 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:38:17.970 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:146, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:143, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:17.914 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:17.999 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=71] [neededSchemaVersion=72] ["start time"=1.373286ms] [phyTblIDs="[143,145]"] [actionTypes="[2048,2048]"] [2024/05/06 16:38:18.050 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=146] [version=72] [2024/05/06 16:38:18.050 +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=72] ["take time"=52.744292ms] [job="ID:146, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:143, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:17.914 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:18.078 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=146] [elementID=1] [comment="table ID is 143"] [2024/05/06 16:38:18.083 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=146] [jobType="truncate table"] [2024/05/06 16:38:18.086 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:146, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:143, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:17.914 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:18.115 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=146] [elementID=1] [startKey=74800000000000008f] [endKey=748000000000000090] [2024/05/06 16:38:18.133 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=146] [2024/05/06 16:38:18.133 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] === RUN TestStillWriteConflictAfterRetry/#31 [2024/05/06 16:38:18.193 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=80] [schemaVersion=72] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:38:18.210 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:148, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:145, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:18.201 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:18.210 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:148, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:145, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:18.201 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:38:18.253 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:148, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:145, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:18.201 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:18.284 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=72] [neededSchemaVersion=73] ["start time"=1.511745ms] [phyTblIDs="[145,147]"] [actionTypes="[2048,2048]"] [2024/05/06 16:38:18.300 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=148] [version=73] [2024/05/06 16:38:18.300 +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=73] ["take time"=18.082359ms] [job="ID:148, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:145, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:18.201 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:18.328 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=148] [elementID=1] [comment="table ID is 145"] [2024/05/06 16:38:18.335 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=148] [jobType="truncate table"] [2024/05/06 16:38:18.339 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:148, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:145, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:18.201 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:18.373 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=148] [elementID=1] [startKey=748000000000000091] [endKey=748000000000000092] [2024/05/06 16:38:18.394 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=148] [2024/05/06 16:38:18.394 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] === RUN TestStillWriteConflictAfterRetry/#32 [2024/05/06 16:38:18.442 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=82] [schemaVersion=73] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:38:18.461 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:150, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:147, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:18.452 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:38:18.461 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:150, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:147, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:18.452 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:18.499 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:150, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:147, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:18.452 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:18.528 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=73] [neededSchemaVersion=74] ["start time"=1.002467ms] [phyTblIDs="[147,149]"] [actionTypes="[2048,2048]"] [2024/05/06 16:38:18.550 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=150] [version=74] [2024/05/06 16:38:18.551 +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=74] ["take time"=24.464317ms] [job="ID:150, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:147, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:18.452 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:18.584 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=150] [elementID=1] [comment="table ID is 147"] [2024/05/06 16:38:18.590 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=150] [jobType="truncate table"] [2024/05/06 16:38:18.594 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:150, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:147, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:18.452 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:18.658 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=150] [elementID=1] [startKey=748000000000000093] [endKey=748000000000000094] [2024/05/06 16:38:18.674 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=150] [2024/05/06 16:38:18.674 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] === RUN TestStillWriteConflictAfterRetry/#33 [2024/05/06 16:38:18.723 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=84] [schemaVersion=74] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:38:18.738 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:152, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:149, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:18.73 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:18.738 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:152, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:149, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:18.73 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:38:18.781 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:152, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:149, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:18.73 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:18.813 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=74] [neededSchemaVersion=75] ["start time"=1.034901ms] [phyTblIDs="[149,151]"] [actionTypes="[2048,2048]"] [2024/05/06 16:38:18.851 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=152] [version=75] [2024/05/06 16:38:18.852 +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=75] ["take time"=40.069617ms] [job="ID:152, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:149, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:18.73 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:18.882 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=152] [elementID=1] [comment="table ID is 149"] [2024/05/06 16:38:18.889 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=152] [jobType="truncate table"] [2024/05/06 16:38:18.892 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:152, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:149, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:18.73 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:18.936 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=152] [elementID=1] [startKey=748000000000000095] [endKey=748000000000000096] [2024/05/06 16:38:18.952 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=152] [2024/05/06 16:38:18.952 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] === RUN TestStillWriteConflictAfterRetry/#34 [2024/05/06 16:38:18.997 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=86] [schemaVersion=75] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:38:19.014 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:154, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:151, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:19.005 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:19.014 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:154, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:151, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:19.005 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:38:19.054 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:154, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:151, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:19.005 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:19.082 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=75] [neededSchemaVersion=76] ["start time"=1.109813ms] [phyTblIDs="[151,153]"] [actionTypes="[2048,2048]"] [2024/05/06 16:38:19.100 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=154] [version=76] [2024/05/06 16:38:19.101 +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=76] ["take time"=20.93773ms] [job="ID:154, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:151, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:19.005 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:19.128 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=154] [elementID=1] [comment="table ID is 151"] [2024/05/06 16:38:19.134 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=154] [jobType="truncate table"] [2024/05/06 16:38:19.138 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:154, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:151, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:19.005 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:19.172 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=154] [elementID=1] [startKey=748000000000000097] [endKey=748000000000000098] [2024/05/06 16:38:19.190 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=154] [2024/05/06 16:38:19.190 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] === RUN TestStillWriteConflictAfterRetry/#35 [2024/05/06 16:38:19.253 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=88] [schemaVersion=76] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:38:19.272 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:156, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:153, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:19.263 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:19.272 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:156, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:153, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:19.263 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:38:19.313 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:156, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:153, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:19.263 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:19.354 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=76] [neededSchemaVersion=77] ["start time"=1.455954ms] [phyTblIDs="[153,155]"] [actionTypes="[2048,2048]"] [2024/05/06 16:38:19.400 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=156] [version=77] [2024/05/06 16:38:19.400 +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=77] ["take time"=48.548712ms] [job="ID:156, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:153, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:19.263 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:19.462 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=156] [elementID=1] [comment="table ID is 153"] [2024/05/06 16:38:19.469 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=156] [jobType="truncate table"] [2024/05/06 16:38:19.472 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:156, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:153, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:19.263 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:19.514 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=156] [elementID=1] [startKey=748000000000000099] [endKey=74800000000000009a] [2024/05/06 16:38:19.527 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=156] [2024/05/06 16:38:19.527 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] === RUN TestStillWriteConflictAfterRetry/#36 [2024/05/06 16:38:19.586 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=90] [schemaVersion=77] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:38:19.602 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:158, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:155, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:19.594 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:19.602 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:158, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:155, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:19.594 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:38:19.636 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:158, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:155, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:19.594 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:19.668 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=77] [neededSchemaVersion=78] ["start time"=936.943µs] [phyTblIDs="[155,157]"] [actionTypes="[2048,2048]"] [2024/05/06 16:38:19.701 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=158] [version=78] [2024/05/06 16:38:19.703 +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=78] ["take time"=36.674155ms] [job="ID:158, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:155, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:19.594 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:19.737 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=158] [elementID=1] [comment="table ID is 155"] [2024/05/06 16:38:19.742 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=158] [jobType="truncate table"] [2024/05/06 16:38:19.745 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:158, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:155, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:19.594 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:19.785 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=158] [elementID=1] [startKey=74800000000000009b] [endKey=74800000000000009c] [2024/05/06 16:38:19.795 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=158] [2024/05/06 16:38:19.795 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] === RUN TestStillWriteConflictAfterRetry/#37 [2024/05/06 16:38:19.851 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=92] [schemaVersion=78] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:38:19.869 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:160, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:157, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:19.859 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:19.869 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:160, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:157, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:19.859 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:38:19.911 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:160, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:157, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:19.859 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:19.939 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=78] [neededSchemaVersion=79] ["start time"=1.505161ms] [phyTblIDs="[157,159]"] [actionTypes="[2048,2048]"] [2024/05/06 16:38:19.950 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=160] [version=79] [2024/05/06 16:38:19.952 +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=79] ["take time"=15.098964ms] [job="ID:160, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:157, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:19.859 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:19.978 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=160] [elementID=1] [comment="table ID is 157"] [2024/05/06 16:38:19.984 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=160] [jobType="truncate table"] [2024/05/06 16:38:19.989 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:160, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:157, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:19.859 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:20.019 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=160] [elementID=1] [startKey=74800000000000009d] [endKey=74800000000000009e] [2024/05/06 16:38:20.039 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=160] [2024/05/06 16:38:20.039 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] === RUN TestStillWriteConflictAfterRetry/#38 [2024/05/06 16:38:20.098 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=94] [schemaVersion=79] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:38:20.115 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:162, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:159, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:20.106 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:20.116 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:162, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:159, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:20.106 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:38:20.156 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:162, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:159, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:20.106 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:20.192 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=79] [neededSchemaVersion=80] ["start time"=887.645µs] [phyTblIDs="[159,161]"] [actionTypes="[2048,2048]"] [2024/05/06 16:38:20.249 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=162] [version=80] [2024/05/06 16:38:20.251 +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=80] ["take time"=60.248145ms] [job="ID:162, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:159, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:20.106 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:20.280 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=162] [elementID=1] [comment="table ID is 159"] [2024/05/06 16:38:20.286 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=162] [jobType="truncate table"] [2024/05/06 16:38:20.289 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:162, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:159, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:20.106 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:20.323 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=162] [elementID=1] [startKey=74800000000000009f] [endKey=7480000000000000a0] [2024/05/06 16:38:20.339 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=162] [2024/05/06 16:38:20.339 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] === RUN TestStillWriteConflictAfterRetry/#39 [2024/05/06 16:38:20.391 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=96] [schemaVersion=80] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:38:20.409 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:164, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:161, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:20.399 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:20.409 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:164, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:161, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:20.399 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:38:20.437 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 172, tp general"] [job="ID:164, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:161, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:20.399 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:20.476 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=80] [neededSchemaVersion=81] ["start time"=1.148332ms] [phyTblIDs="[161,163]"] [actionTypes="[2048,2048]"] [2024/05/06 16:38:20.500 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=164] [version=81] [2024/05/06 16:38:20.501 +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=81] ["take time"=26.846664ms] [job="ID:164, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:161, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:20.399 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:20.530 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=164] [elementID=1] [comment="table ID is 161"] [2024/05/06 16:38:20.536 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=164] [jobType="truncate table"] [2024/05/06 16:38:20.541 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 172, tp general"] [job="ID:164, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:161, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:20.399 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:20.572 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=164] [elementID=1] [startKey=7480000000000000a1] [endKey=7480000000000000a2] [2024/05/06 16:38:20.594 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=164] [2024/05/06 16:38:20.594 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:20.648 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:38:20.648 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 182, tp add index"] ["take time"=19.266µs] [2024/05/06 16:38:20.648 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 173, tp add index"] ["take time"=11.451µs] [2024/05/06 16:38:20.648 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 174, tp add index"] ["take time"=20.771µs] [2024/05/06 16:38:20.648 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 175, tp add index"] ["take time"=10.327µs] [2024/05/06 16:38:20.648 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 176, tp add index"] ["take time"=15.065µs] [2024/05/06 16:38:20.648 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 177, tp add index"] ["take time"=10.286µs] [2024/05/06 16:38:20.648 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 178, tp add index"] ["take time"=11.927µs] [2024/05/06 16:38:20.648 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 179, tp add index"] ["take time"=14.207µs] [2024/05/06 16:38:20.648 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 180, tp add index"] ["take time"=10.208µs] [2024/05/06 16:38:20.648 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 181, tp add index"] ["take time"=10.583µs] [2024/05/06 16:38:20.648 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:38:20.648 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 172, tp general"] ["take time"=3.889µs] [2024/05/06 16:38:20.648 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 170, tp general"] ["take time"=1.219µs] [2024/05/06 16:38:20.648 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 171, tp add index"] ["take time"=1.36µs] [2024/05/06 16:38:20.649 +08:00] [INFO] [delete_range.go:148] ["[ddl] closing delRange"] [2024/05/06 16:38:20.649 +08:00] [INFO] [session_pool.go:94] ["[ddl] closing sessionPool"] [2024/05/06 16:38:20.653 +08:00] [INFO] [ddl.go:833] ["[ddl] DDL closed"] [ID=e0ff0dea-84f8-4c3d-93bc-1c0bd20bcbe1] ["take time"=5.856137ms] [2024/05/06 16:38:20.653 +08:00] [INFO] [ddl.go:657] ["[ddl] stop DDL"] [ID=e0ff0dea-84f8-4c3d-93bc-1c0bd20bcbe1] [2024/05/06 16:38:20.654 +08:00] [INFO] [domain.go:1156] ["closestReplicaReadCheckLoop exited."] [2024/05/06 16:38:20.654 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:38:20.654 +08:00] [INFO] [domain.go:651] ["topologySyncerKeeper exited."] [2024/05/06 16:38:20.654 +08:00] [INFO] [domain.go:1748] ["dumpFileGcChecker exited."] [2024/05/06 16:38:20.654 +08:00] [INFO] [domain.go:1394] ["loadPrivilegeInLoop exited."] [2024/05/06 16:38:20.654 +08:00] [INFO] [domain.go:603] ["infoSyncerKeeper exited."] [2024/05/06 16:38:20.654 +08:00] [INFO] [domain.go:628] ["globalConfigSyncerKeeper exited."] [2024/05/06 16:38:20.654 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:38:20.654 +08:00] [INFO] [domain.go:1444] ["LoadSysVarCacheLoop exited."] [2024/05/06 16:38:20.654 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:38:20.654 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:38:20.654 +08:00] [INFO] [domain.go:1569] ["handleEvolvePlanTasksLoop exited."] [2024/05/06 16:38:20.654 +08:00] [INFO] [domain.go:1525] ["globalBindHandleWorkerLoop exited."] [2024/05/06 16:38:20.654 +08:00] [INFO] [domain.go:574] ["topNSlowQueryLoop exited."] [2024/05/06 16:38:20.654 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:38:20.658 +08:00] [INFO] [domain.go:792] ["loadSchemaInLoop exited."] [2024/05/06 16:38:20.658 +08:00] [INFO] [domain.go:920] ["domain closed"] ["take time"=10.648064ms] [2024/05/06 16:38:20.660 +08:00] [INFO] [db.go:567] ["Closing database"] [2024/05/06 16:38:20.660 +08:00] [INFO] [db.go:592] ["Memtable flushed"] [2024/05/06 16:38:20.660 +08:00] [INFO] [db.go:596] ["Compaction finished"] [2024/05/06 16:38:20.660 +08:00] [INFO] [db.go:615] ["BlobManager finished"] [2024/05/06 16:38:20.660 +08:00] [INFO] [db.go:619] ["ResourceManager finished"] [2024/05/06 16:38:20.660 +08:00] [INFO] [db.go:625] ["Waiting for closer"] --- PASS: TestStillWriteConflictAfterRetry (30.52s) --- PASS: TestStillWriteConflictAfterRetry/#00 (0.32s) --- PASS: TestStillWriteConflictAfterRetry/#01 (0.33s) --- PASS: TestStillWriteConflictAfterRetry/#02 (0.27s) --- PASS: TestStillWriteConflictAfterRetry/#03 (0.25s) --- PASS: TestStillWriteConflictAfterRetry/#04 (0.33s) --- PASS: TestStillWriteConflictAfterRetry/#05 (0.35s) --- PASS: TestStillWriteConflictAfterRetry/#06 (0.28s) --- PASS: TestStillWriteConflictAfterRetry/#07 (0.31s) --- PASS: TestStillWriteConflictAfterRetry/#08 (0.29s) --- PASS: TestStillWriteConflictAfterRetry/#09 (0.31s) --- PASS: TestStillWriteConflictAfterRetry/#10 (0.28s) --- PASS: TestStillWriteConflictAfterRetry/#11 (0.25s) --- PASS: TestStillWriteConflictAfterRetry/#12 (0.31s) --- PASS: TestStillWriteConflictAfterRetry/#13 (0.31s) --- PASS: TestStillWriteConflictAfterRetry/#14 (0.32s) --- PASS: TestStillWriteConflictAfterRetry/#15 (0.29s) --- PASS: TestStillWriteConflictAfterRetry/#16 (0.29s) --- PASS: TestStillWriteConflictAfterRetry/#17 (0.34s) --- PASS: TestStillWriteConflictAfterRetry/#18 (0.31s) --- PASS: TestStillWriteConflictAfterRetry/#19 (0.34s) --- PASS: TestStillWriteConflictAfterRetry/#20 (0.29s) --- PASS: TestStillWriteConflictAfterRetry/#21 (0.31s) --- PASS: TestStillWriteConflictAfterRetry/#22 (0.26s) --- PASS: TestStillWriteConflictAfterRetry/#23 (0.26s) --- PASS: TestStillWriteConflictAfterRetry/#24 (0.35s) --- PASS: TestStillWriteConflictAfterRetry/#25 (0.28s) --- PASS: TestStillWriteConflictAfterRetry/#26 (0.27s) --- PASS: TestStillWriteConflictAfterRetry/#27 (0.26s) --- PASS: TestStillWriteConflictAfterRetry/#28 (0.35s) --- PASS: TestStillWriteConflictAfterRetry/#29 (0.30s) --- PASS: TestStillWriteConflictAfterRetry/#30 (0.29s) --- PASS: TestStillWriteConflictAfterRetry/#31 (0.25s) --- PASS: TestStillWriteConflictAfterRetry/#32 (0.28s) --- PASS: TestStillWriteConflictAfterRetry/#33 (0.27s) --- PASS: TestStillWriteConflictAfterRetry/#34 (0.26s) --- PASS: TestStillWriteConflictAfterRetry/#35 (0.33s) --- PASS: TestStillWriteConflictAfterRetry/#36 (0.26s) --- PASS: TestStillWriteConflictAfterRetry/#37 (0.25s) --- PASS: TestStillWriteConflictAfterRetry/#38 (0.30s) --- PASS: TestStillWriteConflictAfterRetry/#39 (0.26s) === RUN TestTSOCmdCountForPrepareExecute [2024/05/06 16:38:20.673 +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:38:20.677 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:38:20.677 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:38:20.686 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:38:20.686 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:38:20.691 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:38:20.693 +08:00] [INFO] [tidb.go:77] ["new domain"] [store=de102d69-b237-49d0-8d6e-373c09aa9797] ["ddl lease"=500ms] ["stats lease"=-1ns] ["index usage sync lease"=0s] [2024/05/06 16:38:20.694 +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/testkit.CreateMockStore\n\ttestkit/mockstore.go:61\nsessiontxn/sessiontxn_test_test.TestTSOCmdCountForPrepareExecute\n\tsessiontxn/txn_context_test.go:881\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1446\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:38:20.713 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=0] ["start time"=18.943638ms] [2024/05/06 16:38:20.716 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:38:20.716 +08:00] [INFO] [ddl.go:719] ["[ddl] start DDL"] [ID=1d38a530-8f2f-4b13-8aa6-3d31ec6487bf] [runWorker=true] [2024/05/06 16:38:20.717 +08:00] [INFO] [ddl.go:665] ["[ddl] start delRangeManager OK"] ["is a emulator"=true] [2024/05/06 16:38:20.717 +08:00] [INFO] [delete_range.go:158] ["[ddl] start delRange emulator"] [2024/05/06 16:38:20.717 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 183, tp general"] [2024/05/06 16:38:20.717 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 184, tp add index"] [2024/05/06 16:38:20.718 +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:38:20.718 +08:00] [INFO] [env.go:108] ["[ddl-ingest] the lightning sorted dir"] ["data path:"=/tmp/tidb/tmp_ddl-4000] [2024/05/06 16:38:20.718 +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:38:20.718 +08:00] [WARN] [domain.go:1120] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 16:38:20.722 +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:38:20.740 +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:38:20.73 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE DATABASE IF NOT EXISTS test"] [2024/05/06 16:38:20.740 +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:38:20.73 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:20.970 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:38:21.220 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:38:21.470 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:38:21.720 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:38:21.780 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 185, 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:38:20.73 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:21.823 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=1] ["start time"=22.078333ms] [2024/05/06 16:38:21.828 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:38:21.868 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:21.868 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=3] [version=1] [2024/05/06 16:38:21.871 +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"=70.265415ms] [job="ID:3, Type:create schema, State:done, SchemaState:public, SchemaID:2, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 16:38:20.73 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:21.902 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 185, 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:38:20.73 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:21.923 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=3] [2024/05/06 16:38:21.923 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:21.924 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 1.202204045\n# Parse_time: 0\n# Compile_time: 0.000410647\n# Rewrite_time: 0.000013076\n# Optimize_time: 0\n# Wait_TS: 0.000051297\n# DB: mysql\n# Is_internal: true\n# Digest: 0a22979ad136f741465cf206b13e5717b9758dda34f7cae5a7a925f91711d6a0\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 mysql;\nCREATE DATABASE IF NOT EXISTS test;"] [2024/05/06 16:38:21.926 +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:38:21.953 +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:38:22.117 +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:38:21.967 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:22.117 +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:38:21.967 +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:38:22.163 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 185, 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:38:21.967 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:22.487 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=1] [neededSchemaVersion=2] ["start time"=7.048658ms] [phyTblIDs="[4]"] [actionTypes="[8]"] [2024/05/06 16:38:22.519 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:22.519 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=5] [version=2] [2024/05/06 16:38:22.520 +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"=44.208095ms] [job="ID:5, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:4, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:21.967 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:22.570 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 185, 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:38:21.967 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:22.718 +08:00] [INFO] [info.go:1114] [SetTiFlashGroupConfig] [2024/05/06 16:38:22.790 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=5] [2024/05/06 16:38:22.791 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:22.792 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.852569835\n# Parse_time: 0\n# Compile_time: 0.014149607\n# Rewrite_time: 0.000020153\n# Optimize_time: 0\n# Wait_TS: 0.000080431\n# DB: mysql\n# Is_internal: true\n# Digest: 14c6b489558060bdbede877927034270db5af07c6621aa28f87eeaec8727e925\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\nCREATE TABLE IF NOT EXISTS mysql.user ( Host CHAR(255), User CHAR(32), authentication_string TEXT, plugin CHAR(64), Select_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Insert_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Update_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Delete_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Drop_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Process_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Grant_priv ENUM('N','Y') NOT NULL DEFAULT 'N', References_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Show_db_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Super_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_tmp_table_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Lock_tables_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Execute_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Show_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Index_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_user_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Event_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Repl_slave_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Repl_client_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Trigger_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_role_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Drop_role_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Account_locked ENUM('N','Y') NOT NULL DEFAULT 'N', Shutdown_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Reload_priv ENUM('N','Y') NOT NULL DEFAULT 'N', FILE_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Config_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_Tablespace_Priv ENUM('N','Y') NOT NULL DEFAULT 'N', Password_reuse_history smallint unsigned DEFAULT NULL, Password_reuse_time smallint unsigned DEFAULT NULL, User_attributes json, Token_issuer VARCHAR(255), Password_expired ENUM('N','Y') NOT NULL DEFAULT 'N', Password_last_changed TIMESTAMP DEFAULT CURRENT_TIMESTAMP(), Password_lifetime SMALLINT UNSIGNED DEFAULT NULL, PRIMARY KEY (Host, User));"] [2024/05/06 16:38:22.797 +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:38:22.847 +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:38:22.807 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:22.847 +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:38:22.807 +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:38:22.883 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 185, 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:38:22.807 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:22.952 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=2] [neededSchemaVersion=3] ["start time"=2.006289ms] [phyTblIDs="[6]"] [actionTypes="[8]"] [2024/05/06 16:38:22.969 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:22.969 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=7] [version=3] [2024/05/06 16:38:22.969 +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"=20.147277ms] [job="ID:7, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:6, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:22.807 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:23.005 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 185, 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:38:22.807 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:23.056 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=7] [2024/05/06 16:38:23.056 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:23.062 +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:38:23.096 +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:38:23.069 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:23.096 +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:38:23.069 +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:38:23.144 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 185, 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:38:23.069 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:23.211 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=3] [neededSchemaVersion=4] ["start time"=1.504263ms] [phyTblIDs="[8]"] [actionTypes="[8]"] [2024/05/06 16:38:23.269 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:23.269 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=9] [version=4] [2024/05/06 16:38:23.271 +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"=62.385612ms] [job="ID:9, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:8, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:23.069 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:23.301 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 185, 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:38:23.069 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:23.336 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=9] [2024/05/06 16:38:23.337 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:23.355 +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:38:23.459 +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:38:23.364 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:23.459 +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:38:23.364 +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:38:23.504 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 185, 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:38:23.364 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:23.669 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=4] [neededSchemaVersion=5] ["start time"=4.966588ms] [phyTblIDs="[10]"] [actionTypes="[8]"] [2024/05/06 16:38:23.719 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:23.719 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=11] [version=5] [2024/05/06 16:38:23.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=5] ["take time"=59.845652ms] [job="ID:11, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:10, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:23.364 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:23.801 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 185, 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:38:23.364 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:23.915 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=11] [2024/05/06 16:38:23.915 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:23.916 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.568785816\n# Parse_time: 0\n# Compile_time: 0.007947684\n# Rewrite_time: 0.000009837\n# Optimize_time: 0\n# Wait_TS: 0.000076109\n# DB: mysql\n# Is_internal: true\n# Digest: aeaf612801484f0311f850d36f60f29e6d904828682c1f3bb7307dff25ca3a15\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\nCREATE TABLE IF NOT EXISTS mysql.db ( Host CHAR(255), DB CHAR(64), User CHAR(32), Select_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Insert_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Update_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Delete_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Drop_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Grant_priv ENUM('N','Y') NOT NULL DEFAULT 'N', References_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Index_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_tmp_table_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Lock_tables_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Show_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Execute_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Event_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Trigger_priv ENUM('N','Y') NOT NULL DEFAULT 'N', PRIMARY KEY (Host, DB, User));"] [2024/05/06 16:38:23.933 +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:38:23.983 +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:38:23.946 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:23.983 +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:38:23.946 +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:38:24.036 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 185, 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:38:23.946 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:24.113 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=5] [neededSchemaVersion=6] ["start time"=1.844466ms] [phyTblIDs="[12]"] [actionTypes="[8]"] [2024/05/06 16:38:24.169 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:24.169 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=13] [version=6] [2024/05/06 16:38:24.171 +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"=60.529608ms] [job="ID:13, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:12, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:23.946 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:24.206 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 185, 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:38:23.946 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:24.271 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=13] [2024/05/06 16:38:24.271 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:24.272 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.351411378\n# Parse_time: 0\n# Compile_time: 0.012303685\n# Rewrite_time: 0.000013106\n# Optimize_time: 0\n# Wait_TS: 0.000090143\n# DB: mysql\n# Is_internal: true\n# Digest: e8b37dad6cc7f05ee1f0be61455667495826928a93ddd09b94e02fbaed113955\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\nCREATE TABLE IF NOT EXISTS mysql.tables_priv ( Host CHAR(255), DB CHAR(64), User CHAR(32), Table_name CHAR(64), Grantor CHAR(77), Timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP, Table_priv SET('Select','Insert','Update','Delete','Create','Drop','Grant','Index','Alter','Create View','Show View','Trigger','References'), Column_priv SET('Select','Insert','Update','References'), PRIMARY KEY (Host, DB, User, Table_name));"] [2024/05/06 16:38:24.277 +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:38:24.364 +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:38:24.294 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:24.364 +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:38:24.294 +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:38:24.406 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 185, 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:38:24.294 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:24.489 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=6] [neededSchemaVersion=7] ["start time"=1.767565ms] [phyTblIDs="[14]"] [actionTypes="[8]"] [2024/05/06 16:38:24.519 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:24.519 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=15] [version=7] [2024/05/06 16:38:24.522 +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"=35.951269ms] [job="ID:15, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:14, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:24.294 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:24.570 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 185, 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:38:24.294 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:24.633 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=15] [2024/05/06 16:38:24.634 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:24.635 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.360315285\n# Parse_time: 0\n# Compile_time: 0.001799636\n# Rewrite_time: 0.000007661\n# Optimize_time: 0\n# Wait_TS: 0.000073407\n# DB: mysql\n# Is_internal: true\n# Digest: a19edbb3caff8cc57619278ab6eb5f791d7a821432309abe7184d0a7bca66b4d\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\nCREATE TABLE IF NOT EXISTS mysql.columns_priv( Host CHAR(255), DB CHAR(64), User CHAR(32), Table_name CHAR(64), Column_name CHAR(64), Timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP, Column_priv SET('Select','Insert','Update','References'), PRIMARY KEY (Host, DB, User, Table_name, Column_name));"] [2024/05/06 16:38:24.639 +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:38:24.677 +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:38:24.648 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:24.678 +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:38:24.648 +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:38:24.717 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 185, 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:38:24.648 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:24.776 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=7] [neededSchemaVersion=8] ["start time"=1.631774ms] [phyTblIDs="[16]"] [actionTypes="[8]"] [2024/05/06 16:38:24.818 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:24.818 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=17] [version=8] [2024/05/06 16:38:24.819 +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"=46.098126ms] [job="ID:17, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:16, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:24.648 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:24.861 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 185, 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:38:24.648 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:24.891 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=17] [2024/05/06 16:38:24.891 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:24.895 +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:38:24.937 +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:38:24.902 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:24.937 +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:38:24.902 +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:38:24.991 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 185, 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:38:24.902 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:25.049 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=8] [neededSchemaVersion=9] ["start time"=1.150031ms] [phyTblIDs="[18]"] [actionTypes="[8]"] [2024/05/06 16:38:25.069 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:25.069 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=19] [version=9] [2024/05/06 16:38:25.070 +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.56817ms] [job="ID:19, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:18, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:24.902 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:25.103 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 185, 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:38:24.902 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:25.146 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=19] [2024/05/06 16:38:25.146 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:25.154 +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:38:25.195 +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:38:25.164 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:25.195 +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:38:25.164 +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:38:25.243 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 185, 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:38:25.164 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:25.322 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=9] [neededSchemaVersion=10] ["start time"=2.111241ms] [phyTblIDs="[20]"] [actionTypes="[8]"] [2024/05/06 16:38:25.369 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:25.369 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=21] [version=10] [2024/05/06 16:38:25.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=10] ["take time"=50.218901ms] [job="ID:21, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:20, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:25.164 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:25.409 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 185, 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:38:25.164 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:25.483 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=21] [2024/05/06 16:38:25.483 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:25.485 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.333701823\n# Parse_time: 0\n# Compile_time: 0.003172564\n# Rewrite_time: 0.000010446\n# Optimize_time: 0\n# Wait_TS: 0.000088795\n# DB: mysql\n# Is_internal: true\n# Digest: ca851971407336dad93908a9f88f01d828a4e18f332111987f4a7675bced7ea4\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\nCREATE TABLE IF NOT EXISTS mysql.help_topic ( help_topic_id INT(10) UNSIGNED NOT NULL, name CHAR(64) NOT NULL, help_category_id SMALLINT(5) UNSIGNED NOT NULL, description TEXT NOT NULL, example TEXT NOT NULL, url TEXT NOT NULL, PRIMARY KEY (help_topic_id) clustered, UNIQUE KEY name (name) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='help topics';"] [2024/05/06 16:38:25.491 +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:38:25.542 +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:38:25.501 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:25.542 +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:38:25.501 +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:38:25.591 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 185, 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:38:25.501 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:25.665 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=10] [neededSchemaVersion=11] ["start time"=1.49296ms] [phyTblIDs="[22]"] [actionTypes="[8]"] [2024/05/06 16:38:25.719 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:25.719 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=23] [version=11] [2024/05/06 16:38:25.719 +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"=56.211677ms] [job="ID:23, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:22, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:25.501 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:25.812 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 185, 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:38:25.501 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:25.868 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=23] [2024/05/06 16:38:25.868 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:25.870 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.381030872\n# Parse_time: 0\n# Compile_time: 0.002829115\n# Rewrite_time: 0.00001199\n# Optimize_time: 0\n# Wait_TS: 0.000064196\n# DB: mysql\n# Is_internal: true\n# Digest: db16a74bd407cb00f071eafe96456094f48fc00e802128fc486ef4847b8910b0\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\nCREATE TABLE IF NOT EXISTS mysql.stats_meta ( version BIGINT(64) UNSIGNED NOT NULL, table_id BIGINT(64) NOT NULL, modify_count BIGINT(64) NOT NULL DEFAULT 0, count BIGINT(64) UNSIGNED NOT NULL DEFAULT 0, snapshot BIGINT(64) UNSIGNED NOT NULL DEFAULT 0, INDEX idx_ver(version), UNIQUE INDEX tbl(table_id) );"] [2024/05/06 16:38:25.876 +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:38:25.877 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(6291456) to MEDIUMBLOB"] [2024/05/06 16:38:25.962 +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:38:25.887 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:25.962 +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:38:25.887 +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:38:26.009 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 185, 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:38:25.887 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:26.148 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=11] [neededSchemaVersion=12] ["start time"=2.496311ms] [phyTblIDs="[24]"] [actionTypes="[8]"] [2024/05/06 16:38:26.169 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:26.169 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=25] [version=12] [2024/05/06 16:38:26.170 +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"=24.859622ms] [job="ID:25, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:24, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:25.887 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:26.205 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 185, 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:38:25.887 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:26.288 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=25] [2024/05/06 16:38:26.288 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:26.290 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.41590643\n# Parse_time: 0\n# Compile_time: 0.002790727\n# Rewrite_time: 0.000009201\n# Optimize_time: 0\n# Wait_TS: 0.000051536\n# DB: mysql\n# Is_internal: true\n# Digest: 7780c45a0aac5f123ac85a7e601e79c5d7779e7c09a19953908e547605ed45d2\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\nCREATE TABLE IF NOT EXISTS mysql.stats_histograms ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, distinct_count BIGINT(64) NOT NULL, null_count BIGINT(64) NOT NULL DEFAULT 0, tot_col_size BIGINT(64) NOT NULL DEFAULT 0, modify_count BIGINT(64) NOT NULL DEFAULT 0, version BIGINT(64) UNSIGNED NOT NULL DEFAULT 0, cm_sketch BLOB(6291456), stats_ver BIGINT(64) NOT NULL DEFAULT 0, flag BIGINT(64) NOT NULL DEFAULT 0, correlation DOUBLE NOT NULL DEFAULT 0, last_analyze_pos LONGBLOB DEFAULT NULL, UNIQUE INDEX tbl(table_id, is_index, hist_id) );"] [2024/05/06 16:38:26.297 +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:38:26.388 +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:38:26.307 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:26.389 +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:38:26.307 +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:38:26.445 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 185, 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:38:26.307 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:26.558 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=12] [neededSchemaVersion=13] ["start time"=2.896212ms] [phyTblIDs="[26]"] [actionTypes="[8]"] [2024/05/06 16:38:26.568 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:26.568 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=27] [version=13] [2024/05/06 16:38:26.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=13] ["take time"=16.773462ms] [job="ID:27, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:26, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:26.307 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:26.602 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 185, 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:38:26.307 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:26.674 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=27] [2024/05/06 16:38:26.674 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:26.676 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.381813362\n# Parse_time: 0\n# Compile_time: 0.003230567\n# Rewrite_time: 0.000012769\n# Optimize_time: 0\n# Wait_TS: 0.000068296\n# DB: mysql\n# Is_internal: true\n# Digest: 5615b5212342304015b027afb253371dae02f19e53871cfbb034deb145dfce32\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\nCREATE TABLE IF NOT EXISTS mysql.stats_buckets ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, bucket_id BIGINT(64) NOT NULL, count BIGINT(64) NOT NULL, repeats BIGINT(64) NOT NULL, upper_bound LONGBLOB NOT NULL, lower_bound LONGBLOB , ndv BIGINT NOT NULL DEFAULT 0, UNIQUE INDEX tbl(table_id, is_index, hist_id, bucket_id) );"] [2024/05/06 16:38:26.682 +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:38:26.721 +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:38:26.693 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:26.721 +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:38:26.693 +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:38:26.769 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 185, 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:38:26.693 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:26.837 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=13] [neededSchemaVersion=14] ["start time"=1.535095ms] [phyTblIDs="[28]"] [actionTypes="[8]"] [2024/05/06 16:38:26.869 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:26.869 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=29] [version=14] [2024/05/06 16:38:26.871 +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"=36.932565ms] [job="ID:29, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:28, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:26.693 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:26.901 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 185, 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:38:26.693 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:26.963 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=29] [2024/05/06 16:38:26.963 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:26.969 +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:38:27.013 +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:38:26.979 +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:38:27.013 +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:38:26.979 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:27.066 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 185, 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:38:26.979 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:27.129 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=14] [neededSchemaVersion=15] ["start time"=2.327096ms] [phyTblIDs="[30]"] [actionTypes="[8]"] [2024/05/06 16:38:27.169 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:27.169 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=31] [version=15] [2024/05/06 16:38:27.170 +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"=44.158169ms] [job="ID:31, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:30, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:26.979 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:27.202 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 185, 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:38:26.979 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:27.258 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=31] [2024/05/06 16:38:27.258 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:27.262 +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:38:27.337 +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:38:27.272 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:27.338 +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:38:27.272 +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:38:27.380 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 185, 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:38:27.272 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:27.447 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=15] [neededSchemaVersion=16] ["start time"=2.076741ms] [phyTblIDs="[32]"] [actionTypes="[8]"] [2024/05/06 16:38:27.469 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:27.469 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=33] [version=16] [2024/05/06 16:38:27.470 +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"=26.131768ms] [job="ID:33, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:32, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:27.272 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:27.503 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 185, 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:38:27.272 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:27.550 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=33] [2024/05/06 16:38:27.551 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:27.557 +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:38:27.608 +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:38:27.568 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:27.608 +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:38:27.568 +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:38:27.654 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 185, 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:38:27.568 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:27.719 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=16] [neededSchemaVersion=17] ["start time"=2.070789ms] [phyTblIDs="[34]"] [actionTypes="[8]"] [2024/05/06 16:38:27.769 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:27.769 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=35] [version=17] [2024/05/06 16:38:27.771 +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"=54.589143ms] [job="ID:35, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:34, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:27.568 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:27.803 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 185, 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:38:27.568 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:27.863 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=35] [2024/05/06 16:38:27.863 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:27.864 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.30916774\n# Parse_time: 0\n# Compile_time: 0.00216379\n# Rewrite_time: 0.000008788\n# Optimize_time: 0\n# Wait_TS: 0.000063425\n# DB: mysql\n# Is_internal: true\n# Digest: 13e2fcff943423afddaa84c2d34108628854b5953bc7c41d2879240f077a5bd6\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\nCREATE TABLE IF NOT EXISTS mysql.role_edges ( FROM_HOST CHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '', FROM_USER CHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '', TO_HOST CHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '', TO_USER CHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '', WITH_ADMIN_OPTION ENUM('N','Y') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'N', PRIMARY KEY (FROM_HOST,FROM_USER,TO_HOST,TO_USER) );"] [2024/05/06 16:38:27.869 +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:38:27.907 +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:38:27.877 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:27.907 +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:38:27.877 +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:38:27.961 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 185, 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:38:27.877 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:28.014 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=17] [neededSchemaVersion=18] ["start time"=1.435232ms] [phyTblIDs="[36]"] [actionTypes="[8]"] [2024/05/06 16:38:28.068 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:28.068 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=37] [version=18] [2024/05/06 16:38:28.071 +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"=58.762266ms] [job="ID:37, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:36, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:27.877 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:28.103 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 185, 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:38:27.877 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:28.163 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=37] [2024/05/06 16:38:28.163 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:28.170 +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:38:28.268 +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:38:28.179 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:28.269 +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:38:28.179 +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:38:28.313 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 185, 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:38:28.179 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:28.458 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=18] [neededSchemaVersion=19] ["start time"=3.508596ms] [phyTblIDs="[38]"] [actionTypes="[8]"] [2024/05/06 16:38:28.519 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:28.519 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=39] [version=19] [2024/05/06 16:38:28.520 +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"=66.511044ms] [job="ID:39, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:38, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:28.179 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:28.565 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 185, 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:38:28.179 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:28.649 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=39] [2024/05/06 16:38:28.649 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:28.651 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.483321775\n# Parse_time: 0\n# Compile_time: 0.002715733\n# Rewrite_time: 0.000008759\n# Optimize_time: 0\n# Wait_TS: 0.000063654\n# DB: mysql\n# Is_internal: true\n# Digest: 0a4bc55a9ab72ef62ddaa1ee6472d7872306066fd783a8bb67047a497fbb4dbe\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\nCREATE TABLE IF NOT EXISTS mysql.bind_info ( original_sql TEXT NOT NULL, bind_sql TEXT NOT NULL, default_db TEXT NOT NULL, status TEXT NOT NULL, create_time TIMESTAMP(3) NOT NULL, update_time TIMESTAMP(3) NOT NULL, charset TEXT NOT NULL, collation TEXT NOT NULL, source VARCHAR(10) NOT NULL DEFAULT 'unknown', sql_digest varchar(64), plan_digest varchar(64), INDEX sql_index(original_sql(700),default_db(68)) COMMENT \"accelerate the speed when add global binding query\", INDEX time_index(update_time) COMMENT \"accelerate the speed when querying with last update time\" ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;"] [2024/05/06 16:38:28.667 +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:38:28.716 +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:38:28.677 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:28.716 +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:38:28.677 +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:38:28.770 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 185, 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:38:28.677 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:28.826 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=19] [neededSchemaVersion=20] ["start time"=2.282405ms] [phyTblIDs="[40]"] [actionTypes="[8]"] [2024/05/06 16:38:28.868 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:28.869 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=41] [version=20] [2024/05/06 16:38:28.869 +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"=46.137546ms] [job="ID:41, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:40, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:28.677 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:28.902 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 185, 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:38:28.677 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:28.958 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=41] [2024/05/06 16:38:28.958 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:28.961 +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:38:28.997 +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:38:28.97 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:28.997 +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:38:28.97 +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:38:29.041 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 185, 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:38:28.97 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:29.093 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=20] [neededSchemaVersion=21] ["start time"=1.060925ms] [phyTblIDs="[42]"] [actionTypes="[8]"] [2024/05/06 16:38:29.118 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:29.119 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=43] [version=21] [2024/05/06 16:38:29.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=21] ["take time"=32.270111ms] [job="ID:43, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:42, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:28.97 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:29.159 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 185, 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:38:28.97 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:29.188 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=43] [2024/05/06 16:38:29.188 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:29.190 +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:38:29.221 +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:38:29.198 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:29.221 +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:38:29.198 +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:38:29.270 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 185, 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:38:29.198 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:29.343 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=21] [neededSchemaVersion=22] ["start time"=1.429323ms] [phyTblIDs="[44]"] [actionTypes="[8]"] [2024/05/06 16:38:29.369 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:29.369 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=45] [version=22] [2024/05/06 16:38:29.371 +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"=30.313305ms] [job="ID:45, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:44, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:29.198 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:29.409 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 185, 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:38:29.198 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:29.452 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=45] [2024/05/06 16:38:29.452 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:29.461 +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:38:29.518 +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:38:29.473 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:29.518 +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:38:29.473 +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:38:29.562 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 185, 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:38:29.473 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:29.651 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=22] [neededSchemaVersion=23] ["start time"=1.955496ms] [phyTblIDs="[46]"] [actionTypes="[8]"] [2024/05/06 16:38:29.669 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:29.669 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=47] [version=23] [2024/05/06 16:38:29.671 +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"=23.012129ms] [job="ID:47, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:46, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:29.473 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:29.707 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 185, 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:38:29.473 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:29.772 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=47] [2024/05/06 16:38:29.772 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:29.773 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.314690105\n# Parse_time: 0\n# Compile_time: 0.003166085\n# Rewrite_time: 0.000013206\n# Optimize_time: 0\n# Wait_TS: 0.000096576\n# DB: mysql\n# Is_internal: true\n# Digest: bd2a0d9809689d30e22f8d82b29b4ee110d16cda3353b77d74a1938afb746386\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\nCREATE TABLE IF NOT EXISTS mysql.stats_extended ( name varchar(32) NOT NULL, type tinyint(4) NOT NULL, table_id bigint(64) NOT NULL, column_ids varchar(32) NOT NULL, stats blob DEFAULT NULL, version bigint(64) unsigned NOT NULL, status tinyint(4) NOT NULL, PRIMARY KEY(name, table_id), KEY idx_1 (table_id, status, version), KEY idx_2 (status, version) );"] [2024/05/06 16:38:29.777 +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:38:29.824 +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:38:29.786 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:29.825 +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:38:29.786 +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:38:29.872 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 185, 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:38:29.786 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:29.933 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=23] [neededSchemaVersion=24] ["start time"=2.10198ms] [phyTblIDs="[48]"] [actionTypes="[8]"] [2024/05/06 16:38:29.969 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:29.969 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=49] [version=24] [2024/05/06 16:38:29.971 +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"=40.295691ms] [job="ID:49, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:48, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:29.786 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:30.008 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 185, 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:38:29.786 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:30.055 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=49] [2024/05/06 16:38:30.055 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:30.060 +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:38:30.102 +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:38:30.067 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:30.102 +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:38:30.067 +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:38:30.147 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 185, 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:38:30.067 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:30.206 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=24] [neededSchemaVersion=25] ["start time"=1.350916ms] [phyTblIDs="[50]"] [actionTypes="[8]"] [2024/05/06 16:38:30.219 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:30.219 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=51] [version=25] [2024/05/06 16:38:30.220 +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"=16.046302ms] [job="ID:51, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:50, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:30.067 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:30.277 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 185, 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:38:30.067 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:30.325 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=51] [2024/05/06 16:38:30.326 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:30.333 +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:38:30.376 +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:38:30.347 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:30.376 +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:38:30.347 +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:38:30.413 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 185, 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:38:30.347 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:30.481 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=25] [neededSchemaVersion=26] ["start time"=1.43003ms] [phyTblIDs="[52]"] [actionTypes="[8]"] [2024/05/06 16:38:30.519 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:30.519 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=53] [version=26] [2024/05/06 16:38:30.520 +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"=46.204166ms] [job="ID:53, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:52, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:30.347 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:30.557 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 185, 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:38:30.347 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:30.609 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=53] [2024/05/06 16:38:30.609 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:30.616 +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:38:30.658 +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:38:30.625 +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:38:30.658 +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:38:30.625 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:30.701 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 185, 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:38:30.625 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:30.769 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=26] [neededSchemaVersion=27] ["start time"=1.831563ms] [phyTblIDs="[54]"] [actionTypes="[8]"] [2024/05/06 16:38:30.819 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:30.819 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=55] [version=27] [2024/05/06 16:38:30.821 +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"=54.776342ms] [job="ID:55, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:54, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:30.625 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:30.862 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 185, 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:38:30.625 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:30.904 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=55] [2024/05/06 16:38:30.904 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:30.910 +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:38:30.958 +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:38:30.921 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:30.958 +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:38:30.921 +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:38:30.996 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 185, 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:38:30.921 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:31.072 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=27] [neededSchemaVersion=28] ["start time"=1.540134ms] [phyTblIDs="[56]"] [actionTypes="[8]"] [2024/05/06 16:38:31.119 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:31.119 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=57] [version=28] [2024/05/06 16:38:31.120 +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"=50.629374ms] [job="ID:57, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:56, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:30.921 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:31.160 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 185, 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:38:30.921 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:31.199 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=57] [2024/05/06 16:38:31.199 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:31.206 +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:38:31.273 +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:38:31.217 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:31.273 +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:38:31.217 +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:38:31.320 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 185, 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:38:31.217 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:31.381 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=28] [neededSchemaVersion=29] ["start time"=1.806291ms] [phyTblIDs="[58]"] [actionTypes="[8]"] [2024/05/06 16:38:31.418 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:31.418 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=59] [version=29] [2024/05/06 16:38:31.419 +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"=40.446571ms] [job="ID:59, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:58, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:31.217 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:31.458 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 185, 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:38:31.217 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:31.512 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=59] [2024/05/06 16:38:31.512 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:31.514 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.310287594\n# Parse_time: 0\n# Compile_time: 0.00264386\n# Rewrite_time: 0.000011996\n# Optimize_time: 0\n# Wait_TS: 0.000087916\n# DB: mysql\n# Is_internal: true\n# Digest: d5bebde055ca14bff3e131e086a86c4095b9d04ea6fc326b4c2f16ffd61fbd2d\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\nCREATE TABLE IF NOT EXISTS mysql.table_cache_meta ( tid bigint(11) NOT NULL DEFAULT 0, lock_type enum('NONE','READ', 'INTEND', 'WRITE') NOT NULL DEFAULT 'NONE', lease bigint(20) NOT NULL DEFAULT 0, oldReadLease bigint(20) NOT NULL DEFAULT 0, PRIMARY KEY (tid) );"] [2024/05/06 16:38:31.521 +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:38:31.523 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(19372) to MEDIUMBLOB"] [2024/05/06 16:38:31.570 +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:38:31.534 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:31.570 +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:38:31.534 +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:38:31.616 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 185, 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:38:31.534 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:31.694 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=29] [neededSchemaVersion=30] ["start time"=2.061642ms] [phyTblIDs="[60]"] [actionTypes="[8]"] [2024/05/06 16:38:31.719 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:31.719 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=61] [version=30] [2024/05/06 16:38:31.719 +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"=28.039193ms] [job="ID:61, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:60, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:31.534 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:31.795 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 185, 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:38:31.534 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:31.845 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=61] [2024/05/06 16:38:31.845 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:31.847 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.328775493\n# Parse_time: 0\n# Compile_time: 0.003345674\n# Rewrite_time: 0.000015078\n# Optimize_time: 0\n# Wait_TS: 0.000083032\n# DB: mysql\n# Is_internal: true\n# Digest: 987fcd9b9a604209ec1101d918419b993c42f84fe228e20aee2fcca2931ff93e\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\nCREATE TABLE IF NOT EXISTS mysql.analyze_options ( table_id BIGINT(64) NOT NULL, sample_num BIGINT(64) NOT NULL DEFAULT 0, sample_rate DOUBLE NOT NULL DEFAULT -1, buckets BIGINT(64) NOT NULL DEFAULT 0, topn BIGINT(64) NOT NULL DEFAULT -1, column_choice enum('DEFAULT','ALL','PREDICATE','LIST') NOT NULL DEFAULT 'DEFAULT', column_ids TEXT(19372), PRIMARY KEY (table_id) CLUSTERED );"] [2024/05/06 16:38:31.854 +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:38:31.899 +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:38:31.864 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:31.899 +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:38:31.864 +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:38:31.939 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 185, 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:38:31.864 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:32.009 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=30] [neededSchemaVersion=31] ["start time"=2.158554ms] [phyTblIDs="[62]"] [actionTypes="[8]"] [2024/05/06 16:38:32.069 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:32.069 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=63] [version=31] [2024/05/06 16:38:32.071 +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"=64.903001ms] [job="ID:63, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:62, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:31.864 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:32.109 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 185, 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:38:31.864 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:32.177 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=63] [2024/05/06 16:38:32.177 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:32.178 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.327163244\n# Parse_time: 0\n# Compile_time: 0.002750642\n# Rewrite_time: 0.000011185\n# Optimize_time: 0\n# Wait_TS: 0.000080753\n# DB: mysql\n# Is_internal: true\n# Digest: 11757f6de6b3d2a64e92f14cd7b7f739729563ede3b0139d016148eba0b27ebf\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\nCREATE TABLE IF NOT EXISTS mysql.stats_history ( table_id bigint(64) NOT NULL, stats_data longblob NOT NULL, seq_no bigint(64) NOT NULL comment 'sequence number of the gzipped data slice', version bigint(64) NOT NULL comment 'stats version which corresponding to stats:version in EXPLAIN', create_time datetime(6) NOT NULL, UNIQUE KEY table_version_seq (table_id, version, seq_no), KEY table_create_time (table_id, create_time, seq_no) );"] [2024/05/06 16:38:32.185 +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:38:32.243 +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:38:32.196 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:32.243 +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:38:32.196 +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:38:32.311 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 185, 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:38:32.196 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:32.385 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=31] [neededSchemaVersion=32] ["start time"=2.136473ms] [phyTblIDs="[64]"] [actionTypes="[8]"] [2024/05/06 16:38:32.419 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:32.419 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=65] [version=32] [2024/05/06 16:38:32.421 +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"=38.664617ms] [job="ID:65, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:64, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:32.196 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:32.457 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 185, 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:38:32.196 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:32.508 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=65] [2024/05/06 16:38:32.508 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:32.509 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.326987125\n# Parse_time: 0\n# Compile_time: 0.003029706\n# Rewrite_time: 0.000012138\n# Optimize_time: 0\n# Wait_TS: 0.000089861\n# DB: mysql\n# Is_internal: true\n# Digest: ebccd6f5d49fb0fcff4d7dc20bb3ae798d172a92ba5f6709445c980166f7e32f\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\nCREATE TABLE IF NOT EXISTS mysql.stats_meta_history ( table_id bigint(64) NOT NULL, modify_count bigint(64) NOT NULL, count bigint(64) NOT NULL, version bigint(64) NOT NULL comment 'stats version which corresponding to stats:version in EXPLAIN', create_time datetime(6) NOT NULL, UNIQUE KEY table_version (table_id, version), KEY table_create_time (table_id, create_time) );"] [2024/05/06 16:38:32.518 +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:38:32.592 +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:38:32.528 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:32.592 +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:38:32.528 +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:38:32.640 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 185, 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:38:32.528 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:32.758 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=32] [neededSchemaVersion=33] ["start time"=2.729167ms] [phyTblIDs="[66]"] [actionTypes="[8]"] [2024/05/06 16:38:32.769 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:32.769 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=67] [version=33] [2024/05/06 16:38:32.769 +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"=14.076082ms] [job="ID:67, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:66, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:32.528 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:32.805 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 185, 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:38:32.528 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:32.885 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=67] [2024/05/06 16:38:32.885 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:32.887 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.372133645\n# Parse_time: 0\n# Compile_time: 0.003310126\n# Rewrite_time: 0.000010282\n# Optimize_time: 0\n# Wait_TS: 0.000069056\n# DB: mysql\n# Is_internal: true\n# Digest: bfb9a3ff60c3c60c054a207c0a0db06c87e29edbe94005d8d5c89fe484f4f90a\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\nCREATE TABLE IF NOT EXISTS mysql.analyze_jobs ( id BIGINT(64) UNSIGNED NOT NULL AUTO_INCREMENT, update_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, table_schema CHAR(64) NOT NULL DEFAULT '', table_name CHAR(64) NOT NULL DEFAULT '', partition_name CHAR(64) NOT NULL DEFAULT '', job_info TEXT NOT NULL, processed_rows BIGINT(64) UNSIGNED NOT NULL DEFAULT 0, start_time TIMESTAMP, end_time TIMESTAMP, state ENUM('pending', 'running', 'finished', 'failed') NOT NULL, fail_reason TEXT, instance VARCHAR(512) NOT NULL comment 'address of the TiDB instance executing the analyze job', process_id BIGINT(64) UNSIGNED comment 'ID of the process executing the analyze job', PRIMARY KEY (id), KEY (update_time) );"] [2024/05/06 16:38:32.889 +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:38:32.922 +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:38:32.9 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:32.922 +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:38:32.9 +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:38:32.973 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 185, 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:38:32.9 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:33.011 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=33] [neededSchemaVersion=34] ["start time"=1.149079ms] [phyTblIDs="[68]"] [actionTypes="[8]"] [2024/05/06 16:38:33.068 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:33.068 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=69] [version=34] [2024/05/06 16:38:33.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=34] ["take time"=60.139729ms] [job="ID:69, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:68, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:32.9 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:33.103 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 185, 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:38:32.9 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:33.133 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=69] [2024/05/06 16:38:33.133 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:33.222 +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:38:33.154 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:33.222 +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:38:33.154 +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:38:33.270 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 185, 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:38:33.154 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:33.354 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=34] [neededSchemaVersion=35] ["start time"=2.586195ms] [phyTblIDs="[70]"] [actionTypes="[2097152]"] [2024/05/06 16:38:33.369 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:33.369 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=71] [version=35] [2024/05/06 16:38:33.371 +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"=20.413725ms] [job="ID:71, Type:create view, State:done, SchemaState:public, SchemaID:1, TableID:70, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:33.154 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:33.403 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 185, 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:38:33.154 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:33.457 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=71] [2024/05/06 16:38:33.458 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:33.459 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.320217346\n# Parse_time: 0\n# Compile_time: 0.004543428\n# Rewrite_time: 0.002600373\n# Optimize_time: 0\n# Wait_TS: 0.000062517\n# DB: mysql\n# Is_internal: true\n# Digest: 812c81f344f5d0c8b8aedcb68ff1dca865b59104853273f7e66b8abff5429992\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\nCREATE OR REPLACE VIEW mysql.tidb_mdl_view as ( select 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 );"] [2024/05/06 16:38:33.466 +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:38:33.511 +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:38:33.477 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:33.511 +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:38:33.477 +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:38:33.554 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 185, 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:38:33.477 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:33.623 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=35] [neededSchemaVersion=36] ["start time"=2.303687ms] [phyTblIDs="[72]"] [actionTypes="[8]"] [2024/05/06 16:38:33.668 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:33.668 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=73] [version=36] [2024/05/06 16:38:33.671 +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"=50.404836ms] [job="ID:73, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:72, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:33.477 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:33.701 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 185, 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:38:33.477 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:33.749 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=73] [2024/05/06 16:38:33.749 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:33.753 +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:38:33.796 +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:38:33.764 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:33.796 +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:38:33.764 +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:38:33.850 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 185, 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:38:33.764 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:33.897 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=36] [neededSchemaVersion=37] ["start time"=1.449705ms] [phyTblIDs="[74]"] [actionTypes="[8]"] [2024/05/06 16:38:33.919 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:33.919 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=75] [version=37] [2024/05/06 16:38:33.921 +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.887271ms] [job="ID:75, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:74, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:33.764 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:33.960 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 185, 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:38:33.764 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:33.997 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=75] [2024/05/06 16:38:33.998 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:34.003 +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:38:34.046 +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:38:34.013 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:34.046 +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:38:34.013 +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:38:34.109 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 185, 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:38:34.013 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:34.173 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=37] [neededSchemaVersion=38] ["start time"=1.865252ms] [phyTblIDs="[76]"] [actionTypes="[8]"] [2024/05/06 16:38:34.219 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:34.219 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=77] [version=38] [2024/05/06 16:38:34.221 +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"=50.779192ms] [job="ID:77, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:76, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:34.013 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:34.259 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 185, 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:38:34.013 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:34.298 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=77] [2024/05/06 16:38:34.298 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:34.311 +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:38:34.402 +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:38:34.322 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:34.402 +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:38:34.322 +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:38:34.451 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 185, 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:38:34.322 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:34.584 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=38] [neededSchemaVersion=39] ["start time"=2.609295ms] [phyTblIDs="[78]"] [actionTypes="[8]"] [2024/05/06 16:38:34.618 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:34.619 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=79] [version=39] [2024/05/06 16:38:34.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=39] ["take time"=38.514863ms] [job="ID:79, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:78, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:34.322 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:34.657 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 185, 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:38:34.322 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:34.731 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=79] [2024/05/06 16:38:34.731 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:34.732 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.42571479\n# Parse_time: 0\n# Compile_time: 0.00498803\n# Rewrite_time: 0.000013697\n# Optimize_time: 0\n# Wait_TS: 0.000082663\n# DB: mysql\n# Is_internal: true\n# Digest: a30bd3c3a49070c554e65922e84c6b76e646842e3925a859fcde73941a7cb423\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\nCREATE TABLE IF NOT EXISTS mysql.tidb_ttl_table_status ( table_id bigint(64) PRIMARY KEY, parent_table_id bigint(64), table_statistics text DEFAULT NULL, last_job_id varchar(64) DEFAULT NULL, last_job_start_time timestamp NULL DEFAULT NULL, last_job_finish_time timestamp NULL DEFAULT NULL, last_job_ttl_expire timestamp NULL DEFAULT NULL, last_job_summary text DEFAULT NULL, current_job_id varchar(64) DEFAULT NULL, current_job_owner_id varchar(64) DEFAULT NULL, current_job_owner_addr varchar(256) DEFAULT NULL, current_job_owner_hb_time timestamp, current_job_start_time timestamp NULL DEFAULT NULL, current_job_ttl_expire timestamp NULL DEFAULT NULL, current_job_state text DEFAULT NULL, current_job_status varchar(64) DEFAULT NULL, current_job_status_update_time timestamp NULL DEFAULT NULL);"] [2024/05/06 16:38:35.222 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 449572953059229696\n# Query_time: 0.334744013\n# Parse_time: 0\n# Compile_time: 0.167569099\n# Rewrite_time: 0.004285152\n# Optimize_time: 0\n# Wait_TS: 0.000073601\n# DB: mysql\n# Is_internal: true\n# Digest: ca2019e08a331284bd0c64be228a0537fcf9f5983e95d94b67ef42dcb8f54385\n# Num_cop_tasks: 0\n# Mem_max: 353081\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: true\n# IsSyncStatsFailed: false\n# Plan: tidb_decode_plan('pAPwPDAJMjdfMQkwCTAJTi9BCTAJdGltZToxNTQuMW1zLCBsb29wczoxLCBwcmVwYXJlOiB7dG90YWw6IDE5LjkBIkxhdXRvX2lkX2FsbG9jYXRvcjogewUMZF9jbnQ6IDEsIEdldDp7bnVtX3JwYzo0LCB0AUEAXwVouDMyMy42wrVzfSwgY29tbWl0X3R4bjoge3ByZXdyaXRlOjMwNy45wrVzLCBnZXRfESQQczoxMy4JFwkTGDozMzEuM8IBKBxzbG93ZXN0XxFDBXYEIHsFdWg6IDAuMDAwcywgcmVnaW9uX2lkOiAyLCBzdG8B2wUHCDEsIBmOGHByaW1hcnnWRAANZBhudW06MSwgBdAMX2tleSVPCQ4EYnkB4zgyfX19LCBpbnNlcnQ6MTMlejAJOTYuOCBLQglOL0EK')\n# Binary_plan: tidb_decode_binary_plan('sAPwgQqrAwoISW5zZXJ0XzE4AUABUgNOL0FaFXRpbWU6MTU0LjFtcywgbG9vcHM6MWLvAnByZXBhcmU6IHt0b3RhbDogMTkuOW1zLCBhdXRvX2lkX2FsbG9jYXRvcjoge2FsbG9jX2NudDogMSwgR2V0OntudW1fcnBjOjQsIHRvdGFsX3QBabgzMjMuNsK1c30sIGNvbW1pdF90eG46IHtwcmV3cml0ZTozMDcuOcK1cywgZ2V0XxEkEHM6MTMuCRcJExg6MzMxLjPCASgcc2xvd2VzdF8RQwxfcnBjGbZgMC4wMDBzLCByZWdpb25faWQ6IDIsIHN0bwHbBQcIMSwgGY4YcHJpbWFyedZEAA1kGG51bToxLCAF0BBfa2V5cxkOBGJ5AeM4Mn19fSwgaW5zZXJ0OjEzJXtAcLmGBnj///////////8BGAE=')\nINSERT HIGH_PRIORITY INTO mysql.GLOBAL_VARIABLES VALUES (\"innodb_status_output_locks\", \"OFF\"), (\"default_tmp_storage_engine\", \"InnoDB\"), (\"tidb_mem_quota_binding_cache\", \"67108864\"), (\"innodb_max_dirty_pages_pct_lwm\", \"0\"), (\"tidb_sysdate_is_now\", \"OFF\"), (\"innodb_flushing_avg_loops\", \"30\"), (\"tidb_opt_desc_factor\", \"3\"), (\"tidb_enable_prepared_plan_cache\", \"ON\"), (\"tidb_enable_noop_functions\", \"OFF\"), (\"tidb_auto_analyze_partition_batch_size\", \"1\"), (\"show_old_temporals\", \"OFF\"), (\"innodb_ft_enable_diag_print\", \"OFF\"), (\"disconnect_on_expired_password\", \"ON\"), (\"tidb_enable_table_partition\", \"ON\"), (\"executed_gtids_compression_period\", \"\"), (\"innodb_compression_pad_pct_max\", \"50\"), (\"tidb_hashagg_final_concurrency\", \"-1\"), (\"myisam_repair_threads\", \"1\"), (\"key_cache_division_limit\", \"100\"), (\"tidb_txn_mode\", \"pessimistic\"), (\"innodb_change_buffer_max_size\", \"25\"), (\"binlog_order_commits\", \"ON\"), (\"innodb_adaptive_hash_index\", \"ON\"), (\"low_priority_updates\", \"OFF\"), (\"tidb_gogc_tuner_threshold\", \"0.6\"), (\"tidb_enable_cascades_planner\", \"OFF\"), (\"tidb_persist_analyze_options\", \"ON\"), (\"innodb_commit_concurrency\", \"0\"), (\"tidb_max_paging_size\", \"50000\"), (\"tidb_default_string_match_selectivity\", \"0.8\"), (\"innodb_stats_on_metadata\", \"0\"), (\"secure_auth\", \"ON\"), (\"session_track_state_change\", \"\"), (\"tidb_remove_orderby_in_subquery\", \"OFF\"), (\"tidb_enable_metadata_lock\", \"ON\"), (\"innodb_buffer_pool_size\", \"134217728\"), (\"innodb_monitor_reset\", \"\"), (\"table_open_cache\", \"2000\"), (\"validate_password.length\", \"8\"), (\"max_connect_errors\", \"100\"), (\"ndb_eventbuffer_free_percent\", \"\"), (\"log_syslog_include_pid\", \"\"), (\"tidb_hash_exchange_with_new_collation\", \"ON\"), (\"innodb_stats_persistent\", \"ON\"), (\"tidb_init_chunk_size\", \"32\"), (\"innodb_api_bk_commit_interval\", \"5\"), (\"query_cache_type\", \"OFF\"), (\"tidb_query_log_max_len\", \"4096\"), (\"innodb_ft_server_stopword_table\", \"\"), (\"tidb_gc_life_time\", \"10m0s\"), (\"slave_checkpoint_period\", \"300\"), (\"innodb_buffer_pool_load_abort\", \"OFF\"), (\"ndb_join_pushdown\", \"\"), (\"innodb_sync_spin_loops\", \"30\"), (\"optimizer_trace_limit\", \"1\"), (\"query_cache_wlock_invalidate\", \"OFF\"), (\"tidb_opt_disk_factor\", \"1.5\"), (\"log_warnings\", \"1\"), (\"gtid_executed_compression_period\", \"\"), (\"tidb_capture_plan_baselines\", \"OFF\"), (\"innodb_max_purge_lag_delay\", \"0\"), (\"ndb_distribution\", \"\"), (\"innodb_old_blocks_pct\", \"37\"), (\"master_verify_checksum\", \"OFF\"), (\"sync_master_info\", \"10000\"), (\"tidb_enable_mutation_checker\", \"ON\"), (\"tidb_batch_pending_tiflash_count\", \"4000\"), (\"tidb_regard_null_as_point\", \"ON\"), (\"log_bin_trust_function_creators\", \"OFF\"), (\"innodb_adaptive_flushing\", \"ON\"), (\"tidb_opt_cpu_factor\", \"3\"), (\"tidb_enable_column_tracking\", \"OFF\"), (\"innodb_adaptive_max_sleep_delay\", \"150000\"), (\"innodb_ft_num_word_optimize\", \"2000\"), (\"tidb_sysproc_scan_concurrency\", \"1\"), (\"tidb_opt_seek_factor\", \"20\"), (\"tx_read_only\", \"OFF\"), (\"tidb_max_auto_analyze_time\", \"43200\"), (\"rpl_semi_sync_master_enabled\", \"OFF\"), (\"tidb_track_aggregate_memory_usage\", \"ON\"), (\"tidb_allow_fallback_to_tikv\", \"\"), (\"tidb_ttl_job_schedule_window_end_time\", \"23:59 +0000\"), (\"bulk_insert_buffer_size\", \"8388608\"), (\"rpl_semi_sync_master_timeout\", \"10000\"), (\"tidb_enable_index_merge\", \"ON\"), (\"show_compatibility_56\", \"\"), (\"tidb_prepared_plan_cache_memory_guard_ratio\", \"0.1\"), (\"tidb_enable_ordered_result_mode\", \"OFF\"), (\"tidb_enable_outer_join_reorder\", \"ON\"), (\"tidb_rc_write_check_ts\", \"OFF\"), (\"tidb_index_lookup_size\", \"20000\"), (\"tidb_source_id\", \"1\"), (\"innodb_log_checksum_algorithm\", \"\"), (\"tidb_index_join_batch_size\", \"25000\"), (\"tidb_opt_enable_hash_join\", \"ON\"), (\"innodb_stats_transient_sample_pages\", \"8\"), (\"foreign_key_checks\", \"OFF\"), (\"innodb_ft_result_cache_limit\", \"2000000000\"), (\"tidb_enable_1pc\", \"OFF\"), (\"ndb_blob_write_batch_bytes\", \"\"), (\"sql_auto_is_null\", \"OFF\"), (\"autocommit\", \"ON\"), (\"tidb_merge_join_concurrency\", \"1\"), (\"tidb_analyze_partition_concurrency\", \"1\"), (\"tidb_enable_paging\", \"ON\"), (\"tidb_gc_concurrency\", \"-1\"), (\"slave_max_allowed_packet\", \"1073741824\"), (\"ndb_index_stat_option\", \"\"), (\"slave_tran(len:21519);"] [2024/05/06 16:38:35.392 +08:00] [INFO] [bootstrap.go:529] ["bootstrap successful"] ["take time"=14.673976922s] [2024/05/06 16:38:35.393 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:38:35.394 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 187, tp add index"] ["take time"=31.778µs] [2024/05/06 16:38:35.394 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 188, tp add index"] ["take time"=28.709µs] [2024/05/06 16:38:35.394 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 189, tp add index"] ["take time"=18.518µs] [2024/05/06 16:38:35.394 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 190, tp add index"] ["take time"=18.083µs] [2024/05/06 16:38:35.394 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 191, tp add index"] ["take time"=17.05µs] [2024/05/06 16:38:35.394 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 192, tp add index"] ["take time"=16.888µs] [2024/05/06 16:38:35.394 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 193, tp add index"] ["take time"=18.391µs] [2024/05/06 16:38:35.394 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 194, tp add index"] ["take time"=18.309µs] [2024/05/06 16:38:35.394 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 195, tp add index"] ["take time"=16.632µs] [2024/05/06 16:38:35.394 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 186, tp add index"] ["take time"=19.234µs] [2024/05/06 16:38:35.394 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:38:35.394 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 185, tp general"] ["take time"=17.624µs] [2024/05/06 16:38:35.394 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 183, tp general"] ["take time"=5.977µs] [2024/05/06 16:38:35.395 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 184, tp add index"] ["take time"=2.216µs] [2024/05/06 16:38:35.395 +08:00] [INFO] [delete_range.go:148] ["[ddl] closing delRange"] [2024/05/06 16:38:35.395 +08:00] [INFO] [session_pool.go:94] ["[ddl] closing sessionPool"] [2024/05/06 16:38:35.401 +08:00] [INFO] [ddl.go:833] ["[ddl] DDL closed"] [ID=1d38a530-8f2f-4b13-8aa6-3d31ec6487bf] ["take time"=7.820921ms] [2024/05/06 16:38:35.401 +08:00] [INFO] [ddl.go:657] ["[ddl] stop DDL"] [ID=1d38a530-8f2f-4b13-8aa6-3d31ec6487bf] [2024/05/06 16:38:35.401 +08:00] [INFO] [domain.go:1156] ["closestReplicaReadCheckLoop exited."] [2024/05/06 16:38:35.401 +08:00] [INFO] [domain.go:574] ["topNSlowQueryLoop exited."] [2024/05/06 16:38:35.401 +08:00] [INFO] [domain.go:628] ["globalConfigSyncerKeeper exited."] [2024/05/06 16:38:35.401 +08:00] [INFO] [domain.go:792] ["loadSchemaInLoop exited."] [2024/05/06 16:38:35.401 +08:00] [INFO] [domain.go:603] ["infoSyncerKeeper exited."] [2024/05/06 16:38:35.401 +08:00] [INFO] [domain.go:651] ["topologySyncerKeeper exited."] [2024/05/06 16:38:35.402 +08:00] [INFO] [domain.go:920] ["domain closed"] ["take time"=8.266407ms] [2024/05/06 16:38:35.402 +08:00] [INFO] [tidb.go:77] ["new domain"] [store=de102d69-b237-49d0-8d6e-373c09aa9797] ["ddl lease"=500ms] ["stats lease"=-1ns] ["index usage sync lease"=0s] [2024/05/06 16:38:35.493 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=39] ["start time"=89.827486ms] [2024/05/06 16:38:35.498 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:38:35.498 +08:00] [INFO] [ddl.go:719] ["[ddl] start DDL"] [ID=5571bafb-ff41-4a9d-be67-0e81f207d098] [runWorker=true] [2024/05/06 16:38:35.498 +08:00] [INFO] [ddl.go:665] ["[ddl] start delRangeManager OK"] ["is a emulator"=true] [2024/05/06 16:38:35.499 +08:00] [INFO] [delete_range.go:158] ["[ddl] start delRange emulator"] [2024/05/06 16:38:35.499 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 196, tp general"] [2024/05/06 16:38:35.499 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 197, tp add index"] [2024/05/06 16:38:35.501 +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:38:35.502 +08:00] [INFO] [env.go:108] ["[ddl-ingest] the lightning sorted dir"] ["data path:"=/tmp/tidb/tmp_ddl-4000] [2024/05/06 16:38:35.502 +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:38:35.502 +08:00] [WARN] [domain.go:1120] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 16:38:35.526 +08:00] [WARN] [sysvar_cache.go:50] ["sysvar cache is empty, triggering rebuild"] [2024/05/06 16:38:35.682 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=98] [schemaVersion=39] [cur_db=test] [sql="drop table if exists t1"] [user=] [2024/05/06 16:38:35.683 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=98] [schemaVersion=39] [cur_db=test] [sql="drop table if exists t2"] [user=] [2024/05/06 16:38:35.685 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=98] [schemaVersion=39] [cur_db=test] [sql="drop table if exists t3"] [user=] [2024/05/06 16:38:35.687 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=98] [schemaVersion=39] [cur_db=test] [sql="create table t1(id int, v int, v2 int, primary key (id), unique key uk (v))"] [user=] [2024/05/06 16:38:35.715 +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:38:35.695 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="create table t1(id int, v int, v2 int, primary key (id), unique key uk (v))"] [2024/05/06 16:38:35.715 +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:38:35.695 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:36.543 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 198, 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:38:35.695 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:36.589 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=39] [neededSchemaVersion=40] ["start time"=1.076148ms] [phyTblIDs="[80]"] [actionTypes="[8]"] [2024/05/06 16:38:36.603 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=81] [version=40] [2024/05/06 16:38:36.604 +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"=16.492061ms] [job="ID:81, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:80, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:35.695 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:36.664 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 198, 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:38:35.695 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:36.696 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=81] [2024/05/06 16:38:36.696 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:36.697 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Conn_ID: 98\n# Query_time: 1.01175857\n# Parse_time: 0.000946171\n# Compile_time: 0.000683973\n# Rewrite_time: 0.000010878\n# Optimize_time: 0.000299287\n# Wait_TS: 0.000035722\n# DB: test\n# Is_internal: false\n# Digest: 4ab04afad6e634263e7785cdc42be3e9d31166c0412ae3fddb4d15c5c812bd4c\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 t1(id int, v int, v2 int, primary key (id), unique key uk (v));"] [2024/05/06 16:38:36.700 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=98] [schemaVersion=40] [cur_db=test] [sql="create table t2(id int, v int, unique key i1(v))"] [user=] [2024/05/06 16:38:36.730 +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:2, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:36.708 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:36.730 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:83, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:36.708 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="create table t2(id int, v int, unique key i1(v))"] [2024/05/06 16:38:36.778 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 198, tp general"] [job="ID:83, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:36.708 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:36.829 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=40] [neededSchemaVersion=41] ["start time"=1.039264ms] [phyTblIDs="[82]"] [actionTypes="[8]"] [2024/05/06 16:38:36.853 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=83] [version=41] [2024/05/06 16:38:36.855 +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"=27.02719ms] [job="ID:83, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:36.708 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:36.885 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 198, tp general"] [job="ID:83, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:36.708 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:36.914 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=83] [2024/05/06 16:38:36.914 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:36.917 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=98] [schemaVersion=41] [cur_db=test] [sql="create table t3(id int, v int, key i1(v))"] [user=] [2024/05/06 16:38:36.947 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:85, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:84, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:36.927 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:36.947 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:85, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:84, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:36.927 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="create table t3(id int, v int, key i1(v))"] [2024/05/06 16:38:36.996 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 198, tp general"] [job="ID:85, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:84, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:36.927 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:37.036 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=41] [neededSchemaVersion=42] ["start time"=1.047104ms] [phyTblIDs="[84]"] [actionTypes="[8]"] [2024/05/06 16:38:37.052 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=85] [version=42] [2024/05/06 16:38:37.054 +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"=20.336773ms] [job="ID:85, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:84, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:36.927 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:37.082 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 198, tp general"] [job="ID:85, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:84, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:36.927 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:37.109 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=85] [2024/05/06 16:38:37.109 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:37.130 +08:00] [WARN] [2pc.go:1900] ["schemaLeaseChecker is not set for this transaction"] [sessionID=98] [startTS=449572953687064576] [checkTS=449572953687326720] [2024/05/06 16:38:37.134 +08:00] [WARN] [2pc.go:1900] ["schemaLeaseChecker is not set for this transaction"] [sessionID=98] [startTS=449572953688113152] [checkTS=449572953688375296] [2024/05/06 16:38:37.505 +08:00] [INFO] [info.go:1114] [SetTiFlashGroupConfig] [2024/05/06 16:38:38.388 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:38:38.389 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 200, tp add index"] ["take time"=18.069µs] [2024/05/06 16:38:38.389 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 201, tp add index"] ["take time"=13.102µs] [2024/05/06 16:38:38.389 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 202, tp add index"] ["take time"=26.217µs] [2024/05/06 16:38:38.389 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 203, tp add index"] ["take time"=18.592µs] [2024/05/06 16:38:38.389 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 204, tp add index"] ["take time"=18.76µs] [2024/05/06 16:38:38.389 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 205, tp add index"] ["take time"=18.304µs] [2024/05/06 16:38:38.389 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 206, tp add index"] ["take time"=19.128µs] [2024/05/06 16:38:38.389 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 207, tp add index"] ["take time"=16.486µs] [2024/05/06 16:38:38.389 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 208, tp add index"] ["take time"=15.498µs] [2024/05/06 16:38:38.389 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 199, tp add index"] ["take time"=18.391µs] [2024/05/06 16:38:38.390 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:38:38.390 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 198, tp general"] ["take time"=15.813µs] [2024/05/06 16:38:38.390 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 196, tp general"] ["take time"=5.396µs] [2024/05/06 16:38:38.390 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 197, tp add index"] ["take time"=1.765µs] [2024/05/06 16:38:38.390 +08:00] [INFO] [delete_range.go:148] ["[ddl] closing delRange"] [2024/05/06 16:38:38.390 +08:00] [INFO] [session_pool.go:94] ["[ddl] closing sessionPool"] [2024/05/06 16:38:38.392 +08:00] [INFO] [ddl.go:833] ["[ddl] DDL closed"] [ID=5571bafb-ff41-4a9d-be67-0e81f207d098] ["take time"=3.229474ms] [2024/05/06 16:38:38.392 +08:00] [INFO] [ddl.go:657] ["[ddl] stop DDL"] [ID=5571bafb-ff41-4a9d-be67-0e81f207d098] [2024/05/06 16:38:38.392 +08:00] [INFO] [domain.go:574] ["topNSlowQueryLoop exited."] [2024/05/06 16:38:38.392 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:38:38.392 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:38:38.392 +08:00] [INFO] [domain.go:1525] ["globalBindHandleWorkerLoop exited."] [2024/05/06 16:38:38.392 +08:00] [INFO] [domain.go:1156] ["closestReplicaReadCheckLoop exited."] [2024/05/06 16:38:38.392 +08:00] [INFO] [domain.go:1394] ["loadPrivilegeInLoop exited."] [2024/05/06 16:38:38.392 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:38:38.392 +08:00] [INFO] [domain.go:628] ["globalConfigSyncerKeeper exited."] [2024/05/06 16:38:38.392 +08:00] [INFO] [domain.go:1748] ["dumpFileGcChecker exited."] [2024/05/06 16:38:38.392 +08:00] [INFO] [domain.go:792] ["loadSchemaInLoop exited."] [2024/05/06 16:38:38.392 +08:00] [INFO] [domain.go:603] ["infoSyncerKeeper exited."] [2024/05/06 16:38:38.392 +08:00] [INFO] [domain.go:1444] ["LoadSysVarCacheLoop exited."] [2024/05/06 16:38:38.392 +08:00] [INFO] [domain.go:651] ["topologySyncerKeeper exited."] [2024/05/06 16:38:38.392 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:38:38.392 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:38:38.392 +08:00] [INFO] [domain.go:1569] ["handleEvolvePlanTasksLoop exited."] [2024/05/06 16:38:38.396 +08:00] [INFO] [domain.go:920] ["domain closed"] ["take time"=7.280777ms] [2024/05/06 16:38:38.397 +08:00] [INFO] [db.go:567] ["Closing database"] [2024/05/06 16:38:38.397 +08:00] [INFO] [db.go:592] ["Memtable flushed"] [2024/05/06 16:38:38.397 +08:00] [INFO] [db.go:596] ["Compaction finished"] [2024/05/06 16:38:38.397 +08:00] [INFO] [db.go:615] ["BlobManager finished"] [2024/05/06 16:38:38.398 +08:00] [INFO] [db.go:619] ["ResourceManager finished"] [2024/05/06 16:38:38.398 +08:00] [INFO] [db.go:625] ["Waiting for closer"] --- PASS: TestTSOCmdCountForPrepareExecute (17.74s) === RUN TestEnterNewTxn [2024/05/06 16:38:38.412 +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:38:38.415 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:38:38.416 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:38:38.424 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:38:38.424 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:38:38.433 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:38:38.435 +08:00] [INFO] [tidb.go:77] ["new domain"] [store=c722d3d4-4ca6-4e2c-ae77-b187a9a4329b] ["ddl lease"=500ms] ["stats lease"=-1ns] ["index usage sync lease"=0s] [2024/05/06 16:38:38.436 +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/testkit.CreateMockStore\n\ttestkit/mockstore.go:61\nsessiontxn/sessiontxn_test_test.TestEnterNewTxn\n\tsessiontxn/txn_manager_test.go:40\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1446\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:38:38.457 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=0] ["start time"=20.08724ms] [2024/05/06 16:38:38.460 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:38:38.460 +08:00] [INFO] [ddl.go:719] ["[ddl] start DDL"] [ID=7385b195-57bc-4c52-b198-99b478be0fff] [runWorker=true] [2024/05/06 16:38:38.461 +08:00] [INFO] [ddl.go:665] ["[ddl] start delRangeManager OK"] ["is a emulator"=true] [2024/05/06 16:38:38.461 +08:00] [INFO] [delete_range.go:158] ["[ddl] start delRange emulator"] [2024/05/06 16:38:38.461 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 210, tp add index"] [2024/05/06 16:38:38.461 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 209, tp general"] [2024/05/06 16:38:38.461 +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:38:38.462 +08:00] [INFO] [env.go:108] ["[ddl-ingest] the lightning sorted dir"] ["data path:"=/tmp/tidb/tmp_ddl-4000] [2024/05/06 16:38:38.462 +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:38:38.462 +08:00] [WARN] [domain.go:1120] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 16:38:38.466 +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:38:38.487 +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:38:38.476 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:38.487 +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:38:38.476 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE DATABASE IF NOT EXISTS test"] [2024/05/06 16:38:38.713 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:38:38.963 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:38:39.213 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:38:39.462 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:38:39.508 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 211, 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:38:38.476 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:39.554 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=1] ["start time"=24.9515ms] [2024/05/06 16:38:39.557 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:38:39.613 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:39.613 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=3] [version=1] [2024/05/06 16:38:39.615 +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"=86.209057ms] [job="ID:3, Type:create schema, State:done, SchemaState:public, SchemaID:2, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 16:38:38.476 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:39.650 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 211, 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:38:38.476 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:39.668 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=3] [2024/05/06 16:38:39.668 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:39.669 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 1.203072076\n# Parse_time: 0\n# Compile_time: 0.000432028\n# Rewrite_time: 0.00000754\n# Optimize_time: 0\n# Wait_TS: 0.000065149\n# DB: mysql\n# Is_internal: true\n# Digest: 0a22979ad136f741465cf206b13e5717b9758dda34f7cae5a7a925f91711d6a0\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 mysql;\nCREATE DATABASE IF NOT EXISTS test;"] [2024/05/06 16:38:39.670 +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:38:39.706 +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:38:39.896 +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:38:39.721 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:39.896 +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:38:39.721 +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:38:39.941 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 211, 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:38:39.721 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:40.291 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=1] [neededSchemaVersion=2] ["start time"=9.595383ms] [phyTblIDs="[4]"] [actionTypes="[8]"] [2024/05/06 16:38:40.313 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:40.313 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=5] [version=2] [2024/05/06 16:38:40.314 +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"=32.651521ms] [job="ID:5, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:4, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:39.721 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:40.360 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 211, 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:38:39.721 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:40.462 +08:00] [INFO] [info.go:1114] [SetTiFlashGroupConfig] [2024/05/06 16:38:40.561 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=5] [2024/05/06 16:38:40.561 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:40.563 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.872813692\n# Parse_time: 0\n# Compile_time: 0.016255197\n# Rewrite_time: 0.000016269\n# Optimize_time: 0\n# Wait_TS: 0.000083411\n# DB: mysql\n# Is_internal: true\n# Digest: 14c6b489558060bdbede877927034270db5af07c6621aa28f87eeaec8727e925\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\nCREATE TABLE IF NOT EXISTS mysql.user ( Host CHAR(255), User CHAR(32), authentication_string TEXT, plugin CHAR(64), Select_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Insert_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Update_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Delete_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Drop_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Process_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Grant_priv ENUM('N','Y') NOT NULL DEFAULT 'N', References_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Show_db_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Super_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_tmp_table_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Lock_tables_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Execute_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Show_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Index_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_user_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Event_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Repl_slave_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Repl_client_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Trigger_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_role_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Drop_role_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Account_locked ENUM('N','Y') NOT NULL DEFAULT 'N', Shutdown_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Reload_priv ENUM('N','Y') NOT NULL DEFAULT 'N', FILE_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Config_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_Tablespace_Priv ENUM('N','Y') NOT NULL DEFAULT 'N', Password_reuse_history smallint unsigned DEFAULT NULL, Password_reuse_time smallint unsigned DEFAULT NULL, User_attributes json, Token_issuer VARCHAR(255), Password_expired ENUM('N','Y') NOT NULL DEFAULT 'N', Password_last_changed TIMESTAMP DEFAULT CURRENT_TIMESTAMP(), Password_lifetime SMALLINT UNSIGNED DEFAULT NULL, PRIMARY KEY (Host, User));"] [2024/05/06 16:38:40.566 +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:38:40.602 +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:38:40.576 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:40.602 +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:38:40.576 +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:38:40.647 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 211, 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:38:40.576 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:40.698 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=2] [neededSchemaVersion=3] ["start time"=1.440125ms] [phyTblIDs="[6]"] [actionTypes="[8]"] [2024/05/06 16:38:40.712 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:40.713 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=7] [version=3] [2024/05/06 16:38:40.715 +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"=18.226685ms] [job="ID:7, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:6, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:40.576 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:40.752 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 211, 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:38:40.576 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:40.808 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=7] [2024/05/06 16:38:40.808 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:40.812 +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:38:40.856 +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:38:40.822 +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:38:40.856 +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:38:40.822 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:40.915 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 211, 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:38:40.822 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:40.974 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=3] [neededSchemaVersion=4] ["start time"=1.574383ms] [phyTblIDs="[8]"] [actionTypes="[8]"] [2024/05/06 16:38:41.013 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:41.013 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=9] [version=4] [2024/05/06 16:38:41.015 +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"=44.861836ms] [job="ID:9, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:8, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:40.822 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:41.053 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 211, 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:38:40.822 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:41.090 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=9] [2024/05/06 16:38:41.090 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:41.108 +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:38:41.197 +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:38:41.119 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:41.197 +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:38:41.119 +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:38:41.246 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 211, 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:38:41.119 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:41.458 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=4] [neededSchemaVersion=5] ["start time"=3.802762ms] [phyTblIDs="[10]"] [actionTypes="[8]"] [2024/05/06 16:38:41.512 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:41.512 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=11] [version=5] [2024/05/06 16:38:41.515 +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"=60.878094ms] [job="ID:11, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:10, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:41.119 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:41.554 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 211, 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:38:41.119 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:41.648 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=11] [2024/05/06 16:38:41.648 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:41.649 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.548251284\n# Parse_time: 0\n# Compile_time: 0.00690275\n# Rewrite_time: 0.000012319\n# Optimize_time: 0\n# Wait_TS: 0.000074231\n# DB: mysql\n# Is_internal: true\n# Digest: aeaf612801484f0311f850d36f60f29e6d904828682c1f3bb7307dff25ca3a15\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\nCREATE TABLE IF NOT EXISTS mysql.db ( Host CHAR(255), DB CHAR(64), User CHAR(32), Select_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Insert_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Update_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Delete_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Drop_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Grant_priv ENUM('N','Y') NOT NULL DEFAULT 'N', References_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Index_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_tmp_table_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Lock_tables_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Show_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Execute_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Event_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Trigger_priv ENUM('N','Y') NOT NULL DEFAULT 'N', PRIMARY KEY (Host, DB, User));"] [2024/05/06 16:38:41.654 +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:38:41.703 +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:38:41.664 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:41.703 +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:38:41.664 +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:38:41.765 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 211, 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:38:41.664 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:41.852 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=5] [neededSchemaVersion=6] ["start time"=1.946517ms] [phyTblIDs="[12]"] [actionTypes="[8]"] [2024/05/06 16:38:41.863 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:41.863 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=13] [version=6] [2024/05/06 16:38:41.865 +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"=16.4768ms] [job="ID:13, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:12, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:41.664 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:41.899 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 211, 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:38:41.664 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:41.955 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=13] [2024/05/06 16:38:41.955 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:41.956 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.304074506\n# Parse_time: 0\n# Compile_time: 0.00199588\n# Rewrite_time: 0.000008354\n# Optimize_time: 0\n# Wait_TS: 0.0000529\n# DB: mysql\n# Is_internal: true\n# Digest: e8b37dad6cc7f05ee1f0be61455667495826928a93ddd09b94e02fbaed113955\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\nCREATE TABLE IF NOT EXISTS mysql.tables_priv ( Host CHAR(255), DB CHAR(64), User CHAR(32), Table_name CHAR(64), Grantor CHAR(77), Timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP, Table_priv SET('Select','Insert','Update','Delete','Create','Drop','Grant','Index','Alter','Create View','Show View','Trigger','References'), Column_priv SET('Select','Insert','Update','References'), PRIMARY KEY (Host, DB, User, Table_name));"] [2024/05/06 16:38:41.961 +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:38:42.009 +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:38:41.97 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:42.009 +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:38:41.97 +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:38:42.052 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 211, 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:38:41.97 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:42.136 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=6] [neededSchemaVersion=7] ["start time"=2.677798ms] [phyTblIDs="[14]"] [actionTypes="[8]"] [2024/05/06 16:38:42.162 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:42.163 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=15] [version=7] [2024/05/06 16:38:42.165 +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"=32.463909ms] [job="ID:15, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:14, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:41.97 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:42.204 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 211, 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:38:41.97 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:42.261 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=15] [2024/05/06 16:38:42.261 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:42.262 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.302762954\n# Parse_time: 0\n# Compile_time: 0.001628827\n# Rewrite_time: 0.00000786\n# Optimize_time: 0\n# Wait_TS: 0.00006836\n# DB: mysql\n# Is_internal: true\n# Digest: a19edbb3caff8cc57619278ab6eb5f791d7a821432309abe7184d0a7bca66b4d\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\nCREATE TABLE IF NOT EXISTS mysql.columns_priv( Host CHAR(255), DB CHAR(64), User CHAR(32), Table_name CHAR(64), Column_name CHAR(64), Timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP, Column_priv SET('Select','Insert','Update','References'), PRIMARY KEY (Host, DB, User, Table_name, Column_name));"] [2024/05/06 16:38:42.266 +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:38:42.300 +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:38:42.275 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:42.300 +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:38:42.275 +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:38:42.350 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 211, 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:38:42.275 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:42.390 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=7] [neededSchemaVersion=8] ["start time"=1.475991ms] [phyTblIDs="[16]"] [actionTypes="[8]"] [2024/05/06 16:38:42.412 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:42.412 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=17] [version=8] [2024/05/06 16:38:42.414 +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"=26.600615ms] [job="ID:17, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:16, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:42.275 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:42.452 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 211, 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:38:42.275 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:42.490 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=17] [2024/05/06 16:38:42.490 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:42.496 +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:38:42.541 +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:38:42.507 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:42.541 +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:38:42.507 +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:38:42.582 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 211, 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:38:42.507 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:42.651 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=8] [neededSchemaVersion=9] ["start time"=1.665935ms] [phyTblIDs="[18]"] [actionTypes="[8]"] [2024/05/06 16:38:42.662 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:42.662 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=19] [version=9] [2024/05/06 16:38:42.663 +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"=14.608191ms] [job="ID:19, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:18, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:42.507 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:42.698 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 211, 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:38:42.507 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:42.737 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=19] [2024/05/06 16:38:42.737 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:42.747 +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:38:42.798 +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:38:42.758 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:42.798 +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:38:42.758 +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:38:42.843 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 211, 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:38:42.758 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:42.911 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=9] [neededSchemaVersion=10] ["start time"=1.451078ms] [phyTblIDs="[20]"] [actionTypes="[8]"] [2024/05/06 16:38:42.963 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:42.963 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=21] [version=10] [2024/05/06 16:38:42.965 +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"=56.208429ms] [job="ID:21, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:20, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:42.758 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:43.000 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 211, 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:38:42.758 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:43.054 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=21] [2024/05/06 16:38:43.054 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:43.055 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.310923986\n# Parse_time: 0\n# Compile_time: 0.003131772\n# Rewrite_time: 0.00002377\n# Optimize_time: 0\n# Wait_TS: 0.000095677\n# DB: mysql\n# Is_internal: true\n# Digest: ca851971407336dad93908a9f88f01d828a4e18f332111987f4a7675bced7ea4\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\nCREATE TABLE IF NOT EXISTS mysql.help_topic ( help_topic_id INT(10) UNSIGNED NOT NULL, name CHAR(64) NOT NULL, help_category_id SMALLINT(5) UNSIGNED NOT NULL, description TEXT NOT NULL, example TEXT NOT NULL, url TEXT NOT NULL, PRIMARY KEY (help_topic_id) clustered, UNIQUE KEY name (name) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='help topics';"] [2024/05/06 16:38:43.061 +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:38:43.105 +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:38:43.072 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:43.105 +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:38:43.072 +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:38:43.152 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 211, 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:38:43.072 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:43.211 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=10] [neededSchemaVersion=11] ["start time"=1.471038ms] [phyTblIDs="[22]"] [actionTypes="[8]"] [2024/05/06 16:38:43.262 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:43.262 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=23] [version=11] [2024/05/06 16:38:43.263 +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"=54.270566ms] [job="ID:23, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:22, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:43.072 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:43.296 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 211, 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:38:43.072 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:43.353 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=23] [2024/05/06 16:38:43.353 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:43.363 +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:38:43.364 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(6291456) to MEDIUMBLOB"] [2024/05/06 16:38:43.425 +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:38:43.372 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:43.425 +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:38:43.372 +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:38:43.476 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 211, 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:38:43.372 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:43.626 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=11] [neededSchemaVersion=12] ["start time"=2.594613ms] [phyTblIDs="[24]"] [actionTypes="[8]"] [2024/05/06 16:38:43.663 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:43.663 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=25] [version=12] [2024/05/06 16:38:43.665 +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"=42.552812ms] [job="ID:25, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:24, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:43.372 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:43.695 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 211, 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:38:43.372 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:43.768 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=25] [2024/05/06 16:38:43.768 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:43.769 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.409254739\n# Parse_time: 0\n# Compile_time: 0.002804257\n# Rewrite_time: 0.000008133\n# Optimize_time: 0\n# Wait_TS: 0.000049345\n# DB: mysql\n# Is_internal: true\n# Digest: 7780c45a0aac5f123ac85a7e601e79c5d7779e7c09a19953908e547605ed45d2\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\nCREATE TABLE IF NOT EXISTS mysql.stats_histograms ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, distinct_count BIGINT(64) NOT NULL, null_count BIGINT(64) NOT NULL DEFAULT 0, tot_col_size BIGINT(64) NOT NULL DEFAULT 0, modify_count BIGINT(64) NOT NULL DEFAULT 0, version BIGINT(64) UNSIGNED NOT NULL DEFAULT 0, cm_sketch BLOB(6291456), stats_ver BIGINT(64) NOT NULL DEFAULT 0, flag BIGINT(64) NOT NULL DEFAULT 0, correlation DOUBLE NOT NULL DEFAULT 0, last_analyze_pos LONGBLOB DEFAULT NULL, UNIQUE INDEX tbl(table_id, is_index, hist_id) );"] [2024/05/06 16:38:43.777 +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:38:43.849 +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:38:43.788 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:43.849 +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:38:43.788 +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:38:43.897 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 211, 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:38:43.788 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:43.992 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=12] [neededSchemaVersion=13] ["start time"=2.003907ms] [phyTblIDs="[26]"] [actionTypes="[8]"] [2024/05/06 16:38:44.012 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:44.012 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=27] [version=13] [2024/05/06 16:38:44.014 +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"=24.168792ms] [job="ID:27, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:26, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:43.788 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:44.053 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 211, 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:38:43.788 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:44.115 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=27] [2024/05/06 16:38:44.115 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:44.116 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.342878446\n# Parse_time: 0\n# Compile_time: 0.003230882\n# Rewrite_time: 0.000010515\n# Optimize_time: 0\n# Wait_TS: 0.000059575\n# DB: mysql\n# Is_internal: true\n# Digest: 5615b5212342304015b027afb253371dae02f19e53871cfbb034deb145dfce32\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\nCREATE TABLE IF NOT EXISTS mysql.stats_buckets ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, bucket_id BIGINT(64) NOT NULL, count BIGINT(64) NOT NULL, repeats BIGINT(64) NOT NULL, upper_bound LONGBLOB NOT NULL, lower_bound LONGBLOB , ndv BIGINT NOT NULL DEFAULT 0, UNIQUE INDEX tbl(table_id, is_index, hist_id, bucket_id) );"] [2024/05/06 16:38:44.121 +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:38:44.167 +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:38:44.132 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:44.167 +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:38:44.132 +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:38:44.206 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 211, 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:38:44.132 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:44.292 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=13] [neededSchemaVersion=14] ["start time"=1.441642ms] [phyTblIDs="[28]"] [actionTypes="[8]"] [2024/05/06 16:38:44.313 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:44.313 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=29] [version=14] [2024/05/06 16:38:44.315 +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"=24.753655ms] [job="ID:29, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:28, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:44.132 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:44.351 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 211, 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:38:44.132 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:44.392 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=29] [2024/05/06 16:38:44.393 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:44.398 +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:38:44.446 +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:38:44.406 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:44.446 +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:38:44.406 +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:38:44.513 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 211, 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:38:44.406 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:44.588 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=14] [neededSchemaVersion=15] ["start time"=1.432793ms] [phyTblIDs="[30]"] [actionTypes="[8]"] [2024/05/06 16:38:44.612 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:44.612 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=31] [version=15] [2024/05/06 16:38:44.612 +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.191852ms] [job="ID:31, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:30, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:44.406 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:44.651 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 211, 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:38:44.406 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:44.703 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=31] [2024/05/06 16:38:44.703 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:44.704 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.308451981\n# Parse_time: 0\n# Compile_time: 0.001805165\n# Rewrite_time: 0.000014863\n# Optimize_time: 0\n# Wait_TS: 0.000058565\n# DB: mysql\n# Is_internal: true\n# Digest: 532cf71b38f2568975d61180716af7e2b05c9ca11023688224ed0c0eece42fa9\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\nCREATE TABLE IF NOT EXISTS mysql.gc_delete_range_done ( job_id BIGINT NOT NULL COMMENT \"the DDL job ID\", element_id BIGINT NOT NULL COMMENT \"the schema element ID\", start_key VARCHAR(255) NOT NULL COMMENT \"encoded in hex\", end_key VARCHAR(255) NOT NULL COMMENT \"encoded in hex\", ts BIGINT NOT NULL COMMENT \"timestamp in uint64\", UNIQUE KEY delete_range_done_index (job_id, element_id) );"] [2024/05/06 16:38:44.707 +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:38:44.748 +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:38:44.715 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:44.748 +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:38:44.715 +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:38:44.791 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 211, 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:38:44.715 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:44.849 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=15] [neededSchemaVersion=16] ["start time"=2.056854ms] [phyTblIDs="[32]"] [actionTypes="[8]"] [2024/05/06 16:38:44.862 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:44.862 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=33] [version=16] [2024/05/06 16:38:44.864 +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"=18.465162ms] [job="ID:33, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:32, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:44.715 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:44.904 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 211, 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:38:44.715 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:44.947 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=33] [2024/05/06 16:38:44.947 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:44.955 +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:38:45.002 +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:38:44.963 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:45.002 +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:38:44.963 +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:38:45.049 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 211, 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:38:44.963 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:45.105 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=16] [neededSchemaVersion=17] ["start time"=2.255856ms] [phyTblIDs="[34]"] [actionTypes="[8]"] [2024/05/06 16:38:45.162 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:45.163 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=35] [version=17] [2024/05/06 16:38:45.165 +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"=62.313242ms] [job="ID:35, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:34, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:44.963 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:45.199 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 211, 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:38:44.963 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:45.251 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=35] [2024/05/06 16:38:45.251 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:45.256 +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:38:45.292 +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:38:45.264 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:45.292 +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:38:45.264 +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:38:45.342 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 211, 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:38:45.264 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:45.434 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=17] [neededSchemaVersion=18] ["start time"=3.162398ms] [phyTblIDs="[36]"] [actionTypes="[8]"] [2024/05/06 16:38:45.462 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:45.462 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=37] [version=18] [2024/05/06 16:38:45.465 +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"=34.961077ms] [job="ID:37, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:36, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:45.264 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:45.551 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 211, 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:38:45.264 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:45.601 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=37] [2024/05/06 16:38:45.601 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:45.602 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.347691334\n# Parse_time: 0\n# Compile_time: 0.001784401\n# Rewrite_time: 0.000011108\n# Optimize_time: 0\n# Wait_TS: 0.000057073\n# DB: mysql\n# Is_internal: true\n# Digest: 9e6b544fb0287e9d8a74031560ed0cd6a5b4e54db073b893a68a76b05d929781\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\nCREATE TABLE IF NOT EXISTS mysql.default_roles ( HOST CHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '', USER CHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '', DEFAULT_ROLE_HOST CHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '%', DEFAULT_ROLE_USER CHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '', PRIMARY KEY (HOST,USER,DEFAULT_ROLE_HOST,DEFAULT_ROLE_USER) );"] [2024/05/06 16:38:45.610 +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:38:45.676 +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:38:45.62 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:45.676 +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:38:45.62 +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:38:45.716 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 211, 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:38:45.62 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:45.840 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=18] [neededSchemaVersion=19] ["start time"=3.528082ms] [phyTblIDs="[38]"] [actionTypes="[8]"] [2024/05/06 16:38:45.862 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:45.862 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=39] [version=19] [2024/05/06 16:38:45.864 +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"=28.925276ms] [job="ID:39, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:38, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:45.62 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:45.902 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 211, 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:38:45.62 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:45.985 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=39] [2024/05/06 16:38:45.985 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:45.986 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.378558691\n# Parse_time: 0\n# Compile_time: 0.002886542\n# Rewrite_time: 0.000009676\n# Optimize_time: 0\n# Wait_TS: 0.000058656\n# DB: mysql\n# Is_internal: true\n# Digest: 0a4bc55a9ab72ef62ddaa1ee6472d7872306066fd783a8bb67047a497fbb4dbe\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\nCREATE TABLE IF NOT EXISTS mysql.bind_info ( original_sql TEXT NOT NULL, bind_sql TEXT NOT NULL, default_db TEXT NOT NULL, status TEXT NOT NULL, create_time TIMESTAMP(3) NOT NULL, update_time TIMESTAMP(3) NOT NULL, charset TEXT NOT NULL, collation TEXT NOT NULL, source VARCHAR(10) NOT NULL DEFAULT 'unknown', sql_digest varchar(64), plan_digest varchar(64), INDEX sql_index(original_sql(700),default_db(68)) COMMENT \"accelerate the speed when add global binding query\", INDEX time_index(update_time) COMMENT \"accelerate the speed when querying with last update time\" ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;"] [2024/05/06 16:38:46.001 +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:38:46.046 +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:38:46.01 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:46.046 +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:38:46.01 +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:38:46.084 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 211, 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:38:46.01 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:46.165 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=19] [neededSchemaVersion=20] ["start time"=2.211069ms] [phyTblIDs="[40]"] [actionTypes="[8]"] [2024/05/06 16:38:46.213 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:46.213 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=41] [version=20] [2024/05/06 16:38:46.215 +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"=52.846584ms] [job="ID:41, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:40, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:46.01 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:46.256 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 211, 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:38:46.01 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:46.296 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=41] [2024/05/06 16:38:46.296 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:46.300 +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:38:46.340 +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:38:46.309 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:46.340 +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:38:46.309 +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:38:46.407 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 211, 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:38:46.309 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:46.460 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=20] [neededSchemaVersion=21] ["start time"=1.857885ms] [phyTblIDs="[42]"] [actionTypes="[8]"] [2024/05/06 16:38:46.513 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:46.513 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=43] [version=21] [2024/05/06 16:38:46.514 +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"=56.072894ms] [job="ID:43, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:42, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:46.309 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:46.552 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 211, 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:38:46.309 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:46.587 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=43] [2024/05/06 16:38:46.587 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:46.590 +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:38:46.619 +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:38:46.601 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:46.619 +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:38:46.601 +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:38:46.675 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 211, 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:38:46.601 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:46.707 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=21] [neededSchemaVersion=22] ["start time"=876.366µs] [phyTblIDs="[44]"] [actionTypes="[8]"] [2024/05/06 16:38:46.762 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:46.762 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=45] [version=22] [2024/05/06 16:38:46.764 +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"=58.365913ms] [job="ID:45, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:44, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:46.601 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:46.799 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 211, 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:38:46.601 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:46.832 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=45] [2024/05/06 16:38:46.832 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:46.842 +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:38:46.906 +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:38:46.85 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:46.906 +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:38:46.85 +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:38:46.954 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 211, 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:38:46.85 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:47.052 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=22] [neededSchemaVersion=23] ["start time"=2.244635ms] [phyTblIDs="[46]"] [actionTypes="[8]"] [2024/05/06 16:38:47.062 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:47.062 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=47] [version=23] [2024/05/06 16:38:47.064 +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"=14.937282ms] [job="ID:47, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:46, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:46.85 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:47.097 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 211, 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:38:46.85 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:47.153 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=47] [2024/05/06 16:38:47.153 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:47.154 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.313523391\n# Parse_time: 0\n# Compile_time: 0.001915593\n# Rewrite_time: 0.00000822\n# Optimize_time: 0\n# Wait_TS: 0.000059991\n# DB: mysql\n# Is_internal: true\n# Digest: bd2a0d9809689d30e22f8d82b29b4ee110d16cda3353b77d74a1938afb746386\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\nCREATE TABLE IF NOT EXISTS mysql.stats_extended ( name varchar(32) NOT NULL, type tinyint(4) NOT NULL, table_id bigint(64) NOT NULL, column_ids varchar(32) NOT NULL, stats blob DEFAULT NULL, version bigint(64) unsigned NOT NULL, status tinyint(4) NOT NULL, PRIMARY KEY(name, table_id), KEY idx_1 (table_id, status, version), KEY idx_2 (status, version) );"] [2024/05/06 16:38:47.156 +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:38:47.200 +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:38:47.164 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:47.200 +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:38:47.164 +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:38:47.246 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 211, 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:38:47.164 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:47.334 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=23] [neededSchemaVersion=24] ["start time"=2.328693ms] [phyTblIDs="[48]"] [actionTypes="[8]"] [2024/05/06 16:38:47.362 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:47.362 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=49] [version=24] [2024/05/06 16:38:47.363 +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.127844ms] [job="ID:49, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:48, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:47.164 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:47.412 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 211, 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:38:47.164 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:47.463 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=49] [2024/05/06 16:38:47.463 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:47.464 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.308935102\n# Parse_time: 0\n# Compile_time: 0.001223278\n# Rewrite_time: 0.000009042\n# Optimize_time: 0\n# Wait_TS: 0.00007298\n# DB: mysql\n# Is_internal: true\n# Digest: f72fffa4e6072164db3e01e2e29568b0b93c5045737047be527343b1737b0882\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\nCREATE TABLE IF NOT EXISTS mysql.schema_index_usage ( TABLE_ID bigint(64), INDEX_ID bigint(21), QUERY_COUNT bigint(64), ROWS_SELECTED bigint(64), LAST_USED_AT timestamp, PRIMARY KEY(TABLE_ID, INDEX_ID) );"] [2024/05/06 16:38:47.469 +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:38:47.512 +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:38:47.477 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:47.512 +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:38:47.477 +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:38:47.553 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 211, 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:38:47.477 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:47.637 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=24] [neededSchemaVersion=25] ["start time"=2.207135ms] [phyTblIDs="[50]"] [actionTypes="[8]"] [2024/05/06 16:38:47.663 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:47.663 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=51] [version=25] [2024/05/06 16:38:47.664 +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.237711ms] [job="ID:51, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:50, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:47.477 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:47.702 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 211, 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:38:47.477 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:47.748 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=51] [2024/05/06 16:38:47.748 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:47.753 +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:38:47.793 +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:38:47.761 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:47.793 +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:38:47.761 +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:38:47.842 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 211, 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:38:47.761 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:47.894 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=25] [neededSchemaVersion=26] ["start time"=1.357558ms] [phyTblIDs="[52]"] [actionTypes="[8]"] [2024/05/06 16:38:47.912 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:47.912 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=53] [version=26] [2024/05/06 16:38:47.913 +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"=20.750349ms] [job="ID:53, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:52, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:47.761 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:47.951 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 211, 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:38:47.761 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:47.990 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=53] [2024/05/06 16:38:47.990 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:47.994 +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:38:48.034 +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:38:48.001 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:48.035 +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:38:48.001 +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:38:48.075 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 211, 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:38:48.001 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:48.143 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=26] [neededSchemaVersion=27] ["start time"=1.827743ms] [phyTblIDs="[54]"] [actionTypes="[8]"] [2024/05/06 16:38:48.163 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:48.163 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=55] [version=27] [2024/05/06 16:38:48.165 +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.758979ms] [job="ID:55, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:54, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:48.001 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:48.199 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 211, 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:38:48.001 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:48.250 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=55] [2024/05/06 16:38:48.250 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:48.256 +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:38:48.323 +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:38:48.266 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:48.323 +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:38:48.266 +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:38:48.371 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 211, 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:38:48.266 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:48.429 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=27] [neededSchemaVersion=28] ["start time"=1.753886ms] [phyTblIDs="[56]"] [actionTypes="[8]"] [2024/05/06 16:38:48.462 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:48.462 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=57] [version=28] [2024/05/06 16:38:48.464 +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.138223ms] [job="ID:57, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:56, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:48.266 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:48.532 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 211, 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:38:48.266 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:48.580 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=57] [2024/05/06 16:38:48.580 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:48.582 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.327788142\n# Parse_time: 0\n# Compile_time: 0.001959483\n# Rewrite_time: 0.000011138\n# Optimize_time: 0\n# Wait_TS: 0.000079156\n# DB: mysql\n# Is_internal: true\n# Digest: 3a5634ff31bd7d32849c5404b7ffc419c7a7074307b815e5369eb6ca363cbcd0\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\nCREATE TABLE IF NOT EXISTS mysql.column_stats_usage ( table_id BIGINT(64) NOT NULL, column_id BIGINT(64) NOT NULL, last_used_at TIMESTAMP, last_analyzed_at TIMESTAMP, PRIMARY KEY (table_id, column_id) CLUSTERED );"] [2024/05/06 16:38:48.586 +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:38:48.619 +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:38:48.594 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:48.619 +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:38:48.594 +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:38:48.667 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 211, 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:38:48.594 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:48.724 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=28] [neededSchemaVersion=29] ["start time"=1.212194ms] [phyTblIDs="[58]"] [actionTypes="[8]"] [2024/05/06 16:38:48.763 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:48.763 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=59] [version=29] [2024/05/06 16:38:48.765 +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"=44.81529ms] [job="ID:59, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:58, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:48.594 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:48.800 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 211, 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:38:48.594 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:48.845 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=59] [2024/05/06 16:38:48.845 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:48.853 +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:38:48.854 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(19372) to MEDIUMBLOB"] [2024/05/06 16:38:48.905 +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:38:48.865 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:48.905 +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:38:48.865 +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:38:48.949 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 211, 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:38:48.865 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:49.022 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=29] [neededSchemaVersion=30] ["start time"=1.551533ms] [phyTblIDs="[60]"] [actionTypes="[8]"] [2024/05/06 16:38:49.063 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:49.063 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=61] [version=30] [2024/05/06 16:38:49.064 +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"=44.574242ms] [job="ID:61, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:60, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:48.865 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:49.094 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 211, 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:38:48.865 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:49.145 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=61] [2024/05/06 16:38:49.145 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:49.154 +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:38:49.210 +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:38:49.164 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:49.210 +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:38:49.164 +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:38:49.256 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 211, 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:38:49.164 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:49.354 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=30] [neededSchemaVersion=31] ["start time"=1.75787ms] [phyTblIDs="[62]"] [actionTypes="[8]"] [2024/05/06 16:38:49.413 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:49.413 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=63] [version=31] [2024/05/06 16:38:49.414 +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"=62.63364ms] [job="ID:63, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:62, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:49.164 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:49.451 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 211, 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:38:49.164 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:49.502 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=63] [2024/05/06 16:38:49.502 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:49.504 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.353537309\n# Parse_time: 0\n# Compile_time: 0.003509114\n# Rewrite_time: 0.000010713\n# Optimize_time: 0\n# Wait_TS: 0.000057082\n# DB: mysql\n# Is_internal: true\n# Digest: 11757f6de6b3d2a64e92f14cd7b7f739729563ede3b0139d016148eba0b27ebf\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\nCREATE TABLE IF NOT EXISTS mysql.stats_history ( table_id bigint(64) NOT NULL, stats_data longblob NOT NULL, seq_no bigint(64) NOT NULL comment 'sequence number of the gzipped data slice', version bigint(64) NOT NULL comment 'stats version which corresponding to stats:version in EXPLAIN', create_time datetime(6) NOT NULL, UNIQUE KEY table_version_seq (table_id, version, seq_no), KEY table_create_time (table_id, create_time, seq_no) );"] [2024/05/06 16:38:49.510 +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:38:49.562 +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:38:49.522 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:49.562 +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:38:49.522 +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:38:49.597 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 211, 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:38:49.522 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:49.675 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=31] [neededSchemaVersion=32] ["start time"=2.444281ms] [phyTblIDs="[64]"] [actionTypes="[8]"] [2024/05/06 16:38:49.713 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:49.713 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=65] [version=32] [2024/05/06 16:38:49.714 +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"=42.108159ms] [job="ID:65, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:64, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:49.522 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:49.754 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 211, 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:38:49.522 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:49.796 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=65] [2024/05/06 16:38:49.796 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:49.806 +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:38:49.879 +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:38:49.817 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:49.879 +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:38:49.817 +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:38:49.918 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 211, 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:38:49.817 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:50.017 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=32] [neededSchemaVersion=33] ["start time"=2.560112ms] [phyTblIDs="[66]"] [actionTypes="[8]"] [2024/05/06 16:38:50.062 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:50.063 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=67] [version=33] [2024/05/06 16:38:50.065 +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"=50.447482ms] [job="ID:67, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:66, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:49.817 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:50.100 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 211, 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:38:49.817 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:50.185 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=67] [2024/05/06 16:38:50.186 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:50.187 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.384583873\n# Parse_time: 0\n# Compile_time: 0.003060014\n# Rewrite_time: 0.000009128\n# Optimize_time: 0\n# Wait_TS: 0.000071248\n# DB: mysql\n# Is_internal: true\n# Digest: bfb9a3ff60c3c60c054a207c0a0db06c87e29edbe94005d8d5c89fe484f4f90a\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\nCREATE TABLE IF NOT EXISTS mysql.analyze_jobs ( id BIGINT(64) UNSIGNED NOT NULL AUTO_INCREMENT, update_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, table_schema CHAR(64) NOT NULL DEFAULT '', table_name CHAR(64) NOT NULL DEFAULT '', partition_name CHAR(64) NOT NULL DEFAULT '', job_info TEXT NOT NULL, processed_rows BIGINT(64) UNSIGNED NOT NULL DEFAULT 0, start_time TIMESTAMP, end_time TIMESTAMP, state ENUM('pending', 'running', 'finished', 'failed') NOT NULL, fail_reason TEXT, instance VARCHAR(512) NOT NULL comment 'address of the TiDB instance executing the analyze job', process_id BIGINT(64) UNSIGNED comment 'ID of the process executing the analyze job', PRIMARY KEY (id), KEY (update_time) );"] [2024/05/06 16:38:50.190 +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:38:50.226 +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:38:50.2 +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:38:50.226 +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:38:50.2 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:50.273 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 211, 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:38:50.2 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:50.312 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=33] [neededSchemaVersion=34] ["start time"=1.49573ms] [phyTblIDs="[68]"] [actionTypes="[8]"] [2024/05/06 16:38:50.363 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:50.363 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=69] [version=34] [2024/05/06 16:38:50.365 +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"=54.488423ms] [job="ID:69, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:68, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:50.2 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:50.396 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 211, 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:38:50.2 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:50.426 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=69] [2024/05/06 16:38:50.426 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:50.490 +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:38:50.447 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:50.490 +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:38:50.447 +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:38:50.561 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 211, 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:38:50.447 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:50.630 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=34] [neededSchemaVersion=35] ["start time"=2.530068ms] [phyTblIDs="[70]"] [actionTypes="[2097152]"] [2024/05/06 16:38:50.662 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:50.662 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=71] [version=35] [2024/05/06 16:38:50.663 +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"=36.454805ms] [job="ID:71, Type:create view, State:done, SchemaState:public, SchemaID:1, TableID:70, RowCount:0, ArgLen:3, start time: 2024-05-06 16:38:50.447 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:50.694 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 211, 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:38:50.447 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:50.747 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=71] [2024/05/06 16:38:50.748 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:50.749 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.317021386\n# Parse_time: 0\n# Compile_time: 0.006555682\n# Rewrite_time: 0.003640191\n# Optimize_time: 0\n# Wait_TS: 0.000064285\n# DB: mysql\n# Is_internal: true\n# Digest: 812c81f344f5d0c8b8aedcb68ff1dca865b59104853273f7e66b8abff5429992\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\nCREATE OR REPLACE VIEW mysql.tidb_mdl_view as ( select 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 );"] [2024/05/06 16:38:50.755 +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:38:50.799 +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:38:50.765 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:50.799 +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:38:50.765 +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:38:50.843 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 211, 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:38:50.765 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:50.921 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=35] [neededSchemaVersion=36] ["start time"=1.747078ms] [phyTblIDs="[72]"] [actionTypes="[8]"] [2024/05/06 16:38:50.963 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:50.963 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=73] [version=36] [2024/05/06 16:38:50.965 +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"=46.226196ms] [job="ID:73, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:72, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:50.765 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:50.997 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 211, 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:38:50.765 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:51.041 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=73] [2024/05/06 16:38:51.042 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:51.047 +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:38:51.111 +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:38:51.058 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:51.111 +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:38:51.058 +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:38:51.160 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 211, 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:38:51.058 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:51.224 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=36] [neededSchemaVersion=37] ["start time"=1.240162ms] [phyTblIDs="[74]"] [actionTypes="[8]"] [2024/05/06 16:38:51.262 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:51.262 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=75] [version=37] [2024/05/06 16:38:51.263 +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"=48.31814ms] [job="ID:75, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:74, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:51.058 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:51.291 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 211, 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:38:51.058 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:51.333 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=75] [2024/05/06 16:38:51.333 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:51.338 +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:38:51.372 +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:38:51.347 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:51.372 +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:38:51.347 +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:38:51.413 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 211, 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:38:51.347 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:51.477 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=37] [neededSchemaVersion=38] ["start time"=1.36178ms] [phyTblIDs="[76]"] [actionTypes="[8]"] [2024/05/06 16:38:51.513 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:51.513 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=77] [version=38] [2024/05/06 16:38:51.513 +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.182202ms] [job="ID:77, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:76, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:51.347 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:51.548 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 211, 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:38:51.347 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:51.585 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=77] [2024/05/06 16:38:51.585 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:51.596 +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:38:51.684 +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:38:51.603 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:51.684 +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:38:51.603 +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:38:51.731 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 211, 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:38:51.603 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:51.866 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=38] [neededSchemaVersion=39] ["start time"=2.488806ms] [phyTblIDs="[78]"] [actionTypes="[8]"] [2024/05/06 16:38:51.912 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:51.912 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=79] [version=39] [2024/05/06 16:38:51.914 +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"=50.818971ms] [job="ID:79, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:78, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:51.603 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:51.951 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 211, 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:38:51.603 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:52.079 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=79] [2024/05/06 16:38:52.080 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:52.081 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.488426091\n# Parse_time: 0\n# Compile_time: 0.002986196\n# Rewrite_time: 0.00000766\n# Optimize_time: 0\n# Wait_TS: 0.000050875\n# DB: mysql\n# Is_internal: true\n# Digest: a30bd3c3a49070c554e65922e84c6b76e646842e3925a859fcde73941a7cb423\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\nCREATE TABLE IF NOT EXISTS mysql.tidb_ttl_table_status ( table_id bigint(64) PRIMARY KEY, parent_table_id bigint(64), table_statistics text DEFAULT NULL, last_job_id varchar(64) DEFAULT NULL, last_job_start_time timestamp NULL DEFAULT NULL, last_job_finish_time timestamp NULL DEFAULT NULL, last_job_ttl_expire timestamp NULL DEFAULT NULL, last_job_summary text DEFAULT NULL, current_job_id varchar(64) DEFAULT NULL, current_job_owner_id varchar(64) DEFAULT NULL, current_job_owner_addr varchar(256) DEFAULT NULL, current_job_owner_hb_time timestamp, current_job_start_time timestamp NULL DEFAULT NULL, current_job_ttl_expire timestamp NULL DEFAULT NULL, current_job_state text DEFAULT NULL, current_job_status varchar(64) DEFAULT NULL, current_job_status_update_time timestamp NULL DEFAULT NULL);"] [2024/05/06 16:38:52.544 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 449572957607165952\n# Query_time: 0.311648715\n# Parse_time: 0\n# Compile_time: 0.143013542\n# Rewrite_time: 0.003635732\n# Optimize_time: 0\n# Wait_TS: 0.000081723\n# DB: mysql\n# Is_internal: true\n# Digest: ca2019e08a331284bd0c64be228a0537fcf9f5983e95d94b67ef42dcb8f54385\n# Num_cop_tasks: 0\n# Mem_max: 354227\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: true\n# IsSyncStatsFailed: false\n# Plan: tidb_decode_plan('pAPwPDAJMjdfMQkwCTAJTi9BCTAJdGltZToxNTUuNm1zLCBsb29wczoxLCBwcmVwYXJlOiB7dG90YWw6IDE5LjMBIkxhdXRvX2lkX2FsbG9jYXRvcjogewUMZF9jbnQ6IDEsIEdldDp7bnVtX3JwYzo0LCB0AUEAXwVouDI3MC4xwrVzfSwgY29tbWl0X3R4bjoge3ByZXdyaXRlOjI1OC43wrVzLCBnZXRfESQYczo5Ljk2wgEXCRMUOjMxNi40BREcc2xvd2VzdF8RQwV2BCB7BXVoOiAwLjAwMHMsIHJlZ2lvbl9pZDogMiwgc3RvAdsFBwgxLCAZjhhwcmltYXJ51kQADWQYbnVtOjEsIAXQDF9rZXklTwkOmGJ5dGU6MzJ9fX0sIGluc2VydDoxMzYuMm1zCTk3LjkgS0IJTi9BCg==')\n# Binary_plan: tidb_decode_binary_plan('sAPwgQqrAwoISW5zZXJ0XzE4AUABUgNOL0FaFXRpbWU6MTU1LjZtcywgbG9vcHM6MWLvAnByZXBhcmU6IHt0b3RhbDogMTkuM21zLCBhdXRvX2lkX2FsbG9jYXRvcjoge2FsbG9jX2NudDogMSwgR2V0OntudW1fcnBjOjQsIHRvdGFsX3QBabgyNzAuMcK1c30sIGNvbW1pdF90eG46IHtwcmV3cml0ZToyNTguN8K1cywgZ2V0XxEkGHM6OS45NsIBFwkTFDozMTYuNAURHHNsb3dlc3RfEUMMX3JwYxm2YDAuMDAwcywgcmVnaW9uX2lkOiAyLCBzdG8B2wUHCDEsIBmOGHByaW1hcnnWRAANZBhudW06MSwgBdAQX2tleXMZDqhieXRlOjMyfX19LCBpbnNlcnQ6MTM2LjJtc3CzjwZ4////////////ARgB')\nINSERT HIGH_PRIORITY INTO mysql.GLOBAL_VARIABLES VALUES (\"innodb_checksum_algorithm\", \"innodb\"), (\"key_cache_age_threshold\", \"300\"), (\"innodb_flush_neighbors\", \"1\"), (\"ndb_log_updated_only\", \"\"), (\"tidb_enable_telemetry\", \"OFF\"), (\"tidb_prepared_plan_cache_size\", \"100\"), (\"tidb_opt_advanced_join_hint\", \"OFF\"), (\"rpl_semi_sync_master_wait_no_slave\", \"ON\"), (\"rewriter_enabled\", \"\"), (\"optimizer_trace_max_mem_size\", \"16384\"), (\"default_storage_engine\", \"InnoDB\"), (\"query_prealloc_size\", \"8192\"), (\"preload_buffer_size\", \"32768\"), (\"session_track_schema\", \"\"), (\"tidb_backoff_lock_fast\", \"10\"), (\"transaction_alloc_block_size\", \"8192\"), (\"innodb_flushing_avg_loops\", \"30\"), (\"tidb_gc_concurrency\", \"-1\"), (\"big_tables\", \"OFF\"), (\"tidb_backoff_weight\", \"2\"), (\"innodb_flush_log_at_trx_commit\", \"1\"), (\"tiflash_fastscan\", \"OFF\"), (\"rpl_semi_sync_master_wait_for_slave_count\", \"1\"), (\"query_cache_wlock_invalidate\", \"OFF\"), (\"tidb_capture_plan_baselines\", \"OFF\"), (\"tidb_gc_max_wait_time\", \"86400\"), (\"tidb_table_cache_lease\", \"3\"), (\"profiling\", \"OFF\"), (\"innodb_disable_sort_file_cache\", \"0\"), (\"tidb_enable_noop_variables\", \"ON\"), (\"binlog_checksum\", \"CRC32\"), (\"tidb_max_chunk_size\", \"1024\"), (\"tidb_enable_1pc\", \"OFF\"), (\"innodb_lock_wait_timeout\", \"50\"), (\"ft_boolean_syntax\", \"+ -><()~*:\\\"\\\"&|\"), (\"tidb_opt_limit_push_down_threshold\", \"100\"), (\"innodb_online_alter_log_max_size\", \"134217728\"), (\"tidb_placement_mode\", \"STRICT\"), (\"delayed_queue_size\", \"1000\"), (\"tidb_gogc_tuner_threshold\", \"0.6\"), (\"require_secure_transport\", \"OFF\"), (\"tidb_txn_commit_batch_size\", \"16384\"), (\"sql_log_bin\", \"ON\"), (\"show_old_temporals\", \"OFF\"), (\"binlog_rows_query_log_events\", \"OFF\"), (\"tidb_gc_enable\", \"ON\"), (\"innodb_file_format_max\", \"Antelope\"), (\"default_password_lifetime\", \"0\"), (\"collation_server\", \"utf8mb4_bin\"), (\"transaction_prealloc_size\", \"4096\"), (\"lc_messages\", \"en_US\"), (\"min_examined_row_limit\", \"0\"), (\"tidb_gc_run_interval\", \"10m0s\"), (\"max_binlog_cache_size\", \"18446744073709547520\"), (\"innodb_commit_concurrency\", \"0\"), (\"tidb_dml_batch_size\", \"0\"), (\"local_infile\", \"ON\"), (\"optimizer_search_depth\", \"62\"), (\"tidb_merge_partition_stats_concurrency\", \"1\"), (\"net_write_timeout\", \"60\"), (\"slave_compressed_protocol\", \"OFF\"), (\"master_info_repository\", \"FILE\"), (\"net_buffer_length\", \"16384\"), (\"tidb_committer_concurrency\", \"128\"), (\"tidb_ddl_enable_fast_reorg\", \"ON\"), (\"auto_increment_increment\", \"1\"), (\"optimizer_trace\", \"enabled=off,one_line=off\"), (\"innodb_stats_persistent\", \"ON\"), (\"max_binlog_size\", \"1073741824\"), (\"tidb_streamagg_concurrency\", \"1\"), (\"innodb_sync_spin_loops\", \"30\"), (\"tidb_regard_null_as_point\", \"ON\"), (\"foreign_key_checks\", \"OFF\"), (\"tidb_index_merge_intersection_concurrency\", \"-1\"), (\"innodb_status_output\", \"OFF\"), (\"tidb_opt_insubq_to_join_and_agg\", \"ON\"), (\"innodb_file_format\", \"Barracuda\"), (\"innodb_status_output_locks\", \"OFF\"), (\"innodb_old_blocks_pct\", \"37\"), (\"tidb_txn_mode\", \"pessimistic\"), (\"ndb_log_binlog_index\", \"\"), (\"myisam_use_mmap\", \"OFF\"), (\"tidb_init_chunk_size\", \"32\"), (\"tidb_enable_column_tracking\", \"OFF\"), (\"end_markers_in_json\", \"OFF\"), (\"net_read_timeout\", \"30\"), (\"tidb_opt_correlation_exp_factor\", \"1\"), (\"group_concat_max_len\", \"1024\"), (\"tidb_enable_mutation_checker\", \"ON\"), (\"max_relay_log_size\", \"0\"), (\"event_scheduler\", \"OFF\"), (\"tidb_enable_batch_dml\", \"OFF\"), (\"query_alloc_block_size\", \"8192\"), (\"tidb_enable_new_only_full_group_by_check\", \"OFF\"), (\"tidb_index_lookup_join_concurrency\", \"-1\"), (\"tidb_general_plan_cache_size\", \"100\"), (\"tidb_query_log_max_len\", \"4096\"), (\"ndb_optimization_delay\", \"\"), (\"eq_range_index_dive_limit\", \"200\"), (\"binlog_format\", \"STATEMENT\"), (\"character_set_database\", \"utf8mb4\"), (\"tidb_enable_legacy_instance_scope\", \"ON\"), (\"host_cache_size\", \"279\"), (\"tidb_enable_paging\", \"ON\"), (\"tidb_redact_log\", \"OFF\"), (\"innodb_io_capacity_max\", \"2000\"), (\"tidb_ttl_scan_batch_size\", \"500\"), (\"tidb_multi_statement_mode\", \"OFF\"), (\"tidb_server_memory_limit\", \"80%\"), (\"tidb_skip_ascii_check\", \"OFF\"), (\"init_slave\", \"\"), (\"tidb_enable_clustered_index\", \"ON\"), (\"innodb_stats_auto_rec(len:21519);"] [2024/05/06 16:38:52.691 +08:00] [INFO] [bootstrap.go:529] ["bootstrap successful"] ["take time"=14.228550844s] [2024/05/06 16:38:52.692 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:38:52.692 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 213, tp add index"] ["take time"=20.399µs] [2024/05/06 16:38:52.692 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 214, tp add index"] ["take time"=18.027µs] [2024/05/06 16:38:52.692 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 215, tp add index"] ["take time"=24.36µs] [2024/05/06 16:38:52.692 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 216, tp add index"] ["take time"=19.177µs] [2024/05/06 16:38:52.692 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 217, tp add index"] ["take time"=16.93µs] [2024/05/06 16:38:52.692 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 218, tp add index"] ["take time"=17.074µs] [2024/05/06 16:38:52.692 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 219, tp add index"] ["take time"=19.274µs] [2024/05/06 16:38:52.693 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 220, tp add index"] ["take time"=21.294µs] [2024/05/06 16:38:52.693 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 221, tp add index"] ["take time"=17.932µs] [2024/05/06 16:38:52.693 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 212, tp add index"] ["take time"=17.002µs] [2024/05/06 16:38:52.693 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:38:52.693 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 211, tp general"] ["take time"=3.352µs] [2024/05/06 16:38:52.693 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 210, tp add index"] ["take time"=1.702µs] [2024/05/06 16:38:52.693 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 209, tp general"] ["take time"=1.596µs] [2024/05/06 16:38:52.693 +08:00] [INFO] [delete_range.go:148] ["[ddl] closing delRange"] [2024/05/06 16:38:52.693 +08:00] [INFO] [session_pool.go:94] ["[ddl] closing sessionPool"] [2024/05/06 16:38:52.700 +08:00] [INFO] [ddl.go:833] ["[ddl] DDL closed"] [ID=7385b195-57bc-4c52-b198-99b478be0fff] ["take time"=8.726681ms] [2024/05/06 16:38:52.701 +08:00] [INFO] [ddl.go:657] ["[ddl] stop DDL"] [ID=7385b195-57bc-4c52-b198-99b478be0fff] [2024/05/06 16:38:52.701 +08:00] [INFO] [domain.go:1156] ["closestReplicaReadCheckLoop exited."] [2024/05/06 16:38:52.701 +08:00] [INFO] [domain.go:792] ["loadSchemaInLoop exited."] [2024/05/06 16:38:52.701 +08:00] [INFO] [domain.go:574] ["topNSlowQueryLoop exited."] [2024/05/06 16:38:52.701 +08:00] [INFO] [domain.go:651] ["topologySyncerKeeper exited."] [2024/05/06 16:38:52.701 +08:00] [INFO] [domain.go:603] ["infoSyncerKeeper exited."] [2024/05/06 16:38:52.701 +08:00] [INFO] [domain.go:628] ["globalConfigSyncerKeeper exited."] [2024/05/06 16:38:52.701 +08:00] [INFO] [domain.go:920] ["domain closed"] ["take time"=9.211983ms] [2024/05/06 16:38:52.701 +08:00] [INFO] [tidb.go:77] ["new domain"] [store=c722d3d4-4ca6-4e2c-ae77-b187a9a4329b] ["ddl lease"=500ms] ["stats lease"=-1ns] ["index usage sync lease"=0s] [2024/05/06 16:38:52.782 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=39] ["start time"=79.011302ms] [2024/05/06 16:38:52.785 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:38:52.785 +08:00] [INFO] [ddl.go:719] ["[ddl] start DDL"] [ID=d43f2e91-7661-4fd7-8a31-27bcfd2d7480] [runWorker=true] [2024/05/06 16:38:52.787 +08:00] [INFO] [ddl.go:665] ["[ddl] start delRangeManager OK"] ["is a emulator"=true] [2024/05/06 16:38:52.787 +08:00] [INFO] [delete_range.go:158] ["[ddl] start delRange emulator"] [2024/05/06 16:38:52.787 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 222, tp general"] [2024/05/06 16:38:52.787 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 223, tp add index"] [2024/05/06 16:38:52.789 +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:38:52.789 +08:00] [INFO] [env.go:108] ["[ddl-ingest] the lightning sorted dir"] ["data path:"=/tmp/tidb/tmp_ddl-4000] [2024/05/06 16:38:52.790 +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:38:52.790 +08:00] [WARN] [domain.go:1120] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 16:38:52.812 +08:00] [WARN] [sysvar_cache.go:50] ["sysvar cache is empty, triggering rebuild"] [2024/05/06 16:38:52.997 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=99] [schemaVersion=39] [cur_db=test] [sql="create temporary table tmp(a int)"] [user=] [2024/05/06 16:38:52.999 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=99] [schemaVersion=39] [cur_db=test] [sql="create table t1(id int primary key)"] [user=] [2024/05/06 16:38:53.024 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:82, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:81, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:53.008 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="create table t1(id int primary key)"] [2024/05/06 16:38:53.024 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:82, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:81, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:53.008 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:53.828 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 224, tp general"] [job="ID:82, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:81, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:53.008 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:53.869 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=39] [neededSchemaVersion=40] ["start time"=821.76µs] [phyTblIDs="[81]"] [actionTypes="[8]"] [2024/05/06 16:38:53.891 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=82] [version=40] [2024/05/06 16:38:53.892 +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"=24.368499ms] [job="ID:82, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:81, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:53.008 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:53.926 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 224, tp general"] [job="ID:82, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:81, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:53.008 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:53.956 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=82] [2024/05/06 16:38:53.956 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:53.957 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Conn_ID: 99\n# Query_time: 0.958633283\n# Parse_time: 0.000387156\n# Compile_time: 0.000466977\n# Rewrite_time: 0.000006513\n# Optimize_time: 0.000310849\n# Wait_TS: 0.00004489\n# DB: test\n# Is_internal: false\n# Digest: 6e525264694a69c4de5512730dafc83a7b8d834d3845ad231232af16d65a7875\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 t1(id int primary key);"] [2024/05/06 16:38:53.961 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=99] [schemaVersion=40] [cur_db=test] [sql="create table t2(id int primary key)"] [user=] [2024/05/06 16:38:53.961 +08:00] [INFO] [txn.go:55] ["Try to create a new txn inside a transaction auto commit"] [schemaVersion=40] [txnStartTS=449572958098948096] [txnScope=global] [2024/05/06 16:38:53.985 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:84, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:83, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:53.969 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="create table t2(id int primary key)"] [2024/05/06 16:38:53.985 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:84, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:83, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:53.969 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:54.043 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 224, tp general"] [job="ID:84, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:83, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:53.969 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:54.074 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=40] [neededSchemaVersion=41] ["start time"=795.067µs] [phyTblIDs="[83]"] [actionTypes="[8]"] [2024/05/06 16:38:54.090 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=84] [version=41] [2024/05/06 16:38:54.091 +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"=18.323272ms] [job="ID:84, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:83, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:53.969 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:54.121 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 224, tp general"] [job="ID:84, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:83, RowCount:0, ArgLen:0, start time: 2024-05-06 16:38:53.969 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:54.145 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=84] [2024/05/06 16:38:54.145 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] === RUN TestEnterNewTxn/EnterNewTxnDefault === RUN TestEnterNewTxn/EnterNewTxnDefault#01 === RUN TestEnterNewTxn/EnterNewTxnWithBeginStmt_simple === RUN TestEnterNewTxn/EnterNewTxnWithBeginStmt_with_tidb_txn_mode=pessimistic === RUN TestEnterNewTxn/EnterNewTxnWithBeginStmt_with_tidb_txn_mode=pessimistic;begin_optimistic === RUN TestEnterNewTxn/EnterNewTxnWithBeginStmt_with_tidb_txn_mode=optimistic;begin_pessimistic === RUN TestEnterNewTxn/EnterNewTxnWithBeginStmt_with_CausalConsistencyOnly === RUN TestEnterNewTxn/EnterNewTxnWithBeginStmt_and_reuse_txn === RUN TestEnterNewTxn/EnterNewTxnWithBeginStmt_with_staleness === RUN TestEnterNewTxn/EnterNewTxnBeforeStmt === RUN TestEnterNewTxn/EnterNewTxnBeforeStmt_and_autocommit=0 === RUN TestEnterNewTxn/EnterNewTxnWithReplaceProvider [2024/05/06 16:38:54.198 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:38:54.198 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 225, tp add index"] ["take time"=7.408µs] [2024/05/06 16:38:54.198 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 226, tp add index"] ["take time"=5.364µs] [2024/05/06 16:38:54.198 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 227, tp add index"] ["take time"=5.323µs] [2024/05/06 16:38:54.198 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 228, tp add index"] ["take time"=5.246µs] [2024/05/06 16:38:54.198 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 229, tp add index"] ["take time"=4.428µs] [2024/05/06 16:38:54.198 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 230, tp add index"] ["take time"=3.292µs] [2024/05/06 16:38:54.198 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 231, tp add index"] ["take time"=2.543µs] [2024/05/06 16:38:54.198 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:38:54.198 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 224, tp general"] ["take time"=5.072µs] [2024/05/06 16:38:54.198 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 222, tp general"] ["take time"=2.169µs] [2024/05/06 16:38:54.198 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 223, tp add index"] ["take time"=2.948µs] [2024/05/06 16:38:54.198 +08:00] [INFO] [delete_range.go:148] ["[ddl] closing delRange"] [2024/05/06 16:38:54.198 +08:00] [INFO] [session_pool.go:94] ["[ddl] closing sessionPool"] [2024/05/06 16:38:54.199 +08:00] [INFO] [ddl.go:833] ["[ddl] DDL closed"] [ID=d43f2e91-7661-4fd7-8a31-27bcfd2d7480] ["take time"=1.659558ms] [2024/05/06 16:38:54.199 +08:00] [INFO] [ddl.go:657] ["[ddl] stop DDL"] [ID=d43f2e91-7661-4fd7-8a31-27bcfd2d7480] [2024/05/06 16:38:54.199 +08:00] [INFO] [domain.go:1156] ["closestReplicaReadCheckLoop exited."] [2024/05/06 16:38:54.199 +08:00] [INFO] [domain.go:1748] ["dumpFileGcChecker exited."] [2024/05/06 16:38:54.199 +08:00] [INFO] [domain.go:792] ["loadSchemaInLoop exited."] [2024/05/06 16:38:54.199 +08:00] [INFO] [domain.go:603] ["infoSyncerKeeper exited."] [2024/05/06 16:38:54.199 +08:00] [INFO] [domain.go:651] ["topologySyncerKeeper exited."] [2024/05/06 16:38:54.199 +08:00] [INFO] [domain.go:1394] ["loadPrivilegeInLoop exited."] [2024/05/06 16:38:54.199 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:38:54.199 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:38:54.199 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:38:54.199 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:38:54.199 +08:00] [INFO] [domain.go:628] ["globalConfigSyncerKeeper exited."] [2024/05/06 16:38:54.199 +08:00] [INFO] [domain.go:574] ["topNSlowQueryLoop exited."] [2024/05/06 16:38:54.199 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:38:54.199 +08:00] [INFO] [domain.go:1525] ["globalBindHandleWorkerLoop exited."] [2024/05/06 16:38:54.199 +08:00] [INFO] [domain.go:1569] ["handleEvolvePlanTasksLoop exited."] [2024/05/06 16:38:54.200 +08:00] [INFO] [domain.go:1444] ["LoadSysVarCacheLoop exited."] [2024/05/06 16:38:54.203 +08:00] [INFO] [domain.go:920] ["domain closed"] ["take time"=5.679175ms] [2024/05/06 16:38:54.205 +08:00] [INFO] [db.go:567] ["Closing database"] [2024/05/06 16:38:54.205 +08:00] [INFO] [db.go:592] ["Memtable flushed"] [2024/05/06 16:38:54.205 +08:00] [INFO] [db.go:596] ["Compaction finished"] [2024/05/06 16:38:54.205 +08:00] [INFO] [db.go:615] ["BlobManager finished"] [2024/05/06 16:38:54.205 +08:00] [INFO] [db.go:619] ["ResourceManager finished"] [2024/05/06 16:38:54.205 +08:00] [INFO] [db.go:625] ["Waiting for closer"] --- PASS: TestEnterNewTxn (15.81s) --- PASS: TestEnterNewTxn/EnterNewTxnDefault (0.00s) --- PASS: TestEnterNewTxn/EnterNewTxnDefault#01 (0.00s) --- PASS: TestEnterNewTxn/EnterNewTxnWithBeginStmt_simple (0.00s) --- PASS: TestEnterNewTxn/EnterNewTxnWithBeginStmt_with_tidb_txn_mode=pessimistic (0.00s) --- PASS: TestEnterNewTxn/EnterNewTxnWithBeginStmt_with_tidb_txn_mode=pessimistic;begin_optimistic (0.01s) --- PASS: TestEnterNewTxn/EnterNewTxnWithBeginStmt_with_tidb_txn_mode=optimistic;begin_pessimistic (0.01s) --- PASS: TestEnterNewTxn/EnterNewTxnWithBeginStmt_with_CausalConsistencyOnly (0.00s) --- PASS: TestEnterNewTxn/EnterNewTxnWithBeginStmt_and_reuse_txn (0.00s) --- PASS: TestEnterNewTxn/EnterNewTxnWithBeginStmt_with_staleness (0.00s) --- PASS: TestEnterNewTxn/EnterNewTxnBeforeStmt (0.00s) --- PASS: TestEnterNewTxn/EnterNewTxnBeforeStmt_and_autocommit=0 (0.00s) --- PASS: TestEnterNewTxn/EnterNewTxnWithReplaceProvider (0.00s) === RUN TestSnapshotInterceptor [2024/05/06 16:38:54.219 +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:38:54.223 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:38:54.223 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:38:54.232 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:38:54.232 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:38:54.236 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:38:54.238 +08:00] [INFO] [tidb.go:77] ["new domain"] [store=fdf8c774-bcaf-4b57-8689-0a7953c9dda2] ["ddl lease"=500ms] ["stats lease"=-1ns] ["index usage sync lease"=0s] [2024/05/06 16:38:54.240 +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/tests/realtikvtest.CreateMockStoreAndDomainAndSetup\n\ttests/realtikvtest/testkit.go:124\ngithub.com/pingcap/tidb/tests/realtikvtest.CreateMockStoreAndSetup\n\ttests/realtikvtest/testkit.go:84\nsessiontxn/sessiontxn_test_test.TestSnapshotInterceptor\n\tsessiontxn/txn_manager_test.go:447\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1446\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:38:54.265 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=0] ["start time"=25.051127ms] [2024/05/06 16:38:54.268 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:38:54.268 +08:00] [INFO] [ddl.go:719] ["[ddl] start DDL"] [ID=c3222257-a92b-4527-ad5e-03929c723587] [runWorker=true] [2024/05/06 16:38:54.269 +08:00] [INFO] [ddl.go:665] ["[ddl] start delRangeManager OK"] ["is a emulator"=true] [2024/05/06 16:38:54.269 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 232, tp general"] [2024/05/06 16:38:54.269 +08:00] [INFO] [delete_range.go:158] ["[ddl] start delRange emulator"] [2024/05/06 16:38:54.269 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 233, tp add index"] [2024/05/06 16:38:54.269 +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:38:54.270 +08:00] [INFO] [env.go:108] ["[ddl-ingest] the lightning sorted dir"] ["data path:"=/tmp/tidb/tmp_ddl-4000] [2024/05/06 16:38:54.270 +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:38:54.270 +08:00] [WARN] [domain.go:1120] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 16:38:54.274 +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:38:54.293 +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:38:54.281 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:54.293 +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:38:54.281 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE DATABASE IF NOT EXISTS test"] [2024/05/06 16:38:54.521 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:38:54.771 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:38:55.021 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:38:55.271 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:38:55.311 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 234, 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:38:54.281 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:55.353 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=1] ["start time"=22.815153ms] [2024/05/06 16:38:55.356 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:38:55.371 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:55.371 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=3] [version=1] [2024/05/06 16:38:55.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=1] ["take time"=42.907885ms] [job="ID:3, Type:create schema, State:done, SchemaState:public, SchemaID:2, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 16:38:54.281 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:55.406 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 234, 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:38:54.281 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:55.427 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=3] [2024/05/06 16:38:55.427 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:55.428 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 1.153941151\n# Parse_time: 0\n# Compile_time: 0.000429041\n# Rewrite_time: 0.000007349\n# Optimize_time: 0\n# Wait_TS: 0.000046466\n# DB: mysql\n# Is_internal: true\n# Digest: 0a22979ad136f741465cf206b13e5717b9758dda34f7cae5a7a925f91711d6a0\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 mysql;\nCREATE DATABASE IF NOT EXISTS test;"] [2024/05/06 16:38:55.429 +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:38:55.452 +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:38:55.626 +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:38:55.465 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:55.626 +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:38:55.465 +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:38:55.675 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 234, 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:38:55.465 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:55.971 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=1] [neededSchemaVersion=2] ["start time"=5.66566ms] [phyTblIDs="[4]"] [actionTypes="[8]"] [2024/05/06 16:38:56.021 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:56.021 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=5] [version=2] [2024/05/06 16:38:56.021 +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"=56.169542ms] [job="ID:5, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:4, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:55.465 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:56.072 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 234, 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:38:55.465 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:56.269 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=5] [2024/05/06 16:38:56.269 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:56.270 +08:00] [INFO] [info.go:1114] [SetTiFlashGroupConfig] [2024/05/06 16:38:56.271 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.827696572\n# Parse_time: 0\n# Compile_time: 0.009567177\n# Rewrite_time: 0.000009427\n# Optimize_time: 0\n# Wait_TS: 0.000081506\n# DB: mysql\n# Is_internal: true\n# Digest: 14c6b489558060bdbede877927034270db5af07c6621aa28f87eeaec8727e925\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\nCREATE TABLE IF NOT EXISTS mysql.user ( Host CHAR(255), User CHAR(32), authentication_string TEXT, plugin CHAR(64), Select_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Insert_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Update_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Delete_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Drop_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Process_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Grant_priv ENUM('N','Y') NOT NULL DEFAULT 'N', References_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Show_db_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Super_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_tmp_table_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Lock_tables_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Execute_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Show_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Index_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_user_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Event_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Repl_slave_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Repl_client_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Trigger_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_role_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Drop_role_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Account_locked ENUM('N','Y') NOT NULL DEFAULT 'N', Shutdown_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Reload_priv ENUM('N','Y') NOT NULL DEFAULT 'N', FILE_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Config_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_Tablespace_Priv ENUM('N','Y') NOT NULL DEFAULT 'N', Password_reuse_history smallint unsigned DEFAULT NULL, Password_reuse_time smallint unsigned DEFAULT NULL, User_attributes json, Token_issuer VARCHAR(255), Password_expired ENUM('N','Y') NOT NULL DEFAULT 'N', Password_last_changed TIMESTAMP DEFAULT CURRENT_TIMESTAMP(), Password_lifetime SMALLINT UNSIGNED DEFAULT NULL, PRIMARY KEY (Host, User));"] [2024/05/06 16:38:56.275 +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:38:56.334 +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:38:56.285 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:56.334 +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:38:56.285 +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:38:56.390 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 234, 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:38:56.285 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:56.451 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=2] [neededSchemaVersion=3] ["start time"=2.065857ms] [phyTblIDs="[6]"] [actionTypes="[8]"] [2024/05/06 16:38:56.470 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:56.470 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=7] [version=3] [2024/05/06 16:38:56.470 +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"=22.10183ms] [job="ID:7, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:6, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:56.285 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:56.505 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 234, 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:38:56.285 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:56.555 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=7] [2024/05/06 16:38:56.555 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:56.560 +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:38:56.602 +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:38:56.571 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:56.602 +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:38:56.571 +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:38:56.647 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 234, 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:38:56.571 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:56.688 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=3] [neededSchemaVersion=4] ["start time"=1.123376ms] [phyTblIDs="[8]"] [actionTypes="[8]"] [2024/05/06 16:38:56.720 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:56.721 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=9] [version=4] [2024/05/06 16:38:56.722 +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"=34.70826ms] [job="ID:9, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:8, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:56.571 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:56.756 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 234, 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:38:56.571 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:56.801 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=9] [2024/05/06 16:38:56.801 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:56.823 +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:38:56.931 +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:38:56.836 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:56.931 +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:38:56.836 +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:38:56.975 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 234, 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:38:56.836 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:57.177 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=4] [neededSchemaVersion=5] ["start time"=5.364585ms] [phyTblIDs="[10]"] [actionTypes="[8]"] [2024/05/06 16:38:57.220 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:57.221 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=11] [version=5] [2024/05/06 16:38:57.222 +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"=50.750151ms] [job="ID:11, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:10, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:56.836 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:57.260 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 234, 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:38:56.836 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:57.382 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=11] [2024/05/06 16:38:57.382 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:57.384 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.571359898\n# Parse_time: 0\n# Compile_time: 0.010909799\n# Rewrite_time: 0.000012631\n# Optimize_time: 0\n# Wait_TS: 0.000084694\n# DB: mysql\n# Is_internal: true\n# Digest: aeaf612801484f0311f850d36f60f29e6d904828682c1f3bb7307dff25ca3a15\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\nCREATE TABLE IF NOT EXISTS mysql.db ( Host CHAR(255), DB CHAR(64), User CHAR(32), Select_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Insert_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Update_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Delete_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Drop_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Grant_priv ENUM('N','Y') NOT NULL DEFAULT 'N', References_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Index_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_tmp_table_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Lock_tables_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Show_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Execute_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Event_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Trigger_priv ENUM('N','Y') NOT NULL DEFAULT 'N', PRIMARY KEY (Host, DB, User));"] [2024/05/06 16:38:57.391 +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:38:57.442 +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:38:57.399 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:57.443 +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:38:57.399 +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:38:57.493 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 234, 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:38:57.399 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:57.584 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=5] [neededSchemaVersion=6] ["start time"=2.166237ms] [phyTblIDs="[12]"] [actionTypes="[8]"] [2024/05/06 16:38:57.621 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:57.621 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=13] [version=6] [2024/05/06 16:38:57.623 +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"=42.327031ms] [job="ID:13, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:12, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:57.399 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:57.656 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 234, 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:38:57.399 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:57.708 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=13] [2024/05/06 16:38:57.708 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:57.709 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.321408611\n# Parse_time: 0\n# Compile_time: 0.003733451\n# Rewrite_time: 0.000009692\n# Optimize_time: 0\n# Wait_TS: 0.000059657\n# DB: mysql\n# Is_internal: true\n# Digest: e8b37dad6cc7f05ee1f0be61455667495826928a93ddd09b94e02fbaed113955\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\nCREATE TABLE IF NOT EXISTS mysql.tables_priv ( Host CHAR(255), DB CHAR(64), User CHAR(32), Table_name CHAR(64), Grantor CHAR(77), Timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP, Table_priv SET('Select','Insert','Update','Delete','Create','Drop','Grant','Index','Alter','Create View','Show View','Trigger','References'), Column_priv SET('Select','Insert','Update','References'), PRIMARY KEY (Host, DB, User, Table_name));"] [2024/05/06 16:38:57.712 +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:38:57.770 +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:38:57.722 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:57.770 +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:38:57.722 +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:38:57.813 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 234, 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:38:57.722 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:57.880 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=6] [neededSchemaVersion=7] ["start time"=1.789331ms] [phyTblIDs="[14]"] [actionTypes="[8]"] [2024/05/06 16:38:57.920 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:57.921 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=15] [version=7] [2024/05/06 16:38:57.923 +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"=44.883161ms] [job="ID:15, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:14, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:57.722 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:57.958 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 234, 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:38:57.722 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:58.013 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=15] [2024/05/06 16:38:58.013 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:58.014 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.303413844\n# Parse_time: 0\n# Compile_time: 0.001743004\n# Rewrite_time: 0.000008732\n# Optimize_time: 0\n# Wait_TS: 0.000056858\n# DB: mysql\n# Is_internal: true\n# Digest: a19edbb3caff8cc57619278ab6eb5f791d7a821432309abe7184d0a7bca66b4d\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\nCREATE TABLE IF NOT EXISTS mysql.columns_priv( Host CHAR(255), DB CHAR(64), User CHAR(32), Table_name CHAR(64), Column_name CHAR(64), Timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP, Column_priv SET('Select','Insert','Update','References'), PRIMARY KEY (Host, DB, User, Table_name, Column_name));"] [2024/05/06 16:38:58.018 +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:38:58.059 +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:38:58.026 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:58.059 +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:38:58.026 +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:38:58.120 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 234, 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:38:58.026 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:58.177 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=7] [neededSchemaVersion=8] ["start time"=1.075325ms] [phyTblIDs="[16]"] [actionTypes="[8]"] [2024/05/06 16:38:58.220 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:58.220 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=17] [version=8] [2024/05/06 16:38:58.222 +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"=46.341638ms] [job="ID:17, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:16, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:58.026 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:58.255 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 234, 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:38:58.026 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:58.293 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=17] [2024/05/06 16:38:58.294 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:58.297 +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:38:58.336 +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:38:58.305 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:58.337 +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:38:58.305 +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:38:58.380 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 234, 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:38:58.305 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:58.433 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=8] [neededSchemaVersion=9] ["start time"=1.765741ms] [phyTblIDs="[18]"] [actionTypes="[8]"] [2024/05/06 16:38:58.471 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:58.471 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=19] [version=9] [2024/05/06 16:38:58.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"=42.670193ms] [job="ID:19, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:18, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:58.305 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:58.511 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 234, 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:38:58.305 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:58.558 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=19] [2024/05/06 16:38:58.558 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:58.564 +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:38:58.607 +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:38:58.572 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:58.607 +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:38:58.572 +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:38:58.655 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 234, 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:38:58.572 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:58.727 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=9] [neededSchemaVersion=10] ["start time"=1.511731ms] [phyTblIDs="[20]"] [actionTypes="[8]"] [2024/05/06 16:38:58.770 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:58.770 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=21] [version=10] [2024/05/06 16:38:58.771 +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"=46.586592ms] [job="ID:21, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:20, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:58.572 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:58.804 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 234, 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:38:58.572 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:58.849 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=21] [2024/05/06 16:38:58.850 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:58.855 +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:38:58.895 +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:38:58.864 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:58.895 +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:38:58.864 +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:38:58.931 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 234, 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:38:58.864 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:58.992 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=10] [neededSchemaVersion=11] ["start time"=1.447922ms] [phyTblIDs="[22]"] [actionTypes="[8]"] [2024/05/06 16:38:59.020 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:59.020 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=23] [version=11] [2024/05/06 16:38:59.022 +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.545524ms] [job="ID:23, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:22, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:58.864 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:59.078 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 234, 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:38:58.864 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:59.132 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=23] [2024/05/06 16:38:59.132 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:59.144 +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:38:59.145 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(6291456) to MEDIUMBLOB"] [2024/05/06 16:38:59.212 +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:38:59.155 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:59.212 +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:38:59.155 +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:38:59.254 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 234, 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:38:59.155 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:59.369 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=11] [neededSchemaVersion=12] ["start time"=2.667575ms] [phyTblIDs="[24]"] [actionTypes="[8]"] [2024/05/06 16:38:59.420 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:59.420 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=25] [version=12] [2024/05/06 16:38:59.421 +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"=54.854236ms] [job="ID:25, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:24, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:59.155 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:59.460 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 234, 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:38:59.155 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:59.527 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=25] [2024/05/06 16:38:59.527 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:59.528 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.388832654\n# Parse_time: 0\n# Compile_time: 0.004631273\n# Rewrite_time: 0.000011492\n# Optimize_time: 0\n# Wait_TS: 0.000061899\n# DB: mysql\n# Is_internal: true\n# Digest: 7780c45a0aac5f123ac85a7e601e79c5d7779e7c09a19953908e547605ed45d2\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\nCREATE TABLE IF NOT EXISTS mysql.stats_histograms ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, distinct_count BIGINT(64) NOT NULL, null_count BIGINT(64) NOT NULL DEFAULT 0, tot_col_size BIGINT(64) NOT NULL DEFAULT 0, modify_count BIGINT(64) NOT NULL DEFAULT 0, version BIGINT(64) UNSIGNED NOT NULL DEFAULT 0, cm_sketch BLOB(6291456), stats_ver BIGINT(64) NOT NULL DEFAULT 0, flag BIGINT(64) NOT NULL DEFAULT 0, correlation DOUBLE NOT NULL DEFAULT 0, last_analyze_pos LONGBLOB DEFAULT NULL, UNIQUE INDEX tbl(table_id, is_index, hist_id) );"] [2024/05/06 16:38:59.533 +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:38:59.579 +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:38:59.541 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:59.579 +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:38:59.541 +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:38:59.626 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 234, 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:38:59.541 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:59.713 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=12] [neededSchemaVersion=13] ["start time"=1.894537ms] [phyTblIDs="[26]"] [actionTypes="[8]"] [2024/05/06 16:38:59.770 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:38:59.770 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=27] [version=13] [2024/05/06 16:38:59.771 +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"=60.663026ms] [job="ID:27, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:26, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:59.541 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:59.804 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 234, 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:38:59.541 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:38:59.856 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=27] [2024/05/06 16:38:59.857 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:38:59.858 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.326816733\n# Parse_time: 0\n# Compile_time: 0.00213551\n# Rewrite_time: 0.000008588\n# Optimize_time: 0\n# Wait_TS: 0.000055164\n# DB: mysql\n# Is_internal: true\n# Digest: 5615b5212342304015b027afb253371dae02f19e53871cfbb034deb145dfce32\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\nCREATE TABLE IF NOT EXISTS mysql.stats_buckets ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, bucket_id BIGINT(64) NOT NULL, count BIGINT(64) NOT NULL, repeats BIGINT(64) NOT NULL, upper_bound LONGBLOB NOT NULL, lower_bound LONGBLOB , ndv BIGINT NOT NULL DEFAULT 0, UNIQUE INDEX tbl(table_id, is_index, hist_id, bucket_id) );"] [2024/05/06 16:38:59.863 +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:38:59.923 +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:38:59.87 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:38:59.924 +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:38:59.87 +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:38:59.967 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 234, 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:38:59.87 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:00.035 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=13] [neededSchemaVersion=14] ["start time"=1.410236ms] [phyTblIDs="[28]"] [actionTypes="[8]"] [2024/05/06 16:39:00.071 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:00.071 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=29] [version=14] [2024/05/06 16:39:00.072 +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"=48.511029ms] [job="ID:29, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:28, RowCount:0, ArgLen:2, start time: 2024-05-06 16:38:59.87 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:00.106 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 234, 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:38:59.87 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:00.160 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=29] [2024/05/06 16:39:00.160 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:00.162 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.301589964\n# Parse_time: 0\n# Compile_time: 0.002430791\n# Rewrite_time: 0.000009517\n# Optimize_time: 0\n# Wait_TS: 0.000055226\n# DB: mysql\n# Is_internal: true\n# Digest: 4f764dd084d16197c847e23500fcaf8b96dbbabd598c823de37967bfa2ad51cd\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\nCREATE TABLE IF NOT EXISTS mysql.gc_delete_range ( job_id BIGINT NOT NULL COMMENT \"the DDL job ID\", element_id BIGINT NOT NULL COMMENT \"the schema element ID\", start_key VARCHAR(255) NOT NULL COMMENT \"encoded in hex\", end_key VARCHAR(255) NOT NULL COMMENT \"encoded in hex\", ts BIGINT NOT NULL COMMENT \"timestamp in uint64\", UNIQUE KEY delete_range_index (job_id, element_id) );"] [2024/05/06 16:39:00.168 +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:39:00.220 +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:39:00.178 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:00.220 +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:39:00.178 +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:39:00.258 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 234, 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:39:00.178 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:00.325 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=14] [neededSchemaVersion=15] ["start time"=1.438178ms] [phyTblIDs="[30]"] [actionTypes="[8]"] [2024/05/06 16:39:00.371 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:00.371 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=31] [version=15] [2024/05/06 16:39:00.372 +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"=48.628536ms] [job="ID:31, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:30, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:00.178 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:00.402 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 234, 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:39:00.178 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:00.450 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=31] [2024/05/06 16:39:00.450 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:00.454 +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:39:00.493 +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:39:00.462 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:00.493 +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:39:00.462 +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:39:00.528 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 234, 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:39:00.462 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:00.594 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=15] [neededSchemaVersion=16] ["start time"=2.053045ms] [phyTblIDs="[32]"] [actionTypes="[8]"] [2024/05/06 16:39:00.620 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:00.620 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=33] [version=16] [2024/05/06 16:39:00.621 +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.047173ms] [job="ID:33, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:32, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:00.462 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:00.658 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 234, 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:39:00.462 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:00.701 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=33] [2024/05/06 16:39:00.701 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:00.708 +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:39:00.749 +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:39:00.717 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:00.749 +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:39:00.717 +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:39:00.787 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 234, 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:39:00.717 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:00.877 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=16] [neededSchemaVersion=17] ["start time"=1.546247ms] [phyTblIDs="[34]"] [actionTypes="[8]"] [2024/05/06 16:39:00.921 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:00.921 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=35] [version=17] [2024/05/06 16:39:00.923 +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"=48.379258ms] [job="ID:35, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:34, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:00.717 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:00.959 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 234, 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:39:00.717 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:01.005 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=35] [2024/05/06 16:39:01.005 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:01.006 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.300832734\n# Parse_time: 0\n# Compile_time: 0.002433672\n# Rewrite_time: 0.000008918\n# Optimize_time: 0\n# Wait_TS: 0.00005969\n# DB: mysql\n# Is_internal: true\n# Digest: 13e2fcff943423afddaa84c2d34108628854b5953bc7c41d2879240f077a5bd6\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\nCREATE TABLE IF NOT EXISTS mysql.role_edges ( FROM_HOST CHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '', FROM_USER CHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '', TO_HOST CHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '', TO_USER CHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '', WITH_ADMIN_OPTION ENUM('N','Y') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'N', PRIMARY KEY (FROM_HOST,FROM_USER,TO_HOST,TO_USER) );"] [2024/05/06 16:39:01.011 +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:39:01.050 +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:39:01.02 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:01.050 +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:39:01.02 +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:39:01.094 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 234, 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:39:01.02 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:01.164 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=17] [neededSchemaVersion=18] ["start time"=2.390553ms] [phyTblIDs="[36]"] [actionTypes="[8]"] [2024/05/06 16:39:01.220 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:01.220 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=37] [version=18] [2024/05/06 16:39:01.221 +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"=60.805292ms] [job="ID:37, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:36, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:01.02 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:01.256 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 234, 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:39:01.02 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:01.316 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=37] [2024/05/06 16:39:01.316 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:01.317 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.307914624\n# Parse_time: 0\n# Compile_time: 0.001882414\n# Rewrite_time: 0.000008882\n# Optimize_time: 0\n# Wait_TS: 0.000084994\n# DB: mysql\n# Is_internal: true\n# Digest: 9e6b544fb0287e9d8a74031560ed0cd6a5b4e54db073b893a68a76b05d929781\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\nCREATE TABLE IF NOT EXISTS mysql.default_roles ( HOST CHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '', USER CHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '', DEFAULT_ROLE_HOST CHAR(60) COLLATE utf8_bin NOT NULL DEFAULT '%', DEFAULT_ROLE_USER CHAR(32) COLLATE utf8_bin NOT NULL DEFAULT '', PRIMARY KEY (HOST,USER,DEFAULT_ROLE_HOST,DEFAULT_ROLE_USER) );"] [2024/05/06 16:39:01.324 +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:39:01.388 +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:39:01.333 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:01.388 +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:39:01.333 +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:39:01.435 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 234, 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:39:01.333 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:01.542 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=18] [neededSchemaVersion=19] ["start time"=2.326428ms] [phyTblIDs="[38]"] [actionTypes="[8]"] [2024/05/06 16:39:01.571 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:01.571 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=39] [version=19] [2024/05/06 16:39:01.572 +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.627739ms] [job="ID:39, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:38, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:01.333 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:01.605 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 234, 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:39:01.333 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:01.665 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=39] [2024/05/06 16:39:01.666 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:01.667 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.345756447\n# Parse_time: 0\n# Compile_time: 0.003401235\n# Rewrite_time: 0.000012412\n# Optimize_time: 0\n# Wait_TS: 0.000087185\n# DB: mysql\n# Is_internal: true\n# Digest: 0a4bc55a9ab72ef62ddaa1ee6472d7872306066fd783a8bb67047a497fbb4dbe\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\nCREATE TABLE IF NOT EXISTS mysql.bind_info ( original_sql TEXT NOT NULL, bind_sql TEXT NOT NULL, default_db TEXT NOT NULL, status TEXT NOT NULL, create_time TIMESTAMP(3) NOT NULL, update_time TIMESTAMP(3) NOT NULL, charset TEXT NOT NULL, collation TEXT NOT NULL, source VARCHAR(10) NOT NULL DEFAULT 'unknown', sql_digest varchar(64), plan_digest varchar(64), INDEX sql_index(original_sql(700),default_db(68)) COMMENT \"accelerate the speed when add global binding query\", INDEX time_index(update_time) COMMENT \"accelerate the speed when querying with last update time\" ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;"] [2024/05/06 16:39:01.679 +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:39:01.744 +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:39:01.687 +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:39:01.744 +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:39:01.687 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:01.787 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 234, 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:39:01.687 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:01.846 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=19] [neededSchemaVersion=20] ["start time"=2.183544ms] [phyTblIDs="[40]"] [actionTypes="[8]"] [2024/05/06 16:39:01.871 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:01.871 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=41] [version=20] [2024/05/06 16:39:01.871 +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"=28.1306ms] [job="ID:41, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:40, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:01.687 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:01.909 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 234, 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:39:01.687 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:01.956 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=41] [2024/05/06 16:39:01.956 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:01.960 +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:39:01.996 +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:39:01.968 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:01.996 +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:39:01.968 +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:39:02.040 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 234, 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:39:01.968 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:02.085 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=20] [neededSchemaVersion=21] ["start time"=1.735783ms] [phyTblIDs="[42]"] [actionTypes="[8]"] [2024/05/06 16:39:02.120 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:02.120 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=43] [version=21] [2024/05/06 16:39:02.121 +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"=38.735195ms] [job="ID:43, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:42, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:01.968 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:02.154 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 234, 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:39:01.968 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:02.191 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=43] [2024/05/06 16:39:02.191 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:02.194 +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:39:02.218 +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:39:02.202 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:02.219 +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:39:02.202 +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:39:02.266 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 234, 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:39:02.202 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:02.305 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=21] [neededSchemaVersion=22] ["start time"=955.795µs] [phyTblIDs="[44]"] [actionTypes="[8]"] [2024/05/06 16:39:02.320 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:02.320 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=45] [version=22] [2024/05/06 16:39:02.320 +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"=16.249679ms] [job="ID:45, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:44, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:02.202 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:02.355 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 234, 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:39:02.202 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:02.383 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=45] [2024/05/06 16:39:02.383 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:02.390 +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:39:02.439 +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:39:02.399 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:02.439 +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:39:02.399 +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:39:02.482 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 234, 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:39:02.399 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:02.594 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=22] [neededSchemaVersion=23] ["start time"=1.822668ms] [phyTblIDs="[46]"] [actionTypes="[8]"] [2024/05/06 16:39:02.621 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:02.621 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=47] [version=23] [2024/05/06 16:39:02.623 +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"=30.919018ms] [job="ID:47, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:46, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:02.399 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:02.685 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 234, 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:39:02.399 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:02.752 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=47] [2024/05/06 16:39:02.753 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:02.755 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.366513046\n# Parse_time: 0\n# Compile_time: 0.002046637\n# Rewrite_time: 0.000013207\n# Optimize_time: 0\n# Wait_TS: 0.000063678\n# DB: mysql\n# Is_internal: true\n# Digest: bd2a0d9809689d30e22f8d82b29b4ee110d16cda3353b77d74a1938afb746386\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\nCREATE TABLE IF NOT EXISTS mysql.stats_extended ( name varchar(32) NOT NULL, type tinyint(4) NOT NULL, table_id bigint(64) NOT NULL, column_ids varchar(32) NOT NULL, stats blob DEFAULT NULL, version bigint(64) unsigned NOT NULL, status tinyint(4) NOT NULL, PRIMARY KEY(name, table_id), KEY idx_1 (table_id, status, version), KEY idx_2 (status, version) );"] [2024/05/06 16:39:02.759 +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:39:02.809 +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:39:02.769 +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:39:02.809 +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:39:02.769 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:02.849 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 234, 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:39:02.769 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:02.926 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=23] [neededSchemaVersion=24] ["start time"=1.972159ms] [phyTblIDs="[48]"] [actionTypes="[8]"] [2024/05/06 16:39:02.971 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:02.971 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=49] [version=24] [2024/05/06 16:39:02.972 +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"=48.471372ms] [job="ID:49, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:48, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:02.769 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:03.004 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 234, 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:39:02.769 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:03.056 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=49] [2024/05/06 16:39:03.056 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:03.060 +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:39:03.103 +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:39:03.068 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:03.103 +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:39:03.068 +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:39:03.153 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 234, 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:39:03.068 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:03.201 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=24] [neededSchemaVersion=25] ["start time"=1.292534ms] [phyTblIDs="[50]"] [actionTypes="[8]"] [2024/05/06 16:39:03.221 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:03.221 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=51] [version=25] [2024/05/06 16:39:03.221 +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.065618ms] [job="ID:51, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:50, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:03.068 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:03.259 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 234, 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:39:03.068 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:03.304 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=51] [2024/05/06 16:39:03.304 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:03.310 +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:39:03.353 +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:39:03.32 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:03.353 +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:39:03.32 +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:39:03.395 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 234, 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:39:03.32 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:03.458 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=25] [neededSchemaVersion=26] ["start time"=1.376496ms] [phyTblIDs="[52]"] [actionTypes="[8]"] [2024/05/06 16:39:03.470 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:03.470 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=53] [version=26] [2024/05/06 16:39:03.472 +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"=16.223117ms] [job="ID:53, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:52, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:03.32 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:03.501 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 234, 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:39:03.32 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:03.546 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=53] [2024/05/06 16:39:03.546 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:03.551 +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:39:03.623 +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:39:03.562 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:03.623 +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:39:03.562 +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:39:03.663 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 234, 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:39:03.562 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:03.707 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=26] [neededSchemaVersion=27] ["start time"=1.195651ms] [phyTblIDs="[54]"] [actionTypes="[8]"] [2024/05/06 16:39:03.721 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:03.721 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=55] [version=27] [2024/05/06 16:39:03.722 +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"=16.714596ms] [job="ID:55, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:54, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:03.562 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:03.753 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 234, 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:39:03.562 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:03.791 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=55] [2024/05/06 16:39:03.791 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:03.797 +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:39:03.843 +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:39:03.808 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:03.843 +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:39:03.808 +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:39:03.889 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 234, 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:39:03.808 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:03.944 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=27] [neededSchemaVersion=28] ["start time"=1.441552ms] [phyTblIDs="[56]"] [actionTypes="[8]"] [2024/05/06 16:39:03.971 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:03.971 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=57] [version=28] [2024/05/06 16:39:03.973 +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"=30.705395ms] [job="ID:57, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:56, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:03.808 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:04.007 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 234, 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:39:03.808 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:04.062 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=57] [2024/05/06 16:39:04.063 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:04.069 +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:39:04.106 +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:39:04.078 +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:39:04.106 +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:39:04.078 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:04.146 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 234, 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:39:04.078 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:04.195 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=28] [neededSchemaVersion=29] ["start time"=1.212413ms] [phyTblIDs="[58]"] [actionTypes="[8]"] [2024/05/06 16:39:04.220 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:04.220 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=59] [version=29] [2024/05/06 16:39:04.222 +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"=28.874598ms] [job="ID:59, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:58, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:04.078 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:04.251 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 234, 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:39:04.078 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:04.285 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=59] [2024/05/06 16:39:04.285 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:04.291 +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:39:04.292 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(19372) to MEDIUMBLOB"] [2024/05/06 16:39:04.344 +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:39:04.301 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:04.344 +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:39:04.301 +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:39:04.380 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 234, 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:39:04.301 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:04.474 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=29] [neededSchemaVersion=30] ["start time"=1.605804ms] [phyTblIDs="[60]"] [actionTypes="[8]"] [2024/05/06 16:39:04.520 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:04.520 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=61] [version=30] [2024/05/06 16:39:04.522 +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"=50.526645ms] [job="ID:61, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:60, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:04.301 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:04.559 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 234, 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:39:04.301 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:04.605 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=61] [2024/05/06 16:39:04.606 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:04.607 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.318082785\n# Parse_time: 0\n# Compile_time: 0.002234491\n# Rewrite_time: 0.000012114\n# Optimize_time: 0\n# Wait_TS: 0.000070634\n# DB: mysql\n# Is_internal: true\n# Digest: 987fcd9b9a604209ec1101d918419b993c42f84fe228e20aee2fcca2931ff93e\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\nCREATE TABLE IF NOT EXISTS mysql.analyze_options ( table_id BIGINT(64) NOT NULL, sample_num BIGINT(64) NOT NULL DEFAULT 0, sample_rate DOUBLE NOT NULL DEFAULT -1, buckets BIGINT(64) NOT NULL DEFAULT 0, topn BIGINT(64) NOT NULL DEFAULT -1, column_choice enum('DEFAULT','ALL','PREDICATE','LIST') NOT NULL DEFAULT 'DEFAULT', column_ids TEXT(19372), PRIMARY KEY (table_id) CLUSTERED );"] [2024/05/06 16:39:04.612 +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:39:04.655 +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:39:04.622 +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:39:04.655 +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:39:04.622 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:04.698 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 234, 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:39:04.622 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:04.769 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=30] [neededSchemaVersion=31] ["start time"=2.058694ms] [phyTblIDs="[62]"] [actionTypes="[8]"] [2024/05/06 16:39:04.821 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:04.821 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=63] [version=31] [2024/05/06 16:39:04.823 +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"=56.265606ms] [job="ID:63, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:62, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:04.622 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:04.855 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 234, 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:39:04.622 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:04.898 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=63] [2024/05/06 16:39:04.898 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:04.904 +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:39:04.943 +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:39:04.912 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:04.943 +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:39:04.912 +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:39:04.986 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 234, 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:39:04.912 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:05.062 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=31] [neededSchemaVersion=32] ["start time"=2.506455ms] [phyTblIDs="[64]"] [actionTypes="[8]"] [2024/05/06 16:39:05.120 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:05.120 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=65] [version=32] [2024/05/06 16:39:05.122 +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"=63.244102ms] [job="ID:65, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:64, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:04.912 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:05.162 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 234, 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:39:04.912 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:05.208 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=65] [2024/05/06 16:39:05.208 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:05.209 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.307522361\n# Parse_time: 0\n# Compile_time: 0.002855144\n# Rewrite_time: 0.000010991\n# Optimize_time: 0\n# Wait_TS: 0.000072845\n# DB: mysql\n# Is_internal: true\n# Digest: ebccd6f5d49fb0fcff4d7dc20bb3ae798d172a92ba5f6709445c980166f7e32f\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\nCREATE TABLE IF NOT EXISTS mysql.stats_meta_history ( table_id bigint(64) NOT NULL, modify_count bigint(64) NOT NULL, count bigint(64) NOT NULL, version bigint(64) NOT NULL comment 'stats version which corresponding to stats:version in EXPLAIN', create_time datetime(6) NOT NULL, UNIQUE KEY table_version (table_id, version), KEY table_create_time (table_id, create_time) );"] [2024/05/06 16:39:05.216 +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:39:05.284 +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:39:05.231 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:05.284 +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:39:05.231 +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:39:05.338 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 234, 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:39:05.231 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:05.477 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=32] [neededSchemaVersion=33] ["start time"=2.978548ms] [phyTblIDs="[66]"] [actionTypes="[8]"] [2024/05/06 16:39:05.520 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:05.520 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=67] [version=33] [2024/05/06 16:39:05.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=33] ["take time"=48.312661ms] [job="ID:67, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:66, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:05.231 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:05.553 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 234, 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:39:05.231 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:05.616 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=67] [2024/05/06 16:39:05.616 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:05.617 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.403697356\n# Parse_time: 0\n# Compile_time: 0.00303258\n# Rewrite_time: 0.000009033\n# Optimize_time: 0\n# Wait_TS: 0.000058545\n# DB: mysql\n# Is_internal: true\n# Digest: bfb9a3ff60c3c60c054a207c0a0db06c87e29edbe94005d8d5c89fe484f4f90a\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\nCREATE TABLE IF NOT EXISTS mysql.analyze_jobs ( id BIGINT(64) UNSIGNED NOT NULL AUTO_INCREMENT, update_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, table_schema CHAR(64) NOT NULL DEFAULT '', table_name CHAR(64) NOT NULL DEFAULT '', partition_name CHAR(64) NOT NULL DEFAULT '', job_info TEXT NOT NULL, processed_rows BIGINT(64) UNSIGNED NOT NULL DEFAULT 0, start_time TIMESTAMP, end_time TIMESTAMP, state ENUM('pending', 'running', 'finished', 'failed') NOT NULL, fail_reason TEXT, instance VARCHAR(512) NOT NULL comment 'address of the TiDB instance executing the analyze job', process_id BIGINT(64) UNSIGNED comment 'ID of the process executing the analyze job', PRIMARY KEY (id), KEY (update_time) );"] [2024/05/06 16:39:05.619 +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:39:05.648 +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:39:05.628 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:05.648 +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:39:05.628 +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:39:05.682 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 234, 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:39:05.628 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:05.716 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=33] [neededSchemaVersion=34] ["start time"=1.203693ms] [phyTblIDs="[68]"] [actionTypes="[8]"] [2024/05/06 16:39:05.771 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:05.771 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=69] [version=34] [2024/05/06 16:39:05.773 +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"=58.185609ms] [job="ID:69, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:68, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:05.628 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:05.802 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 234, 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:39:05.628 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:05.836 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=69] [2024/05/06 16:39:05.836 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:05.900 +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:39:05.862 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:05.900 +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:39:05.862 +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:39:05.938 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 234, 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:39:05.862 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:06.049 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=34] [neededSchemaVersion=35] ["start time"=1.547816ms] [phyTblIDs="[70]"] [actionTypes="[2097152]"] [2024/05/06 16:39:06.070 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:06.070 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=71] [version=35] [2024/05/06 16:39:06.072 +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.813371ms] [job="ID:71, Type:create view, State:done, SchemaState:public, SchemaID:1, TableID:70, RowCount:0, ArgLen:3, start time: 2024-05-06 16:39:05.862 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:06.103 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 234, 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:39:05.862 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:06.152 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=71] [2024/05/06 16:39:06.152 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:06.153 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.309299877\n# Parse_time: 0\n# Compile_time: 0.006792319\n# Rewrite_time: 0.003719408\n# Optimize_time: 0\n# Wait_TS: 0.000088612\n# DB: mysql\n# Is_internal: true\n# Digest: 812c81f344f5d0c8b8aedcb68ff1dca865b59104853273f7e66b8abff5429992\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\nCREATE OR REPLACE VIEW mysql.tidb_mdl_view as ( select 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 );"] [2024/05/06 16:39:06.159 +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:39:06.211 +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:39:06.17 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:06.211 +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:39:06.17 +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:39:06.246 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 234, 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:39:06.17 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:06.346 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=35] [neededSchemaVersion=36] ["start time"=1.60676ms] [phyTblIDs="[72]"] [actionTypes="[8]"] [2024/05/06 16:39:06.370 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:06.370 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=73] [version=36] [2024/05/06 16:39:06.370 +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"=26.045298ms] [job="ID:73, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:72, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:06.17 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:06.407 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 234, 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:39:06.17 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:06.466 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=73] [2024/05/06 16:39:06.466 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:06.468 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.311628969\n# Parse_time: 0\n# Compile_time: 0.003280858\n# Rewrite_time: 0.000011903\n# Optimize_time: 0\n# Wait_TS: 0.000087986\n# DB: mysql\n# Is_internal: true\n# Digest: 3d2f349b1c68ee2b30e34bad8bb3838af6c40d7a26072b2d29d801d7fedbac48\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\nCREATE TABLE IF NOT EXISTS mysql.plan_replayer_status ( sql_digest VARCHAR(128), plan_digest VARCHAR(128), origin_sql TEXT, token VARCHAR(128), update_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, fail_reason TEXT, instance VARCHAR(512) NOT NULL comment 'address of the TiDB instance executing the plan replayer job');"] [2024/05/06 16:39:06.473 +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:39:06.509 +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:39:06.485 +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:39:06.509 +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:39:06.485 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:06.553 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 234, 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:39:06.485 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:06.600 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=36] [neededSchemaVersion=37] ["start time"=1.245906ms] [phyTblIDs="[74]"] [actionTypes="[8]"] [2024/05/06 16:39:06.620 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:06.620 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=75] [version=37] [2024/05/06 16:39:06.623 +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.301164ms] [job="ID:75, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:74, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:06.485 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:06.649 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 234, 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:39:06.485 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:06.688 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=75] [2024/05/06 16:39:06.688 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:06.695 +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:39:06.728 +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:39:06.703 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:06.728 +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:39:06.703 +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:39:06.765 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 234, 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:39:06.703 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:06.816 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=37] [neededSchemaVersion=38] ["start time"=1.720523ms] [phyTblIDs="[76]"] [actionTypes="[8]"] [2024/05/06 16:39:06.870 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:06.870 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=77] [version=38] [2024/05/06 16:39:06.873 +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"=59.076189ms] [job="ID:77, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:76, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:06.703 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:06.906 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 234, 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:39:06.703 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:06.942 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=77] [2024/05/06 16:39:06.942 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:06.952 +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:39:07.033 +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:39:06.96 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:07.033 +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:39:06.96 +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:39:07.081 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 234, 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:39:06.96 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:07.295 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=38] [neededSchemaVersion=39] ["start time"=4.346845ms] [phyTblIDs="[78]"] [actionTypes="[8]"] [2024/05/06 16:39:07.320 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:07.320 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=79] [version=39] [2024/05/06 16:39:07.321 +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"=36.754676ms] [job="ID:79, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:78, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:06.96 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:07.357 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 234, 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:39:06.96 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:07.440 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=79] [2024/05/06 16:39:07.441 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:07.442 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.493108909\n# Parse_time: 0\n# Compile_time: 0.003084519\n# Rewrite_time: 0.000008447\n# Optimize_time: 0\n# Wait_TS: 0.000069079\n# DB: mysql\n# Is_internal: true\n# Digest: a30bd3c3a49070c554e65922e84c6b76e646842e3925a859fcde73941a7cb423\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\nCREATE TABLE IF NOT EXISTS mysql.tidb_ttl_table_status ( table_id bigint(64) PRIMARY KEY, parent_table_id bigint(64), table_statistics text DEFAULT NULL, last_job_id varchar(64) DEFAULT NULL, last_job_start_time timestamp NULL DEFAULT NULL, last_job_finish_time timestamp NULL DEFAULT NULL, last_job_ttl_expire timestamp NULL DEFAULT NULL, last_job_summary text DEFAULT NULL, current_job_id varchar(64) DEFAULT NULL, current_job_owner_id varchar(64) DEFAULT NULL, current_job_owner_addr varchar(256) DEFAULT NULL, current_job_owner_hb_time timestamp, current_job_start_time timestamp NULL DEFAULT NULL, current_job_ttl_expire timestamp NULL DEFAULT NULL, current_job_state text DEFAULT NULL, current_job_status varchar(64) DEFAULT NULL, current_job_status_update_time timestamp NULL DEFAULT NULL);"] [2024/05/06 16:39:08.013 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 449572961633697792\n# Query_time: 0.386104909\n# Parse_time: 0\n# Compile_time: 0.20446518\n# Rewrite_time: 0.005881583\n# Optimize_time: 0\n# Wait_TS: 0.000064577\n# DB: mysql\n# Is_internal: true\n# Digest: ca2019e08a331284bd0c64be228a0537fcf9f5983e95d94b67ef42dcb8f54385\n# Num_cop_tasks: 0\n# Mem_max: 354227\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: true\n# IsSyncStatsFailed: false\n# Plan: tidb_decode_plan('ogPwPDAJMjdfMQkwCTAJTi9BCTAJdGltZToxNzMuMW1zLCBsb29wczoxLCBwcmVwYXJlOiB7dG90YWw6IDMyLjMBIkxhdXRvX2lkX2FsbG9jYXRvcjogewUMZF9jbnQ6IDEsIEdldDp7bnVtX3JwYzo0LCB0AUEAXwVosDM1OMK1c30sIGNvbW1pdF90eG46IHtwcmV3cml0ZTozNjkuMsK1cywgZ2V0XxEkGHM6MTUuN8IBFwkTFDozODguOQURHHNsb3dlc3RfEUMFdAQgewVzaDogMC4wMDBzLCByZWdpb25faWQ6IDIsIHN0bwHZBQcIMSwgGY4YcHJpbWFyedZEAA1kGG51bToxLCAF0Axfa2V5JU0JDgRieQHjgDJ9fX0sIGluc2VydDoxNDAuN21zCTk3LjkgS0IJTi9BCg==')\n# Binary_plan: tidb_decode_binary_plan('rgPwgQqpAwoISW5zZXJ0XzE4AUABUgNOL0FaFXRpbWU6MTczLjFtcywgbG9vcHM6MWLtAnByZXBhcmU6IHt0b3RhbDogMzIuM21zLCBhdXRvX2lkX2FsbG9jYXRvcjoge2FsbG9jX2NudDogMSwgR2V0OntudW1fcnBjOjQsIHRvdGFsX3QBabAzNTjCtXN9LCBjb21taXRfdHhuOiB7cHJld3JpdGU6MzY5LjLCtXMsIGdldF8RJBhzOjE1LjfCARcJExQ6Mzg4LjkFERxzbG93ZXN0XxFDDF9ycGMZtGAwLjAwMHMsIHJlZ2lvbl9pZDogMiwgc3RvAdkFBwgxLCAZjhhwcmltYXJ51kQADWQYbnVtOjEsIAXQEF9rZXlzGQ4EYnkB45AyfX19LCBpbnNlcnQ6MTQwLjdtc3CzjwZ4////////////ARgB')\nINSERT HIGH_PRIORITY INTO mysql.GLOBAL_VARIABLES VALUES (\"tidb_ttl_job_run_interval\", \"1h0m0s\"), (\"low_priority_updates\", \"OFF\"), (\"long_query_time\", \"10.000000\"), (\"tidb_replica_read\", \"leader\"), (\"ndb_log_empty_epochs\", \"\"), (\"max_connect_errors\", \"100\"), (\"tidb_enable_prepared_plan_cache\", \"ON\"), (\"preload_buffer_size\", \"32768\"), (\"tidb_mem_quota_apply_cache\", \"33554432\"), (\"tidb_gogc_tuner_threshold\", \"0.6\"), (\"innodb_file_format\", \"Barracuda\"), (\"tidb_prepared_plan_cache_memory_guard_ratio\", \"0.1\"), (\"slow_query_log_file\", \"/usr/local/mysql/data/localhost-slow.log\"), (\"max_length_for_sort_data\", \"1024\"), (\"tidb_opt_insubq_to_join_and_agg\", \"ON\"), (\"tidb_enable_clustered_index\", \"ON\"), (\"flush\", \"OFF\"), (\"default_tmp_storage_engine\", \"InnoDB\"), (\"innodb_status_output\", \"OFF\"), (\"tidb_rc_write_check_ts\", \"OFF\"), (\"max_error_count\", \"64\"), (\"slave_parallel_workers\", \"0\"), (\"tidb_enable_ordered_result_mode\", \"OFF\"), (\"tidb_enable_list_partition\", \"ON\"), (\"tidb_default_string_match_selectivity\", \"0.8\"), (\"tidb_enable_auto_analyze\", \"OFF\"), (\"gtid_executed_compression_period\", \"\"), (\"innodb_strict_mode\", \"ON\"), (\"binlog_max_flush_queue_time\", \"0\"), (\"character_set_database\", \"utf8mb4\"), (\"sql_big_selects\", \"ON\"), (\"slave_sql_verify_checksum\", \"ON\"), (\"tidb_opt_fix_control\", \"\"), (\"tidb_stmt_summary_refresh_interval\", \"1800\"), (\"tidb_stmt_summary_history_size\", \"24\"), (\"tidb_opt_three_stage_distinct_agg\", \"ON\"), (\"transaction_prealloc_size\", \"4096\"), (\"log_syslog_include_pid\", \"\"), (\"innodb_stats_persistent\", \"ON\"), (\"tidb_enable_strict_double_type_check\", \"ON\"), (\"tidb_executor_concurrency\", \"5\"), (\"net_write_timeout\", \"60\"), (\"interactive_timeout\", \"28800\"), (\"innodb_flushing_avg_loops\", \"30\"), (\"innodb_stats_transient_sample_pages\", \"8\"), (\"innodb_purge_rseg_truncate_frequency\", \"\"), (\"tidb_query_log_max_len\", \"4096\"), (\"query_cache_size\", \"1048576\"), (\"session_track_gtids\", \"OFF\"), (\"validate_password.policy\", \"MEDIUM\"), (\"innodb_optimize_fulltext_only\", \"0\"), (\"tidb_opt_disk_factor\", \"1.5\"), (\"init_slave\", \"\"), (\"optimizer_trace_limit\", \"1\"), (\"tidb_ddl_reorg_worker_cnt\", \"4\"), (\"tidb_enable_index_merge\", \"ON\"), (\"tidb_txn_mode\", \"pessimistic\"), (\"master_info_repository\", \"FILE\"), (\"mysql_native_password_proxy_users\", \"\"), (\"binlog_format\", \"STATEMENT\"), (\"ndb_use_transactions\", \"\"), (\"tidb_allow_fallback_to_tikv\", \"\"), (\"min_examined_row_limit\", \"0\"), (\"tidb_broadcast_join_threshold_count\", \"10240\"), (\"tidb_gc_enable\", \"ON\"), (\"innodb_flush_log_at_trx_commit\", \"1\"), (\"tidb_analyze_partition_concurrency\", \"1\"), (\"innodb_ft_enable_stopword\", \"ON\"), (\"tidb_ddl_flashback_concurrency\", \"64\"), (\"innodb_log_checksum_algorithm\", \"\"), (\"tidb_opt_join_reorder_threshold\", \"0\"), (\"sql_buffer_result\", \"OFF\"), (\"tidb_index_serial_scan_concurrency\", \"1\"), (\"tidb_opt_advanced_join_hint\", \"OFF\"), (\"sha256_password_proxy_users\", \"\"), (\"collation_server\", \"utf8mb4_bin\"), (\"ndb_blob_write_batch_bytes\", \"\"), (\"sort_buffer_size\", \"262144\"), (\"tidb_enable_gogc_tuner\", \"ON\"), (\"expire_logs_days\", \"0\"), (\"tidb_enable_auto_increment_in_generated\", \"OFF\"), (\"thread_cache_size\", \"9\"), (\"character_set_connection\", \"utf8mb4\"), (\"slow_launch_time\", \"2\"), (\"tidb_enable_top_sql\", \"OFF\"), (\"tidb_ttl_scan_batch_size\", \"500\"), (\"tidb_top_sql_max_time_series_count\", \"100\"), (\"show_old_temporals\", \"OFF\"), (\"tidb_enable_inl_join_inner_multi_pattern\", \"OFF\"), (\"innodb_thread_concurrency\", \"0\"), (\"executed_gtids_compression_period\", \"\"), (\"tidb_enable_gc_aware_memory_track\", \"OFF\"), (\"tidb_streamagg_concurrency\", \"1\"), (\"tidb_ttl_job_schedule_window_end_time\", \"23:59 +0000\"), (\"innodb_concurrency_tickets\", \"5000\"), (\"tidb_enable_tso_follower_proxy\", \"OFF\"), (\"tidb_enable_outer_join_reorder\", \"ON\"), (\"tidb_generate_binary_plan\", \"ON\"), (\"tidb_evolve_plan_task_end_time\", \"23:59 +0000\"), (\"local_infile\", \"ON\"), (\"character_set_server\", \"utf8mb4\"), (\"innodb_api_bk_commit_interval\", \"5\"), (\"sql_require_primary_key\", \"OFF\"), (\"tidb_enable_reuse_chunk\", \"ON\"), (\"innodb_compression_failure_threshold_pct\", \"5\"), (\"tidb_opt_copcpu_factor\", \"3\"), (\"div_precision_incre(len:21519);"] [2024/05/06 16:39:08.217 +08:00] [INFO] [bootstrap.go:529] ["bootstrap successful"] ["take time"=13.946695619s] [2024/05/06 16:39:08.218 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:39:08.218 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 235, tp add index"] ["take time"=26.931µs] [2024/05/06 16:39:08.218 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 236, tp add index"] ["take time"=24.363µs] [2024/05/06 16:39:08.218 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 237, tp add index"] ["take time"=25.598µs] [2024/05/06 16:39:08.219 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 238, tp add index"] ["take time"=18.447µs] [2024/05/06 16:39:08.219 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 239, tp add index"] ["take time"=21.699µs] [2024/05/06 16:39:08.219 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 240, tp add index"] ["take time"=25.767µs] [2024/05/06 16:39:08.219 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 241, tp add index"] ["take time"=23.968µs] [2024/05/06 16:39:08.219 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 242, tp add index"] ["take time"=20.031µs] [2024/05/06 16:39:08.219 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 243, tp add index"] ["take time"=32.512µs] [2024/05/06 16:39:08.219 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 244, tp add index"] ["take time"=26.491µs] [2024/05/06 16:39:08.219 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:39:08.219 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 234, tp general"] ["take time"=23.962µs] [2024/05/06 16:39:08.220 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 232, tp general"] ["take time"=7.517µs] [2024/05/06 16:39:08.220 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 233, tp add index"] ["take time"=1.716µs] [2024/05/06 16:39:08.220 +08:00] [INFO] [delete_range.go:148] ["[ddl] closing delRange"] [2024/05/06 16:39:08.220 +08:00] [INFO] [session_pool.go:94] ["[ddl] closing sessionPool"] [2024/05/06 16:39:08.227 +08:00] [INFO] [ddl.go:833] ["[ddl] DDL closed"] [ID=c3222257-a92b-4527-ad5e-03929c723587] ["take time"=8.852657ms] [2024/05/06 16:39:08.227 +08:00] [INFO] [ddl.go:657] ["[ddl] stop DDL"] [ID=c3222257-a92b-4527-ad5e-03929c723587] [2024/05/06 16:39:08.227 +08:00] [INFO] [domain.go:792] ["loadSchemaInLoop exited."] [2024/05/06 16:39:08.227 +08:00] [INFO] [domain.go:628] ["globalConfigSyncerKeeper exited."] [2024/05/06 16:39:08.227 +08:00] [INFO] [domain.go:603] ["infoSyncerKeeper exited."] [2024/05/06 16:39:08.227 +08:00] [INFO] [domain.go:651] ["topologySyncerKeeper exited."] [2024/05/06 16:39:08.227 +08:00] [INFO] [domain.go:1156] ["closestReplicaReadCheckLoop exited."] [2024/05/06 16:39:08.227 +08:00] [INFO] [domain.go:574] ["topNSlowQueryLoop exited."] [2024/05/06 16:39:08.227 +08:00] [INFO] [domain.go:920] ["domain closed"] ["take time"=9.415384ms] [2024/05/06 16:39:08.227 +08:00] [INFO] [tidb.go:77] ["new domain"] [store=fdf8c774-bcaf-4b57-8689-0a7953c9dda2] ["ddl lease"=500ms] ["stats lease"=-1ns] ["index usage sync lease"=0s] [2024/05/06 16:39:08.304 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=39] ["start time"=75.1261ms] [2024/05/06 16:39:08.309 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:39:08.309 +08:00] [INFO] [ddl.go:719] ["[ddl] start DDL"] [ID=0f4556af-e040-47a1-bf8a-f2ea11f06ce4] [runWorker=true] [2024/05/06 16:39:08.310 +08:00] [INFO] [ddl.go:665] ["[ddl] start delRangeManager OK"] ["is a emulator"=true] [2024/05/06 16:39:08.310 +08:00] [INFO] [delete_range.go:158] ["[ddl] start delRange emulator"] [2024/05/06 16:39:08.310 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 245, tp general"] [2024/05/06 16:39:08.310 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 246, tp add index"] [2024/05/06 16:39:08.312 +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:39:08.313 +08:00] [INFO] [env.go:108] ["[ddl-ingest] the lightning sorted dir"] ["data path:"=/tmp/tidb/tmp_ddl-4000] [2024/05/06 16:39:08.313 +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:39:08.313 +08:00] [WARN] [domain.go:1120] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 16:39:08.339 +08:00] [WARN] [sysvar_cache.go:50] ["sysvar cache is empty, triggering rebuild"] [2024/05/06 16:39:08.497 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=100] [schemaVersion=39] [cur_db=] [sql="create temporary table test.tmp1 (id int primary key)"] [user=] [2024/05/06 16:39:09.311 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:39:09.311 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:39:09.311 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 245, tp general"] ["take time"=4.469µs] [2024/05/06 16:39:09.311 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 246, tp add index"] ["take time"=1.995µs] [2024/05/06 16:39:09.312 +08:00] [INFO] [delete_range.go:148] ["[ddl] closing delRange"] [2024/05/06 16:39:09.312 +08:00] [INFO] [session_pool.go:94] ["[ddl] closing sessionPool"] [2024/05/06 16:39:09.312 +08:00] [INFO] [ddl.go:833] ["[ddl] DDL closed"] [ID=0f4556af-e040-47a1-bf8a-f2ea11f06ce4] ["take time"=812.647112ms] [2024/05/06 16:39:09.312 +08:00] [INFO] [ddl.go:657] ["[ddl] stop DDL"] [ID=0f4556af-e040-47a1-bf8a-f2ea11f06ce4] [2024/05/06 16:39:09.312 +08:00] [INFO] [domain.go:1156] ["closestReplicaReadCheckLoop exited."] [2024/05/06 16:39:09.312 +08:00] [INFO] [domain.go:1748] ["dumpFileGcChecker exited."] [2024/05/06 16:39:09.312 +08:00] [INFO] [domain.go:1444] ["LoadSysVarCacheLoop exited."] [2024/05/06 16:39:09.312 +08:00] [INFO] [domain.go:603] ["infoSyncerKeeper exited."] [2024/05/06 16:39:09.312 +08:00] [INFO] [domain.go:651] ["topologySyncerKeeper exited."] [2024/05/06 16:39:09.312 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:39:09.312 +08:00] [INFO] [domain.go:1394] ["loadPrivilegeInLoop exited."] [2024/05/06 16:39:09.312 +08:00] [INFO] [domain.go:1525] ["globalBindHandleWorkerLoop exited."] [2024/05/06 16:39:09.312 +08:00] [INFO] [domain.go:628] ["globalConfigSyncerKeeper exited."] [2024/05/06 16:39:09.312 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:39:09.312 +08:00] [INFO] [domain.go:1569] ["handleEvolvePlanTasksLoop exited."] [2024/05/06 16:39:09.312 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:39:09.312 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:39:09.312 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:39:09.312 +08:00] [INFO] [domain.go:574] ["topNSlowQueryLoop exited."] [2024/05/06 16:39:09.312 +08:00] [INFO] [domain.go:792] ["loadSchemaInLoop exited."] [2024/05/06 16:39:09.317 +08:00] [INFO] [domain.go:920] ["domain closed"] ["take time"=817.490043ms] [2024/05/06 16:39:09.318 +08:00] [INFO] [db.go:567] ["Closing database"] [2024/05/06 16:39:09.318 +08:00] [INFO] [db.go:592] ["Memtable flushed"] [2024/05/06 16:39:09.318 +08:00] [INFO] [db.go:596] ["Compaction finished"] [2024/05/06 16:39:09.318 +08:00] [INFO] [db.go:615] ["BlobManager finished"] [2024/05/06 16:39:09.318 +08:00] [INFO] [db.go:619] ["ResourceManager finished"] [2024/05/06 16:39:09.319 +08:00] [INFO] [db.go:625] ["Waiting for closer"] --- PASS: TestSnapshotInterceptor (15.11s) === RUN TestRcTSOCmdCountForPrepareExecuteExtra [2024/05/06 16:39:09.341 +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:39:09.344 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:39:09.344 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:39:09.349 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:39:09.349 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:39:09.353 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:39:09.354 +08:00] [INFO] [tidb.go:77] ["new domain"] [store=7f6a167e-97ac-466c-944a-3217121132b2] ["ddl lease"=500ms] ["stats lease"=-1ns] ["index usage sync lease"=0s] [2024/05/06 16:39:09.355 +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/testkit.CreateMockStore\n\ttestkit/mockstore.go:61\nsessiontxn/sessiontxn_test_test.TestRcTSOCmdCountForPrepareExecuteExtra\n\tsessiontxn/txn_rc_tso_optimize_test.go:152\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1446\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:39:09.372 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=0] ["start time"=16.080734ms] [2024/05/06 16:39:09.375 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:39:09.375 +08:00] [INFO] [ddl.go:719] ["[ddl] start DDL"] [ID=f909683f-be46-42d4-8318-8f40b9a4d57a] [runWorker=true] [2024/05/06 16:39:09.375 +08:00] [INFO] [ddl.go:665] ["[ddl] start delRangeManager OK"] ["is a emulator"=true] [2024/05/06 16:39:09.376 +08:00] [INFO] [delete_range.go:158] ["[ddl] start delRange emulator"] [2024/05/06 16:39:09.376 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 247, tp general"] [2024/05/06 16:39:09.376 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 248, tp add index"] [2024/05/06 16:39:09.376 +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:39:09.376 +08:00] [INFO] [env.go:108] ["[ddl-ingest] the lightning sorted dir"] ["data path:"=/tmp/tidb/tmp_ddl-4000] [2024/05/06 16:39:09.376 +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:39:09.376 +08:00] [WARN] [domain.go:1120] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 16:39:09.381 +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:39:09.396 +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:39:09.388 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:09.396 +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:39:09.388 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE DATABASE IF NOT EXISTS test"] [2024/05/06 16:39:09.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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:39:09.878 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:39:10.128 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:39:10.377 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:39:10.417 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 249, 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:39:09.388 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:10.454 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=1] ["start time"=15.591041ms] [2024/05/06 16:39:10.457 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:39:10.477 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:10.477 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=3] [version=1] [2024/05/06 16:39:10.479 +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.828953ms] [job="ID:3, Type:create schema, State:done, SchemaState:public, SchemaID:2, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 16:39:09.388 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:10.511 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 249, 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:39:09.388 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:10.529 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=3] [2024/05/06 16:39:10.530 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:10.531 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 1.150548157\n# Parse_time: 0\n# Compile_time: 0.000500292\n# Rewrite_time: 0.000006197\n# Optimize_time: 0\n# Wait_TS: 0.000047342\n# DB: mysql\n# Is_internal: true\n# Digest: 0a22979ad136f741465cf206b13e5717b9758dda34f7cae5a7a925f91711d6a0\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 mysql;\nCREATE DATABASE IF NOT EXISTS test;"] [2024/05/06 16:39:10.533 +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:39:10.562 +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:39:10.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:39:10.575 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:10.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:39:10.575 +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:39:10.736 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 249, 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:39:10.575 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:11.031 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=1] [neededSchemaVersion=2] ["start time"=5.510536ms] [phyTblIDs="[4]"] [actionTypes="[8]"] [2024/05/06 16:39:11.077 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:11.077 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=5] [version=2] [2024/05/06 16:39:11.078 +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"=52.564736ms] [job="ID:5, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:4, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:10.575 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:11.115 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 249, 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:39:10.575 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:11.272 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=5] [2024/05/06 16:39:11.273 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:11.274 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.720396361\n# Parse_time: 0\n# Compile_time: 0.009197057\n# Rewrite_time: 0.000009532\n# Optimize_time: 0\n# Wait_TS: 0.000065755\n# DB: mysql\n# Is_internal: true\n# Digest: 14c6b489558060bdbede877927034270db5af07c6621aa28f87eeaec8727e925\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\nCREATE TABLE IF NOT EXISTS mysql.user ( Host CHAR(255), User CHAR(32), authentication_string TEXT, plugin CHAR(64), Select_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Insert_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Update_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Delete_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Drop_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Process_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Grant_priv ENUM('N','Y') NOT NULL DEFAULT 'N', References_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Show_db_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Super_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_tmp_table_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Lock_tables_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Execute_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Show_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Index_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_user_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Event_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Repl_slave_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Repl_client_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Trigger_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_role_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Drop_role_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Account_locked ENUM('N','Y') NOT NULL DEFAULT 'N', Shutdown_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Reload_priv ENUM('N','Y') NOT NULL DEFAULT 'N', FILE_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Config_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_Tablespace_Priv ENUM('N','Y') NOT NULL DEFAULT 'N', Password_reuse_history smallint unsigned DEFAULT NULL, Password_reuse_time smallint unsigned DEFAULT NULL, User_attributes json, Token_issuer VARCHAR(255), Password_expired ENUM('N','Y') NOT NULL DEFAULT 'N', Password_last_changed TIMESTAMP DEFAULT CURRENT_TIMESTAMP(), Password_lifetime SMALLINT UNSIGNED DEFAULT NULL, PRIMARY KEY (Host, User));"] [2024/05/06 16:39:11.279 +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:39:11.319 +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:39:11.287 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:11.320 +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:39:11.287 +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:39:11.357 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 249, 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:39:11.287 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:11.376 +08:00] [INFO] [info.go:1114] [SetTiFlashGroupConfig] [2024/05/06 16:39:11.413 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=2] [neededSchemaVersion=3] ["start time"=1.603969ms] [phyTblIDs="[6]"] [actionTypes="[8]"] [2024/05/06 16:39:11.428 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:11.428 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=7] [version=3] [2024/05/06 16:39:11.429 +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"=18.135005ms] [job="ID:7, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:6, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:11.287 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:11.475 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 249, 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:39:11.287 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:11.515 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=7] [2024/05/06 16:39:11.515 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:11.519 +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:39:11.553 +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:39:11.528 +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:39:11.553 +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:39:11.528 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:11.588 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 249, 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:39:11.528 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:11.637 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=3] [neededSchemaVersion=4] ["start time"=1.090914ms] [phyTblIDs="[8]"] [actionTypes="[8]"] [2024/05/06 16:39:11.677 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:11.677 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=9] [version=4] [2024/05/06 16:39:11.677 +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"=48.132966ms] [job="ID:9, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:8, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:11.528 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:11.704 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 249, 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:39:11.528 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:11.736 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=9] [2024/05/06 16:39:11.736 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:11.751 +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:39:11.840 +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:39:11.763 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:11.840 +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:39:11.763 +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:39:11.886 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 249, 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:39:11.763 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:12.052 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=4] [neededSchemaVersion=5] ["start time"=3.911191ms] [phyTblIDs="[10]"] [actionTypes="[8]"] [2024/05/06 16:39:12.077 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:12.077 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=11] [version=5] [2024/05/06 16:39:12.078 +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"=30.465076ms] [job="ID:11, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:10, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:11.763 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:12.108 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 249, 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:39:11.763 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:12.226 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=11] [2024/05/06 16:39:12.226 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:12.228 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.483661621\n# Parse_time: 0\n# Compile_time: 0.006760075\n# Rewrite_time: 0.000010688\n# Optimize_time: 0\n# Wait_TS: 0.000065292\n# DB: mysql\n# Is_internal: true\n# Digest: aeaf612801484f0311f850d36f60f29e6d904828682c1f3bb7307dff25ca3a15\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\nCREATE TABLE IF NOT EXISTS mysql.db ( Host CHAR(255), DB CHAR(64), User CHAR(32), Select_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Insert_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Update_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Delete_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Drop_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Grant_priv ENUM('N','Y') NOT NULL DEFAULT 'N', References_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Index_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_tmp_table_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Lock_tables_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Show_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Execute_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Event_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Trigger_priv ENUM('N','Y') NOT NULL DEFAULT 'N', PRIMARY KEY (Host, DB, User));"] [2024/05/06 16:39:12.233 +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:39:12.302 +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:39:12.243 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:12.302 +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:39:12.243 +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:39:12.342 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 249, 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:39:12.243 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:12.428 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=5] [neededSchemaVersion=6] ["start time"=1.784097ms] [phyTblIDs="[12]"] [actionTypes="[8]"] [2024/05/06 16:39:12.478 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:12.478 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=13] [version=6] [2024/05/06 16:39:12.480 +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"=54.521887ms] [job="ID:13, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:12, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:12.243 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:12.513 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 249, 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:39:12.243 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:12.567 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=13] [2024/05/06 16:39:12.567 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:12.568 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.337707097\n# Parse_time: 0\n# Compile_time: 0.002296621\n# Rewrite_time: 0.000013233\n# Optimize_time: 0\n# Wait_TS: 0.000049928\n# DB: mysql\n# Is_internal: true\n# Digest: e8b37dad6cc7f05ee1f0be61455667495826928a93ddd09b94e02fbaed113955\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\nCREATE TABLE IF NOT EXISTS mysql.tables_priv ( Host CHAR(255), DB CHAR(64), User CHAR(32), Table_name CHAR(64), Grantor CHAR(77), Timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP, Table_priv SET('Select','Insert','Update','Delete','Create','Drop','Grant','Index','Alter','Create View','Show View','Trigger','References'), Column_priv SET('Select','Insert','Update','References'), PRIMARY KEY (Host, DB, User, Table_name));"] [2024/05/06 16:39:12.572 +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:39:12.615 +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:39:12.579 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:12.615 +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:39:12.579 +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:39:12.651 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 249, 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:39:12.579 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:12.722 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=6] [neededSchemaVersion=7] ["start time"=1.792604ms] [phyTblIDs="[14]"] [actionTypes="[8]"] [2024/05/06 16:39:12.777 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:12.777 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=15] [version=7] [2024/05/06 16:39:12.778 +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"=58.167887ms] [job="ID:15, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:14, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:12.579 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:12.805 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 249, 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:39:12.579 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:12.852 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=15] [2024/05/06 16:39:12.852 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:12.855 +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:39:12.890 +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:39:12.864 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:12.890 +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:39:12.864 +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:39:12.923 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 249, 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:39:12.864 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:12.959 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=7] [neededSchemaVersion=8] ["start time"=1.051017ms] [phyTblIDs="[16]"] [actionTypes="[8]"] [2024/05/06 16:39:12.977 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:12.977 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=17] [version=8] [2024/05/06 16:39:12.978 +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"=20.358031ms] [job="ID:17, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:16, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:12.864 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:13.003 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 249, 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:39:12.864 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:13.031 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=17] [2024/05/06 16:39:13.031 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:13.036 +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:39:13.086 +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:39:13.043 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:13.086 +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:39:13.043 +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:39:13.124 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 249, 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:39:13.043 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:13.176 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=8] [neededSchemaVersion=9] ["start time"=1.196487ms] [phyTblIDs="[18]"] [actionTypes="[8]"] [2024/05/06 16:39:13.227 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:13.227 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=19] [version=9] [2024/05/06 16:39:13.229 +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"=54.20299ms] [job="ID:19, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:18, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:13.043 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:13.258 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 249, 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:39:13.043 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:13.290 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=19] [2024/05/06 16:39:13.290 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:13.297 +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:39:13.336 +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:39:13.306 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:13.336 +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:39:13.306 +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:39:13.379 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 249, 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:39:13.306 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:13.463 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=9] [neededSchemaVersion=10] ["start time"=1.430104ms] [phyTblIDs="[20]"] [actionTypes="[8]"] [2024/05/06 16:39:13.477 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:13.478 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=21] [version=10] [2024/05/06 16:39:13.480 +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"=18.215602ms] [job="ID:21, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:20, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:13.306 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:13.509 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 249, 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:39:13.306 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:13.552 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=21] [2024/05/06 16:39:13.552 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:13.557 +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:39:13.597 +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:39:13.566 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:13.597 +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:39:13.566 +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:39:13.636 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 249, 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:39:13.566 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:13.692 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=10] [neededSchemaVersion=11] ["start time"=1.466034ms] [phyTblIDs="[22]"] [actionTypes="[8]"] [2024/05/06 16:39:13.727 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:13.727 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=23] [version=11] [2024/05/06 16:39:13.728 +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"=38.576506ms] [job="ID:23, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:22, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:13.566 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:13.760 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 249, 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:39:13.566 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:13.803 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=23] [2024/05/06 16:39:13.803 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:13.811 +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:39:13.812 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(6291456) to MEDIUMBLOB"] [2024/05/06 16:39:13.886 +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:39:13.819 +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:39:13.886 +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:39:13.819 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:13.924 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 249, 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:39:13.819 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:14.022 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=11] [neededSchemaVersion=12] ["start time"=2.307296ms] [phyTblIDs="[24]"] [actionTypes="[8]"] [2024/05/06 16:39:14.077 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:14.077 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=25] [version=12] [2024/05/06 16:39:14.078 +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"=58.353469ms] [job="ID:25, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:24, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:13.819 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:14.116 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 249, 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:39:13.819 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:14.177 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=25] [2024/05/06 16:39:14.177 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:14.178 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.370010645\n# Parse_time: 0\n# Compile_time: 0.002887646\n# Rewrite_time: 0.00001149\n# Optimize_time: 0\n# Wait_TS: 0.000055174\n# DB: mysql\n# Is_internal: true\n# Digest: 7780c45a0aac5f123ac85a7e601e79c5d7779e7c09a19953908e547605ed45d2\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\nCREATE TABLE IF NOT EXISTS mysql.stats_histograms ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, distinct_count BIGINT(64) NOT NULL, null_count BIGINT(64) NOT NULL DEFAULT 0, tot_col_size BIGINT(64) NOT NULL DEFAULT 0, modify_count BIGINT(64) NOT NULL DEFAULT 0, version BIGINT(64) UNSIGNED NOT NULL DEFAULT 0, cm_sketch BLOB(6291456), stats_ver BIGINT(64) NOT NULL DEFAULT 0, flag BIGINT(64) NOT NULL DEFAULT 0, correlation DOUBLE NOT NULL DEFAULT 0, last_analyze_pos LONGBLOB DEFAULT NULL, UNIQUE INDEX tbl(table_id, is_index, hist_id) );"] [2024/05/06 16:39:14.182 +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:39:14.247 +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:39:14.191 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:14.247 +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:39:14.191 +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:39:14.289 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 249, 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:39:14.191 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:14.389 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=12] [neededSchemaVersion=13] ["start time"=1.821167ms] [phyTblIDs="[26]"] [actionTypes="[8]"] [2024/05/06 16:39:14.427 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:14.427 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=27] [version=13] [2024/05/06 16:39:14.428 +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"=46.547666ms] [job="ID:27, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:26, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:14.191 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:14.461 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 249, 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:39:14.191 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:14.511 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=27] [2024/05/06 16:39:14.512 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:14.513 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.331998263\n# Parse_time: 0\n# Compile_time: 0.001924153\n# Rewrite_time: 0.000008387\n# Optimize_time: 0\n# Wait_TS: 0.000066082\n# DB: mysql\n# Is_internal: true\n# Digest: 5615b5212342304015b027afb253371dae02f19e53871cfbb034deb145dfce32\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\nCREATE TABLE IF NOT EXISTS mysql.stats_buckets ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, bucket_id BIGINT(64) NOT NULL, count BIGINT(64) NOT NULL, repeats BIGINT(64) NOT NULL, upper_bound LONGBLOB NOT NULL, lower_bound LONGBLOB , ndv BIGINT NOT NULL DEFAULT 0, UNIQUE INDEX tbl(table_id, is_index, hist_id, bucket_id) );"] [2024/05/06 16:39:14.517 +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:39:14.555 +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:39:14.527 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:14.555 +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:39:14.527 +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:39:14.600 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 249, 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:39:14.527 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:14.663 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=13] [neededSchemaVersion=14] ["start time"=2.243665ms] [phyTblIDs="[28]"] [actionTypes="[8]"] [2024/05/06 16:39:14.678 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:14.678 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=29] [version=14] [2024/05/06 16:39:14.679 +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"=18.255444ms] [job="ID:29, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:28, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:14.527 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:14.711 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 249, 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:39:14.527 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:14.777 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=29] [2024/05/06 16:39:14.777 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:14.784 +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:39:14.834 +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:39:14.793 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:14.834 +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:39:14.793 +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:39:14.880 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 249, 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:39:14.793 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:14.946 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=14] [neededSchemaVersion=15] ["start time"=2.150993ms] [phyTblIDs="[30]"] [actionTypes="[8]"] [2024/05/06 16:39:14.977 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:14.977 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=31] [version=15] [2024/05/06 16:39:14.978 +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"=34.744686ms] [job="ID:31, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:30, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:14.793 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:15.008 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 249, 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:39:14.793 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:15.048 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=31] [2024/05/06 16:39:15.048 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:15.052 +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:39:15.090 +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:39:15.059 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:15.090 +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:39:15.059 +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:39:15.132 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 249, 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:39:15.059 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:15.179 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=15] [neededSchemaVersion=16] ["start time"=2.002919ms] [phyTblIDs="[32]"] [actionTypes="[8]"] [2024/05/06 16:39:15.227 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:15.227 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=33] [version=16] [2024/05/06 16:39:15.229 +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"=52.438983ms] [job="ID:33, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:32, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:15.059 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:15.267 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 249, 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:39:15.059 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:15.301 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=33] [2024/05/06 16:39:15.301 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:15.307 +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:39:15.344 +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:39:15.316 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:15.344 +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:39:15.316 +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:39:15.382 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 249, 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:39:15.316 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:15.442 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=16] [neededSchemaVersion=17] ["start time"=1.561281ms] [phyTblIDs="[34]"] [actionTypes="[8]"] [2024/05/06 16:39:15.477 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:15.477 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=35] [version=17] [2024/05/06 16:39:15.478 +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"=38.778037ms] [job="ID:35, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:34, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:15.316 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:15.514 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 249, 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:39:15.316 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:15.557 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=35] [2024/05/06 16:39:15.557 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:15.564 +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:39:15.628 +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:39:15.6 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:15.628 +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:39:15.6 +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:39:15.665 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 249, 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:39:15.6 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:15.725 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=17] [neededSchemaVersion=18] ["start time"=2.214022ms] [phyTblIDs="[36]"] [actionTypes="[8]"] [2024/05/06 16:39:15.777 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:15.777 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=37] [version=18] [2024/05/06 16:39:15.779 +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"=56.926769ms] [job="ID:37, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:36, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:15.6 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:15.814 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 249, 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:39:15.6 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:15.857 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=37] [2024/05/06 16:39:15.858 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:15.866 +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:39:15.922 +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:39:15.875 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:15.922 +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:39:15.875 +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:39:15.964 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 249, 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:39:15.875 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:16.052 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=18] [neededSchemaVersion=19] ["start time"=2.135898ms] [phyTblIDs="[38]"] [actionTypes="[8]"] [2024/05/06 16:39:16.078 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:16.078 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=39] [version=19] [2024/05/06 16:39:16.080 +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"=30.286804ms] [job="ID:39, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:38, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:15.875 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:16.109 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 249, 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:39:15.875 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:16.168 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=39] [2024/05/06 16:39:16.168 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:16.169 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.306551545\n# Parse_time: 0\n# Compile_time: 0.003000361\n# Rewrite_time: 0.000011673\n# Optimize_time: 0\n# Wait_TS: 0.000067147\n# DB: mysql\n# Is_internal: true\n# Digest: 0a4bc55a9ab72ef62ddaa1ee6472d7872306066fd783a8bb67047a497fbb4dbe\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\nCREATE TABLE IF NOT EXISTS mysql.bind_info ( original_sql TEXT NOT NULL, bind_sql TEXT NOT NULL, default_db TEXT NOT NULL, status TEXT NOT NULL, create_time TIMESTAMP(3) NOT NULL, update_time TIMESTAMP(3) NOT NULL, charset TEXT NOT NULL, collation TEXT NOT NULL, source VARCHAR(10) NOT NULL DEFAULT 'unknown', sql_digest varchar(64), plan_digest varchar(64), INDEX sql_index(original_sql(700),default_db(68)) COMMENT \"accelerate the speed when add global binding query\", INDEX time_index(update_time) COMMENT \"accelerate the speed when querying with last update time\" ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;"] [2024/05/06 16:39:16.187 +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:39:16.224 +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:39:16.197 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:16.224 +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:39:16.197 +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:39:16.272 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 249, 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:39:16.197 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:16.326 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=19] [neededSchemaVersion=20] ["start time"=1.915193ms] [phyTblIDs="[40]"] [actionTypes="[8]"] [2024/05/06 16:39:16.377 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:16.377 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=41] [version=20] [2024/05/06 16:39:16.379 +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"=56.203284ms] [job="ID:41, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:40, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:16.197 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:16.438 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 249, 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:39:16.197 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:16.500 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=41] [2024/05/06 16:39:16.500 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:16.501 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.316126297\n# Parse_time: 0\n# Compile_time: 0.002281343\n# Rewrite_time: 0.000011961\n# Optimize_time: 0\n# Wait_TS: 0.00007632\n# DB: mysql\n# Is_internal: true\n# Digest: 04a90564803373a6eb3f5a52e8794d25c4d28f6c18af7899b0b9f1bf1539ec72\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\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\nCREATE TABLE IF NOT EXISTS mysql.stats_top_n ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, value LONGBLOB, count BIGINT(64) UNSIGNED NOT NULL, INDEX tbl(table_id, is_index, hist_id) );"] [2024/05/06 16:39:16.503 +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:39:16.542 +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:39:16.511 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:16.542 +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:39:16.511 +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:39:16.587 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 249, 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:39:16.511 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:16.627 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=20] [neededSchemaVersion=21] ["start time"=1.091804ms] [phyTblIDs="[42]"] [actionTypes="[8]"] [2024/05/06 16:39:16.677 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:16.677 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=43] [version=21] [2024/05/06 16:39:16.677 +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"=52.289037ms] [job="ID:43, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:42, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:16.511 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:16.707 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 249, 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:39:16.511 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:16.739 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=43] [2024/05/06 16:39:16.739 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:16.743 +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:39:16.773 +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:39:16.752 +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:39:16.773 +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:39:16.752 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:16.812 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 249, 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:39:16.752 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:16.842 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=21] [neededSchemaVersion=22] ["start time"=1.276599ms] [phyTblIDs="[44]"] [actionTypes="[8]"] [2024/05/06 16:39:16.877 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:16.877 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=45] [version=22] [2024/05/06 16:39:16.879 +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"=38.695193ms] [job="ID:45, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:44, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:16.752 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:16.906 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 249, 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:39:16.752 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:16.929 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=45] [2024/05/06 16:39:16.930 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:16.936 +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:39:16.989 +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:39:16.946 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:16.989 +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:39:16.946 +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:39:17.031 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 249, 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:39:16.946 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:17.109 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=22] [neededSchemaVersion=23] ["start time"=1.851786ms] [phyTblIDs="[46]"] [actionTypes="[8]"] [2024/05/06 16:39:17.127 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:17.127 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=47] [version=23] [2024/05/06 16:39:17.129 +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"=22.733097ms] [job="ID:47, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:46, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:16.946 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:17.166 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 249, 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:39:16.946 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:17.217 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=47] [2024/05/06 16:39:17.217 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:17.221 +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:39:17.258 +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:39:17.229 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:17.258 +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:39:17.229 +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:39:17.293 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 249, 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:39:17.229 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:17.371 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=23] [neededSchemaVersion=24] ["start time"=1.50891ms] [phyTblIDs="[48]"] [actionTypes="[8]"] [2024/05/06 16:39:17.427 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:17.427 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=49] [version=24] [2024/05/06 16:39:17.429 +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"=60.271873ms] [job="ID:49, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:48, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:17.229 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:17.459 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 249, 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:39:17.229 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:17.498 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=49] [2024/05/06 16:39:17.498 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:17.503 +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:39:17.538 +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:39:17.512 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:17.538 +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:39:17.512 +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:39:17.573 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 249, 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:39:17.512 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:17.625 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=24] [neededSchemaVersion=25] ["start time"=2.174738ms] [phyTblIDs="[50]"] [actionTypes="[8]"] [2024/05/06 16:39:17.677 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:17.677 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=51] [version=25] [2024/05/06 16:39:17.679 +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"=56.988255ms] [job="ID:51, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:50, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:17.512 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:17.707 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 249, 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:39:17.512 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:17.759 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=51] [2024/05/06 16:39:17.759 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:17.763 +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:39:17.796 +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:39:17.771 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:17.796 +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:39:17.771 +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:39:17.831 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 249, 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:39:17.771 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:17.887 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=25] [neededSchemaVersion=26] ["start time"=1.350562ms] [phyTblIDs="[52]"] [actionTypes="[8]"] [2024/05/06 16:39:17.927 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:17.927 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=53] [version=26] [2024/05/06 16:39:17.928 +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"=50.547081ms] [job="ID:53, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:52, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:17.771 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:17.963 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 249, 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:39:17.771 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:17.998 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=53] [2024/05/06 16:39:17.998 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:18.002 +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:39:18.046 +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:39:18.01 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:18.046 +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:39:18.01 +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:39:18.089 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 249, 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:39:18.01 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:18.146 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=26] [neededSchemaVersion=27] ["start time"=1.969036ms] [phyTblIDs="[54]"] [actionTypes="[8]"] [2024/05/06 16:39:18.177 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:18.177 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=55] [version=27] [2024/05/06 16:39:18.178 +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"=34.416312ms] [job="ID:55, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:54, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:18.01 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:18.209 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 249, 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:39:18.01 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:18.269 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=55] [2024/05/06 16:39:18.269 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:18.274 +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:39:18.316 +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:39:18.282 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:18.316 +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:39:18.282 +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:39:18.360 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 249, 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:39:18.282 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:18.413 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=27] [neededSchemaVersion=28] ["start time"=1.335491ms] [phyTblIDs="[56]"] [actionTypes="[8]"] [2024/05/06 16:39:18.427 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:18.427 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=57] [version=28] [2024/05/06 16:39:18.428 +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"=16.397986ms] [job="ID:57, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:56, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:18.282 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:18.459 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 249, 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:39:18.282 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:18.493 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=57] [2024/05/06 16:39:18.493 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:18.501 +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:39:18.537 +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:39:18.511 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:18.537 +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:39:18.511 +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:39:18.580 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 249, 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:39:18.511 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:18.627 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=28] [neededSchemaVersion=29] ["start time"=1.830366ms] [phyTblIDs="[58]"] [actionTypes="[8]"] [2024/05/06 16:39:18.677 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:18.677 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=59] [version=29] [2024/05/06 16:39:18.679 +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"=54.450826ms] [job="ID:59, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:58, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:18.511 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:18.707 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 249, 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:39:18.511 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:18.744 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=59] [2024/05/06 16:39:18.745 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:18.750 +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:39:18.752 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(19372) to MEDIUMBLOB"] [2024/05/06 16:39:18.805 +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:39:18.758 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:18.805 +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:39:18.758 +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:39:18.839 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 249, 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:39:18.758 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:18.906 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=29] [neededSchemaVersion=30] ["start time"=1.798038ms] [phyTblIDs="[60]"] [actionTypes="[8]"] [2024/05/06 16:39:18.927 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:18.928 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=61] [version=30] [2024/05/06 16:39:18.929 +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"=24.433118ms] [job="ID:61, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:60, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:18.758 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:18.961 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 249, 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:39:18.758 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:19.006 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=61] [2024/05/06 16:39:19.006 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:19.012 +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:39:19.076 +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:39:19.021 +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:39:19.076 +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:39:19.021 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:19.114 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 249, 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:39:19.021 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:19.179 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=30] [neededSchemaVersion=31] ["start time"=1.601657ms] [phyTblIDs="[62]"] [actionTypes="[8]"] [2024/05/06 16:39:19.227 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:19.227 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=63] [version=31] [2024/05/06 16:39:19.229 +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"=52.272503ms] [job="ID:63, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:62, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:19.021 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:19.264 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 249, 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:39:19.021 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:19.315 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=63] [2024/05/06 16:39:19.316 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:19.317 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.306456949\n# Parse_time: 0\n# Compile_time: 0.001892813\n# Rewrite_time: 0.000009\n# Optimize_time: 0\n# Wait_TS: 0.000049767\n# DB: mysql\n# Is_internal: true\n# Digest: 11757f6de6b3d2a64e92f14cd7b7f739729563ede3b0139d016148eba0b27ebf\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\nCREATE TABLE IF NOT EXISTS mysql.stats_history ( table_id bigint(64) NOT NULL, stats_data longblob NOT NULL, seq_no bigint(64) NOT NULL comment 'sequence number of the gzipped data slice', version bigint(64) NOT NULL comment 'stats version which corresponding to stats:version in EXPLAIN', create_time datetime(6) NOT NULL, UNIQUE KEY table_version_seq (table_id, version, seq_no), KEY table_create_time (table_id, create_time, seq_no) );"] [2024/05/06 16:39:19.323 +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:39:19.365 +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:39:19.331 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:19.365 +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:39:19.331 +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:39:19.401 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 249, 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:39:19.331 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:19.467 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=31] [neededSchemaVersion=32] ["start time"=1.500537ms] [phyTblIDs="[64]"] [actionTypes="[8]"] [2024/05/06 16:39:19.477 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:19.477 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=65] [version=32] [2024/05/06 16:39:19.478 +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"=12.858889ms] [job="ID:65, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:64, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:19.331 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:19.507 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 249, 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:39:19.331 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:19.548 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=65] [2024/05/06 16:39:19.548 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:19.556 +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:39:19.630 +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:39:19.564 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:19.630 +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:39:19.564 +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:39:19.664 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 249, 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:39:19.564 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:19.759 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=32] [neededSchemaVersion=33] ["start time"=2.20192ms] [phyTblIDs="[66]"] [actionTypes="[8]"] [2024/05/06 16:39:19.777 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:19.777 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=67] [version=33] [2024/05/06 16:39:19.779 +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.426664ms] [job="ID:67, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:66, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:19.564 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:19.807 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 249, 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:39:19.564 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:19.919 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=67] [2024/05/06 16:39:19.919 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:19.921 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.367366578\n# Parse_time: 0\n# Compile_time: 0.002978408\n# Rewrite_time: 0.00000764\n# Optimize_time: 0\n# Wait_TS: 0.000059523\n# DB: mysql\n# Is_internal: true\n# Digest: bfb9a3ff60c3c60c054a207c0a0db06c87e29edbe94005d8d5c89fe484f4f90a\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\nCREATE TABLE IF NOT EXISTS mysql.analyze_jobs ( id BIGINT(64) UNSIGNED NOT NULL AUTO_INCREMENT, update_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, table_schema CHAR(64) NOT NULL DEFAULT '', table_name CHAR(64) NOT NULL DEFAULT '', partition_name CHAR(64) NOT NULL DEFAULT '', job_info TEXT NOT NULL, processed_rows BIGINT(64) UNSIGNED NOT NULL DEFAULT 0, start_time TIMESTAMP, end_time TIMESTAMP, state ENUM('pending', 'running', 'finished', 'failed') NOT NULL, fail_reason TEXT, instance VARCHAR(512) NOT NULL comment 'address of the TiDB instance executing the analyze job', process_id BIGINT(64) UNSIGNED comment 'ID of the process executing the analyze job', PRIMARY KEY (id), KEY (update_time) );"] [2024/05/06 16:39:19.923 +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:39:19.947 +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:39:19.931 +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:39:19.947 +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:39:19.931 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:19.986 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 249, 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:39:19.931 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:20.017 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=33] [neededSchemaVersion=34] ["start time"=943.098µs] [phyTblIDs="[68]"] [actionTypes="[8]"] [2024/05/06 16:39:20.027 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:20.027 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=69] [version=34] [2024/05/06 16:39:20.029 +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"=12.868869ms] [job="ID:69, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:68, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:19.931 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:20.064 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 249, 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:39:19.931 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:20.101 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=69] [2024/05/06 16:39:20.101 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:20.166 +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:39:20.121 +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:39:20.166 +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:39:20.121 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:20.206 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 249, 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:39:20.121 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:20.273 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=34] [neededSchemaVersion=35] ["start time"=1.529154ms] [phyTblIDs="[70]"] [actionTypes="[2097152]"] [2024/05/06 16:39:20.327 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:20.327 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=71] [version=35] [2024/05/06 16:39:20.328 +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"=56.105994ms] [job="ID:71, Type:create view, State:done, SchemaState:public, SchemaID:1, TableID:70, RowCount:0, ArgLen:3, start time: 2024-05-06 16:39:20.121 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:20.357 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 249, 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:39:20.121 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:20.404 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=71] [2024/05/06 16:39:20.404 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:20.411 +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:39:20.452 +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:39:20.421 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:20.452 +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:39:20.421 +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:39:20.486 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 249, 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:39:20.421 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:20.548 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=35] [neededSchemaVersion=36] ["start time"=1.458335ms] [phyTblIDs="[72]"] [actionTypes="[8]"] [2024/05/06 16:39:20.577 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:20.577 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=73] [version=36] [2024/05/06 16:39:20.578 +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.176813ms] [job="ID:73, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:72, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:20.421 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:20.612 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 249, 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:39:20.421 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:20.683 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=73] [2024/05/06 16:39:20.683 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:20.687 +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:39:20.734 +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:39:20.695 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:20.734 +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:39:20.695 +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:39:20.782 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 249, 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:39:20.695 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:20.825 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=36] [neededSchemaVersion=37] ["start time"=1.251371ms] [phyTblIDs="[74]"] [actionTypes="[8]"] [2024/05/06 16:39:20.878 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:20.878 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=75] [version=37] [2024/05/06 16:39:20.880 +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"=56.725862ms] [job="ID:75, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:74, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:20.695 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:20.912 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 249, 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:39:20.695 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:20.947 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=75] [2024/05/06 16:39:20.947 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:20.952 +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:39:20.986 +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:39:20.96 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:20.986 +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:39:20.96 +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:39:21.025 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 249, 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:39:20.96 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:21.079 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=37] [neededSchemaVersion=38] ["start time"=1.946014ms] [phyTblIDs="[76]"] [actionTypes="[8]"] [2024/05/06 16:39:21.127 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:21.127 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=77] [version=38] [2024/05/06 16:39:21.129 +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"=52.77686ms] [job="ID:77, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:76, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:20.96 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:21.159 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 249, 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:39:20.96 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:21.193 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=77] [2024/05/06 16:39:21.194 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:21.202 +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:39:21.269 +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:39:21.21 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:21.270 +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:39:21.21 +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:39:21.309 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 249, 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:39:21.21 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:21.471 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=38] [neededSchemaVersion=39] ["start time"=2.531279ms] [phyTblIDs="[78]"] [actionTypes="[8]"] [2024/05/06 16:39:21.527 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:21.527 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=79] [version=39] [2024/05/06 16:39:21.529 +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"=61.066202ms] [job="ID:79, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:78, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:21.21 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:21.562 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 249, 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:39:21.21 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:21.658 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=79] [2024/05/06 16:39:21.658 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:21.659 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.459296699\n# Parse_time: 0\n# Compile_time: 0.002878381\n# Rewrite_time: 0.000007463\n# Optimize_time: 0\n# Wait_TS: 0.00005328\n# DB: mysql\n# Is_internal: true\n# Digest: a30bd3c3a49070c554e65922e84c6b76e646842e3925a859fcde73941a7cb423\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\nCREATE TABLE IF NOT EXISTS mysql.tidb_ttl_table_status ( table_id bigint(64) PRIMARY KEY, parent_table_id bigint(64), table_statistics text DEFAULT NULL, last_job_id varchar(64) DEFAULT NULL, last_job_start_time timestamp NULL DEFAULT NULL, last_job_finish_time timestamp NULL DEFAULT NULL, last_job_ttl_expire timestamp NULL DEFAULT NULL, last_job_summary text DEFAULT NULL, current_job_id varchar(64) DEFAULT NULL, current_job_owner_id varchar(64) DEFAULT NULL, current_job_owner_addr varchar(256) DEFAULT NULL, current_job_owner_hb_time timestamp, current_job_start_time timestamp NULL DEFAULT NULL, current_job_ttl_expire timestamp NULL DEFAULT NULL, current_job_state text DEFAULT NULL, current_job_status varchar(64) DEFAULT NULL, current_job_status_update_time timestamp NULL DEFAULT NULL);"] [2024/05/06 16:39:22.152 +08:00] [INFO] [bootstrap.go:529] ["bootstrap successful"] ["take time"=12.775741212s] [2024/05/06 16:39:22.153 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:39:22.153 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 259, tp add index"] ["take time"=20.995µs] [2024/05/06 16:39:22.153 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 250, tp add index"] ["take time"=15.627µs] [2024/05/06 16:39:22.154 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 251, tp add index"] ["take time"=14.25µs] [2024/05/06 16:39:22.154 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 252, tp add index"] ["take time"=16.626µs] [2024/05/06 16:39:22.154 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 253, tp add index"] ["take time"=20.527µs] [2024/05/06 16:39:22.154 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 254, tp add index"] ["take time"=26.338µs] [2024/05/06 16:39:22.154 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 255, tp add index"] ["take time"=19.146µs] [2024/05/06 16:39:22.154 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 256, tp add index"] ["take time"=18.036µs] [2024/05/06 16:39:22.154 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 257, tp add index"] ["take time"=17.067µs] [2024/05/06 16:39:22.154 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 258, tp add index"] ["take time"=21.399µs] [2024/05/06 16:39:22.154 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:39:22.154 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 249, tp general"] ["take time"=10.243µs] [2024/05/06 16:39:22.154 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 247, tp general"] ["take time"=6.673µs] [2024/05/06 16:39:22.154 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 248, tp add index"] ["take time"=1.549µs] [2024/05/06 16:39:22.154 +08:00] [INFO] [delete_range.go:148] ["[ddl] closing delRange"] [2024/05/06 16:39:22.155 +08:00] [INFO] [session_pool.go:94] ["[ddl] closing sessionPool"] [2024/05/06 16:39:22.160 +08:00] [INFO] [ddl.go:833] ["[ddl] DDL closed"] [ID=f909683f-be46-42d4-8318-8f40b9a4d57a] ["take time"=7.072411ms] [2024/05/06 16:39:22.160 +08:00] [INFO] [ddl.go:657] ["[ddl] stop DDL"] [ID=f909683f-be46-42d4-8318-8f40b9a4d57a] [2024/05/06 16:39:22.160 +08:00] [INFO] [domain.go:574] ["topNSlowQueryLoop exited."] [2024/05/06 16:39:22.160 +08:00] [INFO] [domain.go:1156] ["closestReplicaReadCheckLoop exited."] [2024/05/06 16:39:22.160 +08:00] [INFO] [domain.go:628] ["globalConfigSyncerKeeper exited."] [2024/05/06 16:39:22.160 +08:00] [INFO] [domain.go:603] ["infoSyncerKeeper exited."] [2024/05/06 16:39:22.160 +08:00] [INFO] [domain.go:651] ["topologySyncerKeeper exited."] [2024/05/06 16:39:22.160 +08:00] [INFO] [domain.go:792] ["loadSchemaInLoop exited."] [2024/05/06 16:39:22.161 +08:00] [INFO] [domain.go:920] ["domain closed"] ["take time"=7.461342ms] [2024/05/06 16:39:22.161 +08:00] [INFO] [tidb.go:77] ["new domain"] [store=7f6a167e-97ac-466c-944a-3217121132b2] ["ddl lease"=500ms] ["stats lease"=-1ns] ["index usage sync lease"=0s] [2024/05/06 16:39:22.221 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=39] ["start time"=59.508201ms] [2024/05/06 16:39:22.224 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:39:22.225 +08:00] [INFO] [ddl.go:719] ["[ddl] start DDL"] [ID=b9850a79-0d4d-4cf1-8c3a-4f08fb8262d0] [runWorker=true] [2024/05/06 16:39:22.225 +08:00] [INFO] [ddl.go:665] ["[ddl] start delRangeManager OK"] ["is a emulator"=true] [2024/05/06 16:39:22.225 +08:00] [INFO] [delete_range.go:158] ["[ddl] start delRange emulator"] [2024/05/06 16:39:22.225 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 260, tp general"] [2024/05/06 16:39:22.226 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 261, tp add index"] [2024/05/06 16:39:22.245 +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:39:22.245 +08:00] [INFO] [env.go:108] ["[ddl-ingest] the lightning sorted dir"] ["data path:"=/tmp/tidb/tmp_ddl-4000] [2024/05/06 16:39:22.245 +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:39:22.246 +08:00] [WARN] [domain.go:1120] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 16:39:22.267 +08:00] [WARN] [sysvar_cache.go:50] ["sysvar cache is empty, triggering rebuild"] [2024/05/06 16:39:22.465 +08:00] [INFO] [set.go:160] ["set global var"] [conn=101] [name=transaction_isolation] [val=READ-COMMITTED] [2024/05/06 16:39:22.523 +08:00] [INFO] [set.go:160] ["set global var"] [conn=101] [name=tx_isolation] [val=READ-COMMITTED] [2024/05/06 16:39:22.529 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=102] [schemaVersion=39] [cur_db=test] [sql="drop table if exists t1"] [user=] [2024/05/06 16:39:22.530 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=102] [schemaVersion=39] [cur_db=test] [sql="drop table if exists t2"] [user=] [2024/05/06 16:39:22.532 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=102] [schemaVersion=39] [cur_db=test] [sql="create table t1(id1 int, id2 int, id3 int, PRIMARY KEY(id1), UNIQUE KEY udx_id2 (id2))"] [user=] [2024/05/06 16:39:22.565 +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:39:22.54 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:22.565 +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:39:22.54 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="create table t1(id1 int, id2 int, id3 int, PRIMARY KEY(id1), UNIQUE KEY udx_id2 (id2))"] [2024/05/06 16:39:23.266 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 262, 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:39:22.54 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:23.312 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=39] [neededSchemaVersion=40] ["start time"=1.266638ms] [phyTblIDs="[80]"] [actionTypes="[8]"] [2024/05/06 16:39:23.346 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=81] [version=40] [2024/05/06 16:39:23.349 +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.249459ms] [job="ID:81, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:80, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:22.54 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:23.379 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 262, 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:39:22.54 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:23.419 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=81] [2024/05/06 16:39:23.419 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:23.420 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Conn_ID: 102\n# Query_time: 0.889448637\n# Parse_time: 0.000898242\n# Compile_time: 0.000698685\n# Rewrite_time: 0.00000611\n# Optimize_time: 0.000284859\n# Wait_TS: 0.000039864\n# DB: test\n# Is_internal: false\n# Digest: 54f48162a477925f3e5af75acc67167b75c3c3ff88049c2b29372f0e6105a112\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 t1(id1 int, id2 int, id3 int, PRIMARY KEY(id1), UNIQUE KEY udx_id2 (id2));"] [2024/05/06 16:39:23.424 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=102] [schemaVersion=40] [cur_db=test] [sql="create table t2(id1 int, id2 int, id3 int, PRIMARY KEY(id1), UNIQUE KEY udx_id2 (id2))"] [user=] [2024/05/06 16:39:23.458 +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:2, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:23.433 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:23.458 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:83, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:23.433 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="create table t2(id1 int, id2 int, id3 int, PRIMARY KEY(id1), UNIQUE KEY udx_id2 (id2))"] [2024/05/06 16:39:23.497 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 262, tp general"] [job="ID:83, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:39:23.433 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:23.536 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=40] [neededSchemaVersion=41] ["start time"=1.693949ms] [phyTblIDs="[82]"] [actionTypes="[8]"] [2024/05/06 16:39:23.596 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=83] [version=41] [2024/05/06 16:39:23.598 +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"=64.439414ms] [job="ID:83, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:23.433 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:23.629 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 262, tp general"] [job="ID:83, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 16:39:23.433 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:23.664 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=83] [2024/05/06 16:39:23.665 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:24.103 +08:00] [INFO] [region_request.go:1285] ["send request failed, err: context canceled"] [req-ts=449572966000230400] [req-type=Cop] [region="{ region id: 2, ver: 1, confVer: 1 }"] [region-is-valid=true] [retry-times=0] [replica-read-type=leader] [replica-selector-state=accessKnownLeader] [stale-read=false] [replica-status="peer: 3, store: 1, isEpochStale: false, attempts: 1, replica-epoch: 0, store-epoch: 0, store-state: resolved, store-liveness-state: reachable"] [total-backoff-ms=0] [total-backoff-times=0] [total-region-errors=] [2024/05/06 16:39:24.129 +08:00] [INFO] [region_request.go:1285] ["send request failed, err: context canceled"] [req-ts=449572966007046144] [req-type=Cop] [region="{ region id: 2, ver: 1, confVer: 1 }"] [region-is-valid=true] [retry-times=0] [replica-read-type=leader] [replica-selector-state=accessKnownLeader] [stale-read=false] [replica-status="peer: 3, store: 1, isEpochStale: false, attempts: 1, replica-epoch: 0, store-epoch: 0, store-state: resolved, store-liveness-state: reachable"] [total-backoff-ms=0] [total-backoff-times=0] [total-region-errors=] [2024/05/06 16:39:24.153 +08:00] [INFO] [region_request.go:1285] ["send request failed, err: context canceled"] [req-ts=449572966013599744] [req-type=Cop] [region="{ region id: 2, ver: 1, confVer: 1 }"] [region-is-valid=true] [retry-times=0] [replica-read-type=leader] [replica-selector-state=accessKnownLeader] [stale-read=false] [replica-status="peer: 3, store: 1, isEpochStale: false, attempts: 1, replica-epoch: 0, store-epoch: 0, store-state: resolved, store-liveness-state: reachable"] [total-backoff-ms=0] [total-backoff-times=0] [total-region-errors=] [2024/05/06 16:39:24.182 +08:00] [INFO] [region_request.go:1285] ["send request failed, err: context canceled"] [req-ts=449572966020939776] [req-type=Cop] [region="{ region id: 2, ver: 1, confVer: 1 }"] [region-is-valid=true] [retry-times=0] [replica-read-type=leader] [replica-selector-state=accessKnownLeader] [stale-read=false] [replica-status="peer: 3, store: 1, isEpochStale: false, attempts: 1, replica-epoch: 0, store-epoch: 0, store-state: resolved, store-liveness-state: reachable"] [total-backoff-ms=0] [total-backoff-times=0] [total-region-errors=] [2024/05/06 16:39:24.209 +08:00] [INFO] [region_request.go:1285] ["send request failed, err: context canceled"] [req-ts=449572966028017664] [req-type=Cop] [region="{ region id: 2, ver: 1, confVer: 1 }"] [region-is-valid=true] [retry-times=0] [replica-read-type=leader] [replica-selector-state=accessKnownLeader] [stale-read=false] [replica-status="peer: 3, store: 1, isEpochStale: false, attempts: 1, replica-epoch: 0, store-epoch: 0, store-state: resolved, store-liveness-state: reachable"] [total-backoff-ms=0] [total-backoff-times=0] [total-region-errors=] [2024/05/06 16:39:24.246 +08:00] [INFO] [info.go:1114] [SetTiFlashGroupConfig] [2024/05/06 16:39:24.607 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=102] [schemaVersion=41] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:39:24.625 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:85, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:80, RowCount:0, ArgLen:3, start time: 2024-05-06 16:39:24.614 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:24.626 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:85, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:80, RowCount:0, ArgLen:3, start time: 2024-05-06 16:39:24.614 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:39:24.661 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 262, tp general"] [job="ID:85, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:80, RowCount:0, ArgLen:0, start time: 2024-05-06 16:39:24.614 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:24.690 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=41] [neededSchemaVersion=42] ["start time"=1.12656ms] [phyTblIDs="[80,84]"] [actionTypes="[2048,2048]"] [2024/05/06 16:39:24.746 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=85] [version=42] [2024/05/06 16:39:24.747 +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"=58.626068ms] [job="ID:85, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:80, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:24.614 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:24.772 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=85] [elementID=1] [comment="table ID is 80"] [2024/05/06 16:39:24.777 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=85] [jobType="truncate table"] [2024/05/06 16:39:24.780 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 262, tp general"] [job="ID:85, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:80, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:24.614 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:24.808 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=85] [elementID=1] [startKey=748000000000000050] [endKey=748000000000000051] [2024/05/06 16:39:24.829 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=85] [2024/05/06 16:39:24.829 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:24.880 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=102] [schemaVersion=42] [cur_db=test] [sql="truncate table t1"] [user=] [2024/05/06 16:39:24.896 +08:00] [INFO] [ddl_worker.go:314] ["[ddl] add DDL jobs"] ["batch count"=1] [jobs="ID:87, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:84, RowCount:0, ArgLen:3, start time: 2024-05-06 16:39:24.888 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:24.896 +08:00] [INFO] [ddl.go:1029] ["[ddl] start DDL job"] [job="ID:87, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:84, RowCount:0, ArgLen:3, start time: 2024-05-06 16:39:24.888 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="truncate table t1"] [2024/05/06 16:39:24.929 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 262, tp general"] [job="ID:87, Type:truncate table, State:queueing, SchemaState:none, SchemaID:2, TableID:84, RowCount:0, ArgLen:0, start time: 2024-05-06 16:39:24.888 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:24.956 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=42] [neededSchemaVersion=43] ["start time"=1.166613ms] [phyTblIDs="[84,86]"] [actionTypes="[2048,2048]"] [2024/05/06 16:39:24.996 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=87] [version=43] [2024/05/06 16:39:24.998 +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"=44.377982ms] [job="ID:87, Type:truncate table, State:done, SchemaState:public, SchemaID:2, TableID:84, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:24.888 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:25.025 +08:00] [INFO] [delete_range.go:440] ["[ddl] insert into delete-range table"] [jobID=87] [elementID=1] [comment="table ID is 84"] [2024/05/06 16:39:25.030 +08:00] [INFO] [delete_range.go:109] ["[ddl] add job into delete-range table"] [jobID=87] [jobType="truncate table"] [2024/05/06 16:39:25.032 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 262, tp general"] [job="ID:87, Type:truncate table, State:synced, SchemaState:public, SchemaID:2, TableID:84, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:24.888 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:25.072 +08:00] [INFO] [delete_range.go:245] ["[ddl] delRange emulator complete task"] [jobID=87] [elementID=1] [startKey=748000000000000054] [endKey=748000000000000055] [2024/05/06 16:39:25.087 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=87] [2024/05/06 16:39:25.088 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:25.131 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:39:25.132 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 267, tp add index"] ["take time"=15.306µs] [2024/05/06 16:39:25.132 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 268, tp add index"] ["take time"=11.385µs] [2024/05/06 16:39:25.132 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 269, tp add index"] ["take time"=10.058µs] [2024/05/06 16:39:25.132 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 270, tp add index"] ["take time"=9.969µs] [2024/05/06 16:39:25.132 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 271, tp add index"] ["take time"=11.027µs] [2024/05/06 16:39:25.132 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 272, tp add index"] ["take time"=9.787µs] [2024/05/06 16:39:25.132 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 263, tp add index"] ["take time"=10.255µs] [2024/05/06 16:39:25.132 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 264, tp add index"] ["take time"=9.689µs] [2024/05/06 16:39:25.132 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 265, tp add index"] ["take time"=13.121µs] [2024/05/06 16:39:25.132 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 266, tp add index"] ["take time"=13.489µs] [2024/05/06 16:39:25.132 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:39:25.132 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 262, tp general"] ["take time"=11.051µs] [2024/05/06 16:39:25.132 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 260, tp general"] ["take time"=4.863µs] [2024/05/06 16:39:25.132 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 261, tp add index"] ["take time"=2.363µs] [2024/05/06 16:39:25.132 +08:00] [INFO] [delete_range.go:148] ["[ddl] closing delRange"] [2024/05/06 16:39:25.133 +08:00] [INFO] [session_pool.go:94] ["[ddl] closing sessionPool"] [2024/05/06 16:39:25.135 +08:00] [INFO] [ddl.go:833] ["[ddl] DDL closed"] [ID=b9850a79-0d4d-4cf1-8c3a-4f08fb8262d0] ["take time"=3.203291ms] [2024/05/06 16:39:25.135 +08:00] [INFO] [ddl.go:657] ["[ddl] stop DDL"] [ID=b9850a79-0d4d-4cf1-8c3a-4f08fb8262d0] [2024/05/06 16:39:25.135 +08:00] [INFO] [domain.go:603] ["infoSyncerKeeper exited."] [2024/05/06 16:39:25.135 +08:00] [INFO] [domain.go:792] ["loadSchemaInLoop exited."] [2024/05/06 16:39:25.135 +08:00] [INFO] [domain.go:651] ["topologySyncerKeeper exited."] [2024/05/06 16:39:25.135 +08:00] [INFO] [domain.go:1748] ["dumpFileGcChecker exited."] [2024/05/06 16:39:25.135 +08:00] [INFO] [domain.go:628] ["globalConfigSyncerKeeper exited."] [2024/05/06 16:39:25.135 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:39:25.135 +08:00] [INFO] [domain.go:1525] ["globalBindHandleWorkerLoop exited."] [2024/05/06 16:39:25.135 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:39:25.135 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:39:25.135 +08:00] [INFO] [domain.go:574] ["topNSlowQueryLoop exited."] [2024/05/06 16:39:25.135 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:39:25.135 +08:00] [INFO] [domain.go:1156] ["closestReplicaReadCheckLoop exited."] [2024/05/06 16:39:25.135 +08:00] [INFO] [handle_hist.go:190] ["SubLoadWorker exited."] [2024/05/06 16:39:25.135 +08:00] [INFO] [domain.go:1444] ["LoadSysVarCacheLoop exited."] [2024/05/06 16:39:25.135 +08:00] [INFO] [domain.go:1394] ["loadPrivilegeInLoop exited."] [2024/05/06 16:39:25.135 +08:00] [INFO] [domain.go:1569] ["handleEvolvePlanTasksLoop exited."] [2024/05/06 16:39:25.138 +08:00] [INFO] [domain.go:920] ["domain closed"] ["take time"=6.884572ms] [2024/05/06 16:39:25.140 +08:00] [INFO] [db.go:567] ["Closing database"] [2024/05/06 16:39:25.140 +08:00] [INFO] [db.go:592] ["Memtable flushed"] [2024/05/06 16:39:25.140 +08:00] [INFO] [db.go:596] ["Compaction finished"] [2024/05/06 16:39:25.140 +08:00] [INFO] [db.go:615] ["BlobManager finished"] [2024/05/06 16:39:25.140 +08:00] [INFO] [db.go:619] ["ResourceManager finished"] [2024/05/06 16:39:25.140 +08:00] [INFO] [db.go:625] ["Waiting for closer"] --- PASS: TestRcTSOCmdCountForPrepareExecuteExtra (15.82s) === RUN TestRcTSOCmdCountForTextSQLExecuteExtra [2024/05/06 16:39:25.152 +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:39:25.155 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:39:25.155 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:39:25.160 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:39:25.160 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:39:25.164 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 16:39:25.166 +08:00] [INFO] [tidb.go:77] ["new domain"] [store=bc95bb16-0326-465c-ac45-86bfcb6b18f0] ["ddl lease"=500ms] ["stats lease"=-1ns] ["index usage sync lease"=0s] [2024/05/06 16:39:25.167 +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/testkit.CreateMockStore\n\ttestkit/mockstore.go:61\nsessiontxn/sessiontxn_test_test.TestRcTSOCmdCountForTextSQLExecuteExtra\n\tsessiontxn/txn_rc_tso_optimize_test.go:497\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1446\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:39:25.184 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=0] ["start time"=17.067086ms] [2024/05/06 16:39:25.187 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:39:25.187 +08:00] [INFO] [ddl.go:719] ["[ddl] start DDL"] [ID=dd937d05-8d41-4f8a-8c6a-4788e0503807] [runWorker=true] [2024/05/06 16:39:25.187 +08:00] [INFO] [ddl.go:665] ["[ddl] start delRangeManager OK"] ["is a emulator"=true] [2024/05/06 16:39:25.187 +08:00] [INFO] [delete_range.go:158] ["[ddl] start delRange emulator"] [2024/05/06 16:39:25.187 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 274, tp add index"] [2024/05/06 16:39:25.187 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 273, tp general"] [2024/05/06 16:39:25.188 +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:39:25.188 +08:00] [INFO] [env.go:108] ["[ddl-ingest] the lightning sorted dir"] ["data path:"=/tmp/tidb/tmp_ddl-4000] [2024/05/06 16:39:25.188 +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:39:25.188 +08:00] [WARN] [domain.go:1120] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 16:39:25.192 +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:39:25.209 +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:39:25.2 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:25.209 +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:39:25.2 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE DATABASE IF NOT EXISTS test"] [2024/05/06 16:39:25.439 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:39:25.689 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:39:25.940 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:39:26.189 +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).loadSchemaInLoop\n\tdomain/domain.go:799\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1594"] [version=0] [2024/05/06 16:39:26.228 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 275, 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:39:25.2 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:26.267 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=1] ["start time"=16.041086ms] [2024/05/06 16:39:26.270 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:39:26.288 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:26.288 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=3] [version=1] [2024/05/06 16:39:26.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=1] ["take time"=40.619769ms] [job="ID:3, Type:create schema, State:done, SchemaState:public, SchemaID:2, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 16:39:25.2 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:26.321 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 275, 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:39:25.2 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:26.343 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=3] [2024/05/06 16:39:26.343 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:26.344 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 1.151876489\n# Parse_time: 0\n# Compile_time: 0.000394859\n# Rewrite_time: 0.000013391\n# Optimize_time: 0\n# Wait_TS: 0.000046809\n# DB: mysql\n# Is_internal: true\n# Digest: 0a22979ad136f741465cf206b13e5717b9758dda34f7cae5a7a925f91711d6a0\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 mysql;\nCREATE DATABASE IF NOT EXISTS test;"] [2024/05/06 16:39:26.346 +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:39:26.368 +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:39:26.521 +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:39:26.379 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:26.521 +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:39:26.379 +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:39:26.560 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 275, 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:39:26.379 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:26.855 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=1] [neededSchemaVersion=2] ["start time"=6.190279ms] [phyTblIDs="[4]"] [actionTypes="[8]"] [2024/05/06 16:39:26.889 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:26.889 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=5] [version=2] [2024/05/06 16:39:26.891 +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"=42.993633ms] [job="ID:5, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:4, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:26.379 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:26.929 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 275, 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:39:26.379 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:27.088 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=5] [2024/05/06 16:39:27.088 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:27.089 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.731055935\n# Parse_time: 0\n# Compile_time: 0.010422363\n# Rewrite_time: 0.000012213\n# Optimize_time: 0\n# Wait_TS: 0.000068455\n# DB: mysql\n# Is_internal: true\n# Digest: 14c6b489558060bdbede877927034270db5af07c6621aa28f87eeaec8727e925\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\nCREATE TABLE IF NOT EXISTS mysql.user ( Host CHAR(255), User CHAR(32), authentication_string TEXT, plugin CHAR(64), Select_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Insert_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Update_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Delete_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Drop_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Process_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Grant_priv ENUM('N','Y') NOT NULL DEFAULT 'N', References_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Show_db_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Super_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_tmp_table_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Lock_tables_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Execute_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Show_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Index_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_user_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Event_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Repl_slave_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Repl_client_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Trigger_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_role_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Drop_role_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Account_locked ENUM('N','Y') NOT NULL DEFAULT 'N', Shutdown_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Reload_priv ENUM('N','Y') NOT NULL DEFAULT 'N', FILE_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Config_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_Tablespace_Priv ENUM('N','Y') NOT NULL DEFAULT 'N', Password_reuse_history smallint unsigned DEFAULT NULL, Password_reuse_time smallint unsigned DEFAULT NULL, User_attributes json, Token_issuer VARCHAR(255), Password_expired ENUM('N','Y') NOT NULL DEFAULT 'N', Password_last_changed TIMESTAMP DEFAULT CURRENT_TIMESTAMP(), Password_lifetime SMALLINT UNSIGNED DEFAULT NULL, PRIMARY KEY (Host, User));"] [2024/05/06 16:39:27.094 +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:39:27.129 +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:39:27.103 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:27.129 +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:39:27.103 +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:39:27.163 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 275, 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:39:27.103 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:27.188 +08:00] [INFO] [info.go:1114] [SetTiFlashGroupConfig] [2024/05/06 16:39:27.216 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=2] [neededSchemaVersion=3] ["start time"=1.311912ms] [phyTblIDs="[6]"] [actionTypes="[8]"] [2024/05/06 16:39:27.238 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:27.239 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=7] [version=3] [2024/05/06 16:39:27.241 +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"=26.758728ms] [job="ID:7, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:6, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:27.103 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:27.268 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 275, 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:39:27.103 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:27.304 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=7] [2024/05/06 16:39:27.305 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:27.308 +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:39:27.340 +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:39:27.315 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:27.340 +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:39:27.315 +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:39:27.375 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 275, 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:39:27.315 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:27.424 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=3] [neededSchemaVersion=4] ["start time"=1.123818ms] [phyTblIDs="[8]"] [actionTypes="[8]"] [2024/05/06 16:39:27.439 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:27.439 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=9] [version=4] [2024/05/06 16:39:27.441 +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"=18.633104ms] [job="ID:9, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:8, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:27.315 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:27.473 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 275, 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:39:27.315 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:27.508 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=9] [2024/05/06 16:39:27.508 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:27.528 +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:39:27.623 +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:39:27.539 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:27.624 +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:39:27.539 +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:39:27.663 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 275, 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:39:27.539 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:27.815 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=4] [neededSchemaVersion=5] ["start time"=3.176272ms] [phyTblIDs="[10]"] [actionTypes="[8]"] [2024/05/06 16:39:27.839 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:27.839 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=11] [version=5] [2024/05/06 16:39:27.840 +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.653808ms] [job="ID:11, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:10, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:27.539 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:27.870 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 275, 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:39:27.539 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:27.961 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=11] [2024/05/06 16:39:27.962 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:27.963 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.443951192\n# Parse_time: 0\n# Compile_time: 0.009566618\n# Rewrite_time: 0.000010758\n# Optimize_time: 0\n# Wait_TS: 0.000080604\n# DB: mysql\n# Is_internal: true\n# Digest: aeaf612801484f0311f850d36f60f29e6d904828682c1f3bb7307dff25ca3a15\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\nCREATE TABLE IF NOT EXISTS mysql.db ( Host CHAR(255), DB CHAR(64), User CHAR(32), Select_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Insert_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Update_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Delete_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Drop_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Grant_priv ENUM('N','Y') NOT NULL DEFAULT 'N', References_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Index_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_tmp_table_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Lock_tables_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Show_view_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Create_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Alter_routine_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Execute_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Event_priv ENUM('N','Y') NOT NULL DEFAULT 'N', Trigger_priv ENUM('N','Y') NOT NULL DEFAULT 'N', PRIMARY KEY (Host, DB, User));"] [2024/05/06 16:39:27.967 +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:39:28.012 +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:39:27.976 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:28.012 +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:39:27.976 +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:39:28.049 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 275, 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:39:27.976 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:28.123 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=5] [neededSchemaVersion=6] ["start time"=1.743703ms] [phyTblIDs="[12]"] [actionTypes="[8]"] [2024/05/06 16:39:28.139 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:28.139 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=13] [version=6] [2024/05/06 16:39:28.139 +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"=18.06267ms] [job="ID:13, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:12, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:27.976 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:28.166 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 275, 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:39:27.976 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:28.223 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=13] [2024/05/06 16:39:28.223 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:28.251 +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:39:28.296 +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:39:28.261 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:28.296 +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:39:28.261 +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:39:28.335 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 275, 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:39:28.261 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:28.397 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=6] [neededSchemaVersion=7] ["start time"=1.609781ms] [phyTblIDs="[14]"] [actionTypes="[8]"] [2024/05/06 16:39:28.439 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:28.439 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=15] [version=7] [2024/05/06 16:39:28.440 +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"=44.529906ms] [job="ID:15, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:14, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:28.261 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:28.465 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 275, 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:39:28.261 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:28.507 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=15] [2024/05/06 16:39:28.508 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:28.511 +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:39:28.538 +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:39:28.517 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:28.538 +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:39:28.517 +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:39:28.569 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 275, 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:39:28.517 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:28.614 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=7] [neededSchemaVersion=8] ["start time"=1.024069ms] [phyTblIDs="[16]"] [actionTypes="[8]"] [2024/05/06 16:39:28.639 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:28.639 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=17] [version=8] [2024/05/06 16:39:28.640 +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"=28.286371ms] [job="ID:17, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:16, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:28.517 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:28.666 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 275, 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:39:28.517 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:28.693 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=17] [2024/05/06 16:39:28.694 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:28.697 +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:39:28.732 +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:39:28.704 +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:39:28.732 +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:39:28.704 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:28.764 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 275, 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:39:28.704 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:28.807 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=8] [neededSchemaVersion=9] ["start time"=1.903518ms] [phyTblIDs="[18]"] [actionTypes="[8]"] [2024/05/06 16:39:28.839 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:28.839 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=19] [version=9] [2024/05/06 16:39:28.841 +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"=36.657323ms] [job="ID:19, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:18, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:28.704 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:28.867 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 275, 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:39:28.704 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:28.898 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=19] [2024/05/06 16:39:28.898 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:28.906 +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:39:28.954 +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:39:28.919 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:28.954 +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:39:28.919 +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:39:28.989 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 275, 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:39:28.919 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:29.074 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=9] [neededSchemaVersion=10] ["start time"=1.882333ms] [phyTblIDs="[20]"] [actionTypes="[8]"] [2024/05/06 16:39:29.089 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:29.089 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=21] [version=10] [2024/05/06 16:39:29.091 +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"=20.192882ms] [job="ID:21, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:20, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:28.919 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:29.119 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 275, 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:39:28.919 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:29.160 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=21] [2024/05/06 16:39:29.161 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:29.165 +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:39:29.205 +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:39:29.173 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:29.205 +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:39:29.173 +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:39:29.255 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 275, 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:39:29.173 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:29.308 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=10] [neededSchemaVersion=11] ["start time"=1.443653ms] [phyTblIDs="[22]"] [actionTypes="[8]"] [2024/05/06 16:39:29.339 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:29.339 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=23] [version=11] [2024/05/06 16:39:29.341 +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"=34.980433ms] [job="ID:23, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:22, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:29.173 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:29.374 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 275, 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:39:29.173 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:29.412 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=23] [2024/05/06 16:39:29.413 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:29.421 +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:39:29.422 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(6291456) to MEDIUMBLOB"] [2024/05/06 16:39:29.476 +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:39:29.429 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:29.476 +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:39:29.429 +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:39:29.513 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 275, 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:39:29.429 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:29.617 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=11] [neededSchemaVersion=12] ["start time"=2.290279ms] [phyTblIDs="[24]"] [actionTypes="[8]"] [2024/05/06 16:39:29.638 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:29.639 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=25] [version=12] [2024/05/06 16:39:29.641 +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"=26.933909ms] [job="ID:25, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:24, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:29.429 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:29.670 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 275, 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:39:29.429 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:29.732 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=25] [2024/05/06 16:39:29.732 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:29.733 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.314787439\n# Parse_time: 0\n# Compile_time: 0.002853296\n# Rewrite_time: 0.000009139\n# Optimize_time: 0\n# Wait_TS: 0.000054843\n# DB: mysql\n# Is_internal: true\n# Digest: 7780c45a0aac5f123ac85a7e601e79c5d7779e7c09a19953908e547605ed45d2\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\nCREATE TABLE IF NOT EXISTS mysql.stats_histograms ( table_id BIGINT(64) NOT NULL, is_index TINYINT(2) NOT NULL, hist_id BIGINT(64) NOT NULL, distinct_count BIGINT(64) NOT NULL, null_count BIGINT(64) NOT NULL DEFAULT 0, tot_col_size BIGINT(64) NOT NULL DEFAULT 0, modify_count BIGINT(64) NOT NULL DEFAULT 0, version BIGINT(64) UNSIGNED NOT NULL DEFAULT 0, cm_sketch BLOB(6291456), stats_ver BIGINT(64) NOT NULL DEFAULT 0, flag BIGINT(64) NOT NULL DEFAULT 0, correlation DOUBLE NOT NULL DEFAULT 0, last_analyze_pos LONGBLOB DEFAULT NULL, UNIQUE INDEX tbl(table_id, is_index, hist_id) );"] [2024/05/06 16:39:29.738 +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:39:29.802 +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:39:29.744 +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:39:29.802 +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:39:29.744 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:29.840 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 275, 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:39:29.744 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:29.913 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=12] [neededSchemaVersion=13] ["start time"=2.004904ms] [phyTblIDs="[26]"] [actionTypes="[8]"] [2024/05/06 16:39:29.939 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:29.939 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=27] [version=13] [2024/05/06 16:39:29.941 +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.356968ms] [job="ID:27, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:26, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:29.744 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:29.970 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 275, 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:39:29.744 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:30.020 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=27] [2024/05/06 16:39:30.020 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:30.027 +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:39:30.061 +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:39:30.035 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:30.061 +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:39:30.035 +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:39:30.095 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 275, 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:39:30.035 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:30.155 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=13] [neededSchemaVersion=14] ["start time"=1.426221ms] [phyTblIDs="[28]"] [actionTypes="[8]"] [2024/05/06 16:39:30.189 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:30.189 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=29] [version=14] [2024/05/06 16:39:30.191 +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"=38.374403ms] [job="ID:29, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:28, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:30.035 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:30.246 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 275, 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:39:30.035 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:30.285 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=29] [2024/05/06 16:39:30.285 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:30.290 +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:39:30.325 +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:39:30.297 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:30.325 +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:39:30.297 +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:39:30.364 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 275, 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:39:30.297 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:30.420 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=14] [neededSchemaVersion=15] ["start time"=1.391773ms] [phyTblIDs="[30]"] [actionTypes="[8]"] [2024/05/06 16:39:30.439 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:30.439 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=31] [version=15] [2024/05/06 16:39:30.440 +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"=22.189272ms] [job="ID:31, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:30, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:30.297 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:30.467 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 275, 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:39:30.297 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:30.510 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=31] [2024/05/06 16:39:30.510 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:30.514 +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:39:30.568 +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:39:30.543 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:30.568 +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:39:30.543 +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:39:30.606 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 275, 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:39:30.543 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:30.655 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=15] [neededSchemaVersion=16] ["start time"=1.264851ms] [phyTblIDs="[32]"] [actionTypes="[8]"] [2024/05/06 16:39:30.689 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:30.689 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=33] [version=16] [2024/05/06 16:39:30.691 +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"=38.33354ms] [job="ID:33, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:32, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:30.543 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:30.719 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 275, 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:39:30.543 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:30.769 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=33] [2024/05/06 16:39:30.769 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:30.775 +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:39:30.813 +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:39:30.782 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:30.813 +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:39:30.782 +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:39:30.853 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 275, 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:39:30.782 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:30.909 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=16] [neededSchemaVersion=17] ["start time"=1.403859ms] [phyTblIDs="[34]"] [actionTypes="[8]"] [2024/05/06 16:39:30.939 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:30.939 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=35] [version=17] [2024/05/06 16:39:30.939 +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"=32.12577ms] [job="ID:35, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:34, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:30.782 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:30.969 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 275, 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:39:30.782 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:31.006 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=35] [2024/05/06 16:39:31.007 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:31.011 +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:39:31.052 +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:39:31.018 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:31.052 +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:39:31.018 +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:39:31.090 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 275, 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:39:31.018 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:31.140 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=17] [neededSchemaVersion=18] ["start time"=1.314098ms] [phyTblIDs="[36]"] [actionTypes="[8]"] [2024/05/06 16:39:31.188 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:31.189 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=37] [version=18] [2024/05/06 16:39:31.189 +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"=50.211737ms] [job="ID:37, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:36, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:31.018 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:31.248 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 275, 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:39:31.018 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:31.284 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=37] [2024/05/06 16:39:31.284 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:31.291 +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:39:31.365 +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:39:31.299 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:31.366 +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:39:31.299 +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:39:31.400 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 275, 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:39:31.299 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:31.494 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=18] [neededSchemaVersion=19] ["start time"=2.47111ms] [phyTblIDs="[38]"] [actionTypes="[8]"] [2024/05/06 16:39:31.539 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:31.539 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=39] [version=19] [2024/05/06 16:39:31.541 +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"=50.451383ms] [job="ID:39, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:38, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:31.299 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:31.570 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 275, 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:39:31.299 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:31.629 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=39] [2024/05/06 16:39:31.629 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:31.630 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.340834849\n# Parse_time: 0\n# Compile_time: 0.002594046\n# Rewrite_time: 0.000007428\n# Optimize_time: 0\n# Wait_TS: 0.000053263\n# DB: mysql\n# Is_internal: true\n# Digest: 0a4bc55a9ab72ef62ddaa1ee6472d7872306066fd783a8bb67047a497fbb4dbe\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\nCREATE TABLE IF NOT EXISTS mysql.bind_info ( original_sql TEXT NOT NULL, bind_sql TEXT NOT NULL, default_db TEXT NOT NULL, status TEXT NOT NULL, create_time TIMESTAMP(3) NOT NULL, update_time TIMESTAMP(3) NOT NULL, charset TEXT NOT NULL, collation TEXT NOT NULL, source VARCHAR(10) NOT NULL DEFAULT 'unknown', sql_digest varchar(64), plan_digest varchar(64), INDEX sql_index(original_sql(700),default_db(68)) COMMENT \"accelerate the speed when add global binding query\", INDEX time_index(update_time) COMMENT \"accelerate the speed when querying with last update time\" ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;"] [2024/05/06 16:39:31.643 +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:39:31.676 +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:39:31.65 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:31.676 +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:39:31.65 +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:39:31.709 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 275, 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:39:31.65 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:31.764 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=19] [neededSchemaVersion=20] ["start time"=1.414117ms] [phyTblIDs="[40]"] [actionTypes="[8]"] [2024/05/06 16:39:31.788 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:31.789 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=41] [version=20] [2024/05/06 16:39:31.789 +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"=26.175793ms] [job="ID:41, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:40, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:31.65 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:31.820 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 275, 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:39:31.65 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:31.869 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=41] [2024/05/06 16:39:31.869 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:31.874 +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:39:31.905 +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:39:31.881 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:31.905 +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:39:31.881 +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:39:31.946 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 275, 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:39:31.881 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:31.987 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=20] [neededSchemaVersion=21] ["start time"=1.065686ms] [phyTblIDs="[42]"] [actionTypes="[8]"] [2024/05/06 16:39:32.039 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:32.039 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=43] [version=21] [2024/05/06 16:39:32.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=21] ["take time"=54.610472ms] [job="ID:43, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:42, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:31.881 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:32.076 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 275, 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:39:31.881 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:32.107 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=43] [2024/05/06 16:39:32.107 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:32.112 +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:39:32.142 +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:39:32.123 +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:39:32.142 +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:39:32.123 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:32.179 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 275, 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:39:32.123 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:32.231 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=21] [neededSchemaVersion=22] ["start time"=918.597µs] [phyTblIDs="[44]"] [actionTypes="[8]"] [2024/05/06 16:39:32.288 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:32.289 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=45] [version=22] [2024/05/06 16:39:32.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=22] ["take time"=60.913234ms] [job="ID:45, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:44, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:32.123 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:32.315 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 275, 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:39:32.123 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:32.341 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=45] [2024/05/06 16:39:32.342 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:32.351 +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:39:32.394 +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:39:32.359 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:32.394 +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:39:32.359 +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:39:32.432 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 275, 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:39:32.359 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:32.507 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=22] [neededSchemaVersion=23] ["start time"=2.154317ms] [phyTblIDs="[46]"] [actionTypes="[8]"] [2024/05/06 16:39:32.539 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:32.539 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=47] [version=23] [2024/05/06 16:39:32.541 +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"=36.892724ms] [job="ID:47, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:46, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:32.359 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:32.570 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 275, 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:39:32.359 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:32.616 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=47] [2024/05/06 16:39:32.616 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:32.619 +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:39:32.659 +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:39:32.626 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:32.659 +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:39:32.626 +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:39:32.698 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 275, 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:39:32.626 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:32.754 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=23] [neededSchemaVersion=24] ["start time"=1.708901ms] [phyTblIDs="[48]"] [actionTypes="[8]"] [2024/05/06 16:39:32.789 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:32.789 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=49] [version=24] [2024/05/06 16:39:32.791 +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"=39.060264ms] [job="ID:49, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:48, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:32.626 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:32.818 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 275, 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:39:32.626 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:32.856 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=49] [2024/05/06 16:39:32.856 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:32.862 +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:39:32.894 +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:39:32.869 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:32.894 +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:39:32.869 +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:39:32.926 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 275, 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:39:32.869 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:32.980 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=24] [neededSchemaVersion=25] ["start time"=1.30429ms] [phyTblIDs="[50]"] [actionTypes="[8]"] [2024/05/06 16:39:33.039 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:33.039 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=51] [version=25] [2024/05/06 16:39:33.041 +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"=62.932815ms] [job="ID:51, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:50, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:32.869 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:33.075 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 275, 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:39:32.869 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:33.112 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=51] [2024/05/06 16:39:33.113 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:33.117 +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:39:33.155 +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:39:33.124 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:33.156 +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:39:33.124 +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:39:33.191 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 275, 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:39:33.124 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:33.241 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=25] [neededSchemaVersion=26] ["start time"=1.326188ms] [phyTblIDs="[52]"] [actionTypes="[8]"] [2024/05/06 16:39:33.289 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:33.289 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=53] [version=26] [2024/05/06 16:39:33.290 +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"=50.066422ms] [job="ID:53, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:52, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:33.124 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:33.320 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 275, 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:39:33.124 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:33.353 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=53] [2024/05/06 16:39:33.353 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:33.357 +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:39:33.388 +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:39:33.364 +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:39:33.388 +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:39:33.364 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:33.422 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 275, 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:39:33.364 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:33.474 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=26] [neededSchemaVersion=27] ["start time"=1.857613ms] [phyTblIDs="[54]"] [actionTypes="[8]"] [2024/05/06 16:39:33.489 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:33.489 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=55] [version=27] [2024/05/06 16:39:33.490 +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"=18.277484ms] [job="ID:55, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:54, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:33.364 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:33.521 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 275, 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:39:33.364 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:33.553 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=55] [2024/05/06 16:39:33.553 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:33.559 +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:39:33.596 +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:39:33.569 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:33.596 +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:39:33.569 +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:39:33.632 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 275, 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:39:33.569 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:33.679 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=27] [neededSchemaVersion=28] ["start time"=1.284171ms] [phyTblIDs="[56]"] [actionTypes="[8]"] [2024/05/06 16:39:33.689 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:33.689 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=57] [version=28] [2024/05/06 16:39:33.690 +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"=12.862094ms] [job="ID:57, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:56, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:33.569 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:33.717 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 275, 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:39:33.569 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:33.751 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=57] [2024/05/06 16:39:33.751 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:33.756 +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:39:33.810 +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:39:33.764 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:33.810 +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:39:33.764 +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:39:33.848 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 275, 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:39:33.764 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:33.894 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=28] [neededSchemaVersion=29] ["start time"=1.20498ms] [phyTblIDs="[58]"] [actionTypes="[8]"] [2024/05/06 16:39:33.939 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:33.939 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=59] [version=29] [2024/05/06 16:39:33.940 +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"=48.046663ms] [job="ID:59, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:58, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:33.764 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:33.970 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 275, 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:39:33.764 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:34.007 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=59] [2024/05/06 16:39:34.008 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:34.014 +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:39:34.015 +08:00] [INFO] [ddl_api.go:1045] ["Automatically convert BLOB(19372) to MEDIUMBLOB"] [2024/05/06 16:39:34.051 +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:39:34.022 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:34.051 +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:39:34.022 +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:39:34.086 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 275, 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:39:34.022 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:34.144 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=29] [neededSchemaVersion=30] ["start time"=2.088782ms] [phyTblIDs="[60]"] [actionTypes="[8]"] [2024/05/06 16:39:34.188 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:34.189 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=61] [version=30] [2024/05/06 16:39:34.190 +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"=48.388338ms] [job="ID:61, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:60, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:34.022 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:34.251 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 275, 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:39:34.022 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:34.293 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=61] [2024/05/06 16:39:34.293 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:34.301 +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:39:34.343 +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:39:34.309 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:34.343 +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:39:34.309 +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:39:34.377 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 275, 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:39:34.309 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:34.439 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=30] [neededSchemaVersion=31] ["start time"=1.523544ms] [phyTblIDs="[62]"] [actionTypes="[8]"] [2024/05/06 16:39:34.489 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:34.489 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=63] [version=31] [2024/05/06 16:39:34.491 +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"=54.596931ms] [job="ID:63, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:62, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:34.309 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:34.518 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 275, 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:39:34.309 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:34.569 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=63] [2024/05/06 16:39:34.569 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:34.575 +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:39:34.612 +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:39:34.583 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:34.612 +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:39:34.583 +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:39:34.666 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 275, 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:39:34.583 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:34.728 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=31] [neededSchemaVersion=32] ["start time"=1.496188ms] [phyTblIDs="[64]"] [actionTypes="[8]"] [2024/05/06 16:39:34.739 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:34.739 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=65] [version=32] [2024/05/06 16:39:34.740 +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"=14.404521ms] [job="ID:65, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:64, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:34.583 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:34.768 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 275, 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:39:34.583 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:34.822 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=65] [2024/05/06 16:39:34.822 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:34.830 +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:39:34.883 +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:39:34.839 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:34.883 +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:39:34.839 +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:39:34.918 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 275, 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:39:34.839 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:35.010 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=32] [neededSchemaVersion=33] ["start time"=2.182935ms] [phyTblIDs="[66]"] [actionTypes="[8]"] [2024/05/06 16:39:35.038 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:35.039 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=67] [version=33] [2024/05/06 16:39:35.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=33] ["take time"=32.044292ms] [job="ID:67, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:66, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:34.839 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:35.073 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 275, 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:39:34.839 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:35.134 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=67] [2024/05/06 16:39:35.134 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:35.135 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.307719819\n# Parse_time: 0\n# Compile_time: 0.003055727\n# Rewrite_time: 0.000008969\n# Optimize_time: 0\n# Wait_TS: 0.000058925\n# DB: mysql\n# Is_internal: true\n# Digest: bfb9a3ff60c3c60c054a207c0a0db06c87e29edbe94005d8d5c89fe484f4f90a\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\nCREATE TABLE IF NOT EXISTS mysql.analyze_jobs ( id BIGINT(64) UNSIGNED NOT NULL AUTO_INCREMENT, update_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, table_schema CHAR(64) NOT NULL DEFAULT '', table_name CHAR(64) NOT NULL DEFAULT '', partition_name CHAR(64) NOT NULL DEFAULT '', job_info TEXT NOT NULL, processed_rows BIGINT(64) UNSIGNED NOT NULL DEFAULT 0, start_time TIMESTAMP, end_time TIMESTAMP, state ENUM('pending', 'running', 'finished', 'failed') NOT NULL, fail_reason TEXT, instance VARCHAR(512) NOT NULL comment 'address of the TiDB instance executing the analyze job', process_id BIGINT(64) UNSIGNED comment 'ID of the process executing the analyze job', PRIMARY KEY (id), KEY (update_time) );"] [2024/05/06 16:39:35.136 +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:39:35.163 +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:39:35.143 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:35.163 +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:39:35.143 +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:39:35.203 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 275, 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:39:35.143 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:35.239 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=33] [neededSchemaVersion=34] ["start time"=968.619µs] [phyTblIDs="[68]"] [actionTypes="[8]"] [2024/05/06 16:39:35.289 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:35.289 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=69] [version=34] [2024/05/06 16:39:35.290 +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"=52.596902ms] [job="ID:69, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:68, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:35.143 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:35.317 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 275, 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:39:35.143 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:35.342 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=69] [2024/05/06 16:39:35.342 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:35.410 +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:39:35.358 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:35.410 +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:39:35.358 +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:39:35.444 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 275, 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:39:35.358 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:35.508 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=34] [neededSchemaVersion=35] ["start time"=1.509031ms] [phyTblIDs="[70]"] [actionTypes="[2097152]"] [2024/05/06 16:39:35.539 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:35.539 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=71] [version=35] [2024/05/06 16:39:35.541 +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"=34.708544ms] [job="ID:71, Type:create view, State:done, SchemaState:public, SchemaID:1, TableID:70, RowCount:0, ArgLen:3, start time: 2024-05-06 16:39:35.358 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:35.571 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 275, 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:39:35.358 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:35.618 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=71] [2024/05/06 16:39:35.618 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:35.623 +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:39:35.674 +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:39:35.63 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:35.674 +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:39:35.63 +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:39:35.710 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 275, 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:39:35.63 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:35.779 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=35] [neededSchemaVersion=36] ["start time"=1.515424ms] [phyTblIDs="[72]"] [actionTypes="[8]"] [2024/05/06 16:39:35.789 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:35.789 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=73] [version=36] [2024/05/06 16:39:35.791 +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"=14.872296ms] [job="ID:73, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:72, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:35.63 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:35.817 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 275, 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:39:35.63 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:35.856 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=73] [2024/05/06 16:39:35.857 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:35.860 +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:39:35.896 +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:39:35.868 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:35.896 +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:39:35.868 +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:39:35.936 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 275, 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:39:35.868 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:35.984 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=36] [neededSchemaVersion=37] ["start time"=1.170897ms] [phyTblIDs="[74]"] [actionTypes="[8]"] [2024/05/06 16:39:36.039 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:36.040 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=75] [version=37] [2024/05/06 16:39:36.042 +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"=58.994607ms] [job="ID:75, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:74, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:35.868 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:36.072 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 275, 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:39:35.868 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:36.106 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=75] [2024/05/06 16:39:36.107 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:36.111 +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:39:36.148 +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:39:36.119 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:36.148 +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:39:36.119 +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:39:36.181 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 275, 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:39:36.119 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:36.265 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=37] [neededSchemaVersion=38] ["start time"=1.207783ms] [phyTblIDs="[76]"] [actionTypes="[8]"] [2024/05/06 16:39:36.289 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:36.289 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=77] [version=38] [2024/05/06 16:39:36.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=38] ["take time"=28.179271ms] [job="ID:77, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:76, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:36.119 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:36.318 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 275, 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:39:36.119 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:36.350 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=77] [2024/05/06 16:39:36.350 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:36.358 +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:39:36.421 +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:39:36.366 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:36.422 +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:39:36.366 +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:39:36.458 +08:00] [INFO] [ddl_worker.go:1180] ["[ddl] run DDL job"] [worker="worker 275, 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:39:36.366 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:36.566 +08:00] [INFO] [domain.go:215] ["diff load InfoSchema success"] [currentSchemaVersion=38] [neededSchemaVersion=39] ["start time"=2.584266ms] [phyTblIDs="[78]"] [actionTypes="[8]"] [2024/05/06 16:39:36.588 +08:00] [INFO] [domain.go:750] ["session manager is nil"] [2024/05/06 16:39:36.589 +08:00] [INFO] [domain.go:769] ["mdl gets lock, update to owner"] [jobID=79] [version=39] [2024/05/06 16:39:36.590 +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"=26.897271ms] [job="ID:79, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:78, RowCount:0, ArgLen:2, start time: 2024-05-06 16:39:36.366 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:36.619 +08:00] [INFO] [ddl_worker.go:657] ["[ddl] finish DDL job"] [worker="worker 275, 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:39:36.366 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 16:39:36.695 +08:00] [INFO] [ddl.go:1127] ["[ddl] DDL job is finished"] [jobID=79] [2024/05/06 16:39:36.695 +08:00] [INFO] [callback.go:121] ["performing DDL change, must reload"] [2024/05/06 16:39:36.696 +08:00] [WARN] [adapter.go:1597] ["# Txn_start_ts: 0\n# Query_time: 0.340911208\n# Parse_time: 0\n# Compile_time: 0.002946214\n# Rewrite_time: 0.000011018\n# Optimize_time: 0\n# Wait_TS: 0.000042014\n# DB: mysql\n# Is_internal: true\n# Digest: a30bd3c3a49070c554e65922e84c6b76e646842e3925a859fcde73941a7cb423\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\nCREATE TABLE IF NOT EXISTS mysql.tidb_ttl_table_status ( table_id bigint(64) PRIMARY KEY, parent_table_id bigint(64), table_statistics text DEFAULT NULL, last_job_id varchar(64) DEFAULT NULL, last_job_start_time timestamp NULL DEFAULT NULL, last_job_finish_time timestamp NULL DEFAULT NULL, last_job_ttl_expire timestamp NULL DEFAULT NULL, last_job_summary text DEFAULT NULL, current_job_id varchar(64) DEFAULT NULL, current_job_owner_id varchar(64) DEFAULT NULL, current_job_owner_addr varchar(256) DEFAULT NULL, current_job_owner_hb_time timestamp, current_job_start_time timestamp NULL DEFAULT NULL, current_job_ttl_expire timestamp NULL DEFAULT NULL, current_job_state text DEFAULT NULL, current_job_status varchar(64) DEFAULT NULL, current_job_status_update_time timestamp NULL DEFAULT NULL);"] [2024/05/06 16:39:37.243 +08:00] [INFO] [bootstrap.go:529] ["bootstrap successful"] ["take time"=12.054779633s] [2024/05/06 16:39:37.244 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:39:37.245 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 285, tp add index"] ["take time"=17.201µs] [2024/05/06 16:39:37.245 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 276, tp add index"] ["take time"=16.141µs] [2024/05/06 16:39:37.245 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 277, tp add index"] ["take time"=15.022µs] [2024/05/06 16:39:37.245 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 278, tp add index"] ["take time"=14.79µs] [2024/05/06 16:39:37.245 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 279, tp add index"] ["take time"=14.021µs] [2024/05/06 16:39:37.245 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 280, tp add index"] ["take time"=11.453µs] [2024/05/06 16:39:37.245 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 281, tp add index"] ["take time"=15.195µs] [2024/05/06 16:39:37.245 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 282, tp add index"] ["take time"=16.422µs] [2024/05/06 16:39:37.245 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 283, tp add index"] ["take time"=13.618µs] [2024/05/06 16:39:37.245 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 284, tp add index"] ["take time"=15.594µs] [2024/05/06 16:39:37.245 +08:00] [INFO] [ddl_workerpool.go:82] ["[ddl] closing workerPool"] [2024/05/06 16:39:37.245 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 275, tp general"] ["take time"=16.481µs] [2024/05/06 16:39:37.245 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 273, tp general"] ["take time"=1.364µs] [2024/05/06 16:39:37.245 +08:00] [INFO] [ddl_worker.go:165] ["[ddl] DDL worker closed"] [worker="worker 274, tp add index"] ["take time"=2.049µs] [2024/05/06 16:39:37.245 +08:00] [INFO] [delete_range.go:148] ["[ddl] closing delRange"] [2024/05/06 16:39:37.246 +08:00] [INFO] [session_pool.go:94] ["[ddl] closing sessionPool"] [2024/05/06 16:39:37.252 +08:00] [INFO] [ddl.go:833] ["[ddl] DDL closed"] [ID=dd937d05-8d41-4f8a-8c6a-4788e0503807] ["take time"=7.966264ms] [2024/05/06 16:39:37.252 +08:00] [INFO] [ddl.go:657] ["[ddl] stop DDL"] [ID=dd937d05-8d41-4f8a-8c6a-4788e0503807] [2024/05/06 16:39:37.253 +08:00] [INFO] [domain.go:574] ["topNSlowQueryLoop exited."] [2024/05/06 16:39:37.253 +08:00] [INFO] [domain.go:603] ["infoSyncerKeeper exited."] [2024/05/06 16:39:37.253 +08:00] [INFO] [domain.go:651] ["topologySyncerKeeper exited."] [2024/05/06 16:39:37.253 +08:00] [INFO] [domain.go:1156] ["closestReplicaReadCheckLoop exited."] [2024/05/06 16:39:37.253 +08:00] [INFO] [domain.go:792] ["loadSchemaInLoop exited."] [2024/05/06 16:39:37.253 +08:00] [INFO] [domain.go:628] ["globalConfigSyncerKeeper exited."] [2024/05/06 16:39:37.253 +08:00] [INFO] [domain.go:920] ["domain closed"] ["take time"=8.355409ms] [2024/05/06 16:39:37.253 +08:00] [INFO] [tidb.go:77] ["new domain"] [store=bc95bb16-0326-465c-ac45-86bfcb6b18f0] ["ddl lease"=500ms] ["stats lease"=-1ns] ["index usage sync lease"=0s] [2024/05/06 16:39:37.321 +08:00] [INFO] [domain.go:241] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=39] ["start time"=66.830293ms] [2024/05/06 16:39:37.324 +08:00] [INFO] [domain.go:525] ["full load and reset schema validator"] [2024/05/06 16:39:37.324 +08:00] [INFO] [ddl.go:719] ["[ddl] start DDL"] [ID=e2555a26-b09b-403f-acff-0f1ddbfc5958] [runWorker=true] [2024/05/06 16:39:37.324 +08:00] [INFO] [ddl.go:665] ["[ddl] start delRangeManager OK"] ["is a emulator"=true] [2024/05/06 16:39:37.325 +08:00] [INFO] [delete_range.go:158] ["[ddl] start delRange emulator"] [2024/05/06 16:39:37.325 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 287, tp add index"] [2024/05/06 16:39:37.325 +08:00] [INFO] [ddl_worker.go:171] ["[ddl] start DDL worker"] [worker="worker 286, tp general"] [2024/05/06 16:39:37.326 +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:39:37.327 +08:00] [INFO] [env.go:108] ["[ddl-ingest] the lightning sorted dir"] ["data path:"=/tmp/tidb/tmp_ddl-4000] [2024/05/06 16:39:37.327 +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:39:37.327 +08:00] [WARN] [domain.go:1120] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 16:39:37.345 +08:00] [WARN] [sysvar_cache.go:50] ["sysvar cache is empty, triggering rebuild"] [2024/05/06 16:39:37.530 +08:00] [INFO] [set.go:160] ["set global var"] [conn=103] [name=transaction_isolation] [val=READ-COMMITTED] [2024/05/06 16:39:37.593 +08:00] [INFO] [set.go:160] ["set global var"] [conn=103] [name=tx_isolation] [val=READ-COMMITTED] [2024/05/06 16:39:37.601 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=104] [schemaVersion=39] [cur_db=test] [sql="drop table if exists t1"] [user=] [2024/05/06 16:39:37.603 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=104] [schemaVersion=39] [cur_db=test] [sql="drop table if exists t2"] [user=] [2024/05/06 16:39:37.605 +08:00] [INFO] [session.go:3817] ["CRUCIAL OPERATION"] [conn=104] [schemaVersion=39] [cur_db=test] [sql="create table t1(id1 int, id2 int, id3 int, PRIMARY KEY(id1), UNIQUE KEY udx_id2 (id2))"] [user=] [2024/05/06 16:39:37.657 +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:39:37.634 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 16:39:37.657 +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:39:37.634 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="create table t1(id1 int, id2 int, id3 int, PRIMARY KEY(id1), UNIQUE KEY udx_id2 (id2))"] -- Test timed out at 2024-05-06 16:39:37 CST -- ================================================================================