==================== Test output for //pkg/statistics/handle/handletest/statstest:statstest_test (shard 8 of 12): === RUN TestInitStats [2024/05/06 17:55:55.014 +08:00] [INFO] [region_cache.go:2683] ["change store resolve state"] [store=1] [addr=store1] [from=unresolved] [to=resolved] [liveness-state=reachable] [2024/05/06 17:55:55.019 +08:00] [INFO] [ddl_api.go:1115] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 17:55:55.019 +08:00] [INFO] [ddl_api.go:1115] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 17:55:55.032 +08:00] [INFO] [ddl_api.go:1115] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 17:55:55.032 +08:00] [INFO] [ddl_api.go:1115] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 17:55:55.038 +08:00] [INFO] [ddl_api.go:1115] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [2024/05/06 17:55:55.062 +08:00] [INFO] [tidb.go:80] ["new domain"] [store=4e8aa083-1f3f-4a34-83eb-3ff7ca0f03b6] ["ddl lease"=500ms] ["stats lease"=-1ns] ["index usage sync lease"=0s] [2024/05/06 17:55:55.455 +08:00] [WARN] [controller.go:185] ["[resource group controller] server does not save config, load config failed"] [2024/05/06 17:55:55.455 +08:00] [INFO] [controller.go:172] ["load resource controller config"] [config="{\"degraded-mode-wait-duration\":\"0s\",\"ltb-max-wait-duration\":\"30s\",\"request-unit\":{\"read-base-cost\":0.125,\"read-per-batch-base-cost\":0.5,\"read-cost-per-byte\":0.0000152587890625,\"write-base-cost\":1,\"write-per-batch-base-cost\":1,\"write-cost-per-byte\":0.0009765625,\"read-cpu-ms-cost\":0.3333333333333333},\"enable-controller-trace-log\":\"false\"}"] [ru-config="{\"ReadBaseCost\":0.125,\"ReadPerBatchBaseCost\":0.5,\"ReadBytesCost\":0.0000152587890625,\"WriteBaseCost\":1,\"WritePerBatchBaseCost\":1,\"WriteBytesCost\":0.0009765625,\"CPUMsCost\":0.3333333333333333,\"LTBMaxWaitDuration\":30000000000,\"DegradedModeWaitDuration\":0}"] [2024/05/06 17:55:55.457 +08:00] [WARN] [domain.go:240] ["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/pkg/domain.(*Domain).getTimestampForSchemaVersionWithNonEmptyDiff\n\tpkg/domain/domain.go:322\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).loadInfoSchema\n\tpkg/domain/domain.go:238\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).Reload\n\tpkg/domain/domain.go:588\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).Init\n\tpkg/domain/domain.go:1239\ngithub.com/pingcap/tidb/pkg/session.(*domainMap).Get.func1\n\tpkg/session/tidb.go:93\ngithub.com/pingcap/tidb/pkg/util.RunWithRetry\n\tpkg/util/misc.go:69\ngithub.com/pingcap/tidb/pkg/session.(*domainMap).Get\n\tpkg/session/tidb.go:79\ngithub.com/pingcap/tidb/pkg/session.createSessionWithOpt\n\tpkg/session/session.go:3584\ngithub.com/pingcap/tidb/pkg/session.createSession\n\tpkg/session/session.go:3576\ngithub.com/pingcap/tidb/pkg/session.runInBootstrapSession\n\tpkg/session/session.go:3526\ngithub.com/pingcap/tidb/pkg/session.bootstrapSessionImpl\n\tpkg/session/session.go:3311\ngithub.com/pingcap/tidb/pkg/session.BootstrapSession\n\tpkg/session/session.go:3277\ngithub.com/pingcap/tidb/pkg/testkit.bootstrap\n\tpkg/testkit/mockstore.go:227\ngithub.com/pingcap/tidb/pkg/testkit.CreateMockStoreAndDomain\n\tpkg/testkit/mockstore.go:200\npkg/statistics/handle/handletest/statstest/statstest_test.TestInitStats\n\tpkg/statistics/handle/handletest/statstest/stats_test.go:246\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [version=0] [2024/05/06 17:55:55.491 +08:00] [INFO] [domain.go:302] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=0] ["start time"=33.53977ms] [2024/05/06 17:55:55.496 +08:00] [INFO] [domain.go:617] ["full load and reset schema validator"] [2024/05/06 17:55:55.496 +08:00] [INFO] [ddl.go:743] ["start DDL"] [category=ddl] [ID=d9a7e690-6649-4216-8e11-f11c248fffca] [runWorker=true] [2024/05/06 17:55:55.497 +08:00] [INFO] [ddl.go:706] ["start delRangeManager OK"] [category=ddl] ["is a emulator"=true] [2024/05/06 17:55:55.497 +08:00] [INFO] [delete_range.go:160] ["start delRange emulator"] [category=ddl] [2024/05/06 17:55:55.498 +08:00] [WARN] [env.go:53] ["initialize environment failed"] [category=ddl-ingest] ["storage limitation"="only support TiKV storage"] ["current storage"=unistore] ["lightning is initialized"=false] [2024/05/06 17:55:55.498 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=loadSchemaInLoop] [2024/05/06 17:55:55.498 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=mdlCheckLoop] [2024/05/06 17:55:55.499 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=topNSlowQueryLoop] [2024/05/06 17:55:55.499 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=infoSyncerKeeper] [2024/05/06 17:55:55.499 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=globalConfigSyncerKeeper] [2024/05/06 17:55:55.499 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=runawayRecordFlushLoop] [2024/05/06 17:55:55.499 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=runawayWatchSyncLoop] [2024/05/06 17:55:55.499 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=topologySyncerKeeper] [2024/05/06 17:55:55.500 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=closestReplicaReadCheckLoop] [2024/05/06 17:55:55.500 +08:00] [WARN] [domain.go:1305] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 17:55:55.500 +08:00] [INFO] [job_table.go:316] ["get global state and global state change"] [category=ddl] [oldState=false] [currState=false] [2024/05/06 17:55:55.500 +08:00] [INFO] [job_table.go:331] ["the owner sets owner operator value"] [category=ddl] [ownerOp=none] [2024/05/06 17:55:55.508 +08:00] [INFO] [session.go:3903] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=0] [cur_db=mysql] [sql="CREATE DATABASE IF NOT EXISTS test"] [user=] [2024/05/06 17:55:55.546 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["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 17:55:55.525 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:55:55.546 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:3, Type:create schema, State:queueing, SchemaState:none, SchemaID:2, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 17:55:55.525 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE DATABASE IF NOT EXISTS test"] [2024/05/06 17:55:55.600 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=3] [category=ddl] [job="ID:3, Type:create schema, State:queueing, SchemaState:none, SchemaID:2, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 17:55:55.525 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:55:55.661 +08:00] [INFO] [domain.go:302] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=1] ["start time"=33.992763ms] [2024/05/06 17:55:55.666 +08:00] [INFO] [domain.go:617] ["full load and reset schema validator"] [2024/05/06 17:55:55.679 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:55:55.679 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=3] [version=1] [2024/05/06 17:55:55.680 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=1] ["take time"=54.063858ms] [job="ID:3, Type:create schema, State:done, SchemaState:public, SchemaID:2, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 17:55:55.525 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:55:55.762 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=3] [job="ID:3, Type:create schema, State:synced, SchemaState:public, SchemaID:2, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 17:55:55.525 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:55:55.792 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=3] [2024/05/06 17:55:55.792 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:55:55.795 +08:00] [INFO] [session.go:3903] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=1] [cur_db=mysql] [sql="CREATE DATABASE IF NOT EXISTS `mysql`"] [user=] [2024/05/06 17:55:55.828 +08:00] [INFO] [session.go:3903] ["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 17:55:56.081 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["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 17:55:55.844 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:55:56.081 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:5, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:4, RowCount:0, ArgLen:2, start time: 2024-05-06 17:55:55.844 +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 17:55:56.142 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=5] [category=ddl] [job="ID:5, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:4, RowCount:0, ArgLen:0, start time: 2024-05-06 17:55:55.844 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:55:56.508 +08:00] [ERROR] [runaway.go:145] ["try to get new runaway watch"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [stack="github.com/pingcap/tidb/pkg/domain.(*Domain).updateNewAndDoneWatch\n\tpkg/domain/runaway.go:145\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).runawayWatchSyncLoop\n\tpkg/domain/runaway.go:170\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:96"] [2024/05/06 17:55:56.508 +08:00] [WARN] [runaway.go:172] ["get runaway watch record failed"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [2024/05/06 17:55:56.636 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=1] [neededSchemaVersion=2] ["start time"=9.96888ms] [gotSchemaVersion=2] [phyTblIDs="[4]"] [actionTypes="[3]"] [2024/05/06 17:55:56.648 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:55:56.648 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=5] [version=2] [2024/05/06 17:55:56.651 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=2] ["take time"=25.134745ms] [job="ID:5, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:4, RowCount:0, ArgLen:2, start time: 2024-05-06 17:55:55.844 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:55:56.745 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=5] [job="ID:5, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:4, RowCount:0, ArgLen:0, start time: 2024-05-06 17:55:55.844 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:55:57.032 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=5] [2024/05/06 17:55:57.032 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:55:57.047 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 1.232474603\n# Parse_time: 0\n# Compile_time: 0.014177659\n# Rewrite_time: 0.000018508\n# Optimize_time: 0\n# Wait_TS: 0.00016129\n# DB: mysql\n# Is_internal: true\n# Digest: 1dcdddcae0fb6a3fa29440fed26e29fecfb2c265d457dd4657cef0ce99abd274\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\nuse mysql;\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 17:55:57.056 +08:00] [INFO] [session.go:3903] ["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 17:55:57.113 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["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 17:55:57.071 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:55:57.113 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:7, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:6, RowCount:0, ArgLen:2, start time: 2024-05-06 17:55:57.071 +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 17:55:57.173 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=7] [category=ddl] [job="ID:7, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:6, RowCount:0, ArgLen:0, start time: 2024-05-06 17:55:57.071 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:55:57.266 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=2] [neededSchemaVersion=3] ["start time"=2.151978ms] [gotSchemaVersion=3] [phyTblIDs="[6]"] [actionTypes="[3]"] [2024/05/06 17:55:57.278 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:55:57.278 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=7] [version=3] [2024/05/06 17:55:57.278 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=3] ["take time"=22.81481ms] [job="ID:7, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:6, RowCount:0, ArgLen:2, start time: 2024-05-06 17:55:57.071 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:55:57.349 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=7] [job="ID:7, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:6, RowCount:0, ArgLen:0, start time: 2024-05-06 17:55:57.071 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:55:57.408 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=7] [2024/05/06 17:55:57.408 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:55:57.410 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.35683254\n# Parse_time: 0\n# Compile_time: 0.002811902\n# Rewrite_time: 0.000013845\n# Optimize_time: 0\n# Wait_TS: 0.000179656\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\n# Resource_group: default\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 17:55:57.414 +08:00] [INFO] [session.go:3903] ["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 17:55:57.463 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["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 17:55:57.426 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:55:57.463 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:9, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:8, RowCount:0, ArgLen:2, start time: 2024-05-06 17:55:57.426 +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 17:55:57.499 +08:00] [INFO] [info.go:1182] [SetTiFlashGroupConfig] [2024/05/06 17:55:57.505 +08:00] [ERROR] [runaway.go:145] ["try to get new runaway watch"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [stack="github.com/pingcap/tidb/pkg/domain.(*Domain).updateNewAndDoneWatch\n\tpkg/domain/runaway.go:145\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).runawayWatchSyncLoop\n\tpkg/domain/runaway.go:170\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:96"] [2024/05/06 17:55:57.506 +08:00] [WARN] [runaway.go:172] ["get runaway watch record failed"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [2024/05/06 17:55:57.533 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=9] [category=ddl] [job="ID:9, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:8, RowCount:0, ArgLen:0, start time: 2024-05-06 17:55:57.426 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:55:57.598 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=3] [neededSchemaVersion=4] ["start time"=1.937392ms] [gotSchemaVersion=4] [phyTblIDs="[8]"] [actionTypes="[3]"] [2024/05/06 17:55:57.609 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:55:57.609 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=9] [version=4] [2024/05/06 17:55:57.610 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=4] ["take time"=15.011466ms] [job="ID:9, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:8, RowCount:0, ArgLen:2, start time: 2024-05-06 17:55:57.426 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:55:57.680 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=9] [job="ID:9, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:8, RowCount:0, ArgLen:0, start time: 2024-05-06 17:55:57.426 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:55:57.739 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=9] [2024/05/06 17:55:57.739 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:55:57.741 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.328434563\n# Parse_time: 0\n# Compile_time: 0.001476453\n# Rewrite_time: 0.000011723\n# Optimize_time: 0\n# Wait_TS: 0.000158573\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# Warnings: [{\"Level\":\"Warning\",\"Message\":\"BLOB/TEXT/JSON column 'Priv' can't have a default value\"}]\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\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 17:55:57.762 +08:00] [INFO] [session.go:3903] ["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) CHARSET utf8mb4 COLLATE utf8mb4_general_ci,\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 17:55:57.883 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["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 17:55:57.777 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:55:57.883 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:11, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:10, RowCount:0, ArgLen:2, start time: 2024-05-06 17:55:57.777 +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) CHARSET utf8mb4 COLLATE utf8mb4_general_ci,\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 17:55:57.949 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=11] [category=ddl] [job="ID:11, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:10, RowCount:0, ArgLen:0, start time: 2024-05-06 17:55:57.777 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:55:58.201 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=4] [neededSchemaVersion=5] ["start time"=5.728419ms] [gotSchemaVersion=5] [phyTblIDs="[10]"] [actionTypes="[3]"] [2024/05/06 17:55:58.220 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:55:58.220 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=11] [version=5] [2024/05/06 17:55:58.221 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=5] ["take time"=26.214507ms] [job="ID:11, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:10, RowCount:0, ArgLen:2, start time: 2024-05-06 17:55:57.777 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:55:58.302 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=11] [job="ID:11, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:10, RowCount:0, ArgLen:0, start time: 2024-05-06 17:55:57.777 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:55:58.472 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=11] [2024/05/06 17:55:58.472 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:55:58.474 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.720888721\n# Parse_time: 0\n# Compile_time: 0.008968424\n# Rewrite_time: 0.000013969\n# Optimize_time: 0\n# Wait_TS: 0.000132655\n# DB: mysql\n# Is_internal: true\n# Digest: e02ee30435ff06e52f357a0a68828973f373118f7009cbdfbeb747a4e7d91418\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\nCREATE TABLE IF NOT EXISTS mysql.db ( Host CHAR(255), DB CHAR(64) CHARSET utf8mb4 COLLATE utf8mb4_general_ci, 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 17:55:58.483 +08:00] [INFO] [session.go:3903] ["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) CHARSET utf8mb4 COLLATE utf8mb4_general_ci,\n\t\tUser\t\tCHAR(32),\n\t\tTable_name\tCHAR(64) CHARSET utf8mb4 COLLATE utf8mb4_general_ci,\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 17:55:58.523 +08:00] [ERROR] [runaway.go:145] ["try to get new runaway watch"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [stack="github.com/pingcap/tidb/pkg/domain.(*Domain).updateNewAndDoneWatch\n\tpkg/domain/runaway.go:145\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).runawayWatchSyncLoop\n\tpkg/domain/runaway.go:170\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:96"] [2024/05/06 17:55:58.523 +08:00] [WARN] [runaway.go:172] ["get runaway watch record failed"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [2024/05/06 17:55:58.572 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["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 17:55:58.497 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:55:58.572 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:13, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:12, RowCount:0, ArgLen:2, start time: 2024-05-06 17:55:58.497 +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) CHARSET utf8mb4 COLLATE utf8mb4_general_ci,\n\t\tUser\t\tCHAR(32),\n\t\tTable_name\tCHAR(64) CHARSET utf8mb4 COLLATE utf8mb4_general_ci,\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 17:55:58.669 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=13] [category=ddl] [job="ID:13, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:12, RowCount:0, ArgLen:0, start time: 2024-05-06 17:55:58.497 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:55:58.908 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=5] [neededSchemaVersion=6] ["start time"=4.815299ms] [gotSchemaVersion=6] [phyTblIDs="[12]"] [actionTypes="[3]"] [2024/05/06 17:55:58.925 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:55:58.925 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=13] [version=6] [2024/05/06 17:55:58.931 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=6] ["take time"=28.154105ms] [job="ID:13, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:12, RowCount:0, ArgLen:2, start time: 2024-05-06 17:55:58.497 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:55:59.104 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=13] [job="ID:13, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:12, RowCount:0, ArgLen:0, start time: 2024-05-06 17:55:58.497 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:55:59.196 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=13] [2024/05/06 17:55:59.196 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:55:59.199 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.718762191\n# Parse_time: 0\n# Compile_time: 0.003728602\n# Rewrite_time: 0.000027577\n# Optimize_time: 0\n# Wait_TS: 0.00016323\n# DB: mysql\n# Is_internal: true\n# Digest: 5759132672d59a4de3b27e6fbbd8f039e7489d9187962651ede26b9390589e5c\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\nCREATE TABLE IF NOT EXISTS mysql.tables_priv ( Host CHAR(255), DB CHAR(64) CHARSET utf8mb4 COLLATE utf8mb4_general_ci, User CHAR(32), Table_name CHAR(64) CHARSET utf8mb4 COLLATE utf8mb4_general_ci, 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 17:55:59.208 +08:00] [INFO] [session.go:3903] ["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) CHARSET utf8mb4 COLLATE utf8mb4_general_ci,\n\t\tUser\t\tCHAR(32),\n\t\tTable_name\tCHAR(64) CHARSET utf8mb4 COLLATE utf8mb4_general_ci,\n\t\tColumn_name\tCHAR(64) CHARSET utf8mb4 COLLATE utf8mb4_general_ci,\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 17:55:59.313 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["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 17:55:59.223 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:55:59.313 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:15, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:14, RowCount:0, ArgLen:2, start time: 2024-05-06 17:55:59.223 +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) CHARSET utf8mb4 COLLATE utf8mb4_general_ci,\n\t\tUser\t\tCHAR(32),\n\t\tTable_name\tCHAR(64) CHARSET utf8mb4 COLLATE utf8mb4_general_ci,\n\t\tColumn_name\tCHAR(64) CHARSET utf8mb4 COLLATE utf8mb4_general_ci,\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 17:55:59.422 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=15] [category=ddl] [job="ID:15, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:14, RowCount:0, ArgLen:0, start time: 2024-05-06 17:55:59.223 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:55:59.520 +08:00] [ERROR] [runaway.go:145] ["try to get new runaway watch"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [stack="github.com/pingcap/tidb/pkg/domain.(*Domain).updateNewAndDoneWatch\n\tpkg/domain/runaway.go:145\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).runawayWatchSyncLoop\n\tpkg/domain/runaway.go:170\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:96"] [2024/05/06 17:55:59.520 +08:00] [WARN] [runaway.go:172] ["get runaway watch record failed"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [2024/05/06 17:55:59.577 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=6] [neededSchemaVersion=7] ["start time"=3.266908ms] [gotSchemaVersion=7] [phyTblIDs="[14]"] [actionTypes="[3]"] [2024/05/06 17:55:59.593 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:55:59.593 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=15] [version=7] [2024/05/06 17:55:59.594 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=7] ["take time"=20.146007ms] [job="ID:15, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:14, RowCount:0, ArgLen:2, start time: 2024-05-06 17:55:59.223 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:55:59.739 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=15] [job="ID:15, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:14, RowCount:0, ArgLen:0, start time: 2024-05-06 17:55:59.223 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:55:59.833 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=15] [2024/05/06 17:55:59.834 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:55:59.838 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.632888594\n# Parse_time: 0\n# Compile_time: 0.003815275\n# Rewrite_time: 0.000014926\n# Optimize_time: 0\n# Wait_TS: 0.000192971\n# DB: mysql\n# Is_internal: true\n# Digest: 36f214f75d4d00ba6ac1ac7b8c95c01ec9574a40c07a536b2afe7a72144551b8\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\nCREATE TABLE IF NOT EXISTS mysql.columns_priv( Host CHAR(255), DB CHAR(64) CHARSET utf8mb4 COLLATE utf8mb4_general_ci, User CHAR(32), Table_name CHAR(64) CHARSET utf8mb4 COLLATE utf8mb4_general_ci, Column_name CHAR(64) CHARSET utf8mb4 COLLATE utf8mb4_general_ci, Timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP, Column_priv SET('Select','Insert','Update','References'), PRIMARY KEY (Host, DB, User, Table_name, Column_name));"] [2024/05/06 17:55:59.844 +08:00] [INFO] [session.go:3903] ["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(16383) DEFAULT NULL);"] [user=] [2024/05/06 17:55:59.923 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["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 17:55:59.865 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:55:59.923 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:17, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:16, RowCount:0, ArgLen:2, start time: 2024-05-06 17:55:59.865 +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(16383) DEFAULT NULL);"] [2024/05/06 17:56:00.052 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=17] [category=ddl] [job="ID:17, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:16, RowCount:0, ArgLen:0, start time: 2024-05-06 17:55:59.865 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:00.182 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=7] [neededSchemaVersion=8] ["start time"=2.166958ms] [gotSchemaVersion=8] [phyTblIDs="[16]"] [actionTypes="[3]"] [2024/05/06 17:56:00.200 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:00.200 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=17] [version=8] [2024/05/06 17:56:00.201 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=8] ["take time"=22.190024ms] [job="ID:17, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:16, RowCount:0, ArgLen:2, start time: 2024-05-06 17:55:59.865 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:00.303 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=17] [job="ID:17, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:16, RowCount:0, ArgLen:0, start time: 2024-05-06 17:55:59.865 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:00.365 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=17] [2024/05/06 17:56:00.365 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:00.367 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.526005335\n# Parse_time: 0\n# Compile_time: 0.002716787\n# Rewrite_time: 0.000038665\n# Optimize_time: 0\n# Wait_TS: 0.000211339\n# DB: mysql\n# Is_internal: true\n# Digest: 1b59564c29970a0a8880792322e02b7df09888f7d0a2dfc190f3ed0ff12369d4\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\nCREATE TABLE IF NOT EXISTS mysql.GLOBAL_VARIABLES( VARIABLE_NAME VARCHAR(64) NOT NULL PRIMARY KEY, VARIABLE_VALUE VARCHAR(16383) DEFAULT NULL);"] [2024/05/06 17:56:00.372 +08:00] [INFO] [session.go:3903] ["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 17:56:00.445 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["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 17:56:00.401 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:00.445 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:19, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:18, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:00.401 +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 17:56:00.508 +08:00] [ERROR] [runaway.go:145] ["try to get new runaway watch"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [stack="github.com/pingcap/tidb/pkg/domain.(*Domain).updateNewAndDoneWatch\n\tpkg/domain/runaway.go:145\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).runawayWatchSyncLoop\n\tpkg/domain/runaway.go:170\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:96"] [2024/05/06 17:56:00.508 +08:00] [WARN] [runaway.go:172] ["get runaway watch record failed"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [2024/05/06 17:56:00.563 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=19] [category=ddl] [job="ID:19, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:18, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:00.401 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:00.641 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=8] [neededSchemaVersion=9] ["start time"=2.110097ms] [gotSchemaVersion=9] [phyTblIDs="[18]"] [actionTypes="[3]"] [2024/05/06 17:56:00.655 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:00.655 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=19] [version=9] [2024/05/06 17:56:00.660 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=9] ["take time"=21.719727ms] [job="ID:19, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:18, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:00.401 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:00.733 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=19] [job="ID:19, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:18, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:00.401 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:00.835 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=19] [2024/05/06 17:56:00.835 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:00.837 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.466939377\n# Parse_time: 0\n# Compile_time: 0.001822077\n# Rewrite_time: 0.000012111\n# Optimize_time: 0\n# Wait_TS: 0.000171078\n# DB: mysql\n# Is_internal: true\n# Digest: ade124588c0253b12ce82702300a98a0ff778787142ce450039efbd6347664dc\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\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 17:56:00.846 +08:00] [INFO] [session.go:3903] ["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 17:56:00.924 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["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 17:56:00.864 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:00.925 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:21, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:20, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:00.864 +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 17:56:01.059 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=21] [category=ddl] [job="ID:21, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:20, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:00.864 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:01.204 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=9] [neededSchemaVersion=10] ["start time"=2.730494ms] [gotSchemaVersion=10] [phyTblIDs="[20]"] [actionTypes="[3]"] [2024/05/06 17:56:01.217 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:01.218 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=21] [version=10] [2024/05/06 17:56:01.218 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=10] ["take time"=17.22293ms] [job="ID:21, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:20, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:00.864 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:01.393 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=21] [job="ID:21, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:20, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:00.864 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:01.468 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=21] [2024/05/06 17:56:01.469 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:01.471 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.628414133\n# Parse_time: 0\n# Compile_time: 0.004009868\n# Rewrite_time: 0.000014167\n# Optimize_time: 0\n# Wait_TS: 0.000163272\n# DB: mysql\n# Is_internal: true\n# Digest: be740d9d66f07e7842e3b48027d6fb3ef54623295384e63dcbf3e1c8a9f15c10\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\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 17:56:01.478 +08:00] [INFO] [session.go:3903] ["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 17:56:01.519 +08:00] [ERROR] [runaway.go:145] ["try to get new runaway watch"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [stack="github.com/pingcap/tidb/pkg/domain.(*Domain).updateNewAndDoneWatch\n\tpkg/domain/runaway.go:145\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).runawayWatchSyncLoop\n\tpkg/domain/runaway.go:170\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:96"] [2024/05/06 17:56:01.519 +08:00] [WARN] [runaway.go:172] ["get runaway watch record failed"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [2024/05/06 17:56:01.549 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["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 17:56:01.492 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:01.549 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:23, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:22, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:01.492 +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 17:56:01.623 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=23] [category=ddl] [job="ID:23, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:22, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:01.492 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:01.761 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=10] [neededSchemaVersion=11] ["start time"=19.185386ms] [gotSchemaVersion=11] [phyTblIDs="[22]"] [actionTypes="[3]"] [2024/05/06 17:56:01.786 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:01.786 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=23] [version=11] [2024/05/06 17:56:01.789 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=11] ["take time"=47.768636ms] [job="ID:23, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:22, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:01.492 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:01.911 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=23] [job="ID:23, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:22, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:01.492 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:01.992 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=23] [2024/05/06 17:56:01.992 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:01.994 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.518509616\n# Parse_time: 0\n# Compile_time: 0.002994212\n# Rewrite_time: 0.000013269\n# Optimize_time: 0\n# Wait_TS: 0.000163932\n# DB: mysql\n# Is_internal: true\n# Digest: 2db2929397c955d277d1b5400209b98787aa0797f979b9c213e3924c27b82ea9\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\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 17:56:02.013 +08:00] [INFO] [session.go:3903] ["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 17:56:02.015 +08:00] [INFO] [ddl_api.go:1115] ["Automatically convert BLOB(6291456) to MEDIUMBLOB"] [2024/05/06 17:56:02.155 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["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 17:56:02.031 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:02.155 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:25, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:24, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:02.031 +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 17:56:02.254 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=25] [category=ddl] [job="ID:25, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:24, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:02.031 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:02.498 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=11] [neededSchemaVersion=12] ["start time"=3.894165ms] [gotSchemaVersion=12] [phyTblIDs="[24]"] [actionTypes="[3]"] [2024/05/06 17:56:02.511 +08:00] [ERROR] [runaway.go:145] ["try to get new runaway watch"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [stack="github.com/pingcap/tidb/pkg/domain.(*Domain).updateNewAndDoneWatch\n\tpkg/domain/runaway.go:145\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).runawayWatchSyncLoop\n\tpkg/domain/runaway.go:170\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:96"] [2024/05/06 17:56:02.512 +08:00] [WARN] [runaway.go:172] ["get runaway watch record failed"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [2024/05/06 17:56:02.514 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:02.514 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=25] [version=12] [2024/05/06 17:56:02.516 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=12] ["take time"=22.939366ms] [job="ID:25, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:24, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:02.031 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:02.662 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=25] [job="ID:25, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:24, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:02.031 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:02.872 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=25] [2024/05/06 17:56:02.873 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:02.877 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.871494086\n# Parse_time: 0\n# Compile_time: 0.00803117\n# Rewrite_time: 0.000016329\n# Optimize_time: 0\n# Wait_TS: 0.000188368\n# DB: mysql\n# Is_internal: true\n# Digest: e038e634a5f1b7e5429d1252be7edf0ffb0922e8636032b9c68fd59f0484f6ef\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\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 17:56:02.903 +08:00] [INFO] [session.go:3903] ["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 17:56:03.019 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["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 17:56:02.916 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:03.020 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:27, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:26, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:02.916 +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 17:56:03.097 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=27] [category=ddl] [job="ID:27, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:26, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:02.916 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:03.281 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=12] [neededSchemaVersion=13] ["start time"=3.587175ms] [gotSchemaVersion=13] [phyTblIDs="[26]"] [actionTypes="[3]"] [2024/05/06 17:56:03.294 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:03.295 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=27] [version=13] [2024/05/06 17:56:03.296 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=13] ["take time"=32.259131ms] [job="ID:27, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:26, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:02.916 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:03.415 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=27] [job="ID:27, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:26, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:02.916 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:03.504 +08:00] [ERROR] [runaway.go:145] ["try to get new runaway watch"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [stack="github.com/pingcap/tidb/pkg/domain.(*Domain).updateNewAndDoneWatch\n\tpkg/domain/runaway.go:145\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).runawayWatchSyncLoop\n\tpkg/domain/runaway.go:170\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:96"] [2024/05/06 17:56:03.504 +08:00] [WARN] [runaway.go:172] ["get runaway watch record failed"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [2024/05/06 17:56:03.518 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=27] [2024/05/06 17:56:03.519 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:03.521 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.634210923\n# Parse_time: 0\n# Compile_time: 0.016628564\n# Rewrite_time: 0.000013172\n# Optimize_time: 0\n# Wait_TS: 0.000174154\n# DB: mysql\n# Is_internal: true\n# Digest: 84a28596914df45e10de865c11a515d8595f2c38a422f5c8d8fb86a470ba5cad\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\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 17:56:03.527 +08:00] [INFO] [session.go:3903] ["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 17:56:03.591 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["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 17:56:03.541 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:03.591 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:29, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:28, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:03.541 +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 17:56:03.675 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=29] [category=ddl] [job="ID:29, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:28, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:03.541 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:03.832 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=13] [neededSchemaVersion=14] ["start time"=2.95117ms] [gotSchemaVersion=14] [phyTblIDs="[28]"] [actionTypes="[3]"] [2024/05/06 17:56:03.847 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:03.847 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=29] [version=14] [2024/05/06 17:56:03.847 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=14] ["take time"=18.918844ms] [job="ID:29, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:28, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:03.541 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:04.026 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=29] [job="ID:29, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:28, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:03.541 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:04.099 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=29] [2024/05/06 17:56:04.099 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:04.101 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.577063638\n# Parse_time: 0\n# Compile_time: 0.003022673\n# Rewrite_time: 0.000021223\n# Optimize_time: 0\n# Wait_TS: 0.000207451\n# DB: mysql\n# Is_internal: true\n# Digest: 4407fc98c36858aed19a41d8ab6383e7885e71a2edd2716950a8847ee0c4ccd2\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\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 17:56:04.109 +08:00] [INFO] [session.go:3903] ["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 17:56:04.177 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["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 17:56:04.123 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:04.177 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:31, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:30, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:04.123 +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 17:56:04.258 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=31] [category=ddl] [job="ID:31, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:30, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:04.123 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:04.383 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=14] [neededSchemaVersion=15] ["start time"=2.586426ms] [gotSchemaVersion=15] [phyTblIDs="[30]"] [actionTypes="[3]"] [2024/05/06 17:56:04.398 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:04.398 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=31] [version=15] [2024/05/06 17:56:04.399 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=15] ["take time"=20.118528ms] [job="ID:31, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:30, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:04.123 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:04.474 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=31] [job="ID:31, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:30, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:04.123 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:04.505 +08:00] [ERROR] [runaway.go:145] ["try to get new runaway watch"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [stack="github.com/pingcap/tidb/pkg/domain.(*Domain).updateNewAndDoneWatch\n\tpkg/domain/runaway.go:145\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).runawayWatchSyncLoop\n\tpkg/domain/runaway.go:170\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:96"] [2024/05/06 17:56:04.505 +08:00] [WARN] [runaway.go:172] ["get runaway watch record failed"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [2024/05/06 17:56:04.580 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=31] [2024/05/06 17:56:04.581 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:04.583 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.476963541\n# Parse_time: 0\n# Compile_time: 0.003283735\n# Rewrite_time: 0.000013632\n# Optimize_time: 0\n# Wait_TS: 0.000181546\n# DB: mysql\n# Is_internal: true\n# Digest: 6f80e6944eacefde08a31e8364b171d37e77c4bebc7757ae375b47812ca371cb\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\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 17:56:04.602 +08:00] [INFO] [session.go:3903] ["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 17:56:04.690 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["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 17:56:04.626 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:04.690 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:33, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:32, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:04.626 +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 17:56:04.745 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=33] [category=ddl] [job="ID:33, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:32, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:04.626 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:04.844 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=15] [neededSchemaVersion=16] ["start time"=2.513949ms] [gotSchemaVersion=16] [phyTblIDs="[32]"] [actionTypes="[3]"] [2024/05/06 17:56:04.859 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:04.859 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=33] [version=16] [2024/05/06 17:56:04.862 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=16] ["take time"=21.911328ms] [job="ID:33, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:32, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:04.626 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:04.953 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=33] [job="ID:33, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:32, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:04.626 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:05.033 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=33] [2024/05/06 17:56:05.033 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:05.035 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.445045275\n# Parse_time: 0\n# Compile_time: 0.011915335\n# Rewrite_time: 0.000024122\n# Optimize_time: 0\n# Wait_TS: 0.000221223\n# DB: mysql\n# Is_internal: true\n# Digest: ae00140f19e8173091b9a44ece06f4d51ecf640b3c9c924a7be8a7394182215f\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\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 17:56:05.044 +08:00] [INFO] [session.go:3903] ["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 17:56:05.118 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["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 17:56:05.073 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:05.119 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:35, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:34, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:05.073 +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 17:56:05.196 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=35] [category=ddl] [job="ID:35, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:34, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:05.073 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:05.377 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=16] [neededSchemaVersion=17] ["start time"=2.738253ms] [gotSchemaVersion=17] [phyTblIDs="[34]"] [actionTypes="[3]"] [2024/05/06 17:56:05.397 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:05.397 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=35] [version=17] [2024/05/06 17:56:05.398 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=17] ["take time"=24.32027ms] [job="ID:35, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:34, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:05.073 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:05.513 +08:00] [ERROR] [runaway.go:145] ["try to get new runaway watch"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [stack="github.com/pingcap/tidb/pkg/domain.(*Domain).updateNewAndDoneWatch\n\tpkg/domain/runaway.go:145\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).runawayWatchSyncLoop\n\tpkg/domain/runaway.go:170\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:96"] [2024/05/06 17:56:05.513 +08:00] [WARN] [runaway.go:172] ["get runaway watch record failed"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [2024/05/06 17:56:05.529 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=35] [job="ID:35, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:34, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:05.073 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:05.675 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=35] [2024/05/06 17:56:05.675 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:05.710 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.670052269\n# Parse_time: 0\n# Compile_time: 0.003810785\n# Rewrite_time: 0.000013021\n# Optimize_time: 0\n# Wait_TS: 0.000783919\n# DB: mysql\n# Is_internal: true\n# Digest: b0ac22a8699b953eeb48be3f830e94a20801551f37159b586c40d30dc883661d\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\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 17:56:05.726 +08:00] [INFO] [session.go:3903] ["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 17:56:05.818 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["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 17:56:05.741 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:05.818 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:37, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:36, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:05.741 +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 17:56:05.895 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=37] [category=ddl] [job="ID:37, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:36, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:05.741 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:05.997 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=17] [neededSchemaVersion=18] ["start time"=2.755525ms] [gotSchemaVersion=18] [phyTblIDs="[36]"] [actionTypes="[3]"] [2024/05/06 17:56:06.011 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:06.012 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=37] [version=18] [2024/05/06 17:56:06.014 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=18] ["take time"=20.235021ms] [job="ID:37, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:36, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:05.741 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:06.112 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=37] [job="ID:37, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:36, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:05.741 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:06.199 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=37] [2024/05/06 17:56:06.200 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:06.201 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.486567238\n# Parse_time: 0\n# Compile_time: 0.011337266\n# Rewrite_time: 0.000013136\n# Optimize_time: 0\n# Wait_TS: 0.000167973\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\n# Resource_group: default\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 17:56:06.214 +08:00] [INFO] [session.go:3903] ["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 17:56:06.326 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["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 17:56:06.227 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:06.326 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:39, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:38, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:06.227 +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 17:56:06.469 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=39] [category=ddl] [job="ID:39, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:38, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:06.227 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:06.504 +08:00] [ERROR] [runaway.go:145] ["try to get new runaway watch"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [stack="github.com/pingcap/tidb/pkg/domain.(*Domain).updateNewAndDoneWatch\n\tpkg/domain/runaway.go:145\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).runawayWatchSyncLoop\n\tpkg/domain/runaway.go:170\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:96"] [2024/05/06 17:56:06.504 +08:00] [WARN] [runaway.go:172] ["get runaway watch record failed"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [2024/05/06 17:56:06.683 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=18] [neededSchemaVersion=19] ["start time"=4.166175ms] [gotSchemaVersion=19] [phyTblIDs="[38]"] [actionTypes="[3]"] [2024/05/06 17:56:06.698 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:06.698 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=39] [version=19] [2024/05/06 17:56:06.702 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=19] ["take time"=23.959311ms] [job="ID:39, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:38, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:06.227 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:06.816 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=39] [job="ID:39, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:38, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:06.227 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:06.955 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=39] [2024/05/06 17:56:06.956 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:06.958 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.749527648\n# Parse_time: 0\n# Compile_time: 0.005668401\n# Rewrite_time: 0.000013951\n# Optimize_time: 0\n# Wait_TS: 0.000175716\n# DB: mysql\n# Is_internal: true\n# Digest: 906c8d2d8937c4ba0f1e3f03de3e50407e0940fb66383a443b19d383373b2bb9\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\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 17:56:06.988 +08:00] [INFO] [session.go:3903] ["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 17:56:07.053 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["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 17:56:07.003 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:07.053 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:41, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:40, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:07.003 +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 17:56:07.116 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=41] [category=ddl] [job="ID:41, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:40, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:07.003 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:07.217 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=19] [neededSchemaVersion=20] ["start time"=2.670349ms] [gotSchemaVersion=20] [phyTblIDs="[40]"] [actionTypes="[3]"] [2024/05/06 17:56:07.232 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:07.232 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=41] [version=20] [2024/05/06 17:56:07.232 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=20] ["take time"=18.213085ms] [job="ID:41, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:40, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:07.003 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:07.347 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=41] [job="ID:41, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:40, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:07.003 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:07.504 +08:00] [ERROR] [runaway.go:145] ["try to get new runaway watch"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [stack="github.com/pingcap/tidb/pkg/domain.(*Domain).updateNewAndDoneWatch\n\tpkg/domain/runaway.go:145\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).runawayWatchSyncLoop\n\tpkg/domain/runaway.go:170\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:96"] [2024/05/06 17:56:07.504 +08:00] [WARN] [runaway.go:172] ["get runaway watch record failed"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [2024/05/06 17:56:07.508 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=41] [2024/05/06 17:56:07.509 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:07.510 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.525128496\n# Parse_time: 0\n# Compile_time: 0.002708545\n# Rewrite_time: 0.000013811\n# Optimize_time: 0\n# Wait_TS: 0.000192226\n# DB: mysql\n# Is_internal: true\n# Digest: df1a9dde39341a07eb2fb8ef599e6652770203b79af3e1800917053820a3b51c\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\n# Resource_group: default\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 17:56:07.514 +08:00] [INFO] [session.go:3903] ["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 17:56:07.576 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["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 17:56:07.526 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:07.577 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:43, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:42, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:07.526 +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 17:56:07.690 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=43] [category=ddl] [job="ID:43, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:42, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:07.526 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:07.773 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=20] [neededSchemaVersion=21] ["start time"=1.933487ms] [gotSchemaVersion=21] [phyTblIDs="[42]"] [actionTypes="[3]"] [2024/05/06 17:56:07.804 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:07.805 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=43] [version=21] [2024/05/06 17:56:07.805 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=21] ["take time"=34.78394ms] [job="ID:43, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:42, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:07.526 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:07.920 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=43] [job="ID:43, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:42, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:07.526 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:07.973 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=43] [2024/05/06 17:56:07.973 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:07.974 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.461696827\n# Parse_time: 0\n# Compile_time: 0.001849283\n# Rewrite_time: 0.000012403\n# Optimize_time: 0\n# Wait_TS: 0.000146632\n# DB: mysql\n# Is_internal: true\n# Digest: 988ff7e96344f475621bfec9765ba7b507e76d86daa1e3fdf0f9eadbd538afd0\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\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 17:56:07.977 +08:00] [INFO] [session.go:3903] ["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 17:56:08.026 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["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 17:56:07.994 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:08.026 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:45, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:44, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:07.994 +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 17:56:08.143 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=45] [category=ddl] [job="ID:45, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:44, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:07.994 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:08.222 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=21] [neededSchemaVersion=22] ["start time"=1.564502ms] [gotSchemaVersion=22] [phyTblIDs="[44]"] [actionTypes="[3]"] [2024/05/06 17:56:08.235 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:08.235 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=45] [version=22] [2024/05/06 17:56:08.235 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=22] ["take time"=16.261376ms] [job="ID:45, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:44, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:07.994 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:08.280 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=45] [job="ID:45, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:44, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:07.994 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:08.326 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=45] [2024/05/06 17:56:08.326 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:08.328 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.351935006\n# Parse_time: 0\n# Compile_time: 0.001234085\n# Rewrite_time: 0.00001379\n# Optimize_time: 0\n# Wait_TS: 0.000140017\n# DB: mysql\n# Is_internal: true\n# Digest: 58329d63c08bcbc761a6b408e882dc874ae0220c9a2aaaeab91d992543fef52b\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\nCREATE TABLE IF NOT EXISTS mysql.opt_rule_blacklist ( name CHAR(100) NOT NULL );"] [2024/05/06 17:56:08.336 +08:00] [INFO] [session.go:3903] ["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 17:56:08.435 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["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 17:56:08.35 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:08.435 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:47, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:46, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:08.35 +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 17:56:08.518 +08:00] [ERROR] [runaway.go:145] ["try to get new runaway watch"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [stack="github.com/pingcap/tidb/pkg/domain.(*Domain).updateNewAndDoneWatch\n\tpkg/domain/runaway.go:145\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).runawayWatchSyncLoop\n\tpkg/domain/runaway.go:170\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:96"] [2024/05/06 17:56:08.519 +08:00] [WARN] [runaway.go:172] ["get runaway watch record failed"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [2024/05/06 17:56:08.571 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=47] [category=ddl] [job="ID:47, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:46, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:08.35 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:08.714 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=22] [neededSchemaVersion=23] ["start time"=3.430187ms] [gotSchemaVersion=23] [phyTblIDs="[46]"] [actionTypes="[3]"] [2024/05/06 17:56:08.728 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:08.728 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=47] [version=23] [2024/05/06 17:56:08.728 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=23] ["take time"=18.387719ms] [job="ID:47, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:46, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:08.35 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:08.855 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=47] [job="ID:47, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:46, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:08.35 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:08.974 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=47] [2024/05/06 17:56:08.975 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:08.977 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.644901471\n# Parse_time: 0\n# Compile_time: 0.00433519\n# Rewrite_time: 0.000014388\n# Optimize_time: 0\n# Wait_TS: 0.00016186\n# DB: mysql\n# Is_internal: true\n# Digest: 9c4f6672f019f6d6c588a6b2eb00b13f041ee54cb97f253f85d7ae52df9d23c6\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\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 17:56:08.981 +08:00] [INFO] [session.go:3903] ["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 17:56:09.050 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["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 17:56:08.995 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:09.050 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:49, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:48, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:08.995 +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 17:56:09.139 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=49] [category=ddl] [job="ID:49, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:48, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:08.995 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:09.252 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=23] [neededSchemaVersion=24] ["start time"=2.688778ms] [gotSchemaVersion=24] [phyTblIDs="[48]"] [actionTypes="[3]"] [2024/05/06 17:56:09.266 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:09.266 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=49] [version=24] [2024/05/06 17:56:09.267 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=24] ["take time"=18.126093ms] [job="ID:49, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:48, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:08.995 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:09.391 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=49] [job="ID:49, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:48, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:08.995 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:09.463 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=49] [2024/05/06 17:56:09.464 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:09.466 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.485717125\n# Parse_time: 0\n# Compile_time: 0.001741653\n# Rewrite_time: 0.00001078\n# Optimize_time: 0\n# Wait_TS: 0.000151028\n# DB: mysql\n# Is_internal: true\n# Digest: ccab922e9c51673235de00c3af7d6c17a3c72c7a6d698aed952cd0b8fd55f0e2\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\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 17:56:09.471 +08:00] [INFO] [session.go:3903] ["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 17:56:09.505 +08:00] [ERROR] [runaway.go:145] ["try to get new runaway watch"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [stack="github.com/pingcap/tidb/pkg/domain.(*Domain).updateNewAndDoneWatch\n\tpkg/domain/runaway.go:145\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).runawayWatchSyncLoop\n\tpkg/domain/runaway.go:170\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:96"] [2024/05/06 17:56:09.506 +08:00] [WARN] [runaway.go:172] ["get runaway watch record failed"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [2024/05/06 17:56:09.638 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["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 17:56:09.491 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:09.638 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:51, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:50, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:09.491 +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 17:56:09.741 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=51] [category=ddl] [job="ID:51, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:50, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:09.491 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:09.851 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=24] [neededSchemaVersion=25] ["start time"=2.355964ms] [gotSchemaVersion=25] [phyTblIDs="[50]"] [actionTypes="[3]"] [2024/05/06 17:56:09.877 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:09.877 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=51] [version=25] [2024/05/06 17:56:09.877 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=25] ["take time"=46.491026ms] [job="ID:51, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:50, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:09.491 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:09.971 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=51] [job="ID:51, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:50, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:09.491 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:10.089 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=51] [2024/05/06 17:56:10.089 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:10.091 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.62213842\n# Parse_time: 0\n# Compile_time: 0.00222547\n# Rewrite_time: 0.000013192\n# Optimize_time: 0\n# Wait_TS: 0.00018281\n# DB: mysql\n# Is_internal: true\n# Digest: 9e692f90f6e351e4eecf3fbff7177acf0a166d0cd79badb0ce0ced2bb754eb99\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\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 17:56:10.097 +08:00] [INFO] [session.go:3903] ["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 17:56:10.223 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["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 17:56:10.11 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:10.223 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:53, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:52, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:10.11 +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 17:56:10.297 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=53] [category=ddl] [job="ID:53, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:52, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:10.11 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:10.390 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=25] [neededSchemaVersion=26] ["start time"=2.356662ms] [gotSchemaVersion=26] [phyTblIDs="[52]"] [actionTypes="[3]"] [2024/05/06 17:56:10.404 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:10.404 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=53] [version=26] [2024/05/06 17:56:10.408 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=26] ["take time"=20.338221ms] [job="ID:53, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:52, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:10.11 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:10.507 +08:00] [ERROR] [runaway.go:145] ["try to get new runaway watch"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [stack="github.com/pingcap/tidb/pkg/domain.(*Domain).updateNewAndDoneWatch\n\tpkg/domain/runaway.go:145\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).runawayWatchSyncLoop\n\tpkg/domain/runaway.go:170\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:96"] [2024/05/06 17:56:10.507 +08:00] [WARN] [runaway.go:172] ["get runaway watch record failed"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [2024/05/06 17:56:10.528 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=53] [job="ID:53, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:52, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:10.11 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:10.613 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=53] [2024/05/06 17:56:10.613 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:10.615 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.520813309\n# Parse_time: 0\n# Compile_time: 0.002710656\n# Rewrite_time: 0.000011321\n# Optimize_time: 0\n# Wait_TS: 0.000159957\n# DB: mysql\n# Is_internal: true\n# Digest: fb2ab8d9eb87bcf45e5bc65e3dbe38a6d629c319d70fb6f44a741534bb3455a6\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\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 17:56:10.622 +08:00] [INFO] [session.go:3903] ["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 17:56:10.677 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["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 17:56:10.634 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:10.678 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:55, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:54, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:10.634 +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 17:56:10.791 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=55] [category=ddl] [job="ID:55, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:54, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:10.634 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:10.909 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=26] [neededSchemaVersion=27] ["start time"=2.197286ms] [gotSchemaVersion=27] [phyTblIDs="[54]"] [actionTypes="[3]"] [2024/05/06 17:56:10.931 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:10.931 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=55] [version=27] [2024/05/06 17:56:10.931 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=27] ["take time"=25.490678ms] [job="ID:55, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:54, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:10.634 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:11.038 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=55] [job="ID:55, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:54, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:10.634 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:11.106 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=55] [2024/05/06 17:56:11.106 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:11.108 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.488888504\n# Parse_time: 0\n# Compile_time: 0.002508555\n# Rewrite_time: 0.000011082\n# Optimize_time: 0\n# Wait_TS: 0.000170097\n# DB: mysql\n# Is_internal: true\n# Digest: 1fac41a3d4a89e3e4da2393e1f69d1aacfec8886db749d6329e9bf677df777b8\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\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 17:56:11.114 +08:00] [INFO] [session.go:3903] ["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 17:56:11.180 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["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 17:56:11.13 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:11.180 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:57, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:56, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:11.13 +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 17:56:11.245 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=57] [category=ddl] [job="ID:57, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:56, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:11.13 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:11.359 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=27] [neededSchemaVersion=28] ["start time"=2.145438ms] [gotSchemaVersion=28] [phyTblIDs="[56]"] [actionTypes="[3]"] [2024/05/06 17:56:11.372 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:11.372 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=57] [version=28] [2024/05/06 17:56:11.376 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=28] ["take time"=19.657524ms] [job="ID:57, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:56, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:11.13 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:11.490 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=57] [job="ID:57, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:56, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:11.13 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:11.504 +08:00] [ERROR] [runaway.go:145] ["try to get new runaway watch"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [stack="github.com/pingcap/tidb/pkg/domain.(*Domain).updateNewAndDoneWatch\n\tpkg/domain/runaway.go:145\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).runawayWatchSyncLoop\n\tpkg/domain/runaway.go:170\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:96"] [2024/05/06 17:56:11.505 +08:00] [WARN] [runaway.go:172] ["get runaway watch record failed"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [2024/05/06 17:56:11.592 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=57] [2024/05/06 17:56:11.592 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:11.594 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.482828226\n# Parse_time: 0\n# Compile_time: 0.002788996\n# Rewrite_time: 0.000012669\n# Optimize_time: 0\n# Wait_TS: 0.00015335\n# DB: mysql\n# Is_internal: true\n# Digest: 06962f34c69b85ab590c2556bdffd68d7705d56a70a3b0522b0ba5bc55363fd3\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\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 17:56:11.600 +08:00] [INFO] [session.go:3903] ["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 17:56:11.666 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["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 17:56:11.613 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:11.666 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:59, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:58, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:11.613 +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 17:56:11.734 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=59] [category=ddl] [job="ID:59, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:58, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:11.613 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:11.821 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=28] [neededSchemaVersion=29] ["start time"=2.235584ms] [gotSchemaVersion=29] [phyTblIDs="[58]"] [actionTypes="[3]"] [2024/05/06 17:56:11.834 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:11.834 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=59] [version=29] [2024/05/06 17:56:11.834 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=29] ["take time"=16.892023ms] [job="ID:59, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:58, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:11.613 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:11.902 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=59] [job="ID:59, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:58, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:11.613 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:11.972 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=59] [2024/05/06 17:56:11.972 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:11.976 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.378615524\n# Parse_time: 0\n# Compile_time: 0.002684417\n# Rewrite_time: 0.000012296\n# Optimize_time: 0\n# Wait_TS: 0.000169065\n# DB: mysql\n# Is_internal: true\n# Digest: a30fd7e284f356f111cb15459926cdbebb3d6f24c950b6f3b9729d8b5f13ee4f\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\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 17:56:11.984 +08:00] [INFO] [session.go:3903] ["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 17:56:11.986 +08:00] [INFO] [ddl_api.go:1115] ["Automatically convert BLOB(19372) to MEDIUMBLOB"] [2024/05/06 17:56:12.058 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["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 17:56:11.998 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:12.059 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:61, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:60, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:11.998 +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 17:56:12.177 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=61] [category=ddl] [job="ID:61, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:60, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:11.998 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:12.343 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=29] [neededSchemaVersion=30] ["start time"=3.034233ms] [gotSchemaVersion=30] [phyTblIDs="[60]"] [actionTypes="[3]"] [2024/05/06 17:56:12.367 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:12.368 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=61] [version=30] [2024/05/06 17:56:12.369 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=30] ["take time"=30.154158ms] [job="ID:61, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:60, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:11.998 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:12.510 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=61] [job="ID:61, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:60, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:11.998 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:12.510 +08:00] [ERROR] [runaway.go:145] ["try to get new runaway watch"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [stack="github.com/pingcap/tidb/pkg/domain.(*Domain).updateNewAndDoneWatch\n\tpkg/domain/runaway.go:145\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).runawayWatchSyncLoop\n\tpkg/domain/runaway.go:170\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:96"] [2024/05/06 17:56:12.510 +08:00] [WARN] [runaway.go:172] ["get runaway watch record failed"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [2024/05/06 17:56:12.593 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=61] [2024/05/06 17:56:12.593 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:12.595 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.614225897\n# Parse_time: 0\n# Compile_time: 0.003619448\n# Rewrite_time: 0.000011422\n# Optimize_time: 0\n# Wait_TS: 0.000153631\n# DB: mysql\n# Is_internal: true\n# Digest: c862b6db4c0b104bd6ade1db78bbe1f6a12a30584d750044f3eec57a1a86580e\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\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 17:56:12.604 +08:00] [INFO] [session.go:3903] ["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 \tKEY idx_create_time (create_time)\n\t);"] [user=] [2024/05/06 17:56:12.677 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["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 17:56:12.616 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:12.677 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:63, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:62, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:12.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 \tKEY idx_create_time (create_time)\n\t);"] [2024/05/06 17:56:12.763 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=63] [category=ddl] [job="ID:63, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:62, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:12.616 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:12.921 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=30] [neededSchemaVersion=31] ["start time"=2.599119ms] [gotSchemaVersion=31] [phyTblIDs="[62]"] [actionTypes="[3]"] [2024/05/06 17:56:12.937 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:12.937 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=63] [version=31] [2024/05/06 17:56:12.938 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=31] ["take time"=20.220535ms] [job="ID:63, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:62, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:12.616 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:12.988 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=63] [job="ID:63, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:62, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:12.616 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:13.072 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=63] [2024/05/06 17:56:13.073 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:13.075 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.475479674\n# Parse_time: 0\n# Compile_time: 0.004677889\n# Rewrite_time: 0.000012092\n# Optimize_time: 0\n# Wait_TS: 0.000195783\n# DB: mysql\n# Is_internal: true\n# Digest: eceb528bf68c7d9b100b120b5113005ea7f5a4c6c1f4834403330ff156d0a3aa\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\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), KEY idx_create_time (create_time) );"] [2024/05/06 17:56:13.090 +08:00] [INFO] [session.go:3903] ["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 \tsource varchar(40) NOT NULL,\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 \tKEY idx_create_time (create_time)\n\t);"] [user=] [2024/05/06 17:56:13.165 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["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 17:56:13.105 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:13.165 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:65, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:64, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:13.105 +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 \tsource varchar(40) NOT NULL,\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 \tKEY idx_create_time (create_time)\n\t);"] [2024/05/06 17:56:13.337 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=65] [category=ddl] [job="ID:65, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:64, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:13.105 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:13.497 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=31] [neededSchemaVersion=32] ["start time"=3.209321ms] [gotSchemaVersion=32] [phyTblIDs="[64]"] [actionTypes="[3]"] [2024/05/06 17:56:13.510 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:13.511 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=65] [version=32] [2024/05/06 17:56:13.510 +08:00] [ERROR] [runaway.go:145] ["try to get new runaway watch"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [stack="github.com/pingcap/tidb/pkg/domain.(*Domain).updateNewAndDoneWatch\n\tpkg/domain/runaway.go:145\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).runawayWatchSyncLoop\n\tpkg/domain/runaway.go:170\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:96"] [2024/05/06 17:56:13.511 +08:00] [WARN] [runaway.go:172] ["get runaway watch record failed"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [2024/05/06 17:56:13.511 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=32] ["take time"=18.181943ms] [job="ID:65, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:64, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:13.105 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:13.636 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=65] [job="ID:65, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:64, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:13.105 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:13.767 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=65] [2024/05/06 17:56:13.767 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:13.769 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.682570229\n# Parse_time: 0\n# Compile_time: 0.003693502\n# Rewrite_time: 0.000013087\n# Optimize_time: 0\n# Wait_TS: 0.000171453\n# DB: mysql\n# Is_internal: true\n# Digest: 752363602773b9b875eec93769301ada55a059e0b28c5434de98fdbbc6af54cb\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\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', source varchar(40) NOT NULL, create_time datetime(6) NOT NULL, UNIQUE KEY table_version (table_id, version), KEY table_create_time (table_id, create_time), KEY idx_create_time (create_time) );"] [2024/05/06 17:56:13.785 +08:00] [INFO] [session.go:3903] ["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 17:56:13.901 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["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 17:56:13.8 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:13.901 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:67, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:66, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:13.8 +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 17:56:14.021 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=67] [category=ddl] [job="ID:67, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:66, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:13.8 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:14.227 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=32] [neededSchemaVersion=33] ["start time"=4.315337ms] [gotSchemaVersion=33] [phyTblIDs="[66]"] [actionTypes="[3]"] [2024/05/06 17:56:14.241 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:14.241 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=67] [version=33] [2024/05/06 17:56:14.242 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=33] ["take time"=20.63816ms] [job="ID:67, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:66, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:13.8 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:14.361 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=67] [job="ID:67, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:66, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:13.8 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:14.490 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=67] [2024/05/06 17:56:14.490 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:14.492 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.712366741\n# Parse_time: 0\n# Compile_time: 0.005286167\n# Rewrite_time: 0.000013878\n# Optimize_time: 0\n# Wait_TS: 0.000174754\n# DB: mysql\n# Is_internal: true\n# Digest: 1127cc15f332cc4c1c6b97d06d92880902c2f7e015188cc29392a62748dd8ae0\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\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 17:56:14.496 +08:00] [INFO] [session.go:3903] ["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 17:56:14.519 +08:00] [ERROR] [runaway.go:145] ["try to get new runaway watch"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [stack="github.com/pingcap/tidb/pkg/domain.(*Domain).updateNewAndDoneWatch\n\tpkg/domain/runaway.go:145\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).runawayWatchSyncLoop\n\tpkg/domain/runaway.go:170\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:96"] [2024/05/06 17:56:14.520 +08:00] [WARN] [runaway.go:172] ["get runaway watch record failed"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [2024/05/06 17:56:14.584 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["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 17:56:14.526 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:14.584 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:69, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:68, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:14.526 +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 17:56:14.702 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=69] [category=ddl] [job="ID:69, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:68, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:14.526 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:14.770 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=33] [neededSchemaVersion=34] ["start time"=1.745161ms] [gotSchemaVersion=34] [phyTblIDs="[68]"] [actionTypes="[3]"] [2024/05/06 17:56:14.793 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:14.793 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=69] [version=34] [2024/05/06 17:56:14.793 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=34] ["take time"=32.300071ms] [job="ID:69, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:68, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:14.526 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:14.895 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=69] [job="ID:69, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:68, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:14.526 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:14.949 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=69] [2024/05/06 17:56:14.949 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:14.951 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.45675122\n# Parse_time: 0\n# Compile_time: 0.001438073\n# Rewrite_time: 0.00001166\n# Optimize_time: 0\n# Wait_TS: 0.000159485\n# DB: mysql\n# Is_internal: true\n# Digest: 6eab04864600dfa37145d44689995984eecc83e3dc6ce49c1e75d23567f8bac3\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\nCREATE TABLE IF NOT EXISTS mysql.advisory_locks ( lock_name VARCHAR(64) NOT NULL PRIMARY KEY );"] [2024/05/06 17:56:15.147 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["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 17:56:15.004 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:15.147 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:71, Type:create view, State:queueing, SchemaState:none, SchemaID:1, TableID:70, RowCount:0, ArgLen:3, start time: 2024-05-06 17:56:15.004 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE OR REPLACE VIEW mysql.tidb_mdl_view as (\n\t\tSELECT job_id,\n\t\t\tdb_name,\n\t\t\ttable_name,\n\t\t\tquery,\n\t\t\tsession_id,\n\t\t\ttxnstart,\n\t\t\ttidb_decode_sql_digests(all_sql_digests, 4096) AS SQL_DIGESTS\n\t\tFROM information_schema.ddl_jobs,\n\t\t\tinformation_schema.cluster_tidb_trx,\n\t\t\tinformation_schema.cluster_processlist\n\t\tWHERE (ddl_jobs.state != 'synced' and ddl_jobs.state != 'cancelled')\n\t\t\tAND Find_in_set(ddl_jobs.table_id, cluster_tidb_trx.related_table_ids)\n\t\t\tAND cluster_tidb_trx.session_id = cluster_processlist.id\n\t);"] [2024/05/06 17:56:15.278 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=71] [category=ddl] [job="ID:71, Type:create view, State:queueing, SchemaState:none, SchemaID:1, TableID:70, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:15.004 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:15.499 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=34] [neededSchemaVersion=35] ["start time"=2.893238ms] [gotSchemaVersion=35] [phyTblIDs="[70]"] [actionTypes="[21]"] [2024/05/06 17:56:15.504 +08:00] [ERROR] [runaway.go:145] ["try to get new runaway watch"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [stack="github.com/pingcap/tidb/pkg/domain.(*Domain).updateNewAndDoneWatch\n\tpkg/domain/runaway.go:145\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).runawayWatchSyncLoop\n\tpkg/domain/runaway.go:170\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:96"] [2024/05/06 17:56:15.505 +08:00] [WARN] [runaway.go:172] ["get runaway watch record failed"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [2024/05/06 17:56:15.513 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:15.514 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=71] [version=35] [2024/05/06 17:56:15.515 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=35] ["take time"=19.78964ms] [job="ID:71, Type:create view, State:done, SchemaState:public, SchemaID:1, TableID:70, RowCount:0, ArgLen:3, start time: 2024-05-06 17:56:15.004 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:15.630 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=71] [job="ID:71, Type:create view, State:synced, SchemaState:public, SchemaID:1, TableID:70, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:15.004 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:15.824 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=71] [2024/05/06 17:56:15.832 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:15.836 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.87981411\n# Parse_time: 0\n# Compile_time: 0.008729305\n# Rewrite_time: 0.004553277\n# Optimize_time: 0\n# Wait_TS: 0.000162634\n# DB: mysql\n# Is_internal: true\n# Digest: a172d6921d84f3dfef86499a7dd2597e97dac0462659c90681507c90f25b177c\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\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 != 'synced' and ddl_jobs.state != 'cancelled') 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 17:56:15.852 +08:00] [INFO] [session.go:3903] ["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 17:56:15.962 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["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 17:56:15.867 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:15.962 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:73, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:72, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:15.867 +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 17:56:16.036 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=73] [category=ddl] [job="ID:73, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:72, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:15.867 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:16.187 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=35] [neededSchemaVersion=36] ["start time"=2.773368ms] [gotSchemaVersion=36] [phyTblIDs="[72]"] [actionTypes="[3]"] [2024/05/06 17:56:16.201 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:16.202 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=73] [version=36] [2024/05/06 17:56:16.202 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=36] ["take time"=18.196837ms] [job="ID:73, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:72, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:15.867 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:16.333 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=73] [job="ID:73, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:72, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:15.867 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:16.425 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=73] [2024/05/06 17:56:16.425 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:16.427 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.5825895\n# Parse_time: 0\n# Compile_time: 0.007233868\n# Rewrite_time: 0.000016665\n# Optimize_time: 0\n# Wait_TS: 0.001490409\n# DB: mysql\n# Is_internal: true\n# Digest: d88a70e9c5bb5a28f5a1d1f52613093328fd73c5e78668fab2b1a9c260ab506b\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\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 17:56:16.442 +08:00] [INFO] [session.go:3903] ["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 17:56:16.494 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["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 17:56:16.457 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:16.494 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:75, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:74, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:16.457 +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 17:56:16.506 +08:00] [ERROR] [runaway.go:145] ["try to get new runaway watch"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [stack="github.com/pingcap/tidb/pkg/domain.(*Domain).updateNewAndDoneWatch\n\tpkg/domain/runaway.go:145\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).runawayWatchSyncLoop\n\tpkg/domain/runaway.go:170\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:96"] [2024/05/06 17:56:16.507 +08:00] [WARN] [runaway.go:172] ["get runaway watch record failed"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [2024/05/06 17:56:16.588 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=75] [category=ddl] [job="ID:75, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:74, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:16.457 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:16.717 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=36] [neededSchemaVersion=37] ["start time"=2.324887ms] [gotSchemaVersion=37] [phyTblIDs="[74]"] [actionTypes="[3]"] [2024/05/06 17:56:16.731 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:16.731 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=75] [version=37] [2024/05/06 17:56:16.732 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=37] ["take time"=18.157462ms] [job="ID:75, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:74, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:16.457 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:16.800 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=75] [job="ID:75, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:74, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:16.457 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:16.858 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=75] [2024/05/06 17:56:16.858 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:16.860 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.419955983\n# Parse_time: 0\n# Compile_time: 0.002211656\n# Rewrite_time: 0.000012413\n# Optimize_time: 0\n# Wait_TS: 0.00014877\n# DB: mysql\n# Is_internal: true\n# Digest: 1ce2bb4fd69df5a5aeb254910aeeab700c1408b8c2de8f7dbe3ebbc11a4b1542\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\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 17:56:16.866 +08:00] [INFO] [session.go:3903] ["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 17:56:16.929 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["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 17:56:16.885 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:16.930 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:77, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:76, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:16.885 +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 17:56:16.990 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=77] [category=ddl] [job="ID:77, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:76, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:16.885 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:17.088 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=37] [neededSchemaVersion=38] ["start time"=2.060141ms] [gotSchemaVersion=38] [phyTblIDs="[76]"] [actionTypes="[3]"] [2024/05/06 17:56:17.101 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:17.101 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=77] [version=38] [2024/05/06 17:56:17.101 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=38] ["take time"=16.510107ms] [job="ID:77, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:76, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:16.885 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:17.208 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=77] [job="ID:77, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:76, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:16.885 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:17.267 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=77] [2024/05/06 17:56:17.267 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:17.269 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.404649626\n# Parse_time: 0\n# Compile_time: 0.002457196\n# Rewrite_time: 0.000018231\n# Optimize_time: 0\n# Wait_TS: 0.000161637\n# DB: mysql\n# Is_internal: true\n# Digest: f2c0bd78cfe8f7e6b4f8b30f83a48ff4c49a1a9de1c1a0c721ec3561ac42865a\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\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 17:56:17.283 +08:00] [INFO] [session.go:3903] ["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 17:56:17.405 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["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 17:56:17.301 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:17.405 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:79, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:78, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:17.301 +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 17:56:17.477 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=79] [category=ddl] [job="ID:79, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:78, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:17.301 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:17.511 +08:00] [ERROR] [runaway.go:145] ["try to get new runaway watch"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [stack="github.com/pingcap/tidb/pkg/domain.(*Domain).updateNewAndDoneWatch\n\tpkg/domain/runaway.go:145\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).runawayWatchSyncLoop\n\tpkg/domain/runaway.go:170\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:96"] [2024/05/06 17:56:17.511 +08:00] [WARN] [runaway.go:172] ["get runaway watch record failed"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [2024/05/06 17:56:17.753 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=38] [neededSchemaVersion=39] ["start time"=3.963366ms] [gotSchemaVersion=39] [phyTblIDs="[78]"] [actionTypes="[3]"] [2024/05/06 17:56:17.768 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:17.768 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=79] [version=39] [2024/05/06 17:56:17.769 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=39] ["take time"=20.373733ms] [job="ID:79, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:78, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:17.301 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:17.866 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=79] [job="ID:79, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:78, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:17.301 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:18.000 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=79] [2024/05/06 17:56:18.000 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:18.002 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.725728533\n# Parse_time: 0\n# Compile_time: 0.007098305\n# Rewrite_time: 0.000010012\n# Optimize_time: 0\n# Wait_TS: 0.000176565\n# DB: mysql\n# Is_internal: true\n# Digest: 923db1cc9d609e172ea493293255661f5a9679f95604192db50211d133741170\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\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 17:56:18.012 +08:00] [INFO] [session.go:3903] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=39] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.tidb_ttl_task (\n\t\tjob_id varchar(64) NOT NULL,\n\t\ttable_id bigint(64) NOT NULL,\n\t\tscan_id int NOT NULL,\n\t\tscan_range_start BLOB,\n\t\tscan_range_end BLOB,\n\t\texpire_time timestamp NOT NULL,\n\t\towner_id varchar(64) DEFAULT NULL,\n\t\towner_addr varchar(64) DEFAULT NULL,\n\t\towner_hb_time timestamp DEFAULT NULL,\n\t\tstatus varchar(64) DEFAULT 'waiting',\n\t\tstatus_update_time timestamp NULL DEFAULT NULL,\n\t\tstate text,\n\t\tcreated_time timestamp NOT NULL,\n\t\tprimary key(job_id, scan_id),\n\t\tkey(created_time));"] [user=] [2024/05/06 17:56:18.112 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:81, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:80, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:18.025 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:18.113 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:81, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:80, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:18.025 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.tidb_ttl_task (\n\t\tjob_id varchar(64) NOT NULL,\n\t\ttable_id bigint(64) NOT NULL,\n\t\tscan_id int NOT NULL,\n\t\tscan_range_start BLOB,\n\t\tscan_range_end BLOB,\n\t\texpire_time timestamp NOT NULL,\n\t\towner_id varchar(64) DEFAULT NULL,\n\t\towner_addr varchar(64) DEFAULT NULL,\n\t\towner_hb_time timestamp DEFAULT NULL,\n\t\tstatus varchar(64) DEFAULT 'waiting',\n\t\tstatus_update_time timestamp NULL DEFAULT NULL,\n\t\tstate text,\n\t\tcreated_time timestamp NOT NULL,\n\t\tprimary key(job_id, scan_id),\n\t\tkey(created_time));"] [2024/05/06 17:56:18.178 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=81] [category=ddl] [job="ID:81, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:80, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:18.025 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:18.361 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=39] [neededSchemaVersion=40] ["start time"=4.210454ms] [gotSchemaVersion=40] [phyTblIDs="[80]"] [actionTypes="[3]"] [2024/05/06 17:56:18.374 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:18.374 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=81] [version=40] [2024/05/06 17:56:18.374 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=40] ["take time"=18.141271ms] [job="ID:81, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:80, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:18.025 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:18.425 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=81] [job="ID:81, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:80, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:18.025 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:18.505 +08:00] [ERROR] [runaway.go:145] ["try to get new runaway watch"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [stack="github.com/pingcap/tidb/pkg/domain.(*Domain).updateNewAndDoneWatch\n\tpkg/domain/runaway.go:145\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).runawayWatchSyncLoop\n\tpkg/domain/runaway.go:170\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:96"] [2024/05/06 17:56:18.505 +08:00] [WARN] [runaway.go:172] ["get runaway watch record failed"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [2024/05/06 17:56:18.572 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=81] [2024/05/06 17:56:18.572 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:18.574 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.565731714\n# Parse_time: 0\n# Compile_time: 0.004295749\n# Rewrite_time: 0.000012914\n# Optimize_time: 0\n# Wait_TS: 0.000129629\n# DB: mysql\n# Is_internal: true\n# Digest: 99a5c0e89a0b881a0fa10de262495ae25955edb2a7ef8776054ab57aca80e0d7\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\nCREATE TABLE IF NOT EXISTS mysql.tidb_ttl_task ( job_id varchar(64) NOT NULL, table_id bigint(64) NOT NULL, scan_id int NOT NULL, scan_range_start BLOB, scan_range_end BLOB, expire_time timestamp NOT NULL, owner_id varchar(64) DEFAULT NULL, owner_addr varchar(64) DEFAULT NULL, owner_hb_time timestamp DEFAULT NULL, status varchar(64) DEFAULT 'waiting', status_update_time timestamp NULL DEFAULT NULL, state text, created_time timestamp NOT NULL, primary key(job_id, scan_id), key(created_time));"] [2024/05/06 17:56:18.588 +08:00] [INFO] [session.go:3903] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=40] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.tidb_ttl_job_history (\n\t\tjob_id varchar(64) PRIMARY KEY,\n\t\ttable_id bigint(64) NOT NULL,\n parent_table_id bigint(64) NOT NULL,\n \ttable_schema varchar(64) NOT NULL,\n\t\ttable_name varchar(64) NOT NULL,\n \tpartition_name varchar(64) DEFAULT NULL,\n\t\tcreate_time timestamp NOT NULL,\n\t\tfinish_time timestamp NOT NULL,\n\t\tttl_expire timestamp NOT NULL,\n summary_text text,\n\t\texpired_rows bigint(64) DEFAULT NULL,\n \tdeleted_rows bigint(64) DEFAULT NULL,\n \terror_delete_rows bigint(64) DEFAULT NULL,\n \tstatus varchar(64) NOT NULL,\n \tkey(table_schema, table_name, create_time),\n \tkey(parent_table_id, create_time),\n \tkey(create_time)\n\t);"] [user=] [2024/05/06 17:56:18.715 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:83, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:18.604 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:18.715 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:83, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:18.604 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.tidb_ttl_job_history (\n\t\tjob_id varchar(64) PRIMARY KEY,\n\t\ttable_id bigint(64) NOT NULL,\n parent_table_id bigint(64) NOT NULL,\n \ttable_schema varchar(64) NOT NULL,\n\t\ttable_name varchar(64) NOT NULL,\n \tpartition_name varchar(64) DEFAULT NULL,\n\t\tcreate_time timestamp NOT NULL,\n\t\tfinish_time timestamp NOT NULL,\n\t\tttl_expire timestamp NOT NULL,\n summary_text text,\n\t\texpired_rows bigint(64) DEFAULT NULL,\n \tdeleted_rows bigint(64) DEFAULT NULL,\n \terror_delete_rows bigint(64) DEFAULT NULL,\n \tstatus varchar(64) NOT NULL,\n \tkey(table_schema, table_name, create_time),\n \tkey(parent_table_id, create_time),\n \tkey(create_time)\n\t);"] [2024/05/06 17:56:18.786 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=83] [category=ddl] [job="ID:83, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:18.604 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:19.032 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=40] [neededSchemaVersion=41] ["start time"=4.967934ms] [gotSchemaVersion=41] [phyTblIDs="[82]"] [actionTypes="[3]"] [2024/05/06 17:56:19.046 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:19.046 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=83] [version=41] [2024/05/06 17:56:19.046 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=41] ["take time"=22.806738ms] [job="ID:83, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:18.604 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:19.155 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=83] [job="ID:83, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:82, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:18.604 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:19.292 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=83] [2024/05/06 17:56:19.292 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:19.294 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.713204083\n# Parse_time: 0\n# Compile_time: 0.007448788\n# Rewrite_time: 0.000013103\n# Optimize_time: 0\n# Wait_TS: 0.000158464\n# DB: mysql\n# Is_internal: true\n# Digest: a59d1fe47cade4697d39b0374d27cfee2fa302a4c752a5ae5073cecda386a0e8\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\nCREATE TABLE IF NOT EXISTS mysql.tidb_ttl_job_history ( job_id varchar(64) PRIMARY KEY, table_id bigint(64) NOT NULL, parent_table_id bigint(64) NOT NULL, table_schema varchar(64) NOT NULL, table_name varchar(64) NOT NULL, partition_name varchar(64) DEFAULT NULL, create_time timestamp NOT NULL, finish_time timestamp NOT NULL, ttl_expire timestamp NOT NULL, summary_text text, expired_rows bigint(64) DEFAULT NULL, deleted_rows bigint(64) DEFAULT NULL, error_delete_rows bigint(64) DEFAULT NULL, status varchar(64) NOT NULL, key(table_schema, table_name, create_time), key(parent_table_id, create_time), key(create_time) );"] [2024/05/06 17:56:19.302 +08:00] [INFO] [session.go:3903] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=41] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.tidb_global_task (\n\t\tid BIGINT(20) NOT NULL AUTO_INCREMENT PRIMARY KEY,\n \ttask_key VARCHAR(256) NOT NULL,\n\t\ttype VARCHAR(256) NOT NULL,\n\t\tdispatcher_id VARCHAR(256),\n\t\tstate VARCHAR(64) NOT NULL,\n\t\tstart_time TIMESTAMP,\n\t\tstate_update_time TIMESTAMP,\n\t\tmeta LONGBLOB,\n\t\tconcurrency INT(11),\n\t\tstep INT(11),\n\t\terror BLOB,\n\t\tkey(state),\n \tUNIQUE KEY task_key(task_key)\n\t);"] [user=] [2024/05/06 17:56:19.407 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:85, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:84, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:19.315 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:19.408 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:85, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:84, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:19.315 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.tidb_global_task (\n\t\tid BIGINT(20) NOT NULL AUTO_INCREMENT PRIMARY KEY,\n \ttask_key VARCHAR(256) NOT NULL,\n\t\ttype VARCHAR(256) NOT NULL,\n\t\tdispatcher_id VARCHAR(256),\n\t\tstate VARCHAR(64) NOT NULL,\n\t\tstart_time TIMESTAMP,\n\t\tstate_update_time TIMESTAMP,\n\t\tmeta LONGBLOB,\n\t\tconcurrency INT(11),\n\t\tstep INT(11),\n\t\terror BLOB,\n\t\tkey(state),\n \tUNIQUE KEY task_key(task_key)\n\t);"] [2024/05/06 17:56:19.492 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=85] [category=ddl] [job="ID:85, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:84, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:19.315 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:19.504 +08:00] [ERROR] [runaway.go:145] ["try to get new runaway watch"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [stack="github.com/pingcap/tidb/pkg/domain.(*Domain).updateNewAndDoneWatch\n\tpkg/domain/runaway.go:145\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).runawayWatchSyncLoop\n\tpkg/domain/runaway.go:170\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:96"] [2024/05/06 17:56:19.504 +08:00] [WARN] [runaway.go:172] ["get runaway watch record failed"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [2024/05/06 17:56:19.685 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=41] [neededSchemaVersion=42] ["start time"=4.018617ms] [gotSchemaVersion=42] [phyTblIDs="[84]"] [actionTypes="[3]"] [2024/05/06 17:56:19.697 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:19.697 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=85] [version=42] [2024/05/06 17:56:19.698 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=42] ["take time"=18.310836ms] [job="ID:85, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:84, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:19.315 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:19.801 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=85] [job="ID:85, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:84, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:19.315 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:19.906 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=85] [2024/05/06 17:56:19.906 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:19.908 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.609505067\n# Parse_time: 0\n# Compile_time: 0.003432323\n# Rewrite_time: 0.000011899\n# Optimize_time: 0\n# Wait_TS: 0.000145641\n# DB: mysql\n# Is_internal: true\n# Digest: ef26160a7deabc6bec29842abbf81fbdf7e58bca7e08048232f6f46752f8a21a\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\nCREATE TABLE IF NOT EXISTS mysql.tidb_global_task ( id BIGINT(20) NOT NULL AUTO_INCREMENT PRIMARY KEY, task_key VARCHAR(256) NOT NULL, type VARCHAR(256) NOT NULL, dispatcher_id VARCHAR(256), state VARCHAR(64) NOT NULL, start_time TIMESTAMP, state_update_time TIMESTAMP, meta LONGBLOB, concurrency INT(11), step INT(11), error BLOB, key(state), UNIQUE KEY task_key(task_key) );"] [2024/05/06 17:56:19.921 +08:00] [INFO] [session.go:3903] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=42] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.tidb_global_task_history (\n\t\tid BIGINT(20) NOT NULL AUTO_INCREMENT PRIMARY KEY,\n \ttask_key VARCHAR(256) NOT NULL,\n\t\ttype VARCHAR(256) NOT NULL,\n\t\tdispatcher_id VARCHAR(256),\n\t\tstate VARCHAR(64) NOT NULL,\n\t\tstart_time TIMESTAMP,\n\t\tstate_update_time TIMESTAMP,\n\t\tmeta LONGBLOB,\n\t\tconcurrency INT(11),\n\t\tstep INT(11),\n\t\terror BLOB,\n\t\tkey(state),\n \tUNIQUE KEY task_key(task_key)\n\t);"] [user=] [2024/05/06 17:56:20.007 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:87, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:86, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:19.933 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:20.007 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:87, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:86, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:19.933 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.tidb_global_task_history (\n\t\tid BIGINT(20) NOT NULL AUTO_INCREMENT PRIMARY KEY,\n \ttask_key VARCHAR(256) NOT NULL,\n\t\ttype VARCHAR(256) NOT NULL,\n\t\tdispatcher_id VARCHAR(256),\n\t\tstate VARCHAR(64) NOT NULL,\n\t\tstart_time TIMESTAMP,\n\t\tstate_update_time TIMESTAMP,\n\t\tmeta LONGBLOB,\n\t\tconcurrency INT(11),\n\t\tstep INT(11),\n\t\terror BLOB,\n\t\tkey(state),\n \tUNIQUE KEY task_key(task_key)\n\t);"] [2024/05/06 17:56:20.077 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=87] [category=ddl] [job="ID:87, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:86, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:19.933 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:20.245 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=42] [neededSchemaVersion=43] ["start time"=3.68683ms] [gotSchemaVersion=43] [phyTblIDs="[86]"] [actionTypes="[3]"] [2024/05/06 17:56:20.263 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:20.264 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=87] [version=43] [2024/05/06 17:56:20.265 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=43] ["take time"=24.373214ms] [job="ID:87, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:86, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:19.933 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:20.365 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=87] [job="ID:87, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:86, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:19.933 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:20.490 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=87] [2024/05/06 17:56:20.490 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:20.492 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.573581661\n# Parse_time: 0\n# Compile_time: 0.002856134\n# Rewrite_time: 0.000012812\n# Optimize_time: 0\n# Wait_TS: 0.000115889\n# DB: mysql\n# Is_internal: true\n# Digest: a5a1d5c843627691f3cc89cb2e7fb803206691414d3034e8b3b894022903612a\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\nCREATE TABLE IF NOT EXISTS mysql.tidb_global_task_history ( id BIGINT(20) NOT NULL AUTO_INCREMENT PRIMARY KEY, task_key VARCHAR(256) NOT NULL, type VARCHAR(256) NOT NULL, dispatcher_id VARCHAR(256), state VARCHAR(64) NOT NULL, start_time TIMESTAMP, state_update_time TIMESTAMP, meta LONGBLOB, concurrency INT(11), step INT(11), error BLOB, key(state), UNIQUE KEY task_key(task_key) );"] [2024/05/06 17:56:20.506 +08:00] [ERROR] [runaway.go:145] ["try to get new runaway watch"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [stack="github.com/pingcap/tidb/pkg/domain.(*Domain).updateNewAndDoneWatch\n\tpkg/domain/runaway.go:145\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).runawayWatchSyncLoop\n\tpkg/domain/runaway.go:170\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:96"] [2024/05/06 17:56:20.506 +08:00] [WARN] [runaway.go:172] ["get runaway watch record failed"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [2024/05/06 17:56:20.507 +08:00] [INFO] [session.go:3903] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=43] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.load_data_jobs (\n job_id bigint(64) NOT NULL AUTO_INCREMENT,\n expected_status ENUM('running', 'paused', 'canceled') NOT NULL DEFAULT 'running',\n create_time TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),\n start_time TIMESTAMP(6) NULL DEFAULT NULL,\n update_time TIMESTAMP(6) NULL DEFAULT NULL,\n end_time TIMESTAMP(6) NULL DEFAULT NULL,\n data_source TEXT NOT NULL,\n table_schema VARCHAR(64) NOT NULL,\n table_name VARCHAR(64) NOT NULL,\n import_mode VARCHAR(64) NOT NULL,\n create_user VARCHAR(32) NOT NULL,\n progress TEXT DEFAULT NULL,\n result_message TEXT DEFAULT NULL,\n error_message TEXT DEFAULT NULL,\n PRIMARY KEY (job_id),\n KEY (create_time),\n KEY (create_user));"] [user=] [2024/05/06 17:56:20.638 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:89, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:88, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:20.526 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:20.638 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:89, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:88, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:20.526 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.load_data_jobs (\n job_id bigint(64) NOT NULL AUTO_INCREMENT,\n expected_status ENUM('running', 'paused', 'canceled') NOT NULL DEFAULT 'running',\n create_time TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),\n start_time TIMESTAMP(6) NULL DEFAULT NULL,\n update_time TIMESTAMP(6) NULL DEFAULT NULL,\n end_time TIMESTAMP(6) NULL DEFAULT NULL,\n data_source TEXT NOT NULL,\n table_schema VARCHAR(64) NOT NULL,\n table_name VARCHAR(64) NOT NULL,\n import_mode VARCHAR(64) NOT NULL,\n create_user VARCHAR(32) NOT NULL,\n progress TEXT DEFAULT NULL,\n result_message TEXT DEFAULT NULL,\n error_message TEXT DEFAULT NULL,\n PRIMARY KEY (job_id),\n KEY (create_time),\n KEY (create_user));"] [2024/05/06 17:56:20.696 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=89] [category=ddl] [job="ID:89, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:88, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:20.526 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:20.890 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=43] [neededSchemaVersion=44] ["start time"=4.097268ms] [gotSchemaVersion=44] [phyTblIDs="[88]"] [actionTypes="[3]"] [2024/05/06 17:56:20.903 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:20.904 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=89] [version=44] [2024/05/06 17:56:20.905 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=44] ["take time"=20.138673ms] [job="ID:89, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:88, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:20.526 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:21.004 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=89] [job="ID:89, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:88, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:20.526 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:21.147 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=89] [2024/05/06 17:56:21.152 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:21.154 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.654977799\n# Parse_time: 0\n# Compile_time: 0.008509808\n# Rewrite_time: 0.000010966\n# Optimize_time: 0\n# Wait_TS: 0.000856672\n# DB: mysql\n# Is_internal: true\n# Digest: e2898386d3bca5f06beab3a7d822c60bda7cb80cf08fc7e1423fa6aa3e1da547\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\nCREATE TABLE IF NOT EXISTS mysql.load_data_jobs ( job_id bigint(64) NOT NULL AUTO_INCREMENT, expected_status ENUM('running', 'paused', 'canceled') NOT NULL DEFAULT 'running', create_time TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), start_time TIMESTAMP(6) NULL DEFAULT NULL, update_time TIMESTAMP(6) NULL DEFAULT NULL, end_time TIMESTAMP(6) NULL DEFAULT NULL, data_source TEXT NOT NULL, table_schema VARCHAR(64) NOT NULL, table_name VARCHAR(64) NOT NULL, import_mode VARCHAR(64) NOT NULL, create_user VARCHAR(32) NOT NULL, progress TEXT DEFAULT NULL, result_message TEXT DEFAULT NULL, error_message TEXT DEFAULT NULL, PRIMARY KEY (job_id), KEY (create_time), KEY (create_user));"] [2024/05/06 17:56:21.170 +08:00] [INFO] [session.go:3903] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=44] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.tidb_import_jobs (\n\t\tid bigint(64) NOT NULL AUTO_INCREMENT,\n\t\tcreate_time TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),\n\t\tstart_time TIMESTAMP(6) NULL DEFAULT NULL,\n\t\tupdate_time TIMESTAMP(6) NULL DEFAULT NULL,\n\t\tend_time TIMESTAMP(6) NULL DEFAULT NULL,\n\t\ttable_schema VARCHAR(64) NOT NULL,\n\t\ttable_name VARCHAR(64) NOT NULL,\n\t\ttable_id bigint(64) NOT NULL,\n\t\tcreated_by VARCHAR(300) NOT NULL,\n\t\tparameters text NOT NULL,\n\t\tsource_file_size bigint(64) NOT NULL,\n\t\tstatus VARCHAR(64) NOT NULL,\n\t\tstep VARCHAR(64) NOT NULL,\n\t\tsummary text DEFAULT NULL,\n\t\terror_message TEXT DEFAULT NULL,\n\t\tPRIMARY KEY (id),\n\t\tKEY (created_by),\n\t\tKEY (status));"] [user=] [2024/05/06 17:56:21.280 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:91, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:90, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:21.184 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:21.280 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:91, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:90, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:21.184 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.tidb_import_jobs (\n\t\tid bigint(64) NOT NULL AUTO_INCREMENT,\n\t\tcreate_time TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),\n\t\tstart_time TIMESTAMP(6) NULL DEFAULT NULL,\n\t\tupdate_time TIMESTAMP(6) NULL DEFAULT NULL,\n\t\tend_time TIMESTAMP(6) NULL DEFAULT NULL,\n\t\ttable_schema VARCHAR(64) NOT NULL,\n\t\ttable_name VARCHAR(64) NOT NULL,\n\t\ttable_id bigint(64) NOT NULL,\n\t\tcreated_by VARCHAR(300) NOT NULL,\n\t\tparameters text NOT NULL,\n\t\tsource_file_size bigint(64) NOT NULL,\n\t\tstatus VARCHAR(64) NOT NULL,\n\t\tstep VARCHAR(64) NOT NULL,\n\t\tsummary text DEFAULT NULL,\n\t\terror_message TEXT DEFAULT NULL,\n\t\tPRIMARY KEY (id),\n\t\tKEY (created_by),\n\t\tKEY (status));"] [2024/05/06 17:56:21.354 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=91] [category=ddl] [job="ID:91, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:90, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:21.184 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:21.505 +08:00] [ERROR] [runaway.go:145] ["try to get new runaway watch"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [stack="github.com/pingcap/tidb/pkg/domain.(*Domain).updateNewAndDoneWatch\n\tpkg/domain/runaway.go:145\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).runawayWatchSyncLoop\n\tpkg/domain/runaway.go:170\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:96"] [2024/05/06 17:56:21.505 +08:00] [WARN] [runaway.go:172] ["get runaway watch record failed"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [2024/05/06 17:56:21.573 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=44] [neededSchemaVersion=45] ["start time"=5.217537ms] [gotSchemaVersion=45] [phyTblIDs="[90]"] [actionTypes="[3]"] [2024/05/06 17:56:21.587 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:21.587 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=91] [version=45] [2024/05/06 17:56:21.589 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=45] ["take time"=22.498374ms] [job="ID:91, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:90, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:21.184 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:21.640 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=91] [job="ID:91, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:90, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:21.184 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:21.794 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=91] [2024/05/06 17:56:21.794 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:21.796 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.635369854\n# Parse_time: 0\n# Compile_time: 0.009163897\n# Rewrite_time: 0.000014953\n# Optimize_time: 0\n# Wait_TS: 0.000148869\n# DB: mysql\n# Is_internal: true\n# Digest: 1865863db4761960f0296bcf5386c3bb0c98aa299ac12888aa8054dc66681ee3\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\nCREATE TABLE IF NOT EXISTS mysql.tidb_import_jobs ( id bigint(64) NOT NULL AUTO_INCREMENT, create_time TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), start_time TIMESTAMP(6) NULL DEFAULT NULL, update_time TIMESTAMP(6) NULL DEFAULT NULL, end_time TIMESTAMP(6) NULL DEFAULT NULL, table_schema VARCHAR(64) NOT NULL, table_name VARCHAR(64) NOT NULL, table_id bigint(64) NOT NULL, created_by VARCHAR(300) NOT NULL, parameters text NOT NULL, source_file_size bigint(64) NOT NULL, status VARCHAR(64) NOT NULL, step VARCHAR(64) NOT NULL, summary text DEFAULT NULL, error_message TEXT DEFAULT NULL, PRIMARY KEY (id), KEY (created_by), KEY (status));"] [2024/05/06 17:56:21.810 +08:00] [INFO] [session.go:3903] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=45] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.tidb_runaway_watch (\n\t\tid BIGINT(20) NOT NULL AUTO_INCREMENT PRIMARY KEY,\n\t\tresource_group_name varchar(32) not null,\n\t\tstart_time datetime(6) NOT NULL,\n\t\tend_time datetime(6),\n\t\twatch bigint(10) NOT NULL,\n\t\twatch_text TEXT NOT NULL,\n\t\tsource varchar(512) NOT NULL,\n\t\taction bigint(10),\n\t\tINDEX sql_index(resource_group_name,watch_text(700)) COMMENT \"accelerate the speed when select quarantined query\",\n\t\tINDEX time_index(end_time) COMMENT \"accelerate the speed when querying with active watch\"\n\t) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;"] [user=] [2024/05/06 17:56:21.892 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:93, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:92, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:21.827 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:21.892 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:93, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:92, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:21.827 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.tidb_runaway_watch (\n\t\tid BIGINT(20) NOT NULL AUTO_INCREMENT PRIMARY KEY,\n\t\tresource_group_name varchar(32) not null,\n\t\tstart_time datetime(6) NOT NULL,\n\t\tend_time datetime(6),\n\t\twatch bigint(10) NOT NULL,\n\t\twatch_text TEXT NOT NULL,\n\t\tsource varchar(512) NOT NULL,\n\t\taction bigint(10),\n\t\tINDEX sql_index(resource_group_name,watch_text(700)) COMMENT \"accelerate the speed when select quarantined query\",\n\t\tINDEX time_index(end_time) COMMENT \"accelerate the speed when querying with active watch\"\n\t) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;"] [2024/05/06 17:56:21.966 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=93] [category=ddl] [job="ID:93, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:92, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:21.827 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:22.122 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=45] [neededSchemaVersion=46] ["start time"=3.353158ms] [gotSchemaVersion=46] [phyTblIDs="[92]"] [actionTypes="[3]"] [2024/05/06 17:56:22.135 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:22.136 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=93] [version=46] [2024/05/06 17:56:22.137 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=46] ["take time"=18.410394ms] [job="ID:93, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:92, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:21.827 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:22.188 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=93] [job="ID:93, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:92, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:21.827 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:22.267 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=93] [2024/05/06 17:56:22.267 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:22.269 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.463343053\n# Parse_time: 0\n# Compile_time: 0.004597349\n# Rewrite_time: 0.000013095\n# Optimize_time: 0\n# Wait_TS: 0.000222168\n# DB: mysql\n# Is_internal: true\n# Digest: a2de40f38c40a12cca2de8ba7dffa75407607354a3f9335d67717fa5648c5128\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\nCREATE TABLE IF NOT EXISTS mysql.tidb_runaway_watch ( id BIGINT(20) NOT NULL AUTO_INCREMENT PRIMARY KEY, resource_group_name varchar(32) not null, start_time datetime(6) NOT NULL, end_time datetime(6), watch bigint(10) NOT NULL, watch_text TEXT NOT NULL, source varchar(512) NOT NULL, action bigint(10), INDEX sql_index(resource_group_name,watch_text(700)) COMMENT \"accelerate the speed when select quarantined query\", INDEX time_index(end_time) COMMENT \"accelerate the speed when querying with active watch\" ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;"] [2024/05/06 17:56:22.278 +08:00] [INFO] [session.go:3903] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=46] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.tidb_runaway_queries (\n\t\tresource_group_name varchar(32) not null,\n\t\ttime TIMESTAMP NOT NULL,\n\t\tmatch_type varchar(12) NOT NULL,\n\t\taction varchar(12) NOT NULL,\n\t\toriginal_sql TEXT NOT NULL,\n\t\tplan_digest TEXT NOT NULL,\n\t\ttidb_server varchar(512),\n\t\tINDEX plan_index(plan_digest(64)) COMMENT \"accelerate the speed when select runaway query\",\n\t\tINDEX time_index(time) COMMENT \"accelerate the speed when querying with active watch\"\n\t) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;"] [user=] [2024/05/06 17:56:22.350 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:95, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:94, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:22.291 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:22.350 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:95, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:94, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:22.291 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.tidb_runaway_queries (\n\t\tresource_group_name varchar(32) not null,\n\t\ttime TIMESTAMP NOT NULL,\n\t\tmatch_type varchar(12) NOT NULL,\n\t\taction varchar(12) NOT NULL,\n\t\toriginal_sql TEXT NOT NULL,\n\t\tplan_digest TEXT NOT NULL,\n\t\ttidb_server varchar(512),\n\t\tINDEX plan_index(plan_digest(64)) COMMENT \"accelerate the speed when select runaway query\",\n\t\tINDEX time_index(time) COMMENT \"accelerate the speed when querying with active watch\"\n\t) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;"] [2024/05/06 17:56:22.406 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=95] [category=ddl] [job="ID:95, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:94, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:22.291 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:22.526 +08:00] [ERROR] [runaway.go:153] ["try to get done runaway watch"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch_done' doesn't exist"] [stack="github.com/pingcap/tidb/pkg/domain.(*Domain).updateNewAndDoneWatch\n\tpkg/domain/runaway.go:153\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).runawayWatchSyncLoop\n\tpkg/domain/runaway.go:170\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:96"] [2024/05/06 17:56:22.526 +08:00] [WARN] [runaway.go:172] ["get runaway watch record failed"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch_done' doesn't exist"] [2024/05/06 17:56:22.551 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=46] [neededSchemaVersion=47] ["start time"=2.581877ms] [gotSchemaVersion=47] [phyTblIDs="[94]"] [actionTypes="[3]"] [2024/05/06 17:56:22.566 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:22.566 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=95] [version=47] [2024/05/06 17:56:22.567 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=47] ["take time"=18.977865ms] [job="ID:95, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:94, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:22.291 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:22.652 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=95] [job="ID:95, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:94, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:22.291 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:22.737 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=95] [2024/05/06 17:56:22.738 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:22.740 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.465110913\n# Parse_time: 0\n# Compile_time: 0.003804692\n# Rewrite_time: 0.000011128\n# Optimize_time: 0\n# Wait_TS: 0.000159252\n# DB: mysql\n# Is_internal: true\n# Digest: 138d4c5637e5b37a1254d33767e808750320baffba8200a31ad2008bb2b5df97\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\nCREATE TABLE IF NOT EXISTS mysql.tidb_runaway_queries ( resource_group_name varchar(32) not null, time TIMESTAMP NOT NULL, match_type varchar(12) NOT NULL, action varchar(12) NOT NULL, original_sql TEXT NOT NULL, plan_digest TEXT NOT NULL, tidb_server varchar(512), INDEX plan_index(plan_digest(64)) COMMENT \"accelerate the speed when select runaway query\", INDEX time_index(time) COMMENT \"accelerate the speed when querying with active watch\" ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;"] [2024/05/06 17:56:22.759 +08:00] [INFO] [session.go:3903] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=47] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS `mysql`.`tidb_timers` (\n\t\tID BIGINT(64) UNSIGNED NOT NULL AUTO_INCREMENT,\n\t\tNAMESPACE VARCHAR(256) NOT NULL,\n\t\tTIMER_KEY VARCHAR(256) NOT NULL,\n\t\tTIMER_DATA BLOB,\n\t\tTIMEZONE VARCHAR(64) NOT NULL,\n\t\tSCHED_POLICY_TYPE VARCHAR(32) NOT NULL,\n\t\tSCHED_POLICY_EXPR VARCHAR(256) NOT NULL,\n\t\tHOOK_CLASS VARCHAR(64) NOT NULL,\n\t\tWATERMARK TIMESTAMP DEFAULT NULL,\n\t\tENABLE TINYINT(2) NOT NULL,\n\t\tTIMER_EXT JSON NOT NULL,\n\t\tEVENT_STATUS VARCHAR(32) NOT NULL,\n\t\tEVENT_ID VARCHAR(64) NOT NULL,\n\t\tEVENT_DATA BLOB,\n\t\tEVENT_START TIMESTAMP DEFAULT NULL,\n\t\tSUMMARY_DATA BLOB,\n\t\tCREATE_TIME TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,\n\t\tUPDATE_TIME TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n\t\tVERSION BIGINT(64) UNSIGNED NOT NULL,\n\t\tPRIMARY KEY (ID),\n\t\tUNIQUE KEY timer_key(NAMESPACE, TIMER_KEY),\n\t\tKEY hook_class(HOOK_CLASS)\n\t)"] [user=] [2024/05/06 17:56:22.882 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:97, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:96, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:22.775 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:22.882 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:97, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:96, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:22.775 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS `mysql`.`tidb_timers` (\n\t\tID BIGINT(64) UNSIGNED NOT NULL AUTO_INCREMENT,\n\t\tNAMESPACE VARCHAR(256) NOT NULL,\n\t\tTIMER_KEY VARCHAR(256) NOT NULL,\n\t\tTIMER_DATA BLOB,\n\t\tTIMEZONE VARCHAR(64) NOT NULL,\n\t\tSCHED_POLICY_TYPE VARCHAR(32) NOT NULL,\n\t\tSCHED_POLICY_EXPR VARCHAR(256) NOT NULL,\n\t\tHOOK_CLASS VARCHAR(64) NOT NULL,\n\t\tWATERMARK TIMESTAMP DEFAULT NULL,\n\t\tENABLE TINYINT(2) NOT NULL,\n\t\tTIMER_EXT JSON NOT NULL,\n\t\tEVENT_STATUS VARCHAR(32) NOT NULL,\n\t\tEVENT_ID VARCHAR(64) NOT NULL,\n\t\tEVENT_DATA BLOB,\n\t\tEVENT_START TIMESTAMP DEFAULT NULL,\n\t\tSUMMARY_DATA BLOB,\n\t\tCREATE_TIME TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,\n\t\tUPDATE_TIME TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n\t\tVERSION BIGINT(64) UNSIGNED NOT NULL,\n\t\tPRIMARY KEY (ID),\n\t\tUNIQUE KEY timer_key(NAMESPACE, TIMER_KEY),\n\t\tKEY hook_class(HOOK_CLASS)\n\t)"] [2024/05/06 17:56:22.959 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=97] [category=ddl] [job="ID:97, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:96, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:22.775 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:23.201 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=47] [neededSchemaVersion=48] ["start time"=5.023155ms] [gotSchemaVersion=48] [phyTblIDs="[96]"] [actionTypes="[3]"] [2024/05/06 17:56:23.216 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:23.216 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=97] [version=48] [2024/05/06 17:56:23.222 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=48] ["take time"=27.629023ms] [job="ID:97, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:96, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:22.775 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:23.302 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=97] [job="ID:97, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:96, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:22.775 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:23.471 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=97] [2024/05/06 17:56:23.471 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:23.473 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.723163484\n# Parse_time: 0\n# Compile_time: 0.009325478\n# Rewrite_time: 0.000011986\n# Optimize_time: 0\n# Wait_TS: 0.000148151\n# DB: mysql\n# Is_internal: true\n# Digest: 9911fdd027ae330cb69c5cc84a8759473df277eda62594b0dc9b5a797f09a21d\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\nCREATE TABLE IF NOT EXISTS `mysql`.`tidb_timers` ( ID BIGINT(64) UNSIGNED NOT NULL AUTO_INCREMENT, NAMESPACE VARCHAR(256) NOT NULL, TIMER_KEY VARCHAR(256) NOT NULL, TIMER_DATA BLOB, TIMEZONE VARCHAR(64) NOT NULL, SCHED_POLICY_TYPE VARCHAR(32) NOT NULL, SCHED_POLICY_EXPR VARCHAR(256) NOT NULL, HOOK_CLASS VARCHAR(64) NOT NULL, WATERMARK TIMESTAMP DEFAULT NULL, ENABLE TINYINT(2) NOT NULL, TIMER_EXT JSON NOT NULL, EVENT_STATUS VARCHAR(32) NOT NULL, EVENT_ID VARCHAR(64) NOT NULL, EVENT_DATA BLOB, EVENT_START TIMESTAMP DEFAULT NULL, SUMMARY_DATA BLOB, CREATE_TIME TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, UPDATE_TIME TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, VERSION BIGINT(64) UNSIGNED NOT NULL, PRIMARY KEY (ID), UNIQUE KEY timer_key(NAMESPACE, TIMER_KEY), KEY hook_class(HOOK_CLASS) );"] [2024/05/06 17:56:23.481 +08:00] [INFO] [session.go:3903] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=48] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.tidb_runaway_watch_done (\n\t\tid BIGINT(20) NOT NULL AUTO_INCREMENT PRIMARY KEY,\n\t\trecord_id BIGINT(20) not null,\n\t\tresource_group_name varchar(32) not null,\n\t\tstart_time datetime(6) NOT NULL,\n\t\tend_time datetime(6),\n\t\twatch bigint(10) NOT NULL,\n\t\twatch_text TEXT NOT NULL,\n\t\tsource varchar(512) NOT NULL,\n\t\taction bigint(10),\n\t\tdone_time TIMESTAMP(6) NOT NULL\n\t) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;"] [user=] [2024/05/06 17:56:23.522 +08:00] [ERROR] [runaway.go:153] ["try to get done runaway watch"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch_done' doesn't exist"] [stack="github.com/pingcap/tidb/pkg/domain.(*Domain).updateNewAndDoneWatch\n\tpkg/domain/runaway.go:153\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).runawayWatchSyncLoop\n\tpkg/domain/runaway.go:170\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:96"] [2024/05/06 17:56:23.522 +08:00] [WARN] [runaway.go:172] ["get runaway watch record failed"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch_done' doesn't exist"] [2024/05/06 17:56:23.562 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:99, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:98, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:23.495 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:23.562 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:99, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:98, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:23.495 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.tidb_runaway_watch_done (\n\t\tid BIGINT(20) NOT NULL AUTO_INCREMENT PRIMARY KEY,\n\t\trecord_id BIGINT(20) not null,\n\t\tresource_group_name varchar(32) not null,\n\t\tstart_time datetime(6) NOT NULL,\n\t\tend_time datetime(6),\n\t\twatch bigint(10) NOT NULL,\n\t\twatch_text TEXT NOT NULL,\n\t\tsource varchar(512) NOT NULL,\n\t\taction bigint(10),\n\t\tdone_time TIMESTAMP(6) NOT NULL\n\t) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;"] [2024/05/06 17:56:23.607 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=99] [category=ddl] [job="ID:99, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:98, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:23.495 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:23.772 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=48] [neededSchemaVersion=49] ["start time"=3.706378ms] [gotSchemaVersion=49] [phyTblIDs="[98]"] [actionTypes="[3]"] [2024/05/06 17:56:23.784 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:23.784 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=99] [version=49] [2024/05/06 17:56:23.786 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=49] ["take time"=18.301895ms] [job="ID:99, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:98, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:23.495 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:23.872 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=99] [job="ID:99, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:98, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:23.495 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:23.957 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=99] [2024/05/06 17:56:23.957 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:23.958 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.480523947\n# Parse_time: 0\n# Compile_time: 0.003653364\n# Rewrite_time: 0.000018705\n# Optimize_time: 0\n# Wait_TS: 0.000147248\n# DB: mysql\n# Is_internal: true\n# Digest: 18ab068c70cca87bd99eadc5e483c12b4b41273470a58870b5f4e6eaf6322ce4\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\nCREATE TABLE IF NOT EXISTS mysql.tidb_runaway_watch_done ( id BIGINT(20) NOT NULL AUTO_INCREMENT PRIMARY KEY, record_id BIGINT(20) not null, resource_group_name varchar(32) not null, start_time datetime(6) NOT NULL, end_time datetime(6), watch bigint(10) NOT NULL, watch_text TEXT NOT NULL, source varchar(512) NOT NULL, action bigint(10), done_time TIMESTAMP(6) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;"] [2024/05/06 17:56:23.963 +08:00] [INFO] [session.go:3903] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=49] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.dist_framework_meta (\n host VARCHAR(100) NOT NULL PRIMARY KEY,\n role VARCHAR(64),\n keyspace_id bigint(8) NOT NULL DEFAULT -1);"] [user=] [2024/05/06 17:56:24.009 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:101, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:100, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:23.975 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:24.010 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:101, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:100, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:23.975 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="CREATE TABLE IF NOT EXISTS mysql.dist_framework_meta (\n host VARCHAR(100) NOT NULL PRIMARY KEY,\n role VARCHAR(64),\n keyspace_id bigint(8) NOT NULL DEFAULT -1);"] [2024/05/06 17:56:24.069 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=101] [category=ddl] [job="ID:101, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:100, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:23.975 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:24.142 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=49] [neededSchemaVersion=50] ["start time"=1.980595ms] [gotSchemaVersion=50] [phyTblIDs="[100]"] [actionTypes="[3]"] [2024/05/06 17:56:24.158 +08:00] [INFO] [domain.go:848] ["session manager is nil"] [2024/05/06 17:56:24.159 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=101] [version=50] [2024/05/06 17:56:24.160 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=50] ["take time"=20.940098ms] [job="ID:101, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:100, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:23.975 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:24.253 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=101] [job="ID:101, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:100, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:23.975 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:24.330 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=101] [2024/05/06 17:56:24.331 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:24.333 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Query_time: 0.37120905\n# Parse_time: 0\n# Compile_time: 0.00168687\n# Rewrite_time: 0.000008953\n# Optimize_time: 0\n# Wait_TS: 0.000116744\n# DB: mysql\n# Is_internal: true\n# Digest: e6fb777f0f6dbe49ee82505c3e34cb0dc16475bdb08a5830595b47bf4d6a058b\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\nCREATE TABLE IF NOT EXISTS mysql.dist_framework_meta ( host VARCHAR(100) NOT NULL PRIMARY KEY, role VARCHAR(64), keyspace_id bigint(8) NOT NULL DEFAULT -1);"] [2024/05/06 17:56:25.210 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 449574177166852096\n# Query_time: 0.629043178\n# Parse_time: 0\n# Compile_time: 0.283076219\n# Rewrite_time: 0.013584402\n# Optimize_time: 0\n# Wait_TS: 0\n# DB: mysql\n# Is_internal: true\n# Digest: eb58d96d7eba9ae407efec64db335db75d58891b8cfae5274e34deeeb21575de\n# Num_cop_tasks: 0\n# Mem_max: 360999\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 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('pQPwPDAJMjdfMQkwCTAJTi9BCTAJdGltZTozMjguMW1zLCBsb29wczoxLCBwcmVwYXJlOiB7dG90YWw6IDQ2LjYBIkxhdXRvX2lkX2FsbG9jYXRvcjogewUMZF9jbnQ6IDEsIEdldDp7bnVtX3JwYzo0LCB0AUEAXwVouDQyMy40wrVzfSwgY29tbWl0X3R4bjoge3ByZXdyaXRlOjM4NC43wrVzLCBnZXRfESQMczoyMAU4ETcYOjUwMi4xwgEoHHNsb3dlc3RfEUMFdgQgewV1aDogMC4wMDBzLCByZWdpb25faWQ6IDIsIHN0bwHbBQcIMSwgGY4YcHJpbWFyedZEAA1kGG51bToxLCAF0BBfa2V5cxkOBGJ5AeOEMn19fSwgaW5zZXJ0OjI4MS40bXMJMTA0LjUgS0IJTi9BCg==')\n# Resource_group: default\nINSERT HIGH_PRIORITY INTO mysql.GLOBAL_VARIABLES VALUES (\"innodb_old_blocks_pct\", \"37\"), (\"innodb_stats_auto_recalc\", \"1\"), (\"tidb_placement_mode\", \"STRICT\"), (\"transaction_read_only\", \"OFF\"), (\"tidb_txn_commit_batch_size\", \"16384\"), (\"tidb_rc_write_check_ts\", \"OFF\"), (\"sha256_password_proxy_users\", \"\"), (\"max_binlog_size\", \"1073741824\"), (\"tidb_enable_cascades_planner\", \"OFF\"), (\"tidb_ttl_job_schedule_window_start_time\", \"00:00 +0000\"), (\"innodb_flush_sync\", \"\"), (\"authentication_ldap_simple_bind_base_dn\", \"\"), (\"tidb_evolve_plan_baselines\", \"OFF\"), (\"innodb_old_blocks_time\", \"1000\"), (\"slow_query_log\", \"0\"), (\"relay_log_info_repository\", \"FILE\"), (\"tidb_allow_mpp\", \"ON\"), (\"show_compatibility_56\", \"\"), (\"tiflash_query_spill_ratio\", \"0.7\"), (\"eq_range_index_dive_limit\", \"200\"), (\"innodb_online_alter_log_max_size\", \"134217728\"), (\"tidb_opt_network_factor\", \"1\"), (\"tidb_opt_disk_factor\", \"1.5\"), (\"tidb_enable_legacy_instance_scope\", \"ON\"), (\"tidb_regard_null_as_point\", \"ON\"), (\"tidb_mem_quota_apply_cache\", \"33554432\"), (\"authentication_ldap_sasl_auth_method_name\", \"SCRAM-SHA-1\"), (\"sql_log_bin\", \"ON\"), (\"ndb_optimization_delay\", \"\"), (\"tidb_gc_concurrency\", \"-1\"), (\"log_queries_not_using_indexes\", \"OFF\"), (\"tidb_shard_allocate_step\", \"9223372036854775807\"), (\"tidb_nontransactional_ignore_error\", \"OFF\"), (\"relay_log_purge\", \"ON\"), (\"tidb_lock_unchanged_keys\", \"ON\"), (\"binlog_format\", \"STATEMENT\"), (\"binlog_group_commit_sync_no_delay_count\", \"\"), (\"innodb_sync_spin_loops\", \"30\"), (\"tidb_opt_prefix_index_single_scan\", \"ON\"), (\"tidb_opt_correlation_exp_factor\", \"1\"), (\"log_timestamps\", \"\"), (\"tidb_window_concurrency\", \"-1\"), (\"require_secure_transport\", \"OFF\"), (\"authentication_ldap_sasl_bind_root_pwd\", \"\"), (\"delay_key_write\", \"ON\"), (\"tidb_runtime_filter_type\", \"IN\"), (\"max_allowed_packet\", \"67108864\"), (\"tidb_opt_enable_mpp_shared_cte_execution\", \"OFF\"), (\"innodb_compression_level\", \"6\"), (\"innodb_optimize_fulltext_only\", \"0\"), (\"log_bin_trust_function_creators\", \"OFF\"), (\"binlog_max_flush_queue_time\", \"0\"), (\"tidb_auto_analyze_end_time\", \"23:59 +0000\"), (\"tiflash_replica_read\", \"all_replicas\"), (\"tidb_replica_read\", \"leader\"), (\"tidb_non_prepared_plan_cache_size\", \"100\"), (\"gtid_executed_compression_period\", \"\"), (\"slave_rows_search_algorithms\", \"TABLE_SCAN,INDEX_SCAN\"), (\"character_set_filesystem\", \"binary\"), (\"tidb_stats_load_pseudo_timeout\", \"ON\"), (\"long_query_time\", \"10.000000\"), (\"rpl_semi_sync_master_wait_no_slave\", \"ON\"), (\"tidb_historical_stats_duration\", \"168h0m0s\"), (\"sync_relay_log_info\", \"10000\"), (\"tidb_opt_mpp_outer_join_fixed_build_side\", \"OFF\"), (\"tidb_evolve_plan_task_max_time\", \"600\"), (\"innodb_stats_persistent\", \"ON\"), (\"tidb_memory_usage_alarm_ratio\", \"0.7\"), (\"query_cache_type\", \"OFF\"), (\"character_set_results\", \"utf8mb4\"), (\"binlog_stmt_cache_size\", \"32768\"), (\"innodb_status_output_locks\", \"OFF\"), (\"tidb_analyze_skip_column_types\", \"json,blob,mediumblob,longblob\"), (\"innodb_max_dirty_pages_pct\", \"75\"), (\"table_open_cache\", \"2000\"), (\"updatable_views_with_limit\", \"YES\"), (\"authentication_ldap_simple_max_pool_size\", \"1000\"), (\"tidb_opt_range_max_size\", \"67108864\"), (\"tidb_ddl_enable_fast_reorg\", \"ON\"), (\"tidb_enable_inl_join_inner_multi_pattern\", \"OFF\"), (\"innodb_buffer_pool_dump_pct\", \"\"), (\"tidb_capture_plan_baselines\", \"OFF\"), (\"tidb_redact_log\", \"OFF\"), (\"mpp_exchange_compression_mode\", \"UNSPECIFIED\"), (\"tidb_allow_batch_cop\", \"1\"), (\"tidb_skip_isolation_level_check\", \"OFF\"), (\"ndb_show_foreign_key_mock_tables\", \"\"), (\"sql_auto_is_null\", \"OFF\"), (\"tidb_enable_paging\", \"ON\"), (\"tidb_sysproc_scan_concurrency\", \"1\"), (\"host_cache_size\", \"279\"), (\"tidb_enable_foreign_key\", \"ON\"), (\"tidb_server_memory_limit\", \"80%\"), (\"innodb_buffer_pool_size\", \"134217728\"), (\"div_precision_increment\", \"4\"), (\"tidb_skip_missing_partition_stats\", \"ON\"), (\"sql_notes\", \"1\"), (\"tidb_enable_async_commit\", \"OFF\"), (\"tidb_enable_tso_follower_proxy\", \"OFF\"), (\"sql_log_off\", \"0\"), (\"tidb_session_plan_cache_size\", \"100\"), (\"session_track_schema\", \"\"), (\"tidb_opt_concurrency_factor\", \"3\"), (\"rpl_semi_sync_master_timeout\", \"10000\"(len:24736);"] [2024/05/06 17:56:25.531 +08:00] [INFO] [bootstrap.go:723] ["bootstrap successful"] ["take time"=30.030343746s] [2024/05/06 17:56:25.546 +08:00] [INFO] [mock.go:106] ["owner manager is canceled"] [category=ddl] [ID=d9a7e690-6649-4216-8e11-f11c248fffca] [ownerKey=/tidb/ddl/fg/owner] [2024/05/06 17:56:25.546 +08:00] [INFO] [ddl_workerpool.go:83] ["closing workerPool"] [category=ddl] [2024/05/06 17:56:25.547 +08:00] [INFO] [ddl_worker.go:184] ["DDL worker closed"] [worker="worker 4, tp add index"] [category=ddl] ["take time"=35.002µs] [2024/05/06 17:56:25.547 +08:00] [INFO] [ddl_worker.go:184] ["DDL worker closed"] [worker="worker 5, tp add index"] [category=ddl] ["take time"=26.284µs] [2024/05/06 17:56:25.547 +08:00] [INFO] [ddl_worker.go:184] ["DDL worker closed"] [worker="worker 2, tp add index"] [category=ddl] ["take time"=26.812µs] [2024/05/06 17:56:25.547 +08:00] [INFO] [ddl_worker.go:184] ["DDL worker closed"] [worker="worker 3, tp add index"] [category=ddl] ["take time"=26.663µs] [2024/05/06 17:56:25.547 +08:00] [INFO] [ddl_workerpool.go:83] ["closing workerPool"] [category=ddl] [2024/05/06 17:56:25.547 +08:00] [INFO] [ddl_worker.go:184] ["DDL worker closed"] [worker="worker 1, tp general"] [category=ddl] ["take time"=19.748µs] [2024/05/06 17:56:25.547 +08:00] [INFO] [delete_range.go:150] ["closing delRange"] [category=ddl] [2024/05/06 17:56:25.547 +08:00] [INFO] [session_pool.go:99] ["closing session pool"] [category=ddl] [2024/05/06 17:56:25.582 +08:00] [INFO] [ddl.go:872] ["DDL closed"] [category=ddl] [ID=d9a7e690-6649-4216-8e11-f11c248fffca] ["take time"=50.155647ms] [2024/05/06 17:56:25.582 +08:00] [INFO] [ddl.go:698] ["stop DDL"] [category=ddl] [ID=d9a7e690-6649-4216-8e11-f11c248fffca] [2024/05/06 17:56:25.583 +08:00] [INFO] [domain.go:1340] ["closestReplicaReadCheckLoop exited."] [2024/05/06 17:56:25.583 +08:00] [INFO] [wait_group_wrapper.go:137] ["background process exited"] [source=domain] [process=closestReplicaReadCheckLoop] [2024/05/06 17:56:25.583 +08:00] [INFO] [wait_group_wrapper.go:137] ["background process exited"] [source=domain] [process=mdlCheckLoop] [2024/05/06 17:56:25.583 +08:00] [INFO] [wait_group_wrapper.go:137] ["background process exited"] [source=domain] [process=runawayWatchSyncLoop] [2024/05/06 17:56:25.583 +08:00] [INFO] [domain.go:886] ["loadSchemaInLoop exited."] [2024/05/06 17:56:25.583 +08:00] [INFO] [wait_group_wrapper.go:137] ["background process exited"] [source=domain] [process=loadSchemaInLoop] [2024/05/06 17:56:25.583 +08:00] [INFO] [domain.go:693] ["infoSyncerKeeper exited."] [2024/05/06 17:56:25.583 +08:00] [INFO] [wait_group_wrapper.go:137] ["background process exited"] [source=domain] [process=infoSyncerKeeper] [2024/05/06 17:56:25.583 +08:00] [INFO] [wait_group_wrapper.go:137] ["background process exited"] [source=domain] [process=runawayRecordFlushLoop] [2024/05/06 17:56:25.583 +08:00] [INFO] [domain.go:743] ["topologySyncerKeeper exited."] [2024/05/06 17:56:25.583 +08:00] [INFO] [wait_group_wrapper.go:137] ["background process exited"] [source=domain] [process=topologySyncerKeeper] [2024/05/06 17:56:25.583 +08:00] [INFO] [domain.go:719] ["globalConfigSyncerKeeper exited."] [2024/05/06 17:56:25.584 +08:00] [INFO] [wait_group_wrapper.go:137] ["background process exited"] [source=domain] [process=globalConfigSyncerKeeper] [2024/05/06 17:56:25.584 +08:00] [INFO] [domain.go:665] ["topNSlowQueryLoop exited."] [2024/05/06 17:56:25.584 +08:00] [INFO] [wait_group_wrapper.go:137] ["background process exited"] [source=domain] [process=topNSlowQueryLoop] [2024/05/06 17:56:25.584 +08:00] [INFO] [domain.go:1053] ["domain closed"] ["take time"=52.15312ms] [2024/05/06 17:56:25.584 +08:00] [INFO] [tidb.go:80] ["new domain"] [store=4e8aa083-1f3f-4a34-83eb-3ff7ca0f03b6] ["ddl lease"=500ms] ["stats lease"=-1ns] ["index usage sync lease"=0s] [2024/05/06 17:56:25.840 +08:00] [WARN] [controller.go:185] ["[resource group controller] server does not save config, load config failed"] [2024/05/06 17:56:25.840 +08:00] [INFO] [controller.go:172] ["load resource controller config"] [config="{\"degraded-mode-wait-duration\":\"0s\",\"ltb-max-wait-duration\":\"30s\",\"request-unit\":{\"read-base-cost\":0.125,\"read-per-batch-base-cost\":0.5,\"read-cost-per-byte\":0.0000152587890625,\"write-base-cost\":1,\"write-per-batch-base-cost\":1,\"write-cost-per-byte\":0.0009765625,\"read-cpu-ms-cost\":0.3333333333333333},\"enable-controller-trace-log\":\"false\"}"] [ru-config="{\"ReadBaseCost\":0.125,\"ReadPerBatchBaseCost\":0.5,\"ReadBytesCost\":0.0000152587890625,\"WriteBaseCost\":1,\"WritePerBatchBaseCost\":1,\"WriteBytesCost\":0.0009765625,\"CPUMsCost\":0.3333333333333333,\"LTBMaxWaitDuration\":30000000000,\"DegradedModeWaitDuration\":0}"] [2024/05/06 17:56:25.997 +08:00] [INFO] [domain.go:302] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=50] ["start time"=156.031876ms] [2024/05/06 17:56:26.003 +08:00] [INFO] [domain.go:617] ["full load and reset schema validator"] [2024/05/06 17:56:26.004 +08:00] [INFO] [ddl.go:743] ["start DDL"] [category=ddl] [ID=d3afbf42-9cda-42c3-9f69-952e287f05c7] [runWorker=true] [2024/05/06 17:56:26.004 +08:00] [INFO] [ddl.go:706] ["start delRangeManager OK"] [category=ddl] ["is a emulator"=true] [2024/05/06 17:56:26.004 +08:00] [WARN] [env.go:53] ["initialize environment failed"] [category=ddl-ingest] ["storage limitation"="only support TiKV storage"] ["current storage"=unistore] ["lightning is initialized"=false] [2024/05/06 17:56:26.005 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=loadSchemaInLoop] [2024/05/06 17:56:26.005 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=mdlCheckLoop] [2024/05/06 17:56:26.005 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=topNSlowQueryLoop] [2024/05/06 17:56:26.005 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=infoSyncerKeeper] [2024/05/06 17:56:26.005 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=globalConfigSyncerKeeper] [2024/05/06 17:56:26.005 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=runawayRecordFlushLoop] [2024/05/06 17:56:26.005 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=runawayWatchSyncLoop] [2024/05/06 17:56:26.005 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=topologySyncerKeeper] [2024/05/06 17:56:26.005 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=closestReplicaReadCheckLoop] [2024/05/06 17:56:26.006 +08:00] [WARN] [domain.go:1305] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 17:56:26.006 +08:00] [INFO] [delete_range.go:160] ["start delRange emulator"] [category=ddl] [2024/05/06 17:56:26.006 +08:00] [INFO] [job_table.go:316] ["get global state and global state change"] [category=ddl] [oldState=false] [currState=false] [2024/05/06 17:56:26.038 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=globalBindHandleWorkerLoop] [2024/05/06 17:56:26.038 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=handleEvolvePlanTasksLoop] [2024/05/06 17:56:26.039 +08:00] [WARN] [sysvar_cache.go:50] ["sysvar cache is empty, triggering rebuild"] [2024/05/06 17:56:26.056 +08:00] [INFO] [job_table.go:316] ["get global state and global state change"] [category=ddl] [oldState=false] [currState=false] [2024/05/06 17:56:26.058 +08:00] [INFO] [job_table.go:331] ["the owner sets owner operator value"] [category=ddl] [ownerOp=none] [2024/05/06 17:56:26.094 +08:00] [INFO] [sysvar.go:2563] ["set resource control"] [enable=true] [2024/05/06 17:56:26.101 +08:00] [INFO] [controller.go:435] ["[resource group controller] create resource group cost controller"] [name=default] [2024/05/06 17:56:26.308 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=loadPrivilegeInLoop] [2024/05/06 17:56:26.354 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=LoadSysVarCacheLoop] [2024/05/06 17:56:26.369 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=dumpFileGcChecker] [2024/05/06 17:56:26.370 +08:00] [INFO] [domain.go:2112] ["dumpFileGcChecker started"] [2024/05/06 17:56:26.372 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=quitStatsOwner] [2024/05/06 17:56:26.376 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=loadSigningCertLoop] [2024/05/06 17:56:26.376 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=distTaskFrameworkLoop] [2024/05/06 17:56:26.382 +08:00] [INFO] [task_manager.go:216] ["scale ttl worker"] [ttl-worker=job-manager] [ttl-worker=task-manager] [originalCount=0] [newCount=4] [2024/05/06 17:56:26.382 +08:00] [INFO] [task_manager.go:216] ["scale ttl worker"] [ttl-worker=job-manager] [ttl-worker=task-manager] [originalCount=0] [newCount=4] [2024/05/06 17:56:26.393 +08:00] [INFO] [session.go:3903] ["CRUCIAL OPERATION"] [conn=1] [schemaVersion=50] [cur_db=test] [sql="create table t(a int, b int, c int, primary key(a), key idx(b))"] [user=] [2024/05/06 17:56:26.401 +08:00] [INFO] [domain.go:1499] ["dist task scheduler manager started"] [2024/05/06 17:56:26.446 +08:00] [INFO] [ddl_worker.go:253] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:103, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:102, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:26.408 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0; "] [table=true] [2024/05/06 17:56:26.447 +08:00] [INFO] [ddl.go:1067] ["start DDL job"] [category=ddl] [job="ID:103, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:102, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:26.408 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [query="create table t(a int, b int, c int, primary key(a), key idx(b))"] [2024/05/06 17:56:26.538 +08:00] [INFO] [ddl_worker.go:996] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=103] [conn=1] [category=ddl] [job="ID:103, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:102, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:26.408 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:26.617 +08:00] [INFO] [domain.go:269] ["diff load InfoSchema success"] [currentSchemaVersion=50] [neededSchemaVersion=51] ["start time"=1.95505ms] [gotSchemaVersion=51] [phyTblIDs="[102]"] [actionTypes="[3]"] [2024/05/06 17:56:26.630 +08:00] [INFO] [domain.go:867] ["mdl gets lock, update to owner"] [jobID=103] [version=51] [2024/05/06 17:56:26.631 +08:00] [INFO] [ddl_worker.go:1230] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=51] ["take time"=16.514098ms] [job="ID:103, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:102, RowCount:0, ArgLen:2, start time: 2024-05-06 17:56:26.408 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:26.682 +08:00] [INFO] [ddl_worker.go:611] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=103] [conn=1] [job="ID:103, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:102, RowCount:0, ArgLen:0, start time: 2024-05-06 17:56:26.408 +0800 CST, Err:, ErrCount:0, SnapshotVersion:0"] [2024/05/06 17:56:26.740 +08:00] [INFO] [ddl.go:1169] ["DDL job is finished"] [category=ddl] [jobID=103] [2024/05/06 17:56:26.740 +08:00] [INFO] [callback.go:139] ["performing DDL change, must reload"] [2024/05/06 17:56:26.742 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 0\n# Conn_ID: 1\n# Query_time: 0.352504374\n# Parse_time: 0.001752532\n# Compile_time: 0.002059046\n# Rewrite_time: 0.000015417\n# Optimize_time: 0.000544163\n# Wait_TS: 0.00016335\n# DB: test\n# Is_internal: false\n# Digest: 8b6767c76ef9ffaf4188324682f0a5a37124ae5139dfe9f9fcc0547b4f4ac13b\n# Num_cop_tasks: 0\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\nuse test;\ncreate table t(a int, b int, c int, primary key(a), key idx(b));"] [2024/05/06 17:56:27.386 +08:00] [INFO] [runtime.go:160] ["TimerGroupRuntime loop started"] [groupID=ttl] [2024/05/06 17:56:27.386 +08:00] [INFO] [runtime.go:402] ["create watch chan if possible for timer runtime"] [groupID=ttl] [storeSupportWatch=true] [2024/05/06 17:56:27.405 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 449574177824571392\n# Exec_retry_time: 0.552613987 Exec_retry_count: 1\n# Query_time: 0.558870115\n# Parse_time: 0\n# Compile_time: 0.002082339\n# Rewrite_time: 0.000011707\n# Optimize_time: 0.003601005\n# Wait_TS: 0\n# Is_internal: true\n# Digest: 1c168b5476c4736d7f171ffbe75d3f630ebea1d81ad7fad14395ea47aa1af1bf\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: 1\n# Succ: true\n# IsExplicitTxn: true\n# IsSyncStatsFailed: false\n# Plan: tidb_decode_plan('8QGYMAkzNl8xCTAJMQl0YWJsZTpzdGF0c19tZXRhLCBpbmRleDp0YmwoBRwkX2lkKSwgbG9jawEuKGltZTo1NTQuOG1zARUQb3BzOjMBCSRja19rZXlzOiB7BSMMMS42OQEiJHJlZ2lvbjoyLCAFHjQyLCBzbG93ZXN0X3JwYwEtMG90YWw6IDAuMDAxcywNLxBfaWQ6IAErFHRvcmU6IAUHDDEsIH0NaCxycGM6MS4yMTk5MDIFZCRwY19jb3VudDoyAUIIdHJ5DQ8oMX0JTi9BCU4vQQo=')\n# Plan_digest: 6cd45b796ef12e7cd136a40cf561d46cb98182d75f27497674cf7ed44881a21f\n# Binary_plan: tidb_decode_binary_plan('lwJECpICCgtQb2ludF9HZXRfMSkABQHwyfA/MAE4AUABSiYKJAoFbXlzcWwSCnN0YXRzX21ldGEaDwoDdGJsEgh0YWJsZV9pZFIEbG9ja1oVdGltZTo1NTQuOG1zLCBsb29wczozYpgBbG9ja19rZXlzOiB7dGltZToxLjY5bXMsIHJlZ2lvbjoyLCBrZXlzOjIsIHNsb3dlc3RfcnBjOiB7dG90YWw6IDAuMDAxcywgcmVnaW9uX2lkOiAyLCBzdG9yZTogc3RvcmUxLCB9LCBsb2NrX3JwYzoxLjIxOTkwMm0BZCRwY19jb3VudDoyAUIIdHJ5DQ8MMX1w/xEBNAF4////////////ARgB')\n# Resource_group: default\nselect snapshot, count, modify_count from mysql.stats_meta where table_id = 102 for update;"] [2024/05/06 17:56:27.406 +08:00] [INFO] [dispatcher_manager.go:293] ["cleanUp loop start"] [2024/05/06 17:56:27.406 +08:00] [INFO] [dispatcher_manager.go:156] ["dispatch task loop start"] [2024/05/06 17:56:27.406 +08:00] [INFO] [dispatcher_manager.go:243] ["subtask table gc loop start"] [2024/05/06 17:56:27.458 +08:00] [INFO] [analyze.go:750] ["analyze table `test`.`t` has finished"] [partition=] ["job info"="analyze index idx"] ["start time"=2024/05/06 17:56:26.806 +08:00] ["end time"=2024/05/06 17:56:27.445 +08:00] [cost=639.230427ms] ["sample rate reason"=] [2024/05/06 17:56:28.013 +08:00] [INFO] [info.go:1182] [SetTiFlashGroupConfig] [2024/05/06 17:56:28.071 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 449574177824571392\n# Query_time: 0.333125863\n# Parse_time: 0\n# Compile_time: 0.328357978\n# Rewrite_time: 0.000521105\n# Optimize_time: 0.003601005\n# Wait_TS: 0\n# Is_internal: true\n# Digest: 3fcddb2667641bf48db0309d35396467d4472c67a901e83769ade68b2b5d7dcf\n# Num_cop_tasks: 0\n# Mem_max: 83029\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 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('gwLwTzAJMjdfMQkwCTAJTi9BCTAJdGltZToyLjU4bXMsIGxvb3BzOjEsIHByZWZldGNoOiA1OTHCtXMsIHJwYzoge0JhdGNoR2V0OntudW1fcnBjAS0UdG90YWxfBUkkMzM3LjjCtXN9fQFNJGNrX2tleXM6IHsFHRQ5NjYuNcIFTRBlZ2lvbgE8BSAoMiwgc2xvd2VzdF8BUwQgewVSJDogMC4wMDFzLCAJLxBfaWQ6IAErFHRvcmU6IAUHCDEsIBFqAToUNzAxLjY1DWRccGNfY291bnQ6MX0JNDEuMSBLQglOL0EK')\n# Binary_plan: tidb_decode_binary_plan('jwLwYQqKAgoISW5zZXJ0XzE4AUABUgNOL0FaFHRpbWU6Mi41OG1zLCBsb29wczoxYkJwcmVmZXRjaDogNTkxwrVzLCBycGM6IHtCYXRjaEdldDp7bnVtX3JwYzoxLCB0b3RhbF90AUlgMzM3LjjCtXN9fWKLAWxvY2tfa2V5czogewVnEDk2Ni41CU4gZWdpb246MSwgBSAkMiwgc2xvd2VzdAVUCCB7dAFTGDogMC4wMDEBfQUvEF9pZDogASsUdG9yZTogBQcMMSwgfQG4BGNrBToUNzAxLjY1DWRscGNfY291bnQ6MX1w1cgCeP///////////wEYAQ==')\n# Resource_group: default\nreplace into mysql.stats_histograms (table_id, is_index, hist_id, distinct_count, version, null_count, cm_sketch, tot_col_size, stats_ver, flag, correlation) values (102, 0, 2, 6, 449574177824571392, 0, _binary'\\n? \u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\u0001\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\u0001\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\u0001\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\u0001\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0\u0008\\0(len:30937);"] [2024/05/06 17:56:28.684 +08:00] [INFO] [analyze.go:750] ["analyze table `test`.`t` has finished"] [partition=] ["job info"="analyze columns"] ["start time"=2024/05/06 17:56:26.804 +08:00] ["end time"=2024/05/06 17:56:28.669 +08:00] [cost=1.86492085s] ["sample rate reason"=] [2024/05/06 17:56:28.961 +08:00] [WARN] [adapter.go:1663] ["# Txn_start_ts: 449574177802027008\n# Conn_ID: 1\n# Query_time: 2.206244917\n# Parse_time: 0.000479579\n# Compile_time: 0.001102235\n# Rewrite_time: 0.000105474\n# Optimize_time: 0.000544163\n# Wait_TS: 0.000167172\n# DB: test\n# Is_internal: false\n# Digest: d8a7882bcbe7ed5b735d585c8fc402824f4ac87a0772b64a1cdf2e93e0dbab7f\n# Num_cop_tasks: 0\n# Mem_max: 41325\n# Prepared: false\n# Plan_from_cache: false\n# Plan_from_binding: false\n# Has_more_results: false\n# KV_total: 0\n# PD_total: 0\n# Backoff_total: 0\n# Write_sql_response_total: 0\n# Result_rows: 0\n# Succ: true\n# IsExplicitTxn: false\n# IsSyncStatsFailed: false\n# Resource_group: default\nanalyze table t;"] ================== WARNING: DATA RACE Write at 0x00c009211458 by goroutine 103: github.com/dgraph-io/ristretto.(*Cache).Close() external/com_github_dgraph_io_ristretto/cache.go:363 +0xf2 github.com/pingcap/tidb/pkg/statistics/handle/cache/internal/lfu.(*LFU).Close.func1() pkg/statistics/handle/cache/internal/lfu/lfu_cache.go:251 +0x71 sync.(*Once).doSlow() GOROOT/src/sync/once.go:74 +0xf0 sync.(*Once).Do() GOROOT/src/sync/once.go:65 +0x44 github.com/pingcap/tidb/pkg/statistics/handle/cache/internal/lfu.(*LFU).Close() pkg/statistics/handle/cache/internal/lfu/lfu_cache.go:248 +0x6d github.com/pingcap/tidb/pkg/statistics/handle/cache.(*StatsCache).Close() pkg/statistics/handle/cache/statscacheinner.go:142 +0x4b github.com/pingcap/tidb/pkg/statistics/handle/cache.(*StatsCacheImpl).replace() pkg/statistics/handle/cache/statscache.go:131 +0x73 github.com/pingcap/tidb/pkg/statistics/handle/cache.(*StatsCacheImpl).Replace() pkg/statistics/handle/cache/statscache.go:124 +0x75 github.com/pingcap/tidb/pkg/statistics/handle.(*Handle).InitStats() pkg/statistics/handle/bootstrap.go:768 +0x787 pkg/statistics/handle/handletest/statstest/statstest_test.TestInitStats() pkg/statistics/handle/handletest/statstest/stats_test.go:262 +0x2de github.com/pingcap/tidb/pkg/domain.(*Domain).LoadSysVarCacheLoop() pkg/domain/domain.go:1704 +0xa4 github.com/pingcap/tidb/pkg/session.bootstrapSessionImpl() pkg/session/session.go:3363 +0x794 github.com/pingcap/tidb/pkg/domain.(*Domain).GetSessionCache() pkg/domain/sysvar_cache.go:62 +0x64 github.com/pingcap/tidb/pkg/session.(*session).loadCommonGlobalVariablesIfNeeded() pkg/session/session.go:3735 +0x116 github.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt() pkg/session/session.go:2145 +0x1ab github.com/pingcap/tidb/pkg/session.(*session).ExecuteInternal() pkg/session/session.go:1657 +0x3f7 github.com/pingcap/tidb/pkg/domain.(*Domain).LoadPrivilegeLoop() pkg/domain/domain.go:1647 +0x11a github.com/pingcap/tidb/pkg/session.bootstrapSessionImpl() pkg/session/session.go:3356 +0x734 github.com/pingcap/tidb/pkg/session.BootstrapSession() pkg/session/session.go:3277 +0x4b github.com/pingcap/tidb/pkg/testkit.bootstrap() pkg/testkit/mockstore.go:227 +0x86 github.com/pingcap/tidb/pkg/testkit.CreateMockStoreAndDomain() pkg/testkit/mockstore.go:200 +0xdb pkg/statistics/handle/handletest/statstest/statstest_test.TestInitStats() pkg/statistics/handle/handletest/statstest/stats_test.go:246 +0x107 testing.tRunner() GOROOT/src/testing/testing.go:1595 +0x261 testing.(*T).Run.func1() GOROOT/src/testing/testing.go:1648 +0x44 Previous read at 0x00c009211458 by goroutine 48816: github.com/dgraph-io/ristretto.(*Cache).Get() external/com_github_dgraph_io_ristretto/cache.go:225 +0x47 github.com/pingcap/tidb/pkg/statistics/handle/cache/internal/lfu.(*LFU).Get() pkg/statistics/handle/cache/internal/lfu/lfu_cache.go:91 +0x71 github.com/pingcap/tidb/pkg/statistics/handle/cache.(*StatsCache).Get() pkg/statistics/handle/cache/statscacheinner.go:76 +0x5b github.com/pingcap/tidb/pkg/statistics/handle/cache.(*StatsCacheImpl).Get() pkg/statistics/handle/cache/statscache.go:171 +0xda github.com/pingcap/tidb/pkg/statistics/handle.(*Handle).GetPartitionStats() pkg/statistics/handle/handle.go:169 +0x91 github.com/pingcap/tidb/pkg/statistics/handle.(*Handle).GetTableStats() pkg/statistics/handle/handle.go:157 +0x56 github.com/pingcap/tidb/pkg/planner/core.getStatsTable() pkg/planner/core/logical_plan_builder.go:4803 +0x3d9 github.com/pingcap/tidb/pkg/planner/core.(*DataSource).initStats() pkg/planner/core/stats.go:250 +0x1ae github.com/pingcap/tidb/pkg/planner/core.(*DataSource).DeriveStats() pkg/planner/core/stats.go:452 +0x172 github.com/pingcap/tidb/pkg/planner/core.(*baseLogicalPlan).recursiveDeriveStats() pkg/planner/core/stats.go:139 +0x452 github.com/pingcap/tidb/pkg/planner/core.(*DataSource).recursiveDeriveStats() :1 +0x57 github.com/pingcap/tidb/pkg/planner/core.(*baseSingleGroupJoinOrderSolver).generateJoinOrderNode() pkg/planner/core/rule_join_reorder.go:473 +0x15e github.com/pingcap/tidb/pkg/planner/core.(*joinReorderGreedySolver).solve() pkg/planner/core/rule_join_reorder_greedy.go:46 +0xa4 github.com/pingcap/tidb/pkg/planner/core.(*joinReOrderSolver).optimizeRecursive() pkg/planner/core/rule_join_reorder.go:293 +0xdf1 github.com/pingcap/tidb/pkg/planner/core.(*joinReOrderSolver).optimizeRecursive() pkg/planner/core/rule_join_reorder.go:331 +0x464 github.com/pingcap/tidb/pkg/planner/core.(*joinReOrderSolver).optimizeRecursive() pkg/planner/core/rule_join_reorder.go:331 +0x464 github.com/pingcap/tidb/pkg/planner/core.(*joinReOrderSolver).optimize() pkg/planner/core/rule_join_reorder.go:229 +0x124 github.com/pingcap/tidb/pkg/planner/core.logicalOptimize() pkg/planner/core/optimizer.go:1155 +0x7dc github.com/pingcap/tidb/pkg/planner/core.DoOptimizeAndLogicAsRet() pkg/planner/core/optimizer.go:322 +0x224 github.com/pingcap/tidb/pkg/planner/core.DoOptimize() pkg/planner/core/optimizer.go:359 +0x1ef github.com/pingcap/tidb/pkg/planner.optimize() pkg/planner/optimize.go:531 +0xa99 github.com/pingcap/tidb/pkg/planner.Optimize() pkg/planner/optimize.go:352 +0x1937 github.com/pingcap/tidb/pkg/executor.(*Compiler).Compile() pkg/executor/compiler.go:98 +0x910 github.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt() pkg/session/session.go:2221 +0xebd github.com/pingcap/tidb/pkg/session.(*session).ExecuteInternal() pkg/session/session.go:1657 +0x3f7 github.com/pingcap/tidb/pkg/ddl/internal/session.(*Session).Execute() pkg/ddl/internal/session/session.go:85 +0x2c5 github.com/pingcap/tidb/pkg/ddl.(*ddl).getJob() pkg/ddl/job_table.go:95 +0x2d5 github.com/pingcap/tidb/pkg/ddl.(*ddl).getGeneralJob() pkg/ddl/job_table.go:203 +0x94 github.com/pingcap/tidb/pkg/ddl.(*ddl).getGeneralJob-fm() :1 +0x3d github.com/pingcap/tidb/pkg/ddl.(*ddl).loadDDLJobAndRun() pkg/ddl/job_table.go:346 +0x3f9 github.com/pingcap/tidb/pkg/ddl.(*ddl).startDispatchLoop() pkg/ddl/job_table.go:293 +0xbd3 github.com/pingcap/tidb/pkg/ddl.(*ddl).startDispatchLoop-fm() :1 +0x33 github.com/pingcap/tidb/pkg/util.(*WaitGroupWrapper).Run.func1() pkg/util/wait_group_wrapper.go:154 +0x9d Goroutine 103 (running) created at: testing.(*T).Run() GOROOT/src/testing/testing.go:1648 +0x845 testing.runTests.func1() GOROOT/src/testing/testing.go:2054 +0x84 testing.tRunner() GOROOT/src/testing/testing.go:1595 +0x261 testing.runTests() GOROOT/src/testing/testing.go:2052 +0x8ad testing.(*M).Run() GOROOT/src/testing/testing.go:1925 +0xcd7 go.uber.org/goleak.VerifyTestMain() external/org_uber_go_goleak/testmain.go:53 +0x64 pkg/statistics/handle/handletest/statstest/statstest_test.TestMain() pkg/statistics/handle/handletest/statstest/main_test.go:32 +0x424 main.main() bazel-out/k8-fastbuild/bin/pkg/statistics/handle/handletest/statstest/statstest_test_/testmain.go:161 +0x7ae Goroutine 48816 (running) created at: github.com/pingcap/tidb/pkg/util.(*WaitGroupWrapper).Run() pkg/util/wait_group_wrapper.go:152 +0xf0 github.com/pingcap/tidb/pkg/ddl.(*ddl).prepareWorkers4ConcurrencyDDL() pkg/ddl/ddl.go:738 +0x32b github.com/pingcap/tidb/pkg/ddl.(*ddl).Start() pkg/ddl/ddl.go:764 +0xa71 github.com/pingcap/tidb/pkg/domain.(*Domain).Init() pkg/domain/domain.go:1245 +0x1667 github.com/pingcap/tidb/pkg/session.(*domainMap).Get.func1() pkg/session/tidb.go:93 +0x65e github.com/pingcap/tidb/pkg/util.RunWithRetry() pkg/util/misc.go:69 +0xb1 github.com/pingcap/tidb/pkg/session.(*domainMap).Get() pkg/session/tidb.go:79 +0x368 github.com/pingcap/tidb/pkg/session.createSessionWithOpt() pkg/session/session.go:3584 +0x77 github.com/pingcap/tidb/pkg/session.createSession() pkg/session/session.go:3576 +0x46 github.com/pingcap/tidb/pkg/session.createSessionsImpl() pkg/session/session.go:3561 +0xa4 github.com/pingcap/tidb/pkg/session.createSessions() pkg/session/session.go:3548 +0x56 github.com/pingcap/tidb/pkg/session.bootstrapSessionImpl() pkg/session/session.go:3323 +0x428 github.com/pingcap/tidb/pkg/session.BootstrapSession() pkg/session/session.go:3277 +0x4b github.com/pingcap/tidb/pkg/testkit.bootstrap() pkg/testkit/mockstore.go:227 +0x86 github.com/pingcap/tidb/pkg/testkit.CreateMockStoreAndDomain() pkg/testkit/mockstore.go:200 +0xdb pkg/statistics/handle/handletest/statstest/statstest_test.TestInitStats() pkg/statistics/handle/handletest/statstest/stats_test.go:246 +0x107 testing.tRunner() GOROOT/src/testing/testing.go:1595 +0x261 testing.(*T).Run.func1() GOROOT/src/testing/testing.go:1648 +0x44 ================== [2024/05/06 17:56:29.292 +08:00] [INFO] [mock.go:106] ["owner manager is canceled"] [category=ddl] [ID=d3afbf42-9cda-42c3-9f69-952e287f05c7] [ownerKey=/tidb/ddl/fg/owner] [2024/05/06 17:56:29.292 +08:00] [INFO] [ddl_workerpool.go:83] ["closing workerPool"] [category=ddl] [2024/05/06 17:56:29.292 +08:00] [INFO] [ddl_worker.go:184] ["DDL worker closed"] [worker="worker 8, tp add index"] [category=ddl] ["take time"=23.366µs] [2024/05/06 17:56:29.292 +08:00] [INFO] [ddl_worker.go:184] ["DDL worker closed"] [worker="worker 9, tp add index"] [category=ddl] ["take time"=18.874µs] [2024/05/06 17:56:29.292 +08:00] [INFO] [ddl_worker.go:184] ["DDL worker closed"] [worker="worker 10, tp add index"] [category=ddl] ["take time"=22.601µs] [2024/05/06 17:56:29.292 +08:00] [INFO] [ddl_worker.go:184] ["DDL worker closed"] [worker="worker 7, tp add index"] [category=ddl] ["take time"=16.331µs] [2024/05/06 17:56:29.292 +08:00] [INFO] [ddl_workerpool.go:83] ["closing workerPool"] [category=ddl] [2024/05/06 17:56:29.292 +08:00] [INFO] [ddl_worker.go:184] ["DDL worker closed"] [worker="worker 6, tp general"] [category=ddl] ["take time"=15.928µs] [2024/05/06 17:56:29.292 +08:00] [INFO] [delete_range.go:150] ["closing delRange"] [category=ddl] [2024/05/06 17:56:29.292 +08:00] [INFO] [session_pool.go:99] ["closing session pool"] [category=ddl] [2024/05/06 17:56:29.294 +08:00] [INFO] [ddl.go:872] ["DDL closed"] [category=ddl] [ID=d3afbf42-9cda-42c3-9f69-952e287f05c7] ["take time"=34.935938ms] [2024/05/06 17:56:29.294 +08:00] [INFO] [ddl.go:698] ["stop DDL"] [category=ddl] [ID=d3afbf42-9cda-42c3-9f69-952e287f05c7] [2024/05/06 17:56:29.294 +08:00] [INFO] [domain.go:1005] ["stopping ttlJobManager"] [2024/05/06 17:56:29.295 +08:00] [INFO] [runtime.go:190] ["TimerGroupRuntime loop exit"] [groupID=ttl] [2024/05/06 17:56:29.295 +08:00] [INFO] [task_manager.go:193] ["shrink ttl worker"] [ttl-worker=job-manager] [ttl-worker=task-manager] [originalCount=4] [newCount=0] [2024/05/06 17:56:29.295 +08:00] [INFO] [scan.go:309] ["ttlScanWorker loop exited."] [2024/05/06 17:56:29.295 +08:00] [INFO] [scan.go:309] ["ttlScanWorker loop exited."] [2024/05/06 17:56:29.295 +08:00] [INFO] [scan.go:309] ["ttlScanWorker loop exited."] [2024/05/06 17:56:29.295 +08:00] [INFO] [scan.go:309] ["ttlScanWorker loop exited."] [2024/05/06 17:56:29.295 +08:00] [INFO] [task_manager.go:193] ["shrink ttl worker"] [ttl-worker=job-manager] [ttl-worker=task-manager] [originalCount=4] [newCount=0] [2024/05/06 17:56:29.295 +08:00] [INFO] [del.go:261] ["ttlDeleteWorker loop exited."] [2024/05/06 17:56:29.296 +08:00] [INFO] [del.go:261] ["ttlDeleteWorker loop exited."] [2024/05/06 17:56:29.296 +08:00] [INFO] [del.go:261] ["ttlDeleteWorker loop exited."] [2024/05/06 17:56:29.296 +08:00] [INFO] [del.go:261] ["ttlDeleteWorker loop exited."] [2024/05/06 17:56:29.302 +08:00] [INFO] [job_manager.go:173] ["ttlJobManager loop exited."] [ttl-worker=job-manager] [2024/05/06 17:56:29.302 +08:00] [INFO] [domain.go:1016] ["ttlJobManager exited."] [2024/05/06 17:56:29.303 +08:00] [INFO] [manager.go:280] ["recoverMetaLoop done"] [2024/05/06 17:56:29.303 +08:00] [INFO] [wait_group_wrapper.go:137] ["background process exited"] [source=domain] [process=mdlCheckLoop] [2024/05/06 17:56:29.303 +08:00] [INFO] [domain.go:886] ["loadSchemaInLoop exited."] [2024/05/06 17:56:29.303 +08:00] [INFO] [wait_group_wrapper.go:137] ["background process exited"] [source=domain] [process=loadSchemaInLoop] [2024/05/06 17:56:29.303 +08:00] [INFO] [mock.go:106] ["owner manager is canceled"] [category=ddl] [ID=d3afbf42-9cda-42c3-9f69-952e287f05c7] [ownerKey=/tidb/bindinfo/owner] [2024/05/06 17:56:29.303 +08:00] [INFO] [domain.go:1895] ["handleEvolvePlanTasksLoop exited."] [2024/05/06 17:56:29.303 +08:00] [INFO] [wait_group_wrapper.go:137] ["background process exited"] [source=domain] [process=handleEvolvePlanTasksLoop] [2024/05/06 17:56:29.303 +08:00] [INFO] [domain.go:1852] ["globalBindHandleWorkerLoop exited."] [2024/05/06 17:56:29.303 +08:00] [INFO] [wait_group_wrapper.go:137] ["background process exited"] [source=domain] [process=globalBindHandleWorkerLoop] [2024/05/06 17:56:29.303 +08:00] [INFO] [domain.go:1521] ["stopping dist task dispatcher manager because the current node is not DDL owner anymore"] [id=d3afbf42-9cda-42c3-9f69-952e287f05c7] [2024/05/06 17:56:29.303 +08:00] [INFO] [dispatcher_manager.go:162] ["dispatch task loop exits"] [error="context canceled"] [interval=3000] [2024/05/06 17:56:29.303 +08:00] [INFO] [wait_group_wrapper.go:137] ["background process exited"] [source=domain] [process=runawayWatchSyncLoop] [2024/05/06 17:56:29.304 +08:00] [INFO] [wait_group_wrapper.go:137] ["background process exited"] [source=domain] [process=runawayRecordFlushLoop] [2024/05/06 17:56:29.304 +08:00] [INFO] [handle_hist.go:183] ["SubLoadWorker exited."] [2024/05/06 17:56:29.304 +08:00] [INFO] [wait_group_wrapper.go:137] ["background process exited"] [source=domain] [process=loadSigningCertLoop] [2024/05/06 17:56:29.304 +08:00] [INFO] [handle_hist.go:183] ["SubLoadWorker exited."] [2024/05/06 17:56:29.304 +08:00] [INFO] [handle_hist.go:183] ["SubLoadWorker exited."] [2024/05/06 17:56:29.304 +08:00] [INFO] [handle_hist.go:183] ["SubLoadWorker exited."] [2024/05/06 17:56:29.304 +08:00] [INFO] [handle_hist.go:183] ["SubLoadWorker exited."] [2024/05/06 17:56:29.304 +08:00] [INFO] [domain.go:2116] ["dumpFileGcChecker exited."] [2024/05/06 17:56:29.304 +08:00] [INFO] [wait_group_wrapper.go:137] ["background process exited"] [source=domain] [process=dumpFileGcChecker] [2024/05/06 17:56:29.304 +08:00] [INFO] [mock.go:106] ["owner manager is canceled"] [category=ddl] [ID=d3afbf42-9cda-42c3-9f69-952e287f05c7] [ownerKey=/tidb/stats/owner] [2024/05/06 17:56:29.304 +08:00] [INFO] [wait_group_wrapper.go:137] ["background process exited"] [source=domain] [process=quitStatsOwner] [2024/05/06 17:56:29.304 +08:00] [INFO] [domain.go:1716] ["LoadSysVarCacheLoop exited."] [2024/05/06 17:56:29.304 +08:00] [INFO] [wait_group_wrapper.go:137] ["background process exited"] [source=domain] [process=LoadSysVarCacheLoop] [2024/05/06 17:56:29.304 +08:00] [INFO] [domain.go:1666] ["loadPrivilegeInLoop exited."] [2024/05/06 17:56:29.304 +08:00] [INFO] [wait_group_wrapper.go:137] ["background process exited"] [source=domain] [process=loadPrivilegeInLoop] [2024/05/06 17:56:29.305 +08:00] [INFO] [domain.go:693] ["infoSyncerKeeper exited."] [2024/05/06 17:56:29.305 +08:00] [INFO] [wait_group_wrapper.go:137] ["background process exited"] [source=domain] [process=infoSyncerKeeper] [2024/05/06 17:56:29.305 +08:00] [INFO] [domain.go:743] ["topologySyncerKeeper exited."] [2024/05/06 17:56:29.305 +08:00] [INFO] [wait_group_wrapper.go:137] ["background process exited"] [source=domain] [process=topologySyncerKeeper] [2024/05/06 17:56:29.305 +08:00] [INFO] [domain.go:719] ["globalConfigSyncerKeeper exited."] [2024/05/06 17:56:29.305 +08:00] [INFO] [wait_group_wrapper.go:137] ["background process exited"] [source=domain] [process=globalConfigSyncerKeeper] [2024/05/06 17:56:29.305 +08:00] [INFO] [domain.go:665] ["topNSlowQueryLoop exited."] [2024/05/06 17:56:29.305 +08:00] [INFO] [wait_group_wrapper.go:137] ["background process exited"] [source=domain] [process=topNSlowQueryLoop] [2024/05/06 17:56:29.305 +08:00] [INFO] [domain.go:1340] ["closestReplicaReadCheckLoop exited."] [2024/05/06 17:56:29.305 +08:00] [INFO] [wait_group_wrapper.go:137] ["background process exited"] [source=domain] [process=closestReplicaReadCheckLoop] [2024/05/06 17:56:29.305 +08:00] [INFO] [manager.go:151] ["fetchAndHandleRunnableTasksLoop done"] [2024/05/06 17:56:29.305 +08:00] [INFO] [manager.go:173] ["fetchAndFastCancelTasksLoop done"] [2024/05/06 17:56:29.305 +08:00] [INFO] [dispatcher_manager.go:249] ["subtask history table gc loop exits"] [error="context canceled"] [2024/05/06 17:56:29.305 +08:00] [INFO] [dispatcher_manager.go:299] ["cleanUp loop exits"] [error="context canceled"] [2024/05/06 17:56:29.305 +08:00] [INFO] [domain.go:1523] ["dist task dispatcher manager stopped"] [id=d3afbf42-9cda-42c3-9f69-952e287f05c7] [2024/05/06 17:56:29.306 +08:00] [INFO] [domain.go:1501] ["stopping dist task scheduler manager"] [2024/05/06 17:56:29.306 +08:00] [INFO] [domain.go:1503] ["dist task scheduler manager stopped"] [2024/05/06 17:56:29.306 +08:00] [INFO] [wait_group_wrapper.go:137] ["background process exited"] [source=domain] [process=distTaskFrameworkLoop] [2024/05/06 17:56:29.313 +08:00] [INFO] [domain.go:1053] ["domain closed"] ["take time"=53.846712ms] [2024/05/06 17:56:29.315 +08:00] [INFO] [db.go:567] ["Closing database"] [2024/05/06 17:56:29.316 +08:00] [INFO] [db.go:592] ["Memtable flushed"] [2024/05/06 17:56:29.316 +08:00] [INFO] [db.go:596] ["Compaction finished"] [2024/05/06 17:56:29.316 +08:00] [INFO] [db.go:615] ["BlobManager finished"] [2024/05/06 17:56:29.316 +08:00] [INFO] [db.go:619] ["ResourceManager finished"] [2024/05/06 17:56:29.316 +08:00] [INFO] [db.go:625] ["Waiting for closer"] testing.go:1465: race detected during execution of test --- FAIL: TestInitStats (34.35s) === NAME testing.go:1465: race detected during execution of test FAIL coverage: 15.8% of statements -- Coverage runner: Not collecting coverage for failed test. The following commands failed with status 1 /home/jenkins/.tidb/tmp/af6bf8ffe4d3d9ebd17e260a32fdae80/sandbox/linux-sandbox/10625/execroot/__main__/bazel-out/k8-fastbuild/bin/pkg/statistics/handle/handletest/statstest/statstest_test_/statstest_test.runfiles/__main__/pkg/statistics/handle/handletest/statstest/statstest_test_/statstest_test ================================================================================