==================== Test output for //pkg/ddl:ddl_test (shard 17 of 50): === RUN TestCancel [2024/05/06 09:24:06.546 +00:00] [INFO] [store_cache.go:510] ["change store resolve state"] [store=1] [addr=store1] [from=unresolved] [to=resolved] [liveness-state=reachable] [2024/05/06 09:24:06.547 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:06.547 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:06.548 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:06.548 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:06.550 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:06.552 +00:00] [INFO] [tidb.go:80] ["new domain"] [store=63e1965c-00b7-4b45-8053-1f2aeeab18c5] ["ddl lease"=100ms] ["stats lease"=-1ns] [2024/05/06 09:24:06.576 +00:00] [WARN] [controller.go:198] ["[resource group controller] server does not save config, load config failed"] [2024/05/06 09:24:06.577 +00:00] [INFO] [controller.go:185] ["load resource controller config"] [config="{\"degraded-mode-wait-duration\":\"0s\",\"ltb-max-wait-duration\":\"30s\",\"wait-retry-interval\":\"50ms\",\"wait-retry-times\":10,\"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,\"WaitRetryInterval\":50000000,\"WaitRetryTimes\":10,\"DegradedModeWaitDuration\":0}"] [2024/05/06 09:24:06.582 +00:00] [WARN] [domain.go:245] ["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:335\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).loadInfoSchema\n\tpkg/domain/domain.go:242\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).Reload\n\tpkg/domain/domain.go:606\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).Init\n\tpkg/domain/domain.go:1260\ngithub.com/pingcap/tidb/pkg/session.(*domainMap).Get.func1\n\tpkg/session/tidb.go:92\ngithub.com/pingcap/tidb/pkg/util.RunWithRetry\n\tpkg/util/misc.go:70\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:3620\ngithub.com/pingcap/tidb/pkg/session.createSession\n\tpkg/session/session.go:3612\ngithub.com/pingcap/tidb/pkg/session.runInBootstrapSession\n\tpkg/session/session.go:3562\ngithub.com/pingcap/tidb/pkg/session.bootstrapSessionImpl\n\tpkg/session/session.go:3346\ngithub.com/pingcap/tidb/pkg/session.BootstrapSession\n\tpkg/session/session.go:3312\ngithub.com/pingcap/tidb/pkg/testkit.bootstrap\n\tpkg/testkit/mockstore.go:294\ngithub.com/pingcap/tidb/pkg/testkit.CreateMockStoreAndDomainWithSchemaLease\n\tpkg/testkit/mockstore.go:319\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:207\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [version=0] [2024/05/06 09:24:06.587 +00:00] [INFO] [domain.go:315] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=0] ["start time"=4.263106ms] [2024/05/06 09:24:06.587 +00:00] [INFO] [domain.go:635] ["full load and reset schema validator"] [2024/05/06 09:24:06.587 +00:00] [INFO] [ddl.go:818] ["start DDL"] [category=ddl] [ID=c1b294dd-0097-4327-b13f-3c7fef46aa87] [runWorker=true] [2024/05/06 09:24:06.587 +00:00] [INFO] [ddl.go:777] ["start delRangeManager OK"] [category=ddl] ["is a emulator"=true] [2024/05/06 09:24:06.587 +00:00] [WARN] [env.go:51] ["initialize environment failed"] [category=ddl-ingest] ["storage limitation"="only support TiKV storage"] ["current storage"=unistore] ["lightning is initialized"=false] [2024/05/06 09:24:06.587 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=loadSchemaInLoop] [2024/05/06 09:24:06.588 +00:00] [INFO] [delete_range.go:172] ["start delRange emulator"] [category=ddl] [2024/05/06 09:24:06.588 +00:00] [INFO] [job_table.go:334] ["get global state and global state change"] [category=ddl] [oldState=false] [currState=false] [2024/05/06 09:24:06.588 +00:00] [INFO] [job_table.go:349] ["the owner sets owner operator value"] [category=ddl] [ownerOp=none] [2024/05/06 09:24:06.588 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=mdlCheckLoop] [2024/05/06 09:24:06.588 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=topNSlowQueryLoop] [2024/05/06 09:24:06.588 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=infoSyncerKeeper] [2024/05/06 09:24:06.588 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=globalConfigSyncerKeeper] [2024/05/06 09:24:06.588 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=runawayStartLoop] [2024/05/06 09:24:06.588 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=requestUnitsWriterLoop] [2024/05/06 09:24:06.588 +00:00] [INFO] [runaway.go:149] ["try to start runaway manager loop"] [2024/05/06 09:24:06.588 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=topologySyncerKeeper] [2024/05/06 09:24:06.588 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=requestUnitsWriterLoop] [2024/05/06 09:24:06.588 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=closestReplicaReadCheckLoop] [2024/05/06 09:24:06.588 +00:00] [WARN] [domain.go:1326] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 09:24:06.590 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=0] [cur_db=mysql] [sql="CREATE DATABASE IF NOT EXISTS test"] [user=] [2024/05/06 09:24:06.595 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:06.593 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:06.595 +00:00] [INFO] [ddl.go:1182] ["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 09:24:06.593 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE DATABASE IF NOT EXISTS test"] [2024/05/06 09:24:06.603 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:06.593 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:06.627 +00:00] [INFO] [domain.go:315] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=1] ["start time"=8.374866ms] [2024/05/06 09:24:06.627 +00:00] [INFO] [domain.go:635] ["full load and reset schema validator"] [2024/05/06 09:24:06.629 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:06.629 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=3] [version=1] [2024/05/06 09:24:06.631 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=1] ["take time"=12.631756ms] [job="ID:3, Type:create schema, State:done, SchemaState:public, SchemaID:2, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:06.593 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:06.637 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:06.593 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:06.640 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=3] [2024/05/06 09:24:06.640 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:06.644 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=1] [cur_db=mysql] [sql="CREATE DATABASE IF NOT EXISTS `mysql`"] [user=] [2024/05/06 09:24:06.645 +00:00] [INFO] [session.go:3945] ["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 09:24:06.652 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:06.648 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:06.653 +00:00] [INFO] [ddl.go:1182] ["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 09:24:06.648 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:06.667 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:06.648 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:06.677 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=1] [neededSchemaVersion=2] ["start time"=1.041212ms] [gotSchemaVersion=2] [phyTblIDs="[4]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:06.678 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:06.678 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=5] [version=2] [2024/05/06 09:24:06.680 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=2] ["take time"=4.845178ms] [job="ID:5, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:4, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:06.648 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:06.687 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:06.648 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:06.696 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=5] [2024/05/06 09:24:06.696 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:06.696 +00:00] [INFO] [session.go:3945] ["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 09:24:06.700 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:06.698 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:06.700 +00:00] [INFO] [ddl.go:1182] ["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 09:24:06.698 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:06.713 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:06.698 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:06.718 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=2] [neededSchemaVersion=3] ["start time"=289.284µs] [gotSchemaVersion=3] [phyTblIDs="[6]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:06.719 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:06.719 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=7] [version=3] [2024/05/06 09:24:06.720 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=3] ["take time"=2.849296ms] [job="ID:7, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:6, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:06.698 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:06.725 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:06.698 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:06.730 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=7] [2024/05/06 09:24:06.730 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:06.730 +00:00] [INFO] [session.go:3945] ["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 09:24:06.733 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:06.732 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:06.733 +00:00] [INFO] [ddl.go:1182] ["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 09:24:06.732 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:06.746 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:06.732 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:06.749 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=3] [neededSchemaVersion=4] ["start time"=251.059µs] [gotSchemaVersion=4] [phyTblIDs="[8]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:06.751 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:06.751 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=9] [version=4] [2024/05/06 09:24:06.754 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=4] ["take time"=4.795661ms] [job="ID:9, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:8, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:06.732 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:06.763 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:06.732 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:06.767 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=9] [2024/05/06 09:24:06.767 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:06.768 +00:00] [INFO] [session.go:3945] ["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 09:24:06.775 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:06.772 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:06.775 +00:00] [INFO] [ddl.go:1182] ["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 09:24:06.772 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:06.783 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:06.772 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:06.791 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=4] [neededSchemaVersion=5] ["start time"=2.676841ms] [gotSchemaVersion=5] [phyTblIDs="[10]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:06.793 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:06.793 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=11] [version=5] [2024/05/06 09:24:06.795 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=5] ["take time"=6.457825ms] [job="ID:11, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:10, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:06.772 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:06.801 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:06.772 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:06.806 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=11] [2024/05/06 09:24:06.806 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:06.807 +00:00] [INFO] [session.go:3945] ["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 09:24:06.810 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:06.808 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:06.810 +00:00] [INFO] [ddl.go:1182] ["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 09:24:06.808 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:06.822 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:06.808 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:06.828 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=5] [neededSchemaVersion=6] ["start time"=372.367µs] [gotSchemaVersion=6] [phyTblIDs="[12]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:06.830 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:06.830 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=13] [version=6] [2024/05/06 09:24:06.832 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=6] ["take time"=4.668485ms] [job="ID:13, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:12, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:06.808 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:06.849 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:06.808 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:06.854 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=13] [2024/05/06 09:24:06.854 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:06.855 +00:00] [INFO] [session.go:3945] ["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 09:24:06.858 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:06.856 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:06.858 +00:00] [INFO] [ddl.go:1182] ["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 09:24:06.856 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:06.899 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:06.856 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:06.908 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=6] [neededSchemaVersion=7] ["start time"=362.851µs] [gotSchemaVersion=7] [phyTblIDs="[14]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:06.909 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:06.909 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=15] [version=7] [2024/05/06 09:24:06.910 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=7] ["take time"=2.916134ms] [job="ID:15, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:14, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:06.856 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:06.918 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:06.856 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:06.922 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=15] [2024/05/06 09:24:06.922 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:06.923 +00:00] [INFO] [session.go:3945] ["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 09:24:06.926 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:06.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:06.926 +00:00] [INFO] [ddl.go:1182] ["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 09:24:06.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:06.943 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:06.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:06.951 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=7] [neededSchemaVersion=8] ["start time"=3.518806ms] [gotSchemaVersion=8] [phyTblIDs="[16]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:06.953 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:06.953 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=17] [version=8] [2024/05/06 09:24:06.954 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=8] ["take time"=6.388974ms] [job="ID:17, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:16, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:06.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:06.982 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:06.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:06.988 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=17] [2024/05/06 09:24:06.988 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:06.988 +00:00] [INFO] [session.go:3945] ["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 09:24:06.999 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:06.995 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:06.999 +00:00] [INFO] [ddl.go:1182] ["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 09:24:06.995 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:07.012 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:06.995 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.019 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=8] [neededSchemaVersion=9] ["start time"=220.276µs] [gotSchemaVersion=9] [phyTblIDs="[18]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:07.020 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:07.020 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=19] [version=9] [2024/05/06 09:24:07.022 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=9] ["take time"=3.965418ms] [job="ID:19, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:18, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:06.995 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.029 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:06.995 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.036 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=19] [2024/05/06 09:24:07.036 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:07.036 +00:00] [INFO] [session.go:3945] ["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 09:24:07.042 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:07.038 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:07.042 +00:00] [INFO] [ddl.go:1182] ["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 09:24:07.038 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:07.051 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:07.038 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.054 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=9] [neededSchemaVersion=10] ["start time"=285.135µs] [gotSchemaVersion=10] [phyTblIDs="[20]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:07.055 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:07.055 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=21] [version=10] [2024/05/06 09:24:07.055 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=10] ["take time"=2.061989ms] [job="ID:21, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:20, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:07.038 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.066 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:07.038 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.070 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=21] [2024/05/06 09:24:07.070 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:07.071 +00:00] [INFO] [session.go:3945] ["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 09:24:07.073 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:07.072 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:07.074 +00:00] [INFO] [ddl.go:1182] ["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 09:24:07.072 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:07.089 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:07.072 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.092 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=10] [neededSchemaVersion=11] ["start time"=298.795µs] [gotSchemaVersion=11] [phyTblIDs="[22]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:07.093 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:07.093 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=23] [version=11] [2024/05/06 09:24:07.094 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=11] ["take time"=2.293642ms] [job="ID:23, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:22, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:07.072 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.104 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:07.072 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.108 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=23] [2024/05/06 09:24:07.108 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:07.128 +00:00] [INFO] [session.go:3945] ["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 09:24:07.129 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(6291456) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:07.132 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:07.13 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:07.132 +00:00] [INFO] [ddl.go:1182] ["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 09:24:07.13 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:07.142 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:07.13 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.146 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=11] [neededSchemaVersion=12] ["start time"=421.314µs] [gotSchemaVersion=12] [phyTblIDs="[24]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:07.147 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:07.147 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=25] [version=12] [2024/05/06 09:24:07.148 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=12] ["take time"=2.01412ms] [job="ID:25, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:24, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:07.13 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.153 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:07.13 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.157 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=25] [2024/05/06 09:24:07.157 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:07.158 +00:00] [INFO] [session.go:3945] ["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 09:24:07.161 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:07.159 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:07.161 +00:00] [INFO] [ddl.go:1182] ["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 09:24:07.159 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:07.170 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:07.159 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.176 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=12] [neededSchemaVersion=13] ["start time"=380.796µs] [gotSchemaVersion=13] [phyTblIDs="[26]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:07.178 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:07.178 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=27] [version=13] [2024/05/06 09:24:07.178 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=13] ["take time"=2.098652ms] [job="ID:27, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:26, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:07.159 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.184 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:07.159 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.191 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=27] [2024/05/06 09:24:07.191 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:07.191 +00:00] [INFO] [session.go:3945] ["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 09:24:07.194 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:07.193 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:07.194 +00:00] [INFO] [ddl.go:1182] ["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 09:24:07.193 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:07.208 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:07.193 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.211 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=13] [neededSchemaVersion=14] ["start time"=289.015µs] [gotSchemaVersion=14] [phyTblIDs="[28]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:07.213 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:07.213 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=29] [version=14] [2024/05/06 09:24:07.216 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=14] ["take time"=5.292484ms] [job="ID:29, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:28, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:07.193 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.226 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:07.193 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.230 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=29] [2024/05/06 09:24:07.230 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:07.231 +00:00] [INFO] [session.go:3945] ["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 09:24:07.234 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:07.232 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:07.234 +00:00] [INFO] [ddl.go:1182] ["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 09:24:07.232 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:07.245 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:07.232 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.251 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=14] [neededSchemaVersion=15] ["start time"=295.56µs] [gotSchemaVersion=15] [phyTblIDs="[30]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:07.260 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:07.260 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=31] [version=15] [2024/05/06 09:24:07.263 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=15] ["take time"=12.628158ms] [job="ID:31, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:30, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:07.232 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.268 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:07.232 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.276 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=31] [2024/05/06 09:24:07.276 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:07.277 +00:00] [INFO] [session.go:3945] ["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 09:24:07.280 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:07.278 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:07.280 +00:00] [INFO] [ddl.go:1182] ["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 09:24:07.278 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:07.295 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:07.278 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.303 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=15] [neededSchemaVersion=16] ["start time"=281.403µs] [gotSchemaVersion=16] [phyTblIDs="[32]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:07.305 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:07.305 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=33] [version=16] [2024/05/06 09:24:07.309 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=16] ["take time"=6.394066ms] [job="ID:33, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:32, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:07.278 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.316 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:07.278 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.324 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=33] [2024/05/06 09:24:07.324 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:07.324 +00:00] [INFO] [session.go:3945] ["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 09:24:07.354 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:07.352 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:07.354 +00:00] [INFO] [ddl.go:1182] ["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 09:24:07.352 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:07.366 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:07.352 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.369 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=16] [neededSchemaVersion=17] ["start time"=271.477µs] [gotSchemaVersion=17] [phyTblIDs="[34]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:07.371 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:07.371 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=35] [version=17] [2024/05/06 09:24:07.372 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=17] ["take time"=3.100592ms] [job="ID:35, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:34, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:07.352 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.380 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:07.352 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.384 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=35] [2024/05/06 09:24:07.384 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:07.384 +00:00] [INFO] [session.go:3945] ["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 09:24:07.390 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:07.386 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:07.390 +00:00] [INFO] [ddl.go:1182] ["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 09:24:07.386 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:07.402 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:07.386 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.405 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=17] [neededSchemaVersion=18] ["start time"=265.383µs] [gotSchemaVersion=18] [phyTblIDs="[36]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:07.406 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:07.406 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=37] [version=18] [2024/05/06 09:24:07.412 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=18] ["take time"=7.702247ms] [job="ID:37, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:36, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:07.386 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.422 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:07.386 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.429 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=37] [2024/05/06 09:24:07.430 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:07.430 +00:00] [INFO] [session.go:3945] ["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 09:24:07.433 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:07.431 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:07.433 +00:00] [INFO] [ddl.go:1182] ["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 09:24:07.431 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:07.447 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:07.431 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.464 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=18] [neededSchemaVersion=19] ["start time"=412.57µs] [gotSchemaVersion=19] [phyTblIDs="[38]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:07.465 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:07.465 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=39] [version=19] [2024/05/06 09:24:07.469 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=19] ["take time"=5.998181ms] [job="ID:39, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:38, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:07.431 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.477 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:07.431 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.488 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=39] [2024/05/06 09:24:07.488 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:07.493 +00:00] [INFO] [session.go:3945] ["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 09:24:07.495 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:07.494 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:07.495 +00:00] [INFO] [ddl.go:1182] ["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 09:24:07.494 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:07.506 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:07.494 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.510 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=19] [neededSchemaVersion=20] ["start time"=276.406µs] [gotSchemaVersion=20] [phyTblIDs="[40]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:07.512 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:07.512 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=41] [version=20] [2024/05/06 09:24:07.516 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=20] ["take time"=6.200663ms] [job="ID:41, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:40, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:07.494 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.530 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:07.494 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.538 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=41] [2024/05/06 09:24:07.546 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:07.546 +00:00] [INFO] [session.go:3945] ["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 09:24:07.549 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:07.548 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:07.549 +00:00] [INFO] [ddl.go:1182] ["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 09:24:07.548 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:07.561 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:07.548 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.564 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=20] [neededSchemaVersion=21] ["start time"=249.781µs] [gotSchemaVersion=21] [phyTblIDs="[42]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:07.565 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:07.565 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=43] [version=21] [2024/05/06 09:24:07.567 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=21] ["take time"=4.155331ms] [job="ID:43, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:42, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:07.548 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.573 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:07.548 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.577 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=43] [2024/05/06 09:24:07.577 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:07.578 +00:00] [INFO] [session.go:3945] ["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 09:24:07.580 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:07.579 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:07.580 +00:00] [INFO] [ddl.go:1182] ["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 09:24:07.579 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE TABLE IF NOT EXISTS mysql.opt_rule_blacklist (\n\t\tname \tCHAR(100) NOT NULL\n\t);"] [2024/05/06 09:24:07.587 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:07.579 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.589 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=21] [neededSchemaVersion=22] ["start time"=161.125µs] [gotSchemaVersion=22] [phyTblIDs="[44]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:07.590 +00:00] [WARN] [runaway.go:166] ["failed to start runaway manager loop, please check whether the bootstrap or update is finished"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [errorVerbose="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/planner/core.Preprocess\n\tpkg/planner/core/preprocess.go:141\ngithub.com/pingcap/tidb/pkg/executor.(*Compiler).Compile\n\tpkg/executor/compiler.go:67\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2089\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteInternalStmt\n\tpkg/session/session.go:1993\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecRestrictedSQL.func1\n\tpkg/session/session.go:1958\ngithub.com/pingcap/tidb/pkg/session.(*session).withRestrictedSQLExecutor\n\tpkg/session/session.go:1944\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecRestrictedSQL\n\tpkg/session/session.go:1948\ngithub.com/pingcap/tidb/pkg/domain.(*SystemTableReader).Read\n\tpkg/domain/runaway.go:655\ngithub.com/pingcap/tidb/pkg/domain.getRunawayWatchRecord\n\tpkg/domain/runaway.go:543\ngithub.com/pingcap/tidb/pkg/domain.(*runawaySyncer).getWatchRecord\n\tpkg/domain/runaway.go:526\ngithub.com/pingcap/tidb/pkg/domain.(*runawaySyncer).getNewWatchRecords\n\tpkg/domain/runaway.go:509\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).updateNewAndDoneWatch\n\tpkg/domain/runaway.go:177\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).runawayStartLoop\n\tpkg/domain/runaway.go:156\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:99\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [2024/05/06 09:24:07.591 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:07.591 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=45] [version=22] [2024/05/06 09:24:07.591 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=22] ["take time"=2.450158ms] [job="ID:45, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:44, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:07.579 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.602 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:07.579 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.606 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=45] [2024/05/06 09:24:07.606 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:07.606 +00:00] [INFO] [session.go:3945] ["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 09:24:07.610 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:07.608 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:07.610 +00:00] [INFO] [ddl.go:1182] ["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 09:24:07.608 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:07.615 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:07.608 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.619 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=22] [neededSchemaVersion=23] ["start time"=376.904µs] [gotSchemaVersion=23] [phyTblIDs="[46]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:07.620 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:07.620 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=47] [version=23] [2024/05/06 09:24:07.620 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=23] ["take time"=2.064636ms] [job="ID:47, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:46, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:07.608 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.646 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:07.608 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.650 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=47] [2024/05/06 09:24:07.650 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:07.650 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=23] [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 09:24:07.653 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:07.652 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:07.653 +00:00] [INFO] [ddl.go:1182] ["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 09:24:07.652 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:07.678 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:07.652 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.681 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=23] [neededSchemaVersion=24] ["start time"=280.4µs] [gotSchemaVersion=24] [phyTblIDs="[48]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:07.682 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:07.682 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=49] [version=24] [2024/05/06 09:24:07.682 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=24] ["take time"=2.006357ms] [job="ID:49, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:48, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:07.652 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.695 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:07.652 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.699 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=49] [2024/05/06 09:24:07.699 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:07.700 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=24] [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 09:24:07.703 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:07.701 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:07.703 +00:00] [INFO] [ddl.go:1182] ["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 09:24:07.701 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:07.725 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:07.701 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.730 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=24] [neededSchemaVersion=25] ["start time"=267.556µs] [gotSchemaVersion=25] [phyTblIDs="[50]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:07.731 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:07.731 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=51] [version=25] [2024/05/06 09:24:07.735 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=25] ["take time"=5.64751ms] [job="ID:51, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:50, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:07.701 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.750 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:07.701 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.754 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=51] [2024/05/06 09:24:07.754 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:07.754 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=25] [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 09:24:07.758 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:07.756 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:07.758 +00:00] [INFO] [ddl.go:1182] ["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 09:24:07.756 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:07.774 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:07.756 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.788 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=25] [neededSchemaVersion=26] ["start time"=265.449µs] [gotSchemaVersion=26] [phyTblIDs="[52]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:07.789 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:07.789 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=53] [version=26] [2024/05/06 09:24:07.791 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=26] ["take time"=3.102014ms] [job="ID:53, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:52, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:07.756 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.812 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:07.756 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.820 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=53] [2024/05/06 09:24:07.820 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:07.821 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=26] [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 09:24:07.823 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:07.822 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:07.823 +00:00] [INFO] [ddl.go:1182] ["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 09:24:07.822 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:07.830 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:07.822 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.833 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=26] [neededSchemaVersion=27] ["start time"=370.146µs] [gotSchemaVersion=27] [phyTblIDs="[54]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:07.835 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:07.835 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=55] [version=27] [2024/05/06 09:24:07.835 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=27] ["take time"=2.097596ms] [job="ID:55, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:54, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:07.822 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.846 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:07.822 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.852 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=55] [2024/05/06 09:24:07.852 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:07.853 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=27] [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 09:24:07.855 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:07.854 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:07.855 +00:00] [INFO] [ddl.go:1182] ["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 09:24:07.854 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:07.879 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:07.854 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.887 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=27] [neededSchemaVersion=28] ["start time"=243.893µs] [gotSchemaVersion=28] [phyTblIDs="[56]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:07.888 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:07.888 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=57] [version=28] [2024/05/06 09:24:07.888 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=28] ["take time"=2.17887ms] [job="ID:57, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:56, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:07.854 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.897 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:07.854 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.901 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=57] [2024/05/06 09:24:07.901 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:07.901 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=28] [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 09:24:07.902 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(19372) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:07.905 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:07.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:07.905 +00:00] [INFO] [ddl.go:1182] ["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 09:24:07.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:07.916 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:07.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.919 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=28] [neededSchemaVersion=29] ["start time"=284.41µs] [gotSchemaVersion=29] [phyTblIDs="[58]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:07.921 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:07.921 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=59] [version=29] [2024/05/06 09:24:07.922 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=29] ["take time"=3.424777ms] [job="ID:59, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:58, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:07.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.934 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:07.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.937 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=59] [2024/05/06 09:24:07.938 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:07.940 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=29] [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 09:24:07.944 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:07.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:07.944 +00:00] [INFO] [ddl.go:1182] ["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 09:24:07.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:07.950 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:07.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.957 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=29] [neededSchemaVersion=30] ["start time"=332.94µs] [gotSchemaVersion=30] [phyTblIDs="[60]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:07.960 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:07.960 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=61] [version=30] [2024/05/06 09:24:07.961 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=30] ["take time"=4.246678ms] [job="ID:61, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:60, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:07.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.966 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:07.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.970 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=61] [2024/05/06 09:24:07.970 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:07.975 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=30] [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 09:24:07.978 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:07.977 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:07.978 +00:00] [INFO] [ddl.go:1182] ["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 09:24:07.977 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:07.987 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:07.977 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:07.991 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=30] [neededSchemaVersion=31] ["start time"=336.819µs] [gotSchemaVersion=31] [phyTblIDs="[62]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:07.994 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:07.994 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=63] [version=31] [2024/05/06 09:24:07.994 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=31] ["take time"=4.129259ms] [job="ID:63, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:62, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:07.977 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.005 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:07.977 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.010 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=63] [2024/05/06 09:24:08.010 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:08.010 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=31] [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 09:24:08.017 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:08.014 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:08.017 +00:00] [INFO] [ddl.go:1182] ["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 09:24:08.014 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:08.030 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:08.014 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.042 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=31] [neededSchemaVersion=32] ["start time"=456.014µs] [gotSchemaVersion=32] [phyTblIDs="[64]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:08.044 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:08.044 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=65] [version=32] [2024/05/06 09:24:08.045 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=32] ["take time"=4.229598ms] [job="ID:65, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:64, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:08.014 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.059 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:08.014 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.064 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=65] [2024/05/06 09:24:08.064 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:08.064 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=32] [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 09:24:08.067 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:08.066 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:08.067 +00:00] [INFO] [ddl.go:1182] ["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 09:24:08.066 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE TABLE IF NOT EXISTS mysql.advisory_locks (\n\t\tlock_name VARCHAR(64) NOT NULL PRIMARY KEY\n\t);"] [2024/05/06 09:24:08.084 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:08.066 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.087 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=32] [neededSchemaVersion=33] ["start time"=202.147µs] [gotSchemaVersion=33] [phyTblIDs="[66]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:08.088 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:08.088 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=67] [version=33] [2024/05/06 09:24:08.090 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=33] ["take time"=2.883447ms] [job="ID:67, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:66, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:08.066 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.102 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:08.066 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.105 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=67] [2024/05/06 09:24:08.105 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:08.109 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:69, Type:create view, State:queueing, SchemaState:none, SchemaID:1, TableID:68, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:08.108 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:08.109 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:69, Type:create view, State:queueing, SchemaState:none, SchemaID:1, TableID:68, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:08.108 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE OR REPLACE VIEW mysql.tidb_mdl_view as (\n\t\tSELECT tidb_mdl_info.job_id,\n\t\t\tJSON_UNQUOTE(JSON_EXTRACT(cast(cast(job_meta as char) as json), \"$.schema_name\")) as db_name,\n\t\t\tJSON_UNQUOTE(JSON_EXTRACT(cast(cast(job_meta as char) as json), \"$.table_name\")) as table_name,\n\t\t\tJSON_UNQUOTE(JSON_EXTRACT(cast(cast(job_meta as char) as json), \"$.query\")) as query,\n\t\t\tsession_id,\n\t\t\tcluster_tidb_trx.start_time,\n\t\t\ttidb_decode_sql_digests(all_sql_digests, 4096) AS SQL_DIGESTS\n\t\tFROM mysql.tidb_ddl_job,\n\t\t\tmysql.tidb_mdl_info,\n\t\t\tinformation_schema.cluster_tidb_trx\n\t\tWHERE tidb_ddl_job.job_id=tidb_mdl_info.job_id\n\t\t\tAND CONCAT(',', tidb_mdl_info.table_ids, ',') REGEXP CONCAT(',', REPLACE(cluster_tidb_trx.related_table_ids, ',', '|'), ',') != 0\n\t);"] [2024/05/06 09:24:08.117 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=69] [category=ddl] [job="ID:69, Type:create view, State:queueing, SchemaState:none, SchemaID:1, TableID:68, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:08.108 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.121 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=33] [neededSchemaVersion=34] ["start time"=491.969µs] [gotSchemaVersion=34] [phyTblIDs="[68]"] [actionTypes="[21]"] [diffTypes="[\"create view\"]"] [2024/05/06 09:24:08.123 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:08.123 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=69] [version=34] [2024/05/06 09:24:08.125 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=34] ["take time"=4.25046ms] [job="ID:69, Type:create view, State:done, SchemaState:public, SchemaID:1, TableID:68, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:08.108 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.163 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=69] [job="ID:69, Type:create view, State:synced, SchemaState:public, SchemaID:1, TableID:68, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:08.108 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.176 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=69] [2024/05/06 09:24:08.176 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:08.177 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=34] [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 09:24:08.180 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:71, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:70, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:08.178 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:08.180 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:71, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:70, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:08.178 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:08.190 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=71] [category=ddl] [job="ID:71, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:70, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:08.178 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.193 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=34] [neededSchemaVersion=35] ["start time"=308.231µs] [gotSchemaVersion=35] [phyTblIDs="[70]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:08.194 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:08.194 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=71] [version=35] [2024/05/06 09:24:08.195 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=35] ["take time"=2.132956ms] [job="ID:71, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:70, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:08.178 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.205 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=71] [job="ID:71, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:70, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:08.178 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.210 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=71] [2024/05/06 09:24:08.210 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:08.211 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=35] [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 09:24:08.214 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:08.212 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:08.214 +00:00] [INFO] [ddl.go:1182] ["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 09:24:08.212 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:08.222 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:08.212 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.225 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=35] [neededSchemaVersion=36] ["start time"=254.709µs] [gotSchemaVersion=36] [phyTblIDs="[72]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:08.226 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:08.226 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=73] [version=36] [2024/05/06 09:24:08.227 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=36] ["take time"=2.684997ms] [job="ID:73, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:72, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:08.212 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.239 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:08.212 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.242 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=73] [2024/05/06 09:24:08.242 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:08.243 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=36] [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 09:24:08.247 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:08.245 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:08.247 +00:00] [INFO] [ddl.go:1182] ["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 09:24:08.245 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:08.260 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:08.245 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.266 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=36] [neededSchemaVersion=37] ["start time"=309.906µs] [gotSchemaVersion=37] [phyTblIDs="[74]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:08.268 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:08.268 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=75] [version=37] [2024/05/06 09:24:08.270 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=37] ["take time"=4.194897ms] [job="ID:75, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:74, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:08.245 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.280 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:08.245 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.284 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=75] [2024/05/06 09:24:08.284 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:08.285 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=37] [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 09:24:08.289 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:08.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:08.289 +00:00] [INFO] [ddl.go:1182] ["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 09:24:08.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:08.303 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:08.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.309 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=37] [neededSchemaVersion=38] ["start time"=475.629µs] [gotSchemaVersion=38] [phyTblIDs="[76]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:08.313 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:08.313 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=77] [version=38] [2024/05/06 09:24:08.314 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=38] ["take time"=6.013011ms] [job="ID:77, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:76, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:08.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.320 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:08.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.327 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=77] [2024/05/06 09:24:08.327 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:08.328 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=38] [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 09:24:08.332 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:08.33 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:08.332 +00:00] [INFO] [ddl.go:1182] ["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 09:24:08.33 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:08.350 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:08.33 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.357 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=38] [neededSchemaVersion=39] ["start time"=754.982µs] [gotSchemaVersion=39] [phyTblIDs="[78]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:08.360 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:08.360 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=79] [version=39] [2024/05/06 09:24:08.371 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=39] ["take time"=14.810461ms] [job="ID:79, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:78, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:08.33 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.382 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:08.33 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.401 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=79] [2024/05/06 09:24:08.401 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:08.401 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=39] [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 09:24:08.404 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:08.403 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:08.405 +00:00] [INFO] [ddl.go:1182] ["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 09:24:08.403 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:08.423 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:08.403 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.431 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=39] [neededSchemaVersion=40] ["start time"=501.467µs] [gotSchemaVersion=40] [phyTblIDs="[80]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:08.434 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:08.434 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=81] [version=40] [2024/05/06 09:24:08.435 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=40] ["take time"=4.231461ms] [job="ID:81, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:80, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:08.403 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.443 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:08.403 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.456 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=81] [2024/05/06 09:24:08.456 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:08.456 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=40] [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(261),\n\t\tstate VARCHAR(64) NOT NULL,\n\t\tpriority INT DEFAULT 1,\n\t\tcreate_time TIMESTAMP,\n\t\tstart_time TIMESTAMP,\n\t\tstate_update_time TIMESTAMP,\n\t\tend_time TIMESTAMP,\n\t\tmeta LONGBLOB,\n\t\tconcurrency INT(11),\n\t\tstep INT(11),\n\t\ttarget_scope VARCHAR(256) DEFAULT \"\",\n\t\terror BLOB,\n\t\tkey(state),\n \tUNIQUE KEY task_key(task_key)\n\t);"] [user=] [2024/05/06 09:24:08.460 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:08.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:08.460 +00:00] [INFO] [ddl.go:1182] ["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 09:24:08.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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(261),\n\t\tstate VARCHAR(64) NOT NULL,\n\t\tpriority INT DEFAULT 1,\n\t\tcreate_time TIMESTAMP,\n\t\tstart_time TIMESTAMP,\n\t\tstate_update_time TIMESTAMP,\n\t\tend_time TIMESTAMP,\n\t\tmeta LONGBLOB,\n\t\tconcurrency INT(11),\n\t\tstep INT(11),\n\t\ttarget_scope VARCHAR(256) DEFAULT \"\",\n\t\terror BLOB,\n\t\tkey(state),\n \tUNIQUE KEY task_key(task_key)\n\t);"] [2024/05/06 09:24:08.469 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:08.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.473 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=40] [neededSchemaVersion=41] ["start time"=498.147µs] [gotSchemaVersion=41] [phyTblIDs="[82]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:08.475 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:08.475 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=83] [version=41] [2024/05/06 09:24:08.481 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=41] ["take time"=9.110523ms] [job="ID:83, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:08.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.490 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:08.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.497 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=83] [2024/05/06 09:24:08.497 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:08.498 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=41] [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(261),\n\t\tstate VARCHAR(64) NOT NULL,\n\t\tpriority INT DEFAULT 1,\n\t\tcreate_time TIMESTAMP,\n\t\tstart_time TIMESTAMP,\n\t\tstate_update_time TIMESTAMP,\n\t\tend_time TIMESTAMP,\n\t\tmeta LONGBLOB,\n\t\tconcurrency INT(11),\n\t\tstep INT(11),\n\t\ttarget_scope VARCHAR(256) DEFAULT \"\",\n\t\terror BLOB,\n\t\tkey(state),\n \tUNIQUE KEY task_key(task_key)\n\t);"] [user=] [2024/05/06 09:24:08.504 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:08.502 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:08.504 +00:00] [INFO] [ddl.go:1182] ["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 09:24:08.502 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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(261),\n\t\tstate VARCHAR(64) NOT NULL,\n\t\tpriority INT DEFAULT 1,\n\t\tcreate_time TIMESTAMP,\n\t\tstart_time TIMESTAMP,\n\t\tstate_update_time TIMESTAMP,\n\t\tend_time TIMESTAMP,\n\t\tmeta LONGBLOB,\n\t\tconcurrency INT(11),\n\t\tstep INT(11),\n\t\ttarget_scope VARCHAR(256) DEFAULT \"\",\n\t\terror BLOB,\n\t\tkey(state),\n \tUNIQUE KEY task_key(task_key)\n\t);"] [2024/05/06 09:24:08.514 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:08.502 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.519 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=41] [neededSchemaVersion=42] ["start time"=588.182µs] [gotSchemaVersion=42] [phyTblIDs="[84]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:08.521 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:08.521 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=85] [version=42] [2024/05/06 09:24:08.523 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=42] ["take time"=5.000388ms] [job="ID:85, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:84, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:08.502 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.541 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:08.502 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.546 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=85] [2024/05/06 09:24:08.546 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:08.547 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=42] [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 09:24:08.550 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:08.548 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:08.550 +00:00] [INFO] [ddl.go:1182] ["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 09:24:08.548 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:08.593 +00:00] [INFO] [info.go:1142] [SetTiFlashGroupConfig] [2024/05/06 09:24:08.614 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:08.548 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.621 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=42] [neededSchemaVersion=43] ["start time"=809.191µs] [gotSchemaVersion=43] [phyTblIDs="[86]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:08.626 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:08.626 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=87] [version=43] [2024/05/06 09:24:08.631 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=43] ["take time"=9.369794ms] [job="ID:87, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:86, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:08.548 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.648 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:08.548 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.654 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=87] [2024/05/06 09:24:08.654 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:08.655 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=43] [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 09:24:08.658 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:08.656 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:08.658 +00:00] [INFO] [ddl.go:1182] ["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 09:24:08.656 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:08.673 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:08.656 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.679 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=43] [neededSchemaVersion=44] ["start time"=369.141µs] [gotSchemaVersion=44] [phyTblIDs="[88]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:08.681 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:08.681 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=89] [version=44] [2024/05/06 09:24:08.682 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=44] ["take time"=4.03502ms] [job="ID:89, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:88, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:08.656 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.688 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:08.656 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.692 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=89] [2024/05/06 09:24:08.692 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:08.693 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=44] [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 09:24:08.696 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:08.694 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:08.696 +00:00] [INFO] [ddl.go:1182] ["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 09:24:08.694 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:08.717 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:08.694 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.721 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=44] [neededSchemaVersion=45] ["start time"=329.359µs] [gotSchemaVersion=45] [phyTblIDs="[90]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:08.722 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:08.722 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=91] [version=45] [2024/05/06 09:24:08.722 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=45] ["take time"=2.07773ms] [job="ID:91, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:90, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:08.694 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.731 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:08.694 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.735 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=91] [2024/05/06 09:24:08.735 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:08.735 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=45] [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 09:24:08.747 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:08.737 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:08.747 +00:00] [INFO] [ddl.go:1182] ["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 09:24:08.737 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:08.756 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:08.737 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.769 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=45] [neededSchemaVersion=46] ["start time"=650.319µs] [gotSchemaVersion=46] [phyTblIDs="[92]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:08.770 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:08.770 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=93] [version=46] [2024/05/06 09:24:08.775 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=46] ["take time"=6.423231ms] [job="ID:93, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:92, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:08.737 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.783 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:08.737 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.787 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=93] [2024/05/06 09:24:08.787 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:08.788 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=46] [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 09:24:08.791 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:08.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:08.791 +00:00] [INFO] [ddl.go:1182] ["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 09:24:08.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:08.804 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:08.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.808 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=46] [neededSchemaVersion=47] ["start time"=353.945µs] [gotSchemaVersion=47] [phyTblIDs="[94]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:08.810 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:08.810 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=95] [version=47] [2024/05/06 09:24:08.810 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=47] ["take time"=2.01949ms] [job="ID:95, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:94, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:08.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.823 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:08.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.829 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=95] [2024/05/06 09:24:08.829 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:08.830 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=47] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.dist_framework_meta (\n host VARCHAR(261) NOT NULL PRIMARY KEY,\n role VARCHAR(64),\n cpu_count int default 0,\n keyspace_id bigint(8) NOT NULL DEFAULT -1\n );"] [user=] [2024/05/06 09:24:08.833 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:08.831 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:08.833 +00:00] [INFO] [ddl.go:1182] ["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 09:24:08.831 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE TABLE IF NOT EXISTS mysql.dist_framework_meta (\n host VARCHAR(261) NOT NULL PRIMARY KEY,\n role VARCHAR(64),\n cpu_count int default 0,\n keyspace_id bigint(8) NOT NULL DEFAULT -1\n );"] [2024/05/06 09:24:08.838 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:08.831 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.840 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=47] [neededSchemaVersion=48] ["start time"=285.76µs] [gotSchemaVersion=48] [phyTblIDs="[96]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:08.843 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:08.843 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=97] [version=48] [2024/05/06 09:24:08.844 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=48] ["take time"=4.010409ms] [job="ID:97, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:96, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:08.831 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.873 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:08.831 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.878 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=97] [2024/05/06 09:24:08.878 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:08.878 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=48] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.request_unit_by_group (\n\t\tstart_time TIMESTAMP(6) NOT NULL,\n\t\tend_time TIMESTAMP(6) NOT NULL,\n\t\tresource_group VARCHAR(32) NOT null,\n\t\ttotal_ru bigint(64) UNSIGNED NOT NULL,\n\t\tPRIMARY KEY (start_time, end_time, resource_group),\n\t\tKEY (resource_group)\n\t);"] [user=] [2024/05/06 09:24:08.881 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:08.88 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:08.881 +00:00] [INFO] [ddl.go:1182] ["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 09:24:08.88 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE TABLE IF NOT EXISTS mysql.request_unit_by_group (\n\t\tstart_time TIMESTAMP(6) NOT NULL,\n\t\tend_time TIMESTAMP(6) NOT NULL,\n\t\tresource_group VARCHAR(32) NOT null,\n\t\ttotal_ru bigint(64) UNSIGNED NOT NULL,\n\t\tPRIMARY KEY (start_time, end_time, resource_group),\n\t\tKEY (resource_group)\n\t);"] [2024/05/06 09:24:08.919 +00:00] [INFO] [ddl_worker.go:1185] ["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 09:24:08.88 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.922 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=48] [neededSchemaVersion=49] ["start time"=289.022µs] [gotSchemaVersion=49] [phyTblIDs="[98]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:08.923 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:08.923 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=99] [version=49] [2024/05/06 09:24:08.924 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=49] ["take time"=2.375096ms] [job="ID:99, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:98, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:08.88 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.959 +00:00] [INFO] [ddl_worker.go:743] ["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 09:24:08.88 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:08.970 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=99] [2024/05/06 09:24:08.970 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:08.970 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=49] [cur_db=mysql] [sql="CREATE DATABASE IF NOT EXISTS sys;"] [user=] [2024/05/06 09:24:08.973 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:101, Type:create schema, State:queueing, SchemaState:none, SchemaID:100, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:08.972 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:08.973 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:101, Type:create schema, State:queueing, SchemaState:none, SchemaID:100, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:08.972 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE DATABASE IF NOT EXISTS sys;"] [2024/05/06 09:24:08.994 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=101] [category=ddl] [job="ID:101, Type:create schema, State:queueing, SchemaState:none, SchemaID:100, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:08.972 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:09.000 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=49] [neededSchemaVersion=50] ["start time"=64.969µs] [gotSchemaVersion=50] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"create schema\"]"] [2024/05/06 09:24:09.001 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:09.001 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=101] [version=50] [2024/05/06 09:24:09.005 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=50] ["take time"=5.396631ms] [job="ID:101, Type:create schema, State:done, SchemaState:public, SchemaID:100, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:08.972 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:09.015 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=101] [job="ID:101, Type:create schema, State:synced, SchemaState:public, SchemaID:100, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:08.972 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:09.018 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=101] [2024/05/06 09:24:09.018 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:09.021 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:103, Type:create view, State:queueing, SchemaState:none, SchemaID:100, TableID:102, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:09.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:09.021 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:103, Type:create view, State:queueing, SchemaState:none, SchemaID:100, TableID:102, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:09.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE OR REPLACE VIEW sys.schema_unused_indexes AS\n\t\tSELECT\n\t\t\ttable_schema as object_schema,\n\t\t\ttable_name as object_name,\n\t\t\tindex_name\n\t\tFROM information_schema.cluster_tidb_index_usage\n\t\tWHERE\n\t\t\ttable_schema not in ('sys', 'mysql', 'INFORMATION_SCHEMA', 'PERFORMANCE_SCHEMA') and\n\t\t\tindex_name != 'PRIMARY'\n\t\tGROUP BY table_schema, table_name, index_name\n\t\tHAVING\n\t\t\tsum(last_access_time) is null;"] [2024/05/06 09:24:09.033 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=103] [category=ddl] [job="ID:103, Type:create view, State:queueing, SchemaState:none, SchemaID:100, TableID:102, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:09.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:09.036 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=50] [neededSchemaVersion=51] ["start time"=177.245µs] [gotSchemaVersion=51] [phyTblIDs="[102]"] [actionTypes="[21]"] [diffTypes="[\"create view\"]"] [2024/05/06 09:24:09.037 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:09.037 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=103] [version=51] [2024/05/06 09:24:09.038 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=51] ["take time"=2.747935ms] [job="ID:103, Type:create view, State:done, SchemaState:public, SchemaID:100, TableID:102, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:09.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:09.048 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 1, tp general"] [category=ddl] [jobID=103] [job="ID:103, Type:create view, State:synced, SchemaState:public, SchemaID:100, TableID:102, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:09.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:09.051 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=103] [2024/05/06 09:24:09.052 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:09.090 +00:00] [INFO] [bootstrap.go:745] ["bootstrap successful"] ["take time"=2.501354221s] [2024/05/06 09:24:09.125 +00:00] [INFO] [mock.go:106] ["owner manager is canceled"] [category=ddl] [ID=c1b294dd-0097-4327-b13f-3c7fef46aa87] [ownerKey=/tidb/ddl/fg/owner] [2024/05/06 09:24:09.126 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:09.126 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 3, tp add index"] [category=ddl] ["take time"=1.369µs] [2024/05/06 09:24:09.126 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 4, tp add index"] [category=ddl] ["take time"=1.208µs] [2024/05/06 09:24:09.126 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 5, tp add index"] [category=ddl] ["take time"=1.031µs] [2024/05/06 09:24:09.126 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 2, tp add index"] [category=ddl] ["take time"=879ns] [2024/05/06 09:24:09.126 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:09.126 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 1, tp general"] [category=ddl] ["take time"=627ns] [2024/05/06 09:24:09.126 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:09.126 +00:00] [INFO] [delete_range.go:162] ["closing delRange"] [category=ddl] [2024/05/06 09:24:09.126 +00:00] [INFO] [session_pool.go:99] ["closing session pool"] [category=ddl] [2024/05/06 09:24:09.129 +00:00] [INFO] [ddl.go:951] ["DDL closed"] [category=ddl] [ID=c1b294dd-0097-4327-b13f-3c7fef46aa87] ["take time"=38.645759ms] [2024/05/06 09:24:09.129 +00:00] [INFO] [ddl.go:769] ["stop DDL"] [category=ddl] [ID=c1b294dd-0097-4327-b13f-3c7fef46aa87] [2024/05/06 09:24:09.129 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=mdlCheckLoop] [2024/05/06 09:24:09.129 +00:00] [INFO] [domain.go:907] ["loadSchemaInLoop exited."] [2024/05/06 09:24:09.129 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=loadSchemaInLoop] [2024/05/06 09:24:09.129 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=runawayStartLoop] [2024/05/06 09:24:09.130 +00:00] [INFO] [domain.go:761] ["topologySyncerKeeper exited."] [2024/05/06 09:24:09.130 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=topologySyncerKeeper] [2024/05/06 09:24:09.130 +00:00] [INFO] [domain.go:737] ["globalConfigSyncerKeeper exited."] [2024/05/06 09:24:09.130 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=globalConfigSyncerKeeper] [2024/05/06 09:24:09.130 +00:00] [INFO] [domain.go:711] ["infoSyncerKeeper exited."] [2024/05/06 09:24:09.130 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=infoSyncerKeeper] [2024/05/06 09:24:09.130 +00:00] [INFO] [domain.go:1361] ["closestReplicaReadCheckLoop exited."] [2024/05/06 09:24:09.130 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=closestReplicaReadCheckLoop] [2024/05/06 09:24:09.130 +00:00] [INFO] [domain.go:683] ["topNSlowQueryLoop exited."] [2024/05/06 09:24:09.130 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=topNSlowQueryLoop] [2024/05/06 09:24:09.130 +00:00] [INFO] [domain.go:1074] ["domain closed"] ["take time"=39.663486ms] [2024/05/06 09:24:09.130 +00:00] [INFO] [tidb.go:80] ["new domain"] [store=63e1965c-00b7-4b45-8053-1f2aeeab18c5] ["ddl lease"=100ms] ["stats lease"=-1ns] [2024/05/06 09:24:09.138 +00:00] [WARN] [controller.go:198] ["[resource group controller] server does not save config, load config failed"] [2024/05/06 09:24:09.138 +00:00] [INFO] [controller.go:185] ["load resource controller config"] [config="{\"degraded-mode-wait-duration\":\"0s\",\"ltb-max-wait-duration\":\"30s\",\"wait-retry-interval\":\"50ms\",\"wait-retry-times\":10,\"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,\"WaitRetryInterval\":50000000,\"WaitRetryTimes\":10,\"DegradedModeWaitDuration\":0}"] [2024/05/06 09:24:09.170 +00:00] [INFO] [domain.go:315] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=51] ["start time"=31.796547ms] [2024/05/06 09:24:09.170 +00:00] [INFO] [domain.go:635] ["full load and reset schema validator"] [2024/05/06 09:24:09.170 +00:00] [INFO] [ddl.go:818] ["start DDL"] [category=ddl] [ID=133d16c9-a138-4783-b1be-b537febb6b5b] [runWorker=true] [2024/05/06 09:24:09.171 +00:00] [INFO] [ddl.go:777] ["start delRangeManager OK"] [category=ddl] ["is a emulator"=true] [2024/05/06 09:24:09.171 +00:00] [WARN] [env.go:51] ["initialize environment failed"] [category=ddl-ingest] ["storage limitation"="only support TiKV storage"] ["current storage"=unistore] ["lightning is initialized"=false] [2024/05/06 09:24:09.171 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=loadSchemaInLoop] [2024/05/06 09:24:09.171 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=mdlCheckLoop] [2024/05/06 09:24:09.171 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=topNSlowQueryLoop] [2024/05/06 09:24:09.171 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=infoSyncerKeeper] [2024/05/06 09:24:09.171 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=globalConfigSyncerKeeper] [2024/05/06 09:24:09.171 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=runawayStartLoop] [2024/05/06 09:24:09.171 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=requestUnitsWriterLoop] [2024/05/06 09:24:09.171 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=topologySyncerKeeper] [2024/05/06 09:24:09.171 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=closestReplicaReadCheckLoop] [2024/05/06 09:24:09.171 +00:00] [WARN] [domain.go:1326] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 09:24:09.173 +00:00] [INFO] [delete_range.go:172] ["start delRange emulator"] [category=ddl] [2024/05/06 09:24:09.173 +00:00] [INFO] [job_table.go:334] ["get global state and global state change"] [category=ddl] [oldState=false] [currState=false] [2024/05/06 09:24:09.174 +00:00] [INFO] [runaway.go:149] ["try to start runaway manager loop"] [2024/05/06 09:24:09.174 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=requestUnitsWriterLoop] [2024/05/06 09:24:09.174 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=globalBindHandleWorkerLoop] [2024/05/06 09:24:09.175 +00:00] [WARN] [sysvar_cache.go:49] ["sysvar cache is empty, triggering rebuild"] [2024/05/06 09:24:09.177 +00:00] [INFO] [sysvar.go:2748] ["set resource control"] [enable=true] [2024/05/06 09:24:09.183 +00:00] [INFO] [controller.go:447] ["[resource group controller] create resource group cost controller"] [name=default] [2024/05/06 09:24:09.196 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=loadPrivilegeInLoop] [2024/05/06 09:24:09.199 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=LoadSysVarCacheLoop] [2024/05/06 09:24:09.200 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=dumpFileGcChecker] [2024/05/06 09:24:09.200 +00:00] [INFO] [domain.go:2070] ["dumpFileGcChecker started"] [2024/05/06 09:24:09.201 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=indexUsageWorker] [2024/05/06 09:24:09.201 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=quitStatsOwner] [2024/05/06 09:24:09.203 +00:00] [INFO] [task_manager.go:217] ["scale ttl worker"] [ttl-worker=job-manager] [ttl-worker=task-manager] [originalCount=0] [newCount=4] [2024/05/06 09:24:09.203 +00:00] [INFO] [task_manager.go:217] ["scale ttl worker"] [ttl-worker=job-manager] [ttl-worker=task-manager] [originalCount=0] [newCount=4] [2024/05/06 09:24:09.210 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=loadSigningCertLoop] [2024/05/06 09:24:09.211 +00:00] [INFO] [manager.go:113] ["build task executor manager"] [server-id=:4000] [total-cpu=16] [total-mem=342GiB] [2024/05/06 09:24:09.213 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=distTaskFrameworkLoop] [2024/05/06 09:24:09.214 +00:00] [INFO] [manager.go:146] ["task executor manager start"] [server-id=:4000] [2024/05/06 09:24:09.214 +00:00] [INFO] [domain.go:1525] ["dist task executor manager started"] [2024/05/06 09:24:09.217 +00:00] [INFO] [set.go:170] ["set global var"] [conn=1] [name=tidb_schema_cache_size] [val=1024] [2024/05/06 09:24:09.222 +00:00] [INFO] [set.go:170] ["set global var"] [conn=2] [name=tidb_schema_cache_size] [val=1024] [2024/05/06 09:24:09.222 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=1] [schemaVersion=51] [cur_db=test] [sql="drop table if exists t_partition;"] [user=] [2024/05/06 09:24:09.223 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=1] [schemaVersion=51] [cur_db=test] [sql="create table t_partition (\n\t\tc1 int, c2 int, c3 int\n\t)\n\tpartition by range( c1 ) (\n \tpartition p0 values less than (1024),\n \tpartition p1 values less than (2048),\n \tpartition p2 values less than (3072),\n \tpartition p3 values less than (4096),\n\t\tpartition p4 values less than (7096)\n \t);"] [user=] [2024/05/06 09:24:09.223 +00:00] [INFO] [job_table.go:334] ["get global state and global state change"] [category=ddl] [oldState=false] [currState=false] [2024/05/06 09:24:09.224 +00:00] [INFO] [job_table.go:349] ["the owner sets owner operator value"] [category=ddl] [ownerOp=none] [2024/05/06 09:24:09.227 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:110, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:09.226 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:09.227 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:110, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:09.226 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create table t_partition (\n\t\tc1 int, c2 int, c3 int\n\t)\n\tpartition by range( c1 ) (\n \tpartition p0 values less than (1024),\n \tpartition p1 values less than (2048),\n \tpartition p2 values less than (3072),\n \tpartition p3 values less than (4096),\n\t\tpartition p4 values less than (7096)\n \t);"] [2024/05/06 09:24:09.234 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=110] [conn=1] [category=ddl] [job="ID:110, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:09.226 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:09.254 +00:00] [INFO] [domain.go:315] ["full load InfoSchema success"] [currentSchemaVersion=51] [neededSchemaVersion=51] ["start time"=28.207981ms] [2024/05/06 09:24:09.259 +00:00] [INFO] [domain.go:635] ["full load and reset schema validator"] [2024/05/06 09:24:09.292 +00:00] [INFO] [mvcc.go:1246] ["trying to commit with smaller commitTs than minCommitTs"] ["commit ts"=449573669893832704] ["min commit ts"=449573669903007745] [key=bURCOjIAAAAA+wAAAAAAAABoVGFibGU6MTD/NAAAAAAAAAD4] [2024/05/06 09:24:09.292 +00:00] [INFO] [commit.go:160] ["2PC commitTS rejected by TiKV, retry with a newer commitTS"] [txnStartTS=449573669891997696] [info="{StartTs:449573669891997696 AttemptedCommitTs:449573669893832704 Key:6d44423a3200000000fb00000000000000685461626c653a3130ff3400000000000000f8 MinCommitTs:449573669903007745}"] [2024/05/06 09:24:09.301 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=51] [neededSchemaVersion=52] ["start time"=8.404462ms] [gotSchemaVersion=52] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[3,3,3,3,3,3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:09.303 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=110] [version=52] [2024/05/06 09:24:09.305 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=52] ["take time"=12.506913ms] [job="ID:110, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:09.226 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:09.313 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=110] [conn=1] [job="ID:110, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:09.226 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:09.317 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=110] [2024/05/06 09:24:09.317 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:09.318 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=1] [schemaVersion=52] [cur_db=test] [sql="create table t (\n\t\tc1 int, c2 int, c3 int, c11 tinyint, index fk_c1(c1)\n\t);"] [user=] [2024/05/06 09:24:09.320 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:112, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:09.319 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:09.320 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:112, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:09.319 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create table t (\n\t\tc1 int, c2 int, c3 int, c11 tinyint, index fk_c1(c1)\n\t);"] [2024/05/06 09:24:09.328 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=112] [conn=1] [category=ddl] [job="ID:112, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:09.319 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:09.331 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=52] [neededSchemaVersion=53] ["start time"=249.978µs] [gotSchemaVersion=53] [phyTblIDs="[111]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:09.332 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=112] [version=53] [2024/05/06 09:24:09.333 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=53] ["take time"=2.422905ms] [job="ID:112, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:09.319 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:09.343 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=112] [conn=1] [job="ID:112, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:09.319 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:09.347 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=112] [2024/05/06 09:24:09.347 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:10.179 +00:00] [INFO] [runaway.go:158] ["preparations for the runaway manager are finished and start runaway manager loop"] [2024/05/06 09:24:10.180 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=runawayRecordFlushLoop] [2024/05/06 09:24:10.180 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=runawayWatchSyncLoop] [2024/05/06 09:24:10.180 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=runawayStartLoop] [2024/05/06 09:24:10.203 +00:00] [INFO] [runtime.go:160] ["TimerGroupRuntime loop started"] [groupID=ttl] [2024/05/06 09:24:10.203 +00:00] [INFO] [runtime.go:402] ["create watch chan if possible for timer runtime"] [groupID=ttl] [storeSupportWatch=true] [2024/05/06 09:24:10.215 +00:00] [INFO] [slots.go:205] ["initialize slot capacity"] [capacity=16] [2024/05/06 09:24:10.217 +00:00] [INFO] [scheduler_manager.go:200] ["schedule task loop start"] [server-id=:4000] [2024/05/06 09:24:10.217 +00:00] [INFO] [scheduler_manager.go:312] ["subtask table gc loop start"] [server-id=:4000] [2024/05/06 09:24:10.217 +00:00] [INFO] [scheduler_manager.go:373] ["cleanup loop start"] [server-id=:4000] [2024/05/06 09:24:10.217 +00:00] [INFO] [scheduler_manager.go:453] ["collect loop start"] [server-id=:4000] [2024/05/06 09:24:11.174 +00:00] [INFO] [info.go:1142] [SetTiFlashGroupConfig] [2024/05/06 09:24:12.175 +00:00] [INFO] [set.go:170] ["set global var"] [conn=1] [name=tidb_ddl_reorg_batch_size] [val=8] [2024/05/06 09:24:12.181 +00:00] [INFO] [set.go:170] ["set global var"] [conn=1] [name=tidb_ddl_reorg_worker_cnt] [val=1] [2024/05/06 09:24:12.186 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=53] [cur_db=test] [sql="create unique index c3_index on t_partition (c1)"] [user=] [2024/05/06 09:24:12.190 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:113, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:12.188 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:12.190 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:113, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:12.188 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="create unique index c3_index on t_partition (c1)"] [2024/05/06 09:24:12.202 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:113, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:12.188 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.203 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=113] [conn=3] [category=ddl] [job="ID:113, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:12.188 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.203 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:113, Type:add index, State:running, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:12.188 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":1,\"idx_name\":{\"O\":\"c3_index\",\"L\":\"c3_index\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c1\",\"L\":\"c1\"},\"offset\":0,\"length\":-1}],\"state\":0,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":true,\"is_primary\":false,\"is_invisible\":false,\"is_global\":false,\"mv_index\":false}"] [2024/05/06 09:24:12.203 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:24:12.204 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:113, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:12.188 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.215 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=53] [neededSchemaVersion=54] ["start time"=8.889269ms] [gotSchemaVersion=54] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[7,7,7,7,7,7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:12.230 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=113] [version=54] [2024/05/06 09:24:12.230 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=54] ["take time"=24.038983ms] [job="ID:113, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:12.188 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.232 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:113, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:12.188 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.238 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:113, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:12.188 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.238 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=113] [conn=3] [category=ddl] [job="ID:113, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:12.188 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.239 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:113, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:12.188 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.249 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=54] [neededSchemaVersion=55] ["start time"=8.515961ms] [gotSchemaVersion=55] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[7,7,7,7,7,7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:12.250 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=113] [version=55] [2024/05/06 09:24:12.253 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=55] ["take time"=13.213597ms] [job="ID:113, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:12.188 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.255 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:113, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:12.188 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.269 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:113, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:12.188 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.269 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=113] [conn=3] [category=ddl] [job="ID:113, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:12.188 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.270 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:113, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:12.188 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.283 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=55] [neededSchemaVersion=56] ["start time"=10.080093ms] [gotSchemaVersion=56] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[7,7,7,7,7,7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:12.286 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=113] [version=56] [2024/05/06 09:24:12.293 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=56] ["take time"=19.511769ms] [job="ID:113, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:12.188 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.294 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:113, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:12.188 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.299 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:113, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:12.188 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.301 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=113] [conn=3] [category=ddl] [job="ID:113, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:12.188 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.302 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=113] [table=t_partition] ["ingest mode"=false] [index=c3_index] [2024/05/06 09:24:12.303 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=113] [physicalTableID=105] [startKey=7480000000000000695f728000000000000001] [endKey=7480000000000000695f72800000000000015600] [2024/05/06 09:24:12.305 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:113, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:12.188 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573670696255488, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.306 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449573670695469056, conflictStartTS=449573670695469057, conflictCommitTS=449573670695731200, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=113}, originalKey=748000fffffffffffe5f728000000000000071, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [IsBatchInsert=false] [IsPessimistic=false] [InRestrictedSQL=true] [tidb_retry_limit=10] [tidb_disable_txn_auto_retry=true] [2024/05/06 09:24:12.306 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449573670695469056, conflictStartTS=449573670695469057, conflictCommitTS=449573670695731200, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=113}, originalKey=748000fffffffffffe5f728000000000000071, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:24:12.306 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 10, tp add index"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449573670695469056, conflictStartTS=449573670695469057, conflictCommitTS=449573670695731200, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=113}, originalKey=748000fffffffffffe5f728000000000000071, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:113, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:12.188 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573670696255488, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.312 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:113, Type:add index, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:12.188 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.312 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=113] [conn=3] [category=ddl] [job="ID:113, Type:add index, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:12.188 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.313 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 7, tp add index"] [category=ddl] [jobID=113] [conn=3] [job="ID:113, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:12.188 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.completeErr\n\tpkg/ddl/index_cop.go:319\ngithub.com/pingcap/tidb/pkg/ddl.convertAddIdxJob2RollbackJob\n\tpkg/ddl/rollingback.go:93\ngithub.com/pingcap/tidb/pkg/ddl.convertNotReorgAddIdxJob2RollbackJob\n\tpkg/ddl/rollingback.go:139\ngithub.com/pingcap/tidb/pkg/ddl.rollingbackAddIndex\n\tpkg/ddl/rollingback.go:270\ngithub.com/pingcap/tidb/pkg/ddl.convertJob2RollbackJob\n\tpkg/ddl/rollingback.go:480\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).runDDLJob\n\tpkg/ddl/ddl_worker.go:1202\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).HandleDDLJobTable\n\tpkg/ddl/ddl_worker.go:946\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).delivery2Worker.func1\n\tpkg/ddl/job_table.go:461\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:157\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [2024/05/06 09:24:12.313 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:113, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:12.188 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.324 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=56] [neededSchemaVersion=57] ["start time"=9.039302ms] [gotSchemaVersion=57] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[7,7,7,7,7,7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:12.330 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=113] [version=57] [2024/05/06 09:24:12.331 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=57] ["take time"=16.125926ms] [job="ID:113, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:12.188 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.332 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:113, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:12.188 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.338 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:113, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:12.188 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.338 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=113] [conn=3] [category=ddl] [job="ID:113, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:12.188 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.340 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:113, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:12.188 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.350 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=57] [neededSchemaVersion=58] ["start time"=8.25375ms] [gotSchemaVersion=58] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[7,7,7,7,7,7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:12.352 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=113] [version=58] [2024/05/06 09:24:12.354 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=58] ["take time"=12.807992ms] [job="ID:113, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:12.188 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.357 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:113, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:12.188 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.363 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:113, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:12.188 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.363 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=113] [conn=3] [category=ddl] [job="ID:113, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:12.188 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.371 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:113, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:12.188 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.381 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=58] [neededSchemaVersion=59] ["start time"=8.133349ms] [gotSchemaVersion=59] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[7,7,7,7,7,7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:12.383 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=113] [version=59] [2024/05/06 09:24:12.384 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=59] ["take time"=10.52926ms] [job="ID:113, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:12.188 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.385 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:113, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:12.188 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.390 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=113] [tableID=104] [indexIDs="[1,9223090561878065153]"] [comment="add index: physical table ID(s)"] [2024/05/06 09:24:12.391 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=113] [jobType="add index"] [2024/05/06 09:24:12.392 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=113] [conn=3] [job="ID:113, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:12.188 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.395 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=113] [2024/05/06 09:24:12.396 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:113, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:12.188 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.401 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=113] [elementID=1] [startKey=7480000000000000685f698000000000000001] [endKey=7480000000000000685f698000000000000002] [2024/05/06 09:24:12.403 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=113] [elementID=2] [startKey=7480000000000000685f69ffff000000000001] [endKey=7480000000000000685f69ffff000000000002] [2024/05/06 09:24:12.404 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=113] [2024/05/06 09:24:12.404 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:12.406 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=53] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).createIndex\n\tpkg/ddl/ddl_api.go:7732\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).CreateIndex\n\tpkg/ddl/ddl_api.go:7584\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeCreateIndex\n\tpkg/executor/ddl.go:320\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:154\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:289\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:12.406 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=59] [cur_db=test] [sql="create unique index c3_index on t_partition (c1)"] [user=] [2024/05/06 09:24:12.409 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:114, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:12.409 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:114, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="create unique index c3_index on t_partition (c1)"] [2024/05/06 09:24:12.418 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:114, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.418 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=114] [conn=3] [category=ddl] [job="ID:114, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.418 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:114, Type:add index, State:running, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":2,\"idx_name\":{\"O\":\"c3_index\",\"L\":\"c3_index\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c1\",\"L\":\"c1\"},\"offset\":0,\"length\":-1}],\"state\":0,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":true,\"is_primary\":false,\"is_invisible\":false,\"is_global\":false,\"mv_index\":false}"] [2024/05/06 09:24:12.418 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:24:12.419 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:114, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.430 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=59] [neededSchemaVersion=60] ["start time"=8.589429ms] [gotSchemaVersion=60] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[7,7,7,7,7,7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:12.433 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=114] [version=60] [2024/05/06 09:24:12.434 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=60] ["take time"=12.908691ms] [job="ID:114, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.436 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:114, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.447 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:114, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.447 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=114] [conn=3] [category=ddl] [job="ID:114, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.448 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:114, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.459 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=60] [neededSchemaVersion=61] ["start time"=9.13738ms] [gotSchemaVersion=61] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[7,7,7,7,7,7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:12.461 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=114] [version=61] [2024/05/06 09:24:12.464 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=61] ["take time"=14.142159ms] [job="ID:114, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.465 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:114, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.470 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:114, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.470 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=114] [conn=3] [category=ddl] [job="ID:114, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.471 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:114, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.481 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=61] [neededSchemaVersion=62] ["start time"=8.604653ms] [gotSchemaVersion=62] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[7,7,7,7,7,7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:12.485 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=114] [version=62] [2024/05/06 09:24:12.487 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=62] ["take time"=14.289458ms] [job="ID:114, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.488 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:114, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.497 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:114, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.498 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=114] [conn=3] [category=ddl] [job="ID:114, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.498 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=114] [table=t_partition] ["ingest mode"=false] [index=c3_index] [2024/05/06 09:24:12.499 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=114] [physicalTableID=105] [startKey=7480000000000000695f728000000000000001] [endKey=7480000000000000695f72800000000000015600] [2024/05/06 09:24:12.501 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:114, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.502 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=114] [2024/05/06 09:24:12.503 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:114, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.532 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:114, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.533 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=114] [conn=3] [category=ddl] [job="ID:114, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.533 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=114] [table=t_partition] ["ingest mode"=false] [index=c3_index] [2024/05/06 09:24:12.536 +00:00] [INFO] [index.go:1931] ["start to add table index"] [category=ddl] [job="ID:114, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:2,StartKey:7480000000000000695f728000000000000001,EndKey:7480000000000000695f72800000000000015600,First:false,PhysicalTableID:105,Ingest mode:false"] [2024/05/06 09:24:12.537 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=105] ["start key"=7480000000000000695f728000000000000001] ["end key"=7480000000000000695f72800000000000015600] [2024/05/06 09:24:12.537 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="add index"] [workerCnt=1] [regionCnt=1] [startKey=7480000000000000695f728000000000000001] [endKey=7480000000000000695f72800000000000015600] [2024/05/06 09:24:12.538 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=105] ["end key"=7480000000000000695f72800000000000015600] ["current end key"=7480000000000000695f72800000000000015600] [2024/05/06 09:24:12.546 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:12.546 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:114, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.547 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=114] [2024/05/06 09:24:12.548 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:114, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.555 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:114, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.555 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=114] [conn=3] [category=ddl] [job="ID:114, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.556 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=114] [table=t_partition] ["ingest mode"=false] [index=c3_index] [2024/05/06 09:24:12.569 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:12.569 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:114, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.570 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=114] [2024/05/06 09:24:12.571 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:114, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.579 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:114, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.579 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=114] [conn=3] [category=ddl] [job="ID:114, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.580 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=114] [table=t_partition] ["ingest mode"=false] [index=c3_index] [2024/05/06 09:24:12.591 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:12.591 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:114, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.592 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=114] [2024/05/06 09:24:12.593 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:114, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.602 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:114, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.602 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=114] [conn=3] [category=ddl] [job="ID:114, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.603 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=114] [table=t_partition] ["ingest mode"=false] [index=c3_index] [2024/05/06 09:24:12.615 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:12.615 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:114, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.616 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=114] [2024/05/06 09:24:12.617 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:114, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.628 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:114, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.629 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=114] [conn=3] [category=ddl] [job="ID:114, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.629 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=114] [table=t_partition] ["ingest mode"=false] [index=c3_index] [2024/05/06 09:24:12.665 +00:00] [INFO] [backfilling.go:330] ["backfill worker finish task"] [category=ddl] [worker="backfill-worker 0, tp add index"] [task="taskID: 1, physicalTableID: 105, range: [7480000000000000695f728000000000000001, 7480000000000000695f72800000000000015600), jobID: 114"] ["added count"=342] ["scan count"=342] ["next key"=7480000000000000695f72800000000000015600] ["take time"=26.540392ms] [2024/05/06 09:24:12.665 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=114] [2024/05/06 09:24:12.665 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:2,TypeKey:_idx_] ["total added count"=342] ["start key"=7480000000000000695f728000000000000001] [2024/05/06 09:24:12.669 +00:00] [INFO] [index.go:2351] ["job update reorgInfo"] [category=ddl] [jobID=114] [element=ID:2,TypeKey:_idx_] [partitionTableID=106] [startKey=74800000000000006a5f728000000000000157] [endKey=74800000000000006a5f7280000000000002ab00] [] [2024/05/06 09:24:12.669 +00:00] [INFO] [index.go:1931] ["start to add table index"] [category=ddl] [job="ID:114, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:342, ArgLen:6, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:2,StartKey:74800000000000006a5f728000000000000157,EndKey:74800000000000006a5f7280000000000002ab00,First:false,PhysicalTableID:106,Ingest mode:false"] [2024/05/06 09:24:12.670 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=106] ["start key"=74800000000000006a5f728000000000000157] ["end key"=74800000000000006a5f7280000000000002ab00] [2024/05/06 09:24:12.670 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="add index"] [workerCnt=1] [regionCnt=1] [startKey=74800000000000006a5f728000000000000157] [endKey=74800000000000006a5f7280000000000002ab00] [2024/05/06 09:24:12.670 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=106] ["end key"=74800000000000006a5f7280000000000002ab00] ["current end key"=74800000000000006a5f7280000000000002ab00] [2024/05/06 09:24:12.736 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=64] [2024/05/06 09:24:12.736 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:114, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:64, ArgLen:6, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.738 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=114] [2024/05/06 09:24:12.739 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:114, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:64, ArgLen:6, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.748 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:114, Type:add index, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:64, ArgLen:0, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.748 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=114] [conn=3] [category=ddl] [job="ID:114, Type:add index, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:64, ArgLen:0, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.748 +00:00] [INFO] [rollingback.go:265] ["run the cancelling DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=114] [conn=3] [job="ID:114, Type:add index, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:64, ArgLen:0, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.748 +00:00] [INFO] [ddl.go:615] ["notify reorg worker the job's state"] [category=ddl] ["Job ID"=114] ["Job State"=cancelling] ["Schema State"="write reorganization"] [2024/05/06 09:24:12.749 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=114] [table=t_partition] ["ingest mode"=false] [index=c3_index] [2024/05/06 09:24:12.772 +00:00] [INFO] [backfilling.go:399] ["backfill worker exit on error"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=114] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:24:12.772 +00:00] [WARN] [backfilling.go:641] ["backfill worker failed"] [category=ddl] ["job ID"=114] ["total added count"=342] ["start key"=74800000000000006a5f728000000000000157] ["result next key"=74800000000000006a5f728000000000000157] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:24:12.875 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=342] [2024/05/06 09:24:12.875 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:114, Type:add index, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:342, ArgLen:6, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.878 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:114, Type:add index, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:342, ArgLen:6, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.887 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:114, Type:add index, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:342, ArgLen:0, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.887 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=114] [conn=3] [category=ddl] [job="ID:114, Type:add index, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:342, ArgLen:0, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.887 +00:00] [INFO] [rollingback.go:265] ["run the cancelling DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=114] [conn=3] [job="ID:114, Type:add index, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:342, ArgLen:0, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.887 +00:00] [INFO] [ddl.go:615] ["notify reorg worker the job's state"] [category=ddl] ["Job ID"=114] ["Job State"=cancelling] ["Schema State"="write reorganization"] [2024/05/06 09:24:12.888 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=114] [table=t_partition] ["ingest mode"=false] [index=c3_index] [2024/05/06 09:24:12.890 +00:00] [WARN] [index.go:1058] ["run add index job failed, convert job to rollback"] [category=ddl] [job="ID:114, Type:add index, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:342, ArgLen:6, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:24:12.892 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 9, tp add index"] [category=ddl] [jobID=114] [conn=3] [job="ID:114, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:342, ArgLen:3, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.completeErr\n\tpkg/ddl/index_cop.go:319\ngithub.com/pingcap/tidb/pkg/ddl.convertAddIdxJob2RollbackJob\n\tpkg/ddl/rollingback.go:93\ngithub.com/pingcap/tidb/pkg/ddl.runReorgJobAndHandleErr\n\tpkg/ddl/index.go:1059\ngithub.com/pingcap/tidb/pkg/ddl.doReorgWorkForCreateIndex\n\tpkg/ddl/index.go:869\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).onCreateIndex\n\tpkg/ddl/index.go:731\ngithub.com/pingcap/tidb/pkg/ddl.rollingbackAddIndex\n\tpkg/ddl/rollingback.go:267\ngithub.com/pingcap/tidb/pkg/ddl.convertJob2RollbackJob\n\tpkg/ddl/rollingback.go:480\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).runDDLJob\n\tpkg/ddl/ddl_worker.go:1202\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).HandleDDLJobTable\n\tpkg/ddl/ddl_worker.go:946\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).delivery2Worker.func1\n\tpkg/ddl/job_table.go:461\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:157\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [2024/05/06 09:24:12.892 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:114, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:342, ArgLen:3, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.907 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=62] [neededSchemaVersion=63] ["start time"=13.04011ms] [gotSchemaVersion=63] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[7,7,7,7,7,7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:12.910 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=114] [version=63] [2024/05/06 09:24:12.910 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=63] ["take time"=16.203512ms] [job="ID:114, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:342, ArgLen:3, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.911 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:114, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:342, ArgLen:3, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.922 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:114, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:342, ArgLen:0, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.923 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=114] [conn=3] [category=ddl] [job="ID:114, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:342, ArgLen:0, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.924 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:114, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:104, RowCount:342, ArgLen:2, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.960 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=63] [neededSchemaVersion=64] ["start time"=34.67115ms] [gotSchemaVersion=64] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[7,7,7,7,7,7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:12.968 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=114] [version=64] [2024/05/06 09:24:12.973 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=64] ["take time"=47.344661ms] [job="ID:114, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:104, RowCount:342, ArgLen:2, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.974 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:114, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:104, RowCount:342, ArgLen:2, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.984 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:114, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:104, RowCount:342, ArgLen:0, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.984 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=114] [conn=3] [category=ddl] [job="ID:114, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:104, RowCount:342, ArgLen:0, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:12.985 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:114, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:104, RowCount:342, ArgLen:2, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.000 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=64] [neededSchemaVersion=65] ["start time"=13.216609ms] [gotSchemaVersion=65] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[7,7,7,7,7,7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:13.009 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=114] [version=65] [2024/05/06 09:24:13.013 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=65] ["take time"=26.349219ms] [job="ID:114, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:104, RowCount:342, ArgLen:2, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.015 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:114, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:104, RowCount:342, ArgLen:2, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.022 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=114] [tableID=104] [indexIDs="[2,9223090561878065154]"] [comment="add index: physical table ID(s)"] [2024/05/06 09:24:13.024 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=114] [jobType="add index"] [2024/05/06 09:24:13.024 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=114] [conn=3] [job="ID:114, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:104, RowCount:342, ArgLen:2, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.029 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=114] [elementID=1] [startKey=7480000000000000685f698000000000000002] [endKey=7480000000000000685f698000000000000003] [2024/05/06 09:24:13.032 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=114] [2024/05/06 09:24:13.032 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=114] [elementID=2] [startKey=7480000000000000685f69ffff000000000002] [endKey=7480000000000000685f69ffff000000000003] [2024/05/06 09:24:13.033 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:114, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:104, RowCount:342, ArgLen:2, start time: 2024-05-06 09:24:12.408 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573670747635712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.035 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=114] [2024/05/06 09:24:13.035 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:13.036 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=59] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).createIndex\n\tpkg/ddl/ddl_api.go:7732\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).CreateIndex\n\tpkg/ddl/ddl_api.go:7584\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeCreateIndex\n\tpkg/executor/ddl.go:320\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:154\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:306\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:13.038 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=65] [cur_db=test] [sql="alter table t_partition add primary key c3_index (c1)"] [user=] [2024/05/06 09:24:13.041 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:115, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:13.039 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:13.041 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:115, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:13.039 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t_partition add primary key c3_index (c1)"] [2024/05/06 09:24:13.053 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:115, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:13.039 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.054 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=115] [conn=3] [category=ddl] [job="ID:115, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:13.039 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.054 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:115, Type:add primary key, State:running, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:13.039 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":3,\"idx_name\":{\"O\":\"PRIMARY\",\"L\":\"primary\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c1\",\"L\":\"c1\"},\"offset\":0,\"length\":-1}],\"state\":0,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":true,\"is_primary\":true,\"is_invisible\":false,\"is_global\":false,\"mv_index\":false}"] [2024/05/06 09:24:13.054 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:24:13.055 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:115, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:13.039 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.097 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=65] [neededSchemaVersion=66] ["start time"=40.817792ms] [gotSchemaVersion=66] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[32,32,32,32,32,32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:13.106 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=115] [version=66] [2024/05/06 09:24:13.110 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=66] ["take time"=53.718208ms] [job="ID:115, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:13.039 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.112 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:115, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:13.039 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.118 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:115, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:13.039 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.118 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=115] [conn=3] [category=ddl] [job="ID:115, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:13.039 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.121 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:115, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:104, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:13.039 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.131 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=66] [neededSchemaVersion=67] ["start time"=8.703912ms] [gotSchemaVersion=67] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[32,32,32,32,32,32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:13.134 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=115] [version=67] [2024/05/06 09:24:13.135 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=67] ["take time"=12.749755ms] [job="ID:115, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:104, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:13.039 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.143 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:115, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:104, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:13.039 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.150 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:115, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:13.039 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.150 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=115] [conn=3] [category=ddl] [job="ID:115, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:13.039 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.153 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:115, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:13.039 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.163 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=67] [neededSchemaVersion=68] ["start time"=8.475821ms] [gotSchemaVersion=68] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[32,32,32,32,32,32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:13.165 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=115] [version=68] [2024/05/06 09:24:13.170 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=68] ["take time"=14.809582ms] [job="ID:115, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:13.039 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.171 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:115, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:13.039 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.178 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:115, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:13.039 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.181 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=115] [conn=3] [category=ddl] [job="ID:115, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:13.039 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.182 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=115] [table=t_partition] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:13.184 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=115] [physicalTableID=105] [startKey=7480000000000000695f728000000000000001] [endKey=7480000000000000695f72800000000000015600] [2024/05/06 09:24:13.188 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:115, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:13.039 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573670926942210, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.189 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449573670925893632, conflictStartTS=449573670925893633, conflictCommitTS=449573670926417920, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=115}, originalKey=748000fffffffffffe5f728000000000000073, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [IsBatchInsert=false] [IsPessimistic=false] [InRestrictedSQL=true] [tidb_retry_limit=10] [tidb_disable_txn_auto_retry=true] [2024/05/06 09:24:13.189 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449573670925893632, conflictStartTS=449573670925893633, conflictCommitTS=449573670926417920, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=115}, originalKey=748000fffffffffffe5f728000000000000073, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:24:13.189 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 7, tp add index"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449573670925893632, conflictStartTS=449573670925893633, conflictCommitTS=449573670926417920, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=115}, originalKey=748000fffffffffffe5f728000000000000073, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:115, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:13.039 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573670926942210, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.214 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:115, Type:add primary key, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:13.039 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.214 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=115] [conn=3] [category=ddl] [job="ID:115, Type:add primary key, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:13.039 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.215 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 10, tp add index"] [category=ddl] [jobID=115] [conn=3] [job="ID:115, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:13.039 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.completeErr\n\tpkg/ddl/index_cop.go:319\ngithub.com/pingcap/tidb/pkg/ddl.convertAddIdxJob2RollbackJob\n\tpkg/ddl/rollingback.go:93\ngithub.com/pingcap/tidb/pkg/ddl.convertNotReorgAddIdxJob2RollbackJob\n\tpkg/ddl/rollingback.go:139\ngithub.com/pingcap/tidb/pkg/ddl.rollingbackAddIndex\n\tpkg/ddl/rollingback.go:270\ngithub.com/pingcap/tidb/pkg/ddl.convertJob2RollbackJob\n\tpkg/ddl/rollingback.go:482\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).runDDLJob\n\tpkg/ddl/ddl_worker.go:1202\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).HandleDDLJobTable\n\tpkg/ddl/ddl_worker.go:946\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).delivery2Worker.func1\n\tpkg/ddl/job_table.go:461\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:157\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [2024/05/06 09:24:13.215 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:115, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:13.039 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.233 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=68] [neededSchemaVersion=69] ["start time"=16.314516ms] [gotSchemaVersion=69] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[32,32,32,32,32,32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:13.236 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=115] [version=69] [2024/05/06 09:24:13.237 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=69] ["take time"=20.034071ms] [job="ID:115, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:13.039 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.238 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:115, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:13.039 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.246 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:115, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:13.039 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.246 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=115] [conn=3] [category=ddl] [job="ID:115, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:13.039 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.247 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:115, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:13.039 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.257 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=69] [neededSchemaVersion=70] ["start time"=8.896614ms] [gotSchemaVersion=70] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[32,32,32,32,32,32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:13.259 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=115] [version=70] [2024/05/06 09:24:13.261 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=70] ["take time"=12.928908ms] [job="ID:115, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:13.039 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.264 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:115, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:13.039 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.270 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:115, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:13.039 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.270 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=115] [conn=3] [category=ddl] [job="ID:115, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:13.039 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.271 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:115, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:13.039 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.289 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=70] [neededSchemaVersion=71] ["start time"=16.161279ms] [gotSchemaVersion=71] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[32,32,32,32,32,32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:13.291 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=115] [version=71] [2024/05/06 09:24:13.292 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=71] ["take time"=19.04816ms] [job="ID:115, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:13.039 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.293 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:115, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:13.039 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.301 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=115] [tableID=104] [indexIDs="[3,9223090561878065155]"] [comment="add index: physical table ID(s)"] [2024/05/06 09:24:13.302 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=115] [jobType="add primary key"] [2024/05/06 09:24:13.303 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=115] [conn=3] [job="ID:115, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:13.039 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.306 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=115] [2024/05/06 09:24:13.307 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:115, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:13.039 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.310 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=115] [elementID=1] [startKey=7480000000000000685f698000000000000003] [endKey=7480000000000000685f698000000000000004] [2024/05/06 09:24:13.310 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=115] [2024/05/06 09:24:13.311 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:13.311 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=65] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).CreatePrimaryKey\n\tpkg/ddl/ddl_api.go:7469\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:3945\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:289\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:13.311 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=71] [cur_db=test] [sql="alter table t_partition add primary key c3_index (c1)"] [user=] [2024/05/06 09:24:13.312 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=115] [elementID=2] [startKey=7480000000000000685f69ffff000000000003] [endKey=7480000000000000685f69ffff000000000004] [2024/05/06 09:24:13.315 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:116, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:13.315 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:116, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t_partition add primary key c3_index (c1)"] [2024/05/06 09:24:13.345 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:116, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.345 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=116] [conn=3] [category=ddl] [job="ID:116, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.346 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:116, Type:add primary key, State:running, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":4,\"idx_name\":{\"O\":\"PRIMARY\",\"L\":\"primary\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c1\",\"L\":\"c1\"},\"offset\":0,\"length\":-1}],\"state\":0,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":true,\"is_primary\":true,\"is_invisible\":false,\"is_global\":false,\"mv_index\":false}"] [2024/05/06 09:24:13.346 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:24:13.347 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:116, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.389 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=71] [neededSchemaVersion=72] ["start time"=35.202849ms] [gotSchemaVersion=72] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[32,32,32,32,32,32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:13.392 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=116] [version=72] [2024/05/06 09:24:13.399 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=72] ["take time"=44.955774ms] [job="ID:116, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.408 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:116, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.460 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:116, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.460 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=116] [conn=3] [category=ddl] [job="ID:116, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.465 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:116, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:104, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.479 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=72] [neededSchemaVersion=73] ["start time"=12.043587ms] [gotSchemaVersion=73] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[32,32,32,32,32,32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:13.494 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=116] [version=73] [2024/05/06 09:24:13.495 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=73] ["take time"=28.016651ms] [job="ID:116, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:104, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.496 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:116, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:104, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.502 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:116, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.502 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=116] [conn=3] [category=ddl] [job="ID:116, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.505 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:116, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.539 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=73] [neededSchemaVersion=74] ["start time"=26.308348ms] [gotSchemaVersion=74] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[32,32,32,32,32,32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:13.541 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=116] [version=74] [2024/05/06 09:24:13.542 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=74] ["take time"=34.859917ms] [job="ID:116, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.543 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:116, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.549 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:116, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.549 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=116] [conn=3] [category=ddl] [job="ID:116, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.550 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=116] [table=t_partition] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:13.551 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=116] [physicalTableID=105] [startKey=7480000000000000695f728000000000000001] [endKey=7480000000000000695f72800000000000015600] [2024/05/06 09:24:13.553 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:116, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.558 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=116] [2024/05/06 09:24:13.559 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:116, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.567 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:116, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.567 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=116] [conn=3] [category=ddl] [job="ID:116, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.568 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=116] [table=t_partition] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:13.570 +00:00] [INFO] [index.go:1931] ["start to add table index"] [category=ddl] [job="ID:116, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:4,StartKey:7480000000000000695f728000000000000001,EndKey:7480000000000000695f72800000000000015600,First:false,PhysicalTableID:105,Ingest mode:false"] [2024/05/06 09:24:13.571 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=105] ["start key"=7480000000000000695f728000000000000001] ["end key"=7480000000000000695f72800000000000015600] [2024/05/06 09:24:13.571 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="add index"] [workerCnt=1] [regionCnt=1] [startKey=7480000000000000695f728000000000000001] [endKey=7480000000000000695f72800000000000015600] [2024/05/06 09:24:13.572 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=105] ["end key"=7480000000000000695f72800000000000015600] ["current end key"=7480000000000000695f72800000000000015600] [2024/05/06 09:24:13.588 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:13.588 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:116, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.589 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=116] [2024/05/06 09:24:13.590 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:116, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.597 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:116, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.598 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=116] [conn=3] [category=ddl] [job="ID:116, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.598 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=116] [table=t_partition] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:13.610 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:13.610 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:116, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.611 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=116] [2024/05/06 09:24:13.612 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:116, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.618 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:116, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.619 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=116] [conn=3] [category=ddl] [job="ID:116, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.619 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=116] [table=t_partition] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:13.633 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:13.633 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:116, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.635 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=116] [2024/05/06 09:24:13.636 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:116, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.643 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:116, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.643 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=116] [conn=3] [category=ddl] [job="ID:116, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.644 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=116] [table=t_partition] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:13.658 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:13.659 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:116, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.659 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=116] [2024/05/06 09:24:13.660 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:116, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.668 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:116, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.668 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=116] [conn=3] [category=ddl] [job="ID:116, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.669 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=116] [table=t_partition] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:13.685 +00:00] [INFO] [backfilling.go:330] ["backfill worker finish task"] [category=ddl] [worker="backfill-worker 0, tp add index"] [task="taskID: 1, physicalTableID: 105, range: [7480000000000000695f728000000000000001, 7480000000000000695f72800000000000015600), jobID: 116"] ["added count"=342] ["scan count"=342] ["next key"=7480000000000000695f72800000000000015600] ["take time"=11.741037ms] [2024/05/06 09:24:13.685 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=116] [2024/05/06 09:24:13.685 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:4,TypeKey:_idx_] ["total added count"=342] ["start key"=7480000000000000695f728000000000000001] [2024/05/06 09:24:13.688 +00:00] [INFO] [index.go:2351] ["job update reorgInfo"] [category=ddl] [jobID=116] [element=ID:4,TypeKey:_idx_] [partitionTableID=106] [startKey=74800000000000006a5f728000000000000157] [endKey=74800000000000006a5f7280000000000002ab00] [] [2024/05/06 09:24:13.688 +00:00] [INFO] [index.go:1931] ["start to add table index"] [category=ddl] [job="ID:116, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:342, ArgLen:7, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:4,StartKey:74800000000000006a5f728000000000000157,EndKey:74800000000000006a5f7280000000000002ab00,First:false,PhysicalTableID:106,Ingest mode:false"] [2024/05/06 09:24:13.689 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=106] ["start key"=74800000000000006a5f728000000000000157] ["end key"=74800000000000006a5f7280000000000002ab00] [2024/05/06 09:24:13.689 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="add index"] [workerCnt=1] [regionCnt=1] [startKey=74800000000000006a5f728000000000000157] [endKey=74800000000000006a5f7280000000000002ab00] [2024/05/06 09:24:13.691 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=106] ["end key"=74800000000000006a5f7280000000000002ab00] ["current end key"=74800000000000006a5f7280000000000002ab00] [2024/05/06 09:24:13.790 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=342] [2024/05/06 09:24:13.790 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:116, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:342, ArgLen:7, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.793 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=116] [2024/05/06 09:24:13.793 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:116, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:342, ArgLen:7, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.806 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:116, Type:add primary key, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:342, ArgLen:0, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.808 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=116] [conn=3] [category=ddl] [job="ID:116, Type:add primary key, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:342, ArgLen:0, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.808 +00:00] [INFO] [backfilling.go:330] ["backfill worker finish task"] [category=ddl] [worker="backfill-worker 0, tp add index"] [task="taskID: 1, physicalTableID: 106, range: [74800000000000006a5f728000000000000157, 74800000000000006a5f7280000000000002ab00), jobID: 116"] ["added count"=341] ["scan count"=341] ["next key"=74800000000000006a5f7280000000000002ab00] ["take time"=16.541007ms] [2024/05/06 09:24:13.808 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=116] [2024/05/06 09:24:13.808 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:4,TypeKey:_idx_] ["total added count"=683] ["start key"=74800000000000006a5f728000000000000157] [2024/05/06 09:24:13.811 +00:00] [INFO] [index.go:2351] ["job update reorgInfo"] [category=ddl] [jobID=116] [element=ID:4,TypeKey:_idx_] [partitionTableID=107] [startKey=74800000000000006b5f7280000000000002ac] [endKey=74800000000000006b5f72800000000000040000] [] [2024/05/06 09:24:13.811 +00:00] [INFO] [index.go:1931] ["start to add table index"] [category=ddl] [job="ID:116, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:683, ArgLen:7, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:4,StartKey:74800000000000006b5f7280000000000002ac,EndKey:74800000000000006b5f72800000000000040000,First:false,PhysicalTableID:107,Ingest mode:false"] [2024/05/06 09:24:13.811 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=107] ["start key"=74800000000000006b5f7280000000000002ac] ["end key"=74800000000000006b5f72800000000000040000] [2024/05/06 09:24:13.812 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="add index"] [workerCnt=1] [regionCnt=1] [startKey=74800000000000006b5f7280000000000002ac] [endKey=74800000000000006b5f72800000000000040000] [2024/05/06 09:24:13.812 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=107] ["end key"=74800000000000006b5f72800000000000040000] ["current end key"=74800000000000006b5f72800000000000040000] [2024/05/06 09:24:13.808 +00:00] [INFO] [rollingback.go:265] ["run the cancelling DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=116] [conn=3] [job="ID:116, Type:add primary key, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:342, ArgLen:0, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.812 +00:00] [INFO] [ddl.go:615] ["notify reorg worker the job's state"] [category=ddl] ["Job ID"=116] ["Job State"=cancelling] ["Schema State"="write reorganization"] [2024/05/06 09:24:13.813 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=116] [table=t_partition] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:13.897 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=683] [2024/05/06 09:24:13.897 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:116, Type:add primary key, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:683, ArgLen:7, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.899 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:116, Type:add primary key, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:683, ArgLen:7, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.906 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:116, Type:add primary key, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:683, ArgLen:0, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.906 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=116] [conn=3] [category=ddl] [job="ID:116, Type:add primary key, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:683, ArgLen:0, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.906 +00:00] [INFO] [rollingback.go:265] ["run the cancelling DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=116] [conn=3] [job="ID:116, Type:add primary key, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:683, ArgLen:0, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.906 +00:00] [INFO] [ddl.go:615] ["notify reorg worker the job's state"] [category=ddl] ["Job ID"=116] ["Job State"=cancelling] ["Schema State"="write reorganization"] [2024/05/06 09:24:13.907 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=116] [table=t_partition] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:13.913 +00:00] [INFO] [backfilling.go:399] ["backfill worker exit on error"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=116] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:24:13.913 +00:00] [WARN] [backfilling.go:641] ["backfill worker failed"] [category=ddl] ["job ID"=116] ["total added count"=683] ["start key"=74800000000000006b5f7280000000000002ac] ["result next key"=74800000000000006b5f7280000000000002ac] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:24:13.913 +00:00] [WARN] [index.go:1058] ["run add index job failed, convert job to rollback"] [category=ddl] [job="ID:116, Type:add primary key, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:683, ArgLen:7, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:24:13.915 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 8, tp add index"] [category=ddl] [jobID=116] [conn=3] [job="ID:116, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:683, ArgLen:3, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.completeErr\n\tpkg/ddl/index_cop.go:319\ngithub.com/pingcap/tidb/pkg/ddl.convertAddIdxJob2RollbackJob\n\tpkg/ddl/rollingback.go:93\ngithub.com/pingcap/tidb/pkg/ddl.runReorgJobAndHandleErr\n\tpkg/ddl/index.go:1059\ngithub.com/pingcap/tidb/pkg/ddl.doReorgWorkForCreateIndex\n\tpkg/ddl/index.go:869\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).onCreateIndex\n\tpkg/ddl/index.go:731\ngithub.com/pingcap/tidb/pkg/ddl.rollingbackAddIndex\n\tpkg/ddl/rollingback.go:267\ngithub.com/pingcap/tidb/pkg/ddl.convertJob2RollbackJob\n\tpkg/ddl/rollingback.go:482\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).runDDLJob\n\tpkg/ddl/ddl_worker.go:1202\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).HandleDDLJobTable\n\tpkg/ddl/ddl_worker.go:946\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).delivery2Worker.func1\n\tpkg/ddl/job_table.go:461\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:157\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [2024/05/06 09:24:13.915 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:116, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:683, ArgLen:3, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.924 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=74] [neededSchemaVersion=75] ["start time"=7.607085ms] [gotSchemaVersion=75] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[32,32,32,32,32,32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:13.935 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=116] [version=75] [2024/05/06 09:24:13.940 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=75] ["take time"=22.821357ms] [job="ID:116, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:683, ArgLen:3, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.941 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:116, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:683, ArgLen:3, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.953 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:116, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:683, ArgLen:0, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.953 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=116] [conn=3] [category=ddl] [job="ID:116, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:683, ArgLen:0, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.954 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:116, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:104, RowCount:683, ArgLen:2, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.967 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=75] [neededSchemaVersion=76] ["start time"=10.630441ms] [gotSchemaVersion=76] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[32,32,32,32,32,32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:13.968 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=116] [version=76] [2024/05/06 09:24:13.972 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=76] ["take time"=15.848081ms] [job="ID:116, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:104, RowCount:683, ArgLen:2, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.973 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:116, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:104, RowCount:683, ArgLen:2, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.980 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:116, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:104, RowCount:683, ArgLen:0, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.980 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=116] [conn=3] [category=ddl] [job="ID:116, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:104, RowCount:683, ArgLen:0, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.981 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:116, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:104, RowCount:683, ArgLen:2, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:13.995 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=76] [neededSchemaVersion=77] ["start time"=10.039413ms] [gotSchemaVersion=77] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[32,32,32,32,32,32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:13.999 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=116] [version=77] [2024/05/06 09:24:14.003 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=77] ["take time"=19.853469ms] [job="ID:116, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:104, RowCount:683, ArgLen:2, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.004 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:116, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:104, RowCount:683, ArgLen:2, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.010 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=116] [tableID=104] [indexIDs="[4,9223090561878065156]"] [comment="add index: physical table ID(s)"] [2024/05/06 09:24:14.011 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=116] [jobType="add primary key"] [2024/05/06 09:24:14.012 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=116] [conn=3] [job="ID:116, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:104, RowCount:683, ArgLen:2, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.014 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=116] [elementID=1] [startKey=7480000000000000685f698000000000000004] [endKey=7480000000000000685f698000000000000005] [2024/05/06 09:24:14.015 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=116] [elementID=2] [startKey=7480000000000000685f69ffff000000000004] [endKey=7480000000000000685f69ffff000000000005] [2024/05/06 09:24:14.016 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=116] [2024/05/06 09:24:14.016 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:116, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:104, RowCount:683, ArgLen:2, start time: 2024-05-06 09:24:13.314 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573671023411200, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.021 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=116] [2024/05/06 09:24:14.021 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:14.021 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=71] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).CreatePrimaryKey\n\tpkg/ddl/ddl_api.go:7469\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:3945\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:306\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:14.021 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=77] [cur_db=test] [sql="alter table t add primary key idx_pc2 (c2)"] [user=] [2024/05/06 09:24:14.027 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:117, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.023 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:14.027 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:117, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.023 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add primary key idx_pc2 (c2)"] [2024/05/06 09:24:14.032 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:117, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.023 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.034 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=117] [conn=3] [category=ddl] [job="ID:117, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.023 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.034 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:117, Type:add primary key, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.023 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":2,\"idx_name\":{\"O\":\"PRIMARY\",\"L\":\"primary\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c2\",\"L\":\"c2\"},\"offset\":1,\"length\":-1}],\"state\":0,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":true,\"is_primary\":true,\"is_invisible\":false,\"is_global\":false,\"mv_index\":false}"] [2024/05/06 09:24:14.034 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:24:14.035 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:117, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.023 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.036 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449573671149764608, conflictStartTS=449573671149764609, conflictCommitTS=449573671150026753, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=117}, originalKey=748000fffffffffffe5f728000000000000075, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [IsBatchInsert=false] [IsPessimistic=false] [InRestrictedSQL=true] [tidb_retry_limit=10] [tidb_disable_txn_auto_retry=true] [2024/05/06 09:24:14.036 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449573671149764608, conflictStartTS=449573671149764609, conflictCommitTS=449573671150026753, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=117}, originalKey=748000fffffffffffe5f728000000000000075, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:24:14.036 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 7, tp add index"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449573671149764608, conflictStartTS=449573671149764609, conflictCommitTS=449573671150026753, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=117}, originalKey=748000fffffffffffe5f728000000000000075, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:117, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.023 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.043 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:117, Type:add primary key, State:cancelling, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.023 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.043 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=117] [conn=3] [category=ddl] [job="ID:117, Type:add primary key, State:cancelling, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.023 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.043 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 9, tp add index"] [category=ddl] [jobID=117] [conn=3] [job="ID:117, Type:add primary key, State:cancelled, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:14.023 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:24:14.043 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:117, Type:add primary key, State:cancelled, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:14.023 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.044 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=117] [conn=3] [job="ID:117, Type:add primary key, State:cancelled, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:14.023 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.047 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:117, Type:add primary key, State:cancelled, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:14.023 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.049 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=117] [2024/05/06 09:24:14.049 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:14.049 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=77] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).CreatePrimaryKey\n\tpkg/ddl/ddl_api.go:7469\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:3945\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:289\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:14.050 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=77] [cur_db=test] [sql="alter table t add primary key idx_pc2 (c2)"] [user=] [2024/05/06 09:24:14.053 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:118, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.052 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:14.053 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:118, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.052 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add primary key idx_pc2 (c2)"] [2024/05/06 09:24:14.062 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:118, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.052 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.062 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=118] [conn=3] [category=ddl] [job="ID:118, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.052 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.062 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:118, Type:add primary key, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.052 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":2,\"idx_name\":{\"O\":\"PRIMARY\",\"L\":\"primary\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c2\",\"L\":\"c2\"},\"offset\":1,\"length\":-1}],\"state\":0,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":true,\"is_primary\":true,\"is_invisible\":false,\"is_global\":false,\"mv_index\":false}"] [2024/05/06 09:24:14.062 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:24:14.063 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:118, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.052 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.065 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=77] [neededSchemaVersion=79] ["start time"=332.387µs] [gotSchemaVersion=79] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:14.066 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=118] [version=79] [2024/05/06 09:24:14.067 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=79] ["take time"=3.025208ms] [job="ID:118, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.052 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.068 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:118, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.052 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.075 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:118, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.052 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.080 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=118] [conn=3] [category=ddl] [job="ID:118, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.052 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.086 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:118, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.052 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.088 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449573671161036800, conflictStartTS=449573671161036801, conflictCommitTS=449573671162085377, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=118}, originalKey=748000fffffffffffe5f728000000000000076, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [IsBatchInsert=false] [IsPessimistic=false] [InRestrictedSQL=true] [tidb_retry_limit=10] [tidb_disable_txn_auto_retry=true] [2024/05/06 09:24:14.096 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449573671161036800, conflictStartTS=449573671161036801, conflictCommitTS=449573671162085377, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=118}, originalKey=748000fffffffffffe5f728000000000000076, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:24:14.097 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 8, tp add index"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449573671161036800, conflictStartTS=449573671161036801, conflictCommitTS=449573671162085377, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=118}, originalKey=748000fffffffffffe5f728000000000000076, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:118, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.052 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.110 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:118, Type:add primary key, State:cancelling, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.052 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.110 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=118] [conn=3] [category=ddl] [job="ID:118, Type:add primary key, State:cancelling, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.052 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.111 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 10, tp add index"] [category=ddl] [jobID=118] [conn=3] [job="ID:118, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:14.052 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.completeErr\n\tpkg/ddl/index_cop.go:319\ngithub.com/pingcap/tidb/pkg/ddl.convertAddIdxJob2RollbackJob\n\tpkg/ddl/rollingback.go:93\ngithub.com/pingcap/tidb/pkg/ddl.convertNotReorgAddIdxJob2RollbackJob\n\tpkg/ddl/rollingback.go:139\ngithub.com/pingcap/tidb/pkg/ddl.rollingbackAddIndex\n\tpkg/ddl/rollingback.go:270\ngithub.com/pingcap/tidb/pkg/ddl.convertJob2RollbackJob\n\tpkg/ddl/rollingback.go:482\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).runDDLJob\n\tpkg/ddl/ddl_worker.go:1202\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).HandleDDLJobTable\n\tpkg/ddl/ddl_worker.go:946\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).delivery2Worker.func1\n\tpkg/ddl/job_table.go:461\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:157\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [2024/05/06 09:24:14.111 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:118, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:14.052 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.112 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=118] [2024/05/06 09:24:14.113 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:118, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:14.052 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.123 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:118, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.052 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.123 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=118] [conn=3] [category=ddl] [job="ID:118, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.052 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.126 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:118, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:14.052 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.127 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=79] [neededSchemaVersion=80] ["start time"=41.278µs] [gotSchemaVersion=79] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[]"] [2024/05/06 09:24:14.131 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=79] [neededSchemaVersion=81] ["start time"=391.875µs] [gotSchemaVersion=81] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:14.132 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=118] [version=81] [2024/05/06 09:24:14.139 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=81] ["take time"=9.312399ms] [job="ID:118, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:14.052 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.141 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:118, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:14.052 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.157 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:118, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.052 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.157 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=118] [conn=3] [category=ddl] [job="ID:118, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.052 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.158 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:118, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:14.052 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.160 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=81] [neededSchemaVersion=82] ["start time"=399.884µs] [gotSchemaVersion=82] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:14.161 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=118] [version=82] [2024/05/06 09:24:14.162 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=82] ["take time"=2.052676ms] [job="ID:118, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:14.052 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.163 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:118, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:14.052 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.170 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=118] [tableID=111] [indexIDs="[2,9223090561878065154]"] [comment="add index: physical table ID(s)"] [2024/05/06 09:24:14.171 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=118] [jobType="add primary key"] [2024/05/06 09:24:14.172 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=118] [conn=3] [job="ID:118, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:14.052 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.179 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=118] [2024/05/06 09:24:14.179 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:118, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:14.052 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.184 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=118] [2024/05/06 09:24:14.184 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:14.184 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=77] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).CreatePrimaryKey\n\tpkg/ddl/ddl_api.go:7469\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:3945\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:289\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:14.185 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=82] [cur_db=test] [sql="alter table t add primary key idx_pc2 (c2)"] [user=] [2024/05/06 09:24:14.186 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=118] [elementID=1] [startKey=74800000000000006f5f698000000000000002] [endKey=74800000000000006f5f698000000000000003] [2024/05/06 09:24:14.188 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=118] [elementID=2] [startKey=74800000000000006f5f69ffff000000000002] [endKey=74800000000000006f5f69ffff000000000003] [2024/05/06 09:24:14.188 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:119, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.187 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:14.188 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:119, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.187 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add primary key idx_pc2 (c2)"] [2024/05/06 09:24:14.198 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:119, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.187 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.199 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=119] [conn=3] [category=ddl] [job="ID:119, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.187 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.199 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:119, Type:add primary key, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.187 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":3,\"idx_name\":{\"O\":\"PRIMARY\",\"L\":\"primary\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c2\",\"L\":\"c2\"},\"offset\":1,\"length\":-1}],\"state\":0,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":true,\"is_primary\":true,\"is_invisible\":false,\"is_global\":false,\"mv_index\":false}"] [2024/05/06 09:24:14.199 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:24:14.200 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:119, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.187 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.202 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=82] [neededSchemaVersion=83] ["start time"=373.257µs] [gotSchemaVersion=83] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:14.203 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=119] [version=83] [2024/05/06 09:24:14.205 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=83] ["take time"=4.081178ms] [job="ID:119, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.187 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.206 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:119, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.187 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.222 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:119, Type:add primary key, State:cancelling, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.187 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.223 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=119] [conn=3] [category=ddl] [job="ID:119, Type:add primary key, State:cancelling, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.187 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.223 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 10, tp add index"] [category=ddl] [jobID=119] [conn=3] [job="ID:119, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:14.187 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.completeErr\n\tpkg/ddl/index_cop.go:319\ngithub.com/pingcap/tidb/pkg/ddl.convertAddIdxJob2RollbackJob\n\tpkg/ddl/rollingback.go:93\ngithub.com/pingcap/tidb/pkg/ddl.convertNotReorgAddIdxJob2RollbackJob\n\tpkg/ddl/rollingback.go:139\ngithub.com/pingcap/tidb/pkg/ddl.rollingbackAddIndex\n\tpkg/ddl/rollingback.go:270\ngithub.com/pingcap/tidb/pkg/ddl.convertJob2RollbackJob\n\tpkg/ddl/rollingback.go:482\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).runDDLJob\n\tpkg/ddl/ddl_worker.go:1202\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).HandleDDLJobTable\n\tpkg/ddl/ddl_worker.go:946\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).delivery2Worker.func1\n\tpkg/ddl/job_table.go:461\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:157\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [2024/05/06 09:24:14.223 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:119, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:14.187 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.226 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=119] [2024/05/06 09:24:14.226 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:119, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:14.187 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.232 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:119, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.187 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.237 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=119] [conn=3] [category=ddl] [job="ID:119, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.187 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.238 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:119, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:14.187 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.239 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=83] [neededSchemaVersion=84] ["start time"=315.401µs] [gotSchemaVersion=84] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:14.241 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=119] [version=84] [2024/05/06 09:24:14.242 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=84] ["take time"=3.048443ms] [job="ID:119, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:14.187 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.243 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:119, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:14.187 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.253 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:119, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.187 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.253 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=119] [conn=3] [category=ddl] [job="ID:119, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.187 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.254 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:119, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:14.187 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.256 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=84] [neededSchemaVersion=85] ["start time"=329.599µs] [gotSchemaVersion=85] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:14.258 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=119] [version=85] [2024/05/06 09:24:14.258 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=85] ["take time"=2.086097ms] [job="ID:119, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:14.187 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.259 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:119, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:14.187 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.266 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=119] [tableID=111] [indexIDs="[3,9223090561878065155]"] [comment="add index: physical table ID(s)"] [2024/05/06 09:24:14.267 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=119] [jobType="add primary key"] [2024/05/06 09:24:14.268 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=119] [conn=3] [job="ID:119, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:14.187 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.272 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=119] [elementID=1] [startKey=74800000000000006f5f698000000000000003] [endKey=74800000000000006f5f698000000000000004] [2024/05/06 09:24:14.278 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=119] [elementID=2] [startKey=74800000000000006f5f69ffff000000000003] [endKey=74800000000000006f5f69ffff000000000004] [2024/05/06 09:24:14.279 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=119] [2024/05/06 09:24:14.281 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:119, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:14.187 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.290 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=119] [2024/05/06 09:24:14.292 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:14.292 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=82] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).CreatePrimaryKey\n\tpkg/ddl/ddl_api.go:7469\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:3945\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:306\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:14.293 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=85] [cur_db=test] [sql="alter table t add primary key idx_pc2 (c2)"] [user=] [2024/05/06 09:24:14.297 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:120, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:14.297 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:120, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add primary key idx_pc2 (c2)"] [2024/05/06 09:24:14.309 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:120, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.309 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=120] [conn=3] [category=ddl] [job="ID:120, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.310 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:120, Type:add primary key, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":4,\"idx_name\":{\"O\":\"PRIMARY\",\"L\":\"primary\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c2\",\"L\":\"c2\"},\"offset\":1,\"length\":-1}],\"state\":0,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":true,\"is_primary\":true,\"is_invisible\":false,\"is_global\":false,\"mv_index\":false}"] [2024/05/06 09:24:14.310 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:24:14.310 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:120, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.312 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=85] [neededSchemaVersion=86] ["start time"=334.323µs] [gotSchemaVersion=86] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:14.313 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=120] [version=86] [2024/05/06 09:24:14.314 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=86] ["take time"=2.426761ms] [job="ID:120, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.315 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:120, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.320 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:120, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.321 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=120] [conn=3] [category=ddl] [job="ID:120, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.335 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:120, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.337 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=86] [neededSchemaVersion=87] ["start time"=388.088µs] [gotSchemaVersion=87] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:14.338 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=120] [version=87] [2024/05/06 09:24:14.341 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=87] ["take time"=4.907985ms] [job="ID:120, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.342 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:120, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.349 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:120, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.351 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=120] [conn=3] [category=ddl] [job="ID:120, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.357 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:120, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.359 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449573671232864256, conflictStartTS=449573671232864257, conflictCommitTS=449573671233388544, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=120}, originalKey=748000fffffffffffe5f728000000000000078, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [IsBatchInsert=false] [IsPessimistic=false] [InRestrictedSQL=true] [tidb_retry_limit=10] [tidb_disable_txn_auto_retry=true] [2024/05/06 09:24:14.359 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449573671232864256, conflictStartTS=449573671232864257, conflictCommitTS=449573671233388544, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=120}, originalKey=748000fffffffffffe5f728000000000000078, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:24:14.359 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 7, tp add index"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449573671232864256, conflictStartTS=449573671232864257, conflictCommitTS=449573671233388544, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=120}, originalKey=748000fffffffffffe5f728000000000000078, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:120, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.366 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:120, Type:add primary key, State:cancelling, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.366 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=120] [conn=3] [category=ddl] [job="ID:120, Type:add primary key, State:cancelling, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.367 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 8, tp add index"] [category=ddl] [jobID=120] [conn=3] [job="ID:120, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:14.296 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.completeErr\n\tpkg/ddl/index_cop.go:319\ngithub.com/pingcap/tidb/pkg/ddl.convertAddIdxJob2RollbackJob\n\tpkg/ddl/rollingback.go:93\ngithub.com/pingcap/tidb/pkg/ddl.convertNotReorgAddIdxJob2RollbackJob\n\tpkg/ddl/rollingback.go:139\ngithub.com/pingcap/tidb/pkg/ddl.rollingbackAddIndex\n\tpkg/ddl/rollingback.go:270\ngithub.com/pingcap/tidb/pkg/ddl.convertJob2RollbackJob\n\tpkg/ddl/rollingback.go:482\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).runDDLJob\n\tpkg/ddl/ddl_worker.go:1202\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).HandleDDLJobTable\n\tpkg/ddl/ddl_worker.go:946\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).delivery2Worker.func1\n\tpkg/ddl/job_table.go:461\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:157\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [2024/05/06 09:24:14.367 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:120, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:14.296 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.369 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=87] [neededSchemaVersion=89] ["start time"=373.961µs] [gotSchemaVersion=89] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:14.371 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=120] [version=89] [2024/05/06 09:24:14.373 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=89] ["take time"=4.373462ms] [job="ID:120, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:14.296 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.374 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:120, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:14.296 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.382 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:120, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.296 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.382 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=120] [conn=3] [category=ddl] [job="ID:120, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.296 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.384 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:120, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:14.296 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.385 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=89] [neededSchemaVersion=90] ["start time"=326.341µs] [gotSchemaVersion=90] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:14.387 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=120] [version=90] [2024/05/06 09:24:14.388 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=90] ["take time"=2.849416ms] [job="ID:120, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:14.296 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.389 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:120, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:14.296 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.399 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:120, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.296 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.399 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=120] [conn=3] [category=ddl] [job="ID:120, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.296 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.400 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:120, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:14.296 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.403 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=90] [neededSchemaVersion=91] ["start time"=299.031µs] [gotSchemaVersion=91] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:14.404 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=120] [version=91] [2024/05/06 09:24:14.405 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=91] ["take time"=2.947767ms] [job="ID:120, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:14.296 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.406 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:120, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:14.296 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.416 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=120] [tableID=111] [indexIDs="[4,9223090561878065156]"] [comment="add index: physical table ID(s)"] [2024/05/06 09:24:14.418 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=120] [jobType="add primary key"] [2024/05/06 09:24:14.418 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=120] [conn=3] [job="ID:120, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:14.296 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.421 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=120] [elementID=1] [startKey=74800000000000006f5f698000000000000004] [endKey=74800000000000006f5f698000000000000005] [2024/05/06 09:24:14.427 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=120] [elementID=2] [startKey=74800000000000006f5f69ffff000000000004] [endKey=74800000000000006f5f69ffff000000000005] [2024/05/06 09:24:14.431 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=120] [2024/05/06 09:24:14.432 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:120, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:14.296 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.438 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=120] [2024/05/06 09:24:14.439 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:14.440 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=85] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).CreatePrimaryKey\n\tpkg/ddl/ddl_api.go:7469\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:3945\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:289\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:14.440 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=91] [cur_db=test] [sql="alter table t add primary key idx_pc2 (c2)"] [user=] [2024/05/06 09:24:14.442 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:121, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.441 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:14.442 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:121, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.441 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add primary key idx_pc2 (c2)"] [2024/05/06 09:24:14.450 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:121, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.441 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.455 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=121] [conn=3] [category=ddl] [job="ID:121, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.441 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.455 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:121, Type:add primary key, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.441 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":5,\"idx_name\":{\"O\":\"PRIMARY\",\"L\":\"primary\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c2\",\"L\":\"c2\"},\"offset\":1,\"length\":-1}],\"state\":0,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":true,\"is_primary\":true,\"is_invisible\":false,\"is_global\":false,\"mv_index\":false}"] [2024/05/06 09:24:14.455 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:24:14.456 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:121, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.441 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.458 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=91] [neededSchemaVersion=92] ["start time"=307.773µs] [gotSchemaVersion=92] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:14.460 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=121] [version=92] [2024/05/06 09:24:14.462 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=92] ["take time"=4.167336ms] [job="ID:121, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.441 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.463 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:121, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.441 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.471 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:121, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.441 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.471 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=121] [conn=3] [category=ddl] [job="ID:121, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.441 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.480 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:121, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.441 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.483 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=92] [neededSchemaVersion=93] ["start time"=340.544µs] [gotSchemaVersion=93] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:14.484 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=121] [version=93] [2024/05/06 09:24:14.484 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=93] ["take time"=2.122536ms] [job="ID:121, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.441 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.485 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:121, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.441 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.494 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:121, Type:add primary key, State:cancelling, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.441 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.494 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=121] [conn=3] [category=ddl] [job="ID:121, Type:add primary key, State:cancelling, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.441 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.495 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 7, tp add index"] [category=ddl] [jobID=121] [conn=3] [job="ID:121, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:14.441 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.completeErr\n\tpkg/ddl/index_cop.go:319\ngithub.com/pingcap/tidb/pkg/ddl.convertAddIdxJob2RollbackJob\n\tpkg/ddl/rollingback.go:93\ngithub.com/pingcap/tidb/pkg/ddl.convertNotReorgAddIdxJob2RollbackJob\n\tpkg/ddl/rollingback.go:139\ngithub.com/pingcap/tidb/pkg/ddl.rollingbackAddIndex\n\tpkg/ddl/rollingback.go:270\ngithub.com/pingcap/tidb/pkg/ddl.convertJob2RollbackJob\n\tpkg/ddl/rollingback.go:482\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).runDDLJob\n\tpkg/ddl/ddl_worker.go:1202\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).HandleDDLJobTable\n\tpkg/ddl/ddl_worker.go:946\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).delivery2Worker.func1\n\tpkg/ddl/job_table.go:461\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:157\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [2024/05/06 09:24:14.495 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:121, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:14.441 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.497 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=93] [neededSchemaVersion=94] ["start time"=375.087µs] [gotSchemaVersion=94] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:14.499 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=121] [version=94] [2024/05/06 09:24:14.502 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=94] ["take time"=4.882748ms] [job="ID:121, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:14.441 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.503 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:121, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:14.441 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.510 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:121, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.441 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.510 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=121] [conn=3] [category=ddl] [job="ID:121, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.441 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.511 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:121, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:14.441 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.513 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=94] [neededSchemaVersion=95] ["start time"=293.28µs] [gotSchemaVersion=95] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:14.514 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=121] [version=95] [2024/05/06 09:24:14.515 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=95] ["take time"=2.515034ms] [job="ID:121, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:14.441 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.516 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:121, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:14.441 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.523 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:121, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.441 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.523 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=121] [conn=3] [category=ddl] [job="ID:121, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.441 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.524 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:121, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:14.441 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.526 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=95] [neededSchemaVersion=96] ["start time"=421.482µs] [gotSchemaVersion=96] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:14.528 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=121] [version=96] [2024/05/06 09:24:14.529 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=96] ["take time"=3.460643ms] [job="ID:121, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:14.441 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.530 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:121, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:14.441 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.539 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=121] [tableID=111] [indexIDs="[5,9223090561878065157]"] [comment="add index: physical table ID(s)"] [2024/05/06 09:24:14.544 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=121] [jobType="add primary key"] [2024/05/06 09:24:14.544 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=121] [conn=3] [job="ID:121, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:14.441 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.549 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=121] [elementID=1] [startKey=74800000000000006f5f698000000000000005] [endKey=74800000000000006f5f698000000000000006] [2024/05/06 09:24:14.551 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=121] [elementID=2] [startKey=74800000000000006f5f69ffff000000000005] [endKey=74800000000000006f5f69ffff000000000006] [2024/05/06 09:24:14.552 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=121] [2024/05/06 09:24:14.553 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:121, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:14.441 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.555 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=121] [2024/05/06 09:24:14.555 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:14.556 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=91] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).CreatePrimaryKey\n\tpkg/ddl/ddl_api.go:7469\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:3945\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:306\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:14.556 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=96] [cur_db=test] [sql="alter table t add primary key idx_pc2 (c2)"] [user=] [2024/05/06 09:24:14.559 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:122, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.557 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:14.559 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:122, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.557 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add primary key idx_pc2 (c2)"] [2024/05/06 09:24:14.586 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:122, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.557 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.586 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=122] [conn=3] [category=ddl] [job="ID:122, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.557 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.587 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:122, Type:add primary key, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.557 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":6,\"idx_name\":{\"O\":\"PRIMARY\",\"L\":\"primary\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c2\",\"L\":\"c2\"},\"offset\":1,\"length\":-1}],\"state\":0,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":true,\"is_primary\":true,\"is_invisible\":false,\"is_global\":false,\"mv_index\":false}"] [2024/05/06 09:24:14.587 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:24:14.588 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:122, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.557 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.592 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=96] [neededSchemaVersion=97] ["start time"=365.85µs] [gotSchemaVersion=97] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:14.594 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=122] [version=97] [2024/05/06 09:24:14.596 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=97] ["take time"=4.671281ms] [job="ID:122, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.557 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.597 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:122, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.557 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.604 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:122, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.557 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.604 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=122] [conn=3] [category=ddl] [job="ID:122, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.557 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.610 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:122, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.557 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.612 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=97] [neededSchemaVersion=98] ["start time"=368.258µs] [gotSchemaVersion=98] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:14.614 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=122] [version=98] [2024/05/06 09:24:14.614 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=98] ["take time"=2.109851ms] [job="ID:122, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.557 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.618 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:122, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.557 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.624 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:122, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.557 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.624 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=122] [conn=3] [category=ddl] [job="ID:122, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.557 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.630 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:122, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.557 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.632 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=98] [neededSchemaVersion=99] ["start time"=356.469µs] [gotSchemaVersion=99] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:14.634 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=122] [version=99] [2024/05/06 09:24:14.634 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=99] ["take time"=2.049064ms] [job="ID:122, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.557 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.634 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:122, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.557 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.640 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:122, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.557 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.643 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=122] [conn=3] [category=ddl] [job="ID:122, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.557 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.643 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=122] [table=t] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:14.644 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=122] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:14.646 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:122, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.557 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671309934592, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.647 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449573671309148160, conflictStartTS=449573671309410304, conflictCommitTS=449573671309672448, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=122}, originalKey=748000fffffffffffe5f72800000000000007a, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [IsBatchInsert=false] [IsPessimistic=false] [InRestrictedSQL=true] [tidb_retry_limit=10] [tidb_disable_txn_auto_retry=true] [2024/05/06 09:24:14.647 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449573671309148160, conflictStartTS=449573671309410304, conflictCommitTS=449573671309672448, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=122}, originalKey=748000fffffffffffe5f72800000000000007a, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:24:14.647 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 9, tp add index"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449573671309148160, conflictStartTS=449573671309410304, conflictCommitTS=449573671309672448, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=122}, originalKey=748000fffffffffffe5f72800000000000007a, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:122, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.557 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671309934592, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.653 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:122, Type:add primary key, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.557 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.653 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=122] [conn=3] [category=ddl] [job="ID:122, Type:add primary key, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.557 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.654 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 7, tp add index"] [category=ddl] [jobID=122] [conn=3] [job="ID:122, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:14.557 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.completeErr\n\tpkg/ddl/index_cop.go:319\ngithub.com/pingcap/tidb/pkg/ddl.convertAddIdxJob2RollbackJob\n\tpkg/ddl/rollingback.go:93\ngithub.com/pingcap/tidb/pkg/ddl.convertNotReorgAddIdxJob2RollbackJob\n\tpkg/ddl/rollingback.go:139\ngithub.com/pingcap/tidb/pkg/ddl.rollingbackAddIndex\n\tpkg/ddl/rollingback.go:270\ngithub.com/pingcap/tidb/pkg/ddl.convertJob2RollbackJob\n\tpkg/ddl/rollingback.go:482\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).runDDLJob\n\tpkg/ddl/ddl_worker.go:1202\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).HandleDDLJobTable\n\tpkg/ddl/ddl_worker.go:946\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).delivery2Worker.func1\n\tpkg/ddl/job_table.go:461\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:157\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [2024/05/06 09:24:14.654 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:122, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:14.557 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.656 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=99] [neededSchemaVersion=100] ["start time"=339.201µs] [gotSchemaVersion=100] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:14.657 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=122] [version=100] [2024/05/06 09:24:14.658 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=100] ["take time"=2.920389ms] [job="ID:122, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:14.557 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.659 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:122, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:14.557 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.666 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:122, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.557 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.666 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=122] [conn=3] [category=ddl] [job="ID:122, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.557 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.667 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:122, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:14.557 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.669 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=100] [neededSchemaVersion=101] ["start time"=359.175µs] [gotSchemaVersion=101] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:14.670 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=122] [version=101] [2024/05/06 09:24:14.672 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=101] ["take time"=2.967994ms] [job="ID:122, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:14.557 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.673 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:122, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:14.557 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.679 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:122, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.557 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.679 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=122] [conn=3] [category=ddl] [job="ID:122, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.557 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.680 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:122, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:14.557 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.682 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=101] [neededSchemaVersion=102] ["start time"=285.37µs] [gotSchemaVersion=102] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:14.683 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=122] [version=102] [2024/05/06 09:24:14.684 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=102] ["take time"=2.838961ms] [job="ID:122, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:14.557 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.685 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:122, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:14.557 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.694 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=122] [tableID=111] [indexIDs="[6,9223090561878065158]"] [comment="add index: physical table ID(s)"] [2024/05/06 09:24:14.695 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=122] [jobType="add primary key"] [2024/05/06 09:24:14.696 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=122] [conn=3] [job="ID:122, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:14.557 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.699 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=122] [2024/05/06 09:24:14.699 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:122, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:14.557 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.702 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=122] [elementID=1] [startKey=74800000000000006f5f698000000000000006] [endKey=74800000000000006f5f698000000000000007] [2024/05/06 09:24:14.704 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=122] [elementID=2] [startKey=74800000000000006f5f69ffff000000000006] [endKey=74800000000000006f5f69ffff000000000007] [2024/05/06 09:24:14.705 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=122] [2024/05/06 09:24:14.705 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:14.705 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=96] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).CreatePrimaryKey\n\tpkg/ddl/ddl_api.go:7469\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:3945\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:289\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:14.705 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=102] [cur_db=test] [sql="alter table t add primary key idx_pc2 (c2)"] [user=] [2024/05/06 09:24:14.708 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:123, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:14.708 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:123, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add primary key idx_pc2 (c2)"] [2024/05/06 09:24:14.716 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:123, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.716 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=123] [conn=3] [category=ddl] [job="ID:123, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.717 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:123, Type:add primary key, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":7,\"idx_name\":{\"O\":\"PRIMARY\",\"L\":\"primary\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c2\",\"L\":\"c2\"},\"offset\":1,\"length\":-1}],\"state\":0,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":true,\"is_primary\":true,\"is_invisible\":false,\"is_global\":false,\"mv_index\":false}"] [2024/05/06 09:24:14.717 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:24:14.717 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:123, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.719 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=102] [neededSchemaVersion=103] ["start time"=346.634µs] [gotSchemaVersion=103] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:14.720 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=123] [version=103] [2024/05/06 09:24:14.721 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=103] ["take time"=2.871802ms] [job="ID:123, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.722 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:123, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.729 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:123, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.729 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=123] [conn=3] [category=ddl] [job="ID:123, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.735 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:123, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.737 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=103] [neededSchemaVersion=104] ["start time"=351.472µs] [gotSchemaVersion=104] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:14.738 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=123] [version=104] [2024/05/06 09:24:14.739 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=104] ["take time"=2.426385ms] [job="ID:123, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.740 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:123, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.747 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:123, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.747 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=123] [conn=3] [category=ddl] [job="ID:123, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.754 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:123, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.756 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=104] [neededSchemaVersion=105] ["start time"=370.247µs] [gotSchemaVersion=105] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:14.757 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=123] [version=105] [2024/05/06 09:24:14.758 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=105] ["take time"=2.88686ms] [job="ID:123, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.759 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:123, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.766 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:123, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.766 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=123] [conn=3] [category=ddl] [job="ID:123, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.766 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=123] [table=t] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:14.767 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=123] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:14.769 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:123, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671342178305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.770 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=123] [2024/05/06 09:24:14.770 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:123, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671342178305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.777 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:123, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671342178305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.777 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=123] [conn=3] [category=ddl] [job="ID:123, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671342178305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.778 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=123] [table=t] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:14.796 +00:00] [INFO] [index.go:1931] ["start to add table index"] [category=ddl] [job="ID:123, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671342178305, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:7,StartKey:74800000000000006f5f728000000000000001,EndKey:74800000000000006f5f72800000000000080100,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:24:14.798 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=111] ["start key"=74800000000000006f5f728000000000000001] ["end key"=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:14.798 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="add index"] [workerCnt=1] [regionCnt=1] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:14.798 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=111] ["end key"=74800000000000006f5f72800000000000080100] ["current end key"=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:14.807 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:14.808 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:123, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671342178305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.810 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=123] [2024/05/06 09:24:14.810 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:123, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671342178305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.872 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:123, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671342178305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.872 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=123] [conn=3] [category=ddl] [job="ID:123, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671342178305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.873 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=123] [table=t] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:14.887 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:14.887 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:123, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671342178305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.888 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=123] [2024/05/06 09:24:14.888 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:123, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671342178305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.894 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:123, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671342178305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.894 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=123] [conn=3] [category=ddl] [job="ID:123, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671342178305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:14.895 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=123] [table=t] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:14.974 +00:00] [INFO] [backfilling.go:330] ["backfill worker finish task"] [category=ddl] [worker="backfill-worker 0, tp add index"] [task="taskID: 1, physicalTableID: 111, range: [74800000000000006f5f728000000000000001, 74800000000000006f5f72800000000000080100), jobID: 123"] ["added count"=2049] ["scan count"=2049] ["next key"=74800000000000006f5f72800000000000080100] ["take time"=73.987397ms] [2024/05/06 09:24:14.975 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=123] [2024/05/06 09:24:14.975 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:7,TypeKey:_idx_] ["total added count"=2049] ["start key"=74800000000000006f5f728000000000000001] [2024/05/06 09:24:15.019 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=160] [2024/05/06 09:24:15.019 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:123, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:160, ArgLen:7, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671342178305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.020 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=123] [2024/05/06 09:24:15.021 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:123, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:160, ArgLen:7, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671342178305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.030 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:123, Type:add primary key, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:160, ArgLen:0, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671342178305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.030 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=123] [conn=3] [category=ddl] [job="ID:123, Type:add primary key, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:160, ArgLen:0, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671342178305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.030 +00:00] [INFO] [rollingback.go:265] ["run the cancelling DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=123] [conn=3] [job="ID:123, Type:add primary key, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:160, ArgLen:0, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671342178305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.030 +00:00] [INFO] [ddl.go:615] ["notify reorg worker the job's state"] [category=ddl] ["Job ID"=123] ["Job State"=cancelling] ["Schema State"="write reorganization"] [2024/05/06 09:24:15.031 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=123] [table=t] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:15.033 +00:00] [WARN] [index.go:1058] ["run add index job failed, convert job to rollback"] [category=ddl] [job="ID:123, Type:add primary key, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:160, ArgLen:7, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671342178305, LocalMode: false, UniqueWarnings:0"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:24:15.035 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 8, tp add index"] [category=ddl] [jobID=123] [conn=3] [job="ID:123, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:160, ArgLen:3, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573671342178305, LocalMode: false, UniqueWarnings:0"] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.completeErr\n\tpkg/ddl/index_cop.go:319\ngithub.com/pingcap/tidb/pkg/ddl.convertAddIdxJob2RollbackJob\n\tpkg/ddl/rollingback.go:93\ngithub.com/pingcap/tidb/pkg/ddl.runReorgJobAndHandleErr\n\tpkg/ddl/index.go:1059\ngithub.com/pingcap/tidb/pkg/ddl.doReorgWorkForCreateIndex\n\tpkg/ddl/index.go:869\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).onCreateIndex\n\tpkg/ddl/index.go:731\ngithub.com/pingcap/tidb/pkg/ddl.rollingbackAddIndex\n\tpkg/ddl/rollingback.go:267\ngithub.com/pingcap/tidb/pkg/ddl.convertJob2RollbackJob\n\tpkg/ddl/rollingback.go:482\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).runDDLJob\n\tpkg/ddl/ddl_worker.go:1202\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).HandleDDLJobTable\n\tpkg/ddl/ddl_worker.go:946\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).delivery2Worker.func1\n\tpkg/ddl/job_table.go:461\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:157\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [2024/05/06 09:24:15.035 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:123, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:160, ArgLen:3, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573671342178305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.037 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=105] [neededSchemaVersion=106] ["start time"=480.215µs] [gotSchemaVersion=106] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:15.039 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=123] [version=106] [2024/05/06 09:24:15.041 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=106] ["take time"=4.366076ms] [job="ID:123, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:160, ArgLen:3, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573671342178305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.044 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:123, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:160, ArgLen:3, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573671342178305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.050 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:123, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:160, ArgLen:0, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573671342178305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.050 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=123] [conn=3] [category=ddl] [job="ID:123, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:160, ArgLen:0, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573671342178305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.051 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:123, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:160, ArgLen:2, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573671342178305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.053 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=106] [neededSchemaVersion=107] ["start time"=358.429µs] [gotSchemaVersion=107] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:15.054 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=123] [version=107] [2024/05/06 09:24:15.056 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=107] ["take time"=3.030865ms] [job="ID:123, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:160, ArgLen:2, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573671342178305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.057 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:123, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:160, ArgLen:2, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573671342178305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.063 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:123, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:160, ArgLen:0, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573671342178305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.063 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=123] [conn=3] [category=ddl] [job="ID:123, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:160, ArgLen:0, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573671342178305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.064 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:123, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:160, ArgLen:2, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573671342178305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.066 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=107] [neededSchemaVersion=108] ["start time"=377.705µs] [gotSchemaVersion=108] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:15.067 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=123] [version=108] [2024/05/06 09:24:15.069 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=108] ["take time"=2.90453ms] [job="ID:123, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:160, ArgLen:2, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573671342178305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.069 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:123, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:160, ArgLen:2, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573671342178305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.078 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=123] [tableID=111] [indexIDs="[7,9223090561878065159]"] [comment="add index: physical table ID(s)"] [2024/05/06 09:24:15.080 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=123] [jobType="add primary key"] [2024/05/06 09:24:15.080 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=123] [conn=3] [job="ID:123, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:160, ArgLen:2, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573671342178305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.085 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=123] [2024/05/06 09:24:15.088 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=123] [2024/05/06 09:24:15.088 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:15.088 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=102] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).CreatePrimaryKey\n\tpkg/ddl/ddl_api.go:7469\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:3945\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:306\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:15.089 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=108] [cur_db=test] [sql="alter table t add primary key idx_pc2 (c2)"] [user=] [2024/05/06 09:24:15.091 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:124, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:15.091 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:124, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add primary key idx_pc2 (c2)"] [2024/05/06 09:24:15.092 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:123, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:160, ArgLen:2, start time: 2024-05-06 09:24:14.706 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573671342178305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.102 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:124, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.102 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=124] [conn=3] [category=ddl] [job="ID:124, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.103 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":8,\"idx_name\":{\"O\":\"PRIMARY\",\"L\":\"primary\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c2\",\"L\":\"c2\"},\"offset\":1,\"length\":-1}],\"state\":0,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":true,\"is_primary\":true,\"is_invisible\":false,\"is_global\":false,\"mv_index\":false}"] [2024/05/06 09:24:15.103 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:24:15.103 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.106 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=108] [neededSchemaVersion=109] ["start time"=494.955µs] [gotSchemaVersion=109] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:15.107 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=124] [version=109] [2024/05/06 09:24:15.109 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=109] ["take time"=4.367619ms] [job="ID:124, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.113 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.114 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=123] [elementID=1] [startKey=74800000000000006f5f698000000000000007] [endKey=74800000000000006f5f698000000000000008] [2024/05/06 09:24:15.115 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=123] [elementID=2] [startKey=74800000000000006f5f69ffff000000000007] [endKey=74800000000000006f5f69ffff000000000008] [2024/05/06 09:24:15.120 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.131 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=124] [conn=3] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.137 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.139 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=109] [neededSchemaVersion=110] ["start time"=960.442µs] [gotSchemaVersion=110] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:15.141 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=124] [version=110] [2024/05/06 09:24:15.143 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=110] ["take time"=4.669658ms] [job="ID:124, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.144 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.157 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.157 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=124] [conn=3] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.163 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.165 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=110] [neededSchemaVersion=111] ["start time"=328.853µs] [gotSchemaVersion=111] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:15.166 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=124] [version=111] [2024/05/06 09:24:15.168 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=111] ["take time"=3.187472ms] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.169 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.178 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.179 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=124] [conn=3] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.179 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=124] [table=t] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:15.180 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=124] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:15.185 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671450443776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.186 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=124] [2024/05/06 09:24:15.187 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671450443776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.193 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671450443776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.193 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=124] [conn=3] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671450443776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.194 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=124] [table=t] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:15.195 +00:00] [INFO] [index.go:1931] ["start to add table index"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671450443776, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:8,StartKey:74800000000000006f5f728000000000000001,EndKey:74800000000000006f5f72800000000000080100,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:24:15.196 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=111] ["start key"=74800000000000006f5f728000000000000001] ["end key"=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:15.196 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="add index"] [workerCnt=1] [regionCnt=1] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:15.197 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=111] ["end key"=74800000000000006f5f72800000000000080100] ["current end key"=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:15.210 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:15.210 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671450443776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.211 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=124] [2024/05/06 09:24:15.217 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671450443776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.233 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671450443776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.233 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=124] [conn=3] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671450443776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.233 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=124] [table=t] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:15.246 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:15.246 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671450443776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.247 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=124] [2024/05/06 09:24:15.247 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671450443776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.254 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671450443776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.254 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=124] [conn=3] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671450443776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.254 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=124] [table=t] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:15.267 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:15.267 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671450443776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.268 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=124] [2024/05/06 09:24:15.268 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671450443776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.277 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671450443776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.285 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=124] [conn=3] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671450443776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.286 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=124] [table=t] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:15.303 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:15.303 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671450443776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.303 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=124] [2024/05/06 09:24:15.304 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671450443776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.314 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671450443776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.314 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=124] [conn=3] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671450443776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.314 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=124] [table=t] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:15.423 +00:00] [INFO] [backfilling.go:330] ["backfill worker finish task"] [category=ddl] [worker="backfill-worker 0, tp add index"] [task="taskID: 1, physicalTableID: 111, range: [74800000000000006f5f728000000000000001, 74800000000000006f5f72800000000000080100), jobID: 124"] ["added count"=2049] ["scan count"=2049] ["next key"=74800000000000006f5f72800000000000080100] ["take time"=107.618076ms] [2024/05/06 09:24:15.423 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=124] [2024/05/06 09:24:15.423 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:8,TypeKey:_idx_] ["total added count"=2049] ["start key"=74800000000000006f5f728000000000000001] [2024/05/06 09:24:15.436 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=448] [2024/05/06 09:24:15.436 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:448, ArgLen:7, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671450443776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.437 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=124] [2024/05/06 09:24:15.438 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:448, ArgLen:7, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671450443776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.447 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:448, ArgLen:0, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671450443776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.447 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=124] [conn=3] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:448, ArgLen:0, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671450443776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.447 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=124] [table=t] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:15.449 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:24:15.508 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671450443776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.515 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=111] [neededSchemaVersion=112] ["start time"=385.892µs] [gotSchemaVersion=112] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:15.516 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=124] [version=112] [2024/05/06 09:24:15.518 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=112] ["take time"=3.001101ms] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671450443776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.519 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671450443776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.526 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671450443776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.526 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=124] [conn=3] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671450443776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.526 +00:00] [INFO] [index.go:880] ["index backfill state ready to merge"] [category=ddl] ["job ID"=124] [table=t] [index=PRIMARY] [2024/05/06 09:24:15.527 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.529 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=112] [neededSchemaVersion=113] ["start time"=346.382µs] [gotSchemaVersion=113] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:15.530 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=124] [version=113] [2024/05/06 09:24:15.531 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=113] ["take time"=2.319331ms] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.532 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.560 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.560 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=124] [conn=3] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.561 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=124] [physicalTableID=111] [startKey=74800000000000006f5f69ffff000000000008] [endKey=74800000000000006f5f69ffff000000000008ff] [2024/05/06 09:24:15.563 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671550582784, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.564 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=124] [2024/05/06 09:24:15.565 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671550582784, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.572 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671550582784, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.572 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=124] [conn=3] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671550582784, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.574 +00:00] [INFO] [index.go:1928] ["start to merge temp index"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671550582784, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:8,StartKey:74800000000000006f5f69ffff000000000008,EndKey:74800000000000006f5f69ffff000000000008ff,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:24:15.575 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=111] ["start key"=74800000000000006f5f69ffff000000000008] ["end key"=74800000000000006f5f69ffff000000000008ff] [2024/05/06 09:24:15.577 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="merge temporary index"] [workerCnt=1] [regionCnt=1] [startKey=74800000000000006f5f69ffff000000000008] [endKey=74800000000000006f5f69ffff000000000008ff] [2024/05/06 09:24:15.578 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=111] ["end key"=74800000000000006f5f69ffff000000000008ff] ["current end key"=74800000000000006f5f69ffff00000000000800] [2024/05/06 09:24:15.627 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=2049] [2024/05/06 09:24:15.628 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671550582784, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.628 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=124] [2024/05/06 09:24:15.629 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671550582784, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.639 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671550582784, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.639 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=124] [conn=3] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671550582784, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.682 +00:00] [INFO] [backfilling.go:330] ["backfill worker finish task"] [category=ddl] [worker="backfill-worker 0, tp merge temporary index"] [task="taskID: 1, physicalTableID: 111, range: [74800000000000006f5f69ffff000000000008, 74800000000000006f5f69ffff00000000000800), jobID: 124"] ["added count"=0] ["scan count"=0] ["next key"=74800000000000006f5f69ffff0000000000080000] ["take time"=165.054µs] [2024/05/06 09:24:15.682 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp merge temporary index"] [jobID=124] [2024/05/06 09:24:15.682 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:8,TypeKey:_idx_] ["total added count"=2049] ["start key"=74800000000000006f5f69ffff000000000008] [2024/05/06 09:24:15.701 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=2049] [2024/05/06 09:24:15.701 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671550582784, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.702 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=124] [2024/05/06 09:24:15.703 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671550582784, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.709 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671550582784, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.709 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=124] [conn=3] [category=ddl] [job="ID:124, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671550582784, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.719 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:24:15.784 +00:00] [INFO] [index.go:781] ["run add index job done"] [category=ddl] [charset=] [collation=] [2024/05/06 09:24:15.784 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:124, Type:add primary key, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671550582784, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.794 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=113] [neededSchemaVersion=114] ["start time"=473.647µs] [gotSchemaVersion=114] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:15.797 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=124] [version=114] [2024/05/06 09:24:15.797 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=114] ["take time"=2.109254ms] [job="ID:124, Type:add primary key, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671550582784, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.799 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:124, Type:add primary key, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671550582784, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.842 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=124] [tableID=111] [indexIDs="[9223090561878065160]"] [comment="add index: physical table ID(s)"] [2024/05/06 09:24:15.843 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=124] [jobType="add primary key"] [2024/05/06 09:24:15.844 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=124] [conn=3] [job="ID:124, Type:add primary key, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671550582784, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.847 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=124] [elementID=1] [startKey=74800000000000006f5f69ffff000000000008] [endKey=74800000000000006f5f69ffff000000000009] [2024/05/06 09:24:15.848 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:124, Type:add primary key, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:15.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671550582784, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.853 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=124] [2024/05/06 09:24:15.853 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:15.853 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=114] [cur_db=test] [sql="alter table t drop primary key"] [user=] [2024/05/06 09:24:15.856 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:125, Type:drop primary key, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:15.855 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:15.856 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:125, Type:drop primary key, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:15.855 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop primary key"] [2024/05/06 09:24:15.866 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:125, Type:drop primary key, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.855 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:15.869 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=125] [conn=3] [category=ddl] [job="ID:125, Type:drop primary key, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.855 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:15.870 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:125, Type:drop primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:15.855 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:15.871 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449573671630536704, conflictStartTS=449573671630798848, conflictCommitTS=449573671631060992, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=125}, originalKey=748000fffffffffffe5f72800000000000007d, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [IsBatchInsert=false] [IsPessimistic=false] [InRestrictedSQL=true] [tidb_retry_limit=10] [tidb_disable_txn_auto_retry=true] [2024/05/06 09:24:15.871 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449573671630536704, conflictStartTS=449573671630798848, conflictCommitTS=449573671631060992, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=125}, originalKey=748000fffffffffffe5f72800000000000007d, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:24:15.871 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449573671630536704, conflictStartTS=449573671630798848, conflictCommitTS=449573671631060992, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=125}, originalKey=748000fffffffffffe5f72800000000000007d, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:125, Type:drop primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:15.855 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:15.875 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:125, Type:drop primary key, State:cancelling, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.855 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:15.877 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=125] [conn=3] [category=ddl] [job="ID:125, Type:drop primary key, State:cancelling, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.855 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:15.878 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=125] [conn=3] [job="ID:125, Type:drop primary key, State:cancelled, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:15.855 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:24:15.878 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:125, Type:drop primary key, State:cancelled, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:15.855 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:15.879 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=125] [conn=3] [job="ID:125, Type:drop primary key, State:cancelled, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:15.855 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:15.882 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=125] [2024/05/06 09:24:15.882 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:15.882 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:125, Type:drop primary key, State:cancelled, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:15.855 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:15.882 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=114] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).dropIndex\n\tpkg/ddl/ddl_api.go:8049\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:3904\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:289\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:15.885 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=114] [cur_db=test] [sql="alter table t drop primary key"] [user=] [2024/05/06 09:24:15.888 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:126, Type:drop primary key, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:15.887 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:15.888 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:126, Type:drop primary key, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:15.887 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop primary key"] [2024/05/06 09:24:15.899 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:126, Type:drop primary key, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.887 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:15.899 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=126] [conn=3] [category=ddl] [job="ID:126, Type:drop primary key, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.887 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:15.904 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:126, Type:drop primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:15.887 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:15.906 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=114] [neededSchemaVersion=116] ["start time"=396.2µs] [gotSchemaVersion=116] [phyTblIDs="[111]"] [actionTypes="[33]"] [diffTypes="[\"drop primary key\"]"] [2024/05/06 09:24:15.907 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=126] [version=116] [2024/05/06 09:24:15.908 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=116] ["take time"=2.1277ms] [job="ID:126, Type:drop primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:15.887 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:15.908 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:126, Type:drop primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:15.887 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:15.914 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:126, Type:drop primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.887 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:15.916 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=126] [conn=3] [category=ddl] [job="ID:126, Type:drop primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.887 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:15.919 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:126, Type:drop primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:15.887 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:15.921 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=116] [neededSchemaVersion=117] ["start time"=434.688µs] [gotSchemaVersion=117] [phyTblIDs="[111]"] [actionTypes="[33]"] [diffTypes="[\"drop primary key\"]"] [2024/05/06 09:24:15.922 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=126] [version=117] [2024/05/06 09:24:15.923 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=117] ["take time"=3.031579ms] [job="ID:126, Type:drop primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:15.887 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:15.924 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:126, Type:drop primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:15.887 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:15.942 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:126, Type:drop primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.887 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:15.942 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=126] [conn=3] [category=ddl] [job="ID:126, Type:drop primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.887 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:15.947 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:126, Type:drop primary key, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:15.887 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:15.950 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=117] [neededSchemaVersion=118] ["start time"=369.492µs] [gotSchemaVersion=118] [phyTblIDs="[111]"] [actionTypes="[33]"] [diffTypes="[\"drop primary key\"]"] [2024/05/06 09:24:15.951 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=126] [version=118] [2024/05/06 09:24:15.951 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=118] ["take time"=2.024006ms] [job="ID:126, Type:drop primary key, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:15.887 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:15.952 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:126, Type:drop primary key, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:15.887 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:15.956 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:126, Type:drop primary key, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.887 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:15.957 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=126] [conn=3] [category=ddl] [job="ID:126, Type:drop primary key, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.887 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:15.957 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:126, Type:drop primary key, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:15.887 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:15.959 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=118] [neededSchemaVersion=119] ["start time"=327.528µs] [gotSchemaVersion=119] [phyTblIDs="[111]"] [actionTypes="[33]"] [diffTypes="[\"drop primary key\"]"] [2024/05/06 09:24:15.960 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=126] [version=119] [2024/05/06 09:24:15.961 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=119] ["take time"=2.36319ms] [job="ID:126, Type:drop primary key, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:15.887 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:15.962 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:126, Type:drop primary key, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:15.887 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:15.967 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=126] [tableID=111] [indexIDs="[8]"] [comment="drop index: table ID"] [2024/05/06 09:24:15.968 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=126] [jobType="drop primary key"] [2024/05/06 09:24:15.968 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=126] [conn=3] [job="ID:126, Type:drop primary key, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:15.887 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:15.972 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:126, Type:drop primary key, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:15.887 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:15.981 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=126] [2024/05/06 09:24:15.981 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:15.982 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=119] [cur_db=test] [sql="alter table t add primary key idx_pc2 (c2)"] [user=] [2024/05/06 09:24:15.985 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=126] [elementID=1] [startKey=74800000000000006f5f698000000000000008] [endKey=74800000000000006f5f698000000000000009] [2024/05/06 09:24:15.986 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:127, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:15.986 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:127, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add primary key idx_pc2 (c2)"] [2024/05/06 09:24:15.995 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:127, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.995 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=127] [conn=3] [category=ddl] [job="ID:127, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.995 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":9,\"idx_name\":{\"O\":\"PRIMARY\",\"L\":\"primary\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c2\",\"L\":\"c2\"},\"offset\":1,\"length\":-1}],\"state\":0,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":true,\"is_primary\":true,\"is_invisible\":false,\"is_global\":false,\"mv_index\":false}"] [2024/05/06 09:24:15.996 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:24:15.996 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:15.998 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=119] [neededSchemaVersion=120] ["start time"=361.813µs] [gotSchemaVersion=120] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:15.999 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=127] [version=120] [2024/05/06 09:24:16.000 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=120] ["take time"=2.227562ms] [job="ID:127, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.001 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.008 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.008 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=127] [conn=3] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.009 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.011 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=120] [neededSchemaVersion=121] ["start time"=361.629µs] [gotSchemaVersion=121] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:16.013 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=127] [version=121] [2024/05/06 09:24:16.015 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=121] ["take time"=4.554778ms] [job="ID:127, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.017 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.026 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.026 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=127] [conn=3] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.027 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.029 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=121] [neededSchemaVersion=122] ["start time"=333.747µs] [gotSchemaVersion=122] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:16.030 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=127] [version=122] [2024/05/06 09:24:16.031 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=122] ["take time"=2.541666ms] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.032 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.039 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.039 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=127] [conn=3] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.040 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=127] [table=t] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:16.041 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=127] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:16.043 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671676149760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.044 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=127] [2024/05/06 09:24:16.044 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671676149760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.051 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671676149760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.051 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=127] [conn=3] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671676149760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.052 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=127] [table=t] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:16.054 +00:00] [INFO] [index.go:1931] ["start to add table index"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671676149760, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:9,StartKey:74800000000000006f5f728000000000000001,EndKey:74800000000000006f5f72800000000000080100,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:24:16.055 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=111] ["start key"=74800000000000006f5f728000000000000001] ["end key"=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:16.055 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="add index"] [workerCnt=1] [regionCnt=1] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:16.056 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=111] ["end key"=74800000000000006f5f72800000000000080100] ["current end key"=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:16.065 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:16.065 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671676149760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.066 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=127] [2024/05/06 09:24:16.066 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671676149760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.072 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671676149760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.072 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=127] [conn=3] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671676149760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.072 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=127] [table=t] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:16.085 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:16.085 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671676149760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.086 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=127] [2024/05/06 09:24:16.086 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671676149760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.093 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671676149760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.093 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=127] [conn=3] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671676149760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.093 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=127] [table=t] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:16.106 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:16.106 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671676149760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.107 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=127] [2024/05/06 09:24:16.107 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671676149760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.114 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671676149760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.114 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=127] [conn=3] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671676149760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.115 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=127] [table=t] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:16.131 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:16.131 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671676149760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.132 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=127] [2024/05/06 09:24:16.133 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671676149760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.140 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671676149760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.140 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=127] [conn=3] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671676149760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.141 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=127] [table=t] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:16.152 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:16.152 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671676149760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.153 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=127] [2024/05/06 09:24:16.154 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671676149760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.162 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671676149760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.163 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=127] [conn=3] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671676149760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.163 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=127] [table=t] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:16.257 +00:00] [INFO] [backfilling.go:330] ["backfill worker finish task"] [category=ddl] [worker="backfill-worker 0, tp add index"] [task="taskID: 1, physicalTableID: 111, range: [74800000000000006f5f728000000000000001, 74800000000000006f5f72800000000000080100), jobID: 127"] ["added count"=2049] ["scan count"=2049] ["next key"=74800000000000006f5f72800000000000080100] ["take time"=100.332972ms] [2024/05/06 09:24:16.257 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=127] [2024/05/06 09:24:16.258 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=480] [2024/05/06 09:24:16.258 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:480, ArgLen:7, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671676149760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.258 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:9,TypeKey:_idx_] ["total added count"=2049] ["start key"=74800000000000006f5f728000000000000001] [2024/05/06 09:24:16.269 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=127] [2024/05/06 09:24:16.270 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:480, ArgLen:7, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671676149760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.296 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:480, ArgLen:0, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671676149760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.296 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=127] [conn=3] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:480, ArgLen:0, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671676149760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.298 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=127] [table=t] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:16.302 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:24:16.369 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671676149760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.372 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=122] [neededSchemaVersion=123] ["start time"=396.108µs] [gotSchemaVersion=123] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:16.373 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=127] [version=123] [2024/05/06 09:24:16.373 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=123] ["take time"=2.1674ms] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671676149760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.378 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671676149760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.390 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671676149760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.390 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=127] [conn=3] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671676149760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.391 +00:00] [INFO] [index.go:880] ["index backfill state ready to merge"] [category=ddl] ["job ID"=127] [table=t] [index=PRIMARY] [2024/05/06 09:24:16.391 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.394 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=123] [neededSchemaVersion=124] ["start time"=501.666µs] [gotSchemaVersion=124] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:16.396 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=127] [version=124] [2024/05/06 09:24:16.398 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=124] ["take time"=4.460722ms] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.399 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.406 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.406 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=127] [conn=3] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.407 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=127] [physicalTableID=111] [startKey=74800000000000006f5f69ffff000000000009] [endKey=74800000000000006f5f69ffff000000000009ff] [2024/05/06 09:24:16.410 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671772356608, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.411 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=127] [2024/05/06 09:24:16.412 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671772356608, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.419 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671772356608, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.419 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=127] [conn=3] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671772356608, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.421 +00:00] [INFO] [index.go:1928] ["start to merge temp index"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671772356608, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:9,StartKey:74800000000000006f5f69ffff000000000009,EndKey:74800000000000006f5f69ffff000000000009ff,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:24:16.422 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=111] ["start key"=74800000000000006f5f69ffff000000000009] ["end key"=74800000000000006f5f69ffff000000000009ff] [2024/05/06 09:24:16.422 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="merge temporary index"] [workerCnt=1] [regionCnt=1] [startKey=74800000000000006f5f69ffff000000000009] [endKey=74800000000000006f5f69ffff000000000009ff] [2024/05/06 09:24:16.423 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=111] ["end key"=74800000000000006f5f69ffff000000000009ff] ["current end key"=74800000000000006f5f69ffff00000000000900] [2024/05/06 09:24:16.516 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=2049] [2024/05/06 09:24:16.523 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671772356608, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.524 +00:00] [INFO] [backfilling.go:330] ["backfill worker finish task"] [category=ddl] [worker="backfill-worker 0, tp merge temporary index"] [task="taskID: 1, physicalTableID: 111, range: [74800000000000006f5f69ffff000000000009, 74800000000000006f5f69ffff00000000000900), jobID: 127"] ["added count"=0] ["scan count"=0] ["next key"=74800000000000006f5f69ffff0000000000090000] ["take time"=213.007µs] [2024/05/06 09:24:16.524 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp merge temporary index"] [jobID=127] [2024/05/06 09:24:16.524 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:9,TypeKey:_idx_] ["total added count"=2049] ["start key"=74800000000000006f5f69ffff000000000009] [2024/05/06 09:24:16.527 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=127] [2024/05/06 09:24:16.530 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671772356608, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.540 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671772356608, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.540 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=127] [conn=3] [category=ddl] [job="ID:127, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671772356608, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.548 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:24:16.592 +00:00] [INFO] [index.go:781] ["run add index job done"] [category=ddl] [charset=] [collation=] [2024/05/06 09:24:16.592 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:127, Type:add primary key, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671772356608, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.594 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=124] [neededSchemaVersion=125] ["start time"=364.026µs] [gotSchemaVersion=125] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:16.596 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=127] [version=125] [2024/05/06 09:24:16.598 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=125] ["take time"=4.218357ms] [job="ID:127, Type:add primary key, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671772356608, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.599 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:127, Type:add primary key, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671772356608, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.606 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=127] [tableID=111] [indexIDs="[9223090561878065161]"] [comment="add index: physical table ID(s)"] [2024/05/06 09:24:16.607 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=127] [jobType="add primary key"] [2024/05/06 09:24:16.607 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=127] [conn=3] [job="ID:127, Type:add primary key, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671772356608, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.613 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:127, Type:add primary key, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:15.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671772356608, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.621 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=127] [elementID=1] [startKey=74800000000000006f5f69ffff000000000009] [endKey=74800000000000006f5f69ffff00000000000a] [2024/05/06 09:24:16.622 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=127] [2024/05/06 09:24:16.622 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:16.628 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=125] [cur_db=test] [sql="alter table t drop primary key"] [user=] [2024/05/06 09:24:16.632 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:128, Type:drop primary key, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:16.631 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:16.632 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:128, Type:drop primary key, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:16.631 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop primary key"] [2024/05/06 09:24:16.638 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:128, Type:drop primary key, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:16.631 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:16.638 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=128] [conn=3] [category=ddl] [job="ID:128, Type:drop primary key, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:16.631 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:16.639 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:128, Type:drop primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:16.631 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:16.641 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=125] [neededSchemaVersion=126] ["start time"=343.283µs] [gotSchemaVersion=126] [phyTblIDs="[111]"] [actionTypes="[33]"] [diffTypes="[\"drop primary key\"]"] [2024/05/06 09:24:16.642 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=128] [version=126] [2024/05/06 09:24:16.647 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=126] ["take time"=6.062679ms] [job="ID:128, Type:drop primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:16.631 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:16.648 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:128, Type:drop primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:16.631 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:16.653 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:128, Type:drop primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:16.631 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:16.654 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=128] [conn=3] [category=ddl] [job="ID:128, Type:drop primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:16.631 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:16.655 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:128, Type:drop primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:16.631 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:16.657 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=126] [neededSchemaVersion=127] ["start time"=369.283µs] [gotSchemaVersion=127] [phyTblIDs="[111]"] [actionTypes="[33]"] [diffTypes="[\"drop primary key\"]"] [2024/05/06 09:24:16.658 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=128] [version=127] [2024/05/06 09:24:16.659 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=127] ["take time"=2.878784ms] [job="ID:128, Type:drop primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:16.631 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:16.660 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:128, Type:drop primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:16.631 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:16.666 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:128, Type:drop primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:16.631 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:16.666 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=128] [conn=3] [category=ddl] [job="ID:128, Type:drop primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:16.631 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:16.667 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:128, Type:drop primary key, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:16.631 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:16.669 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=127] [neededSchemaVersion=128] ["start time"=337.103µs] [gotSchemaVersion=128] [phyTblIDs="[111]"] [actionTypes="[33]"] [diffTypes="[\"drop primary key\"]"] [2024/05/06 09:24:16.670 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=128] [version=128] [2024/05/06 09:24:16.672 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=128] ["take time"=3.208726ms] [job="ID:128, Type:drop primary key, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:16.631 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:16.680 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:128, Type:drop primary key, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:16.631 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:16.685 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:128, Type:drop primary key, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:16.631 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:16.685 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=128] [conn=3] [category=ddl] [job="ID:128, Type:drop primary key, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:16.631 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:16.686 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:128, Type:drop primary key, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:16.631 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:16.688 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=128] [neededSchemaVersion=129] ["start time"=402.712µs] [gotSchemaVersion=129] [phyTblIDs="[111]"] [actionTypes="[33]"] [diffTypes="[\"drop primary key\"]"] [2024/05/06 09:24:16.689 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=128] [version=129] [2024/05/06 09:24:16.690 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=129] ["take time"=2.04054ms] [job="ID:128, Type:drop primary key, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:16.631 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:16.690 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:128, Type:drop primary key, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:16.631 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:16.698 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=128] [tableID=111] [indexIDs="[9]"] [comment="drop index: table ID"] [2024/05/06 09:24:16.700 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=128] [jobType="drop primary key"] [2024/05/06 09:24:16.701 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=128] [conn=3] [job="ID:128, Type:drop primary key, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:16.631 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:16.707 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:128, Type:drop primary key, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:16.631 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:16.712 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=128] [2024/05/06 09:24:16.712 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:16.713 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=129] [cur_db=test] [sql="alter table t add primary key idx_pc2 (c2)"] [user=] [2024/05/06 09:24:16.723 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:129, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:16.723 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:129, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add primary key idx_pc2 (c2)"] [2024/05/06 09:24:16.734 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=128] [elementID=1] [startKey=74800000000000006f5f698000000000000009] [endKey=74800000000000006f5f69800000000000000a] [2024/05/06 09:24:16.785 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:129, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.785 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=129] [conn=3] [category=ddl] [job="ID:129, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.786 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":10,\"idx_name\":{\"O\":\"PRIMARY\",\"L\":\"primary\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c2\",\"L\":\"c2\"},\"offset\":1,\"length\":-1}],\"state\":0,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":true,\"is_primary\":true,\"is_invisible\":false,\"is_global\":false,\"mv_index\":false}"] [2024/05/06 09:24:16.786 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:24:16.786 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.789 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=129] [neededSchemaVersion=130] ["start time"=385.645µs] [gotSchemaVersion=130] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:16.790 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=129] [version=130] [2024/05/06 09:24:16.793 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=130] ["take time"=4.993103ms] [job="ID:129, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.796 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.804 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.805 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=129] [conn=3] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.805 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.808 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=130] [neededSchemaVersion=131] ["start time"=382.756µs] [gotSchemaVersion=131] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:16.809 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=129] [version=131] [2024/05/06 09:24:16.809 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=131] ["take time"=2.127112ms] [job="ID:129, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.810 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.818 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.819 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=129] [conn=3] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.820 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.822 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=131] [neededSchemaVersion=132] ["start time"=379.902µs] [gotSchemaVersion=132] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:16.823 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=129] [version=132] [2024/05/06 09:24:16.823 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=132] ["take time"=2.06376ms] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.824 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.833 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.833 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=129] [conn=3] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.833 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=129] [table=t] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:16.835 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=129] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:16.837 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671884029953, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.839 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=129] [2024/05/06 09:24:16.839 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671884029953, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.848 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671884029953, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.848 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=129] [conn=3] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671884029953, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.848 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=129] [table=t] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:16.850 +00:00] [INFO] [index.go:1931] ["start to add table index"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671884029953, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:10,StartKey:74800000000000006f5f728000000000000001,EndKey:74800000000000006f5f72800000000000080100,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:24:16.851 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=111] ["start key"=74800000000000006f5f728000000000000001] ["end key"=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:16.852 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="add index"] [workerCnt=1] [regionCnt=1] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:16.852 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=111] ["end key"=74800000000000006f5f72800000000000080100] ["current end key"=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:16.861 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:16.861 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671884029953, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.862 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=129] [2024/05/06 09:24:16.862 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671884029953, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.869 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671884029953, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.869 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=129] [conn=3] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671884029953, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.870 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=129] [table=t] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:16.882 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:16.882 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671884029953, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.883 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=129] [2024/05/06 09:24:16.884 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671884029953, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.897 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671884029953, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.898 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=129] [conn=3] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671884029953, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.898 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=129] [table=t] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:16.910 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:16.910 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671884029953, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.911 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=129] [2024/05/06 09:24:16.912 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671884029953, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.919 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671884029953, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.919 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=129] [conn=3] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671884029953, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.920 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=129] [table=t] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:16.933 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:16.933 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671884029953, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.933 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=129] [2024/05/06 09:24:16.934 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671884029953, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.943 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671884029953, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.943 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=129] [conn=3] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671884029953, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:16.944 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=129] [table=t] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:17.034 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=192] [2024/05/06 09:24:17.034 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:192, ArgLen:7, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671884029953, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.035 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=129] [2024/05/06 09:24:17.036 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:192, ArgLen:7, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671884029953, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.043 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:192, ArgLen:0, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671884029953, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.043 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=129] [conn=3] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:192, ArgLen:0, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671884029953, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.043 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=129] [table=t] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:17.058 +00:00] [INFO] [backfilling.go:330] ["backfill worker finish task"] [category=ddl] [worker="backfill-worker 0, tp add index"] [task="taskID: 1, physicalTableID: 111, range: [74800000000000006f5f728000000000000001, 74800000000000006f5f72800000000000080100), jobID: 129"] ["added count"=2049] ["scan count"=2049] ["next key"=74800000000000006f5f72800000000000080100] ["take time"=106.039101ms] [2024/05/06 09:24:17.058 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=129] [2024/05/06 09:24:17.058 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:10,TypeKey:_idx_] ["total added count"=2049] ["start key"=74800000000000006f5f728000000000000001] [2024/05/06 09:24:17.114 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=1984] [2024/05/06 09:24:17.114 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:1984, ArgLen:7, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671884029953, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.115 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=129] [2024/05/06 09:24:17.116 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:1984, ArgLen:7, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671884029953, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.122 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:1984, ArgLen:0, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671884029953, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.122 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=129] [conn=3] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:1984, ArgLen:0, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671884029953, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.122 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=129] [table=t] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:17.124 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:24:17.175 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671884029953, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.178 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=132] [neededSchemaVersion=133] ["start time"=508.077µs] [gotSchemaVersion=133] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:17.179 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=129] [version=133] [2024/05/06 09:24:17.179 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=133] ["take time"=2.447715ms] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671884029953, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.183 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671884029953, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.192 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671884029953, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.192 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=129] [conn=3] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671884029953, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.192 +00:00] [INFO] [index.go:880] ["index backfill state ready to merge"] [category=ddl] ["job ID"=129] [table=t] [index=PRIMARY] [2024/05/06 09:24:17.193 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.195 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=133] [neededSchemaVersion=134] ["start time"=373.963µs] [gotSchemaVersion=134] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:17.197 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=129] [version=134] [2024/05/06 09:24:17.199 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=134] ["take time"=4.202752ms] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.200 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.208 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.208 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=129] [conn=3] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.209 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=129] [physicalTableID=111] [startKey=74800000000000006f5f69ffff00000000000a] [endKey=74800000000000006f5f69ffff00000000000aff] [2024/05/06 09:24:17.211 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671982596096, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.212 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=129] [2024/05/06 09:24:17.213 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671982596096, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.223 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671982596096, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.223 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=129] [conn=3] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671982596096, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.227 +00:00] [INFO] [index.go:1928] ["start to merge temp index"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671982596096, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:10,StartKey:74800000000000006f5f69ffff00000000000a,EndKey:74800000000000006f5f69ffff00000000000aff,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:24:17.230 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=111] ["start key"=74800000000000006f5f69ffff00000000000a] ["end key"=74800000000000006f5f69ffff00000000000aff] [2024/05/06 09:24:17.232 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="merge temporary index"] [workerCnt=1] [regionCnt=1] [startKey=74800000000000006f5f69ffff00000000000a] [endKey=74800000000000006f5f69ffff00000000000aff] [2024/05/06 09:24:17.232 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=111] ["end key"=74800000000000006f5f69ffff00000000000aff] ["current end key"=74800000000000006f5f69ffff00000000000a00] [2024/05/06 09:24:17.302 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=2049] [2024/05/06 09:24:17.302 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671982596096, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.303 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=129] [2024/05/06 09:24:17.304 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671982596096, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.312 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671982596096, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.313 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=129] [conn=3] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671982596096, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.333 +00:00] [INFO] [backfilling.go:330] ["backfill worker finish task"] [category=ddl] [worker="backfill-worker 0, tp merge temporary index"] [task="taskID: 1, physicalTableID: 111, range: [74800000000000006f5f69ffff00000000000a, 74800000000000006f5f69ffff00000000000a00), jobID: 129"] ["added count"=0] ["scan count"=0] ["next key"=74800000000000006f5f69ffff00000000000a0000] ["take time"=140.867µs] [2024/05/06 09:24:17.333 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp merge temporary index"] [jobID=129] [2024/05/06 09:24:17.333 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:10,TypeKey:_idx_] ["total added count"=2049] ["start key"=74800000000000006f5f69ffff00000000000a] [2024/05/06 09:24:17.380 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=2049] [2024/05/06 09:24:17.380 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671982596096, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.381 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=129] [2024/05/06 09:24:17.381 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671982596096, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.400 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671982596096, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.400 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=129] [conn=3] [category=ddl] [job="ID:129, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671982596096, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.404 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:24:17.482 +00:00] [INFO] [index.go:781] ["run add index job done"] [category=ddl] [charset=] [collation=] [2024/05/06 09:24:17.483 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:129, Type:add primary key, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671982596096, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.486 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=134] [neededSchemaVersion=135] ["start time"=474.375µs] [gotSchemaVersion=135] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:17.491 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=129] [version=135] [2024/05/06 09:24:17.493 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=135] ["take time"=7.534356ms] [job="ID:129, Type:add primary key, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671982596096, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.494 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:129, Type:add primary key, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671982596096, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.503 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=129] [tableID=111] [indexIDs="[9223090561878065162]"] [comment="add index: physical table ID(s)"] [2024/05/06 09:24:17.504 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=129] [jobType="add primary key"] [2024/05/06 09:24:17.504 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=129] [conn=3] [job="ID:129, Type:add primary key, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671982596096, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.509 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=129] [elementID=1] [startKey=74800000000000006f5f69ffff00000000000a] [endKey=74800000000000006f5f69ffff00000000000b] [2024/05/06 09:24:17.509 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:129, Type:add primary key, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:16.715 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573671982596096, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.512 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=129] [2024/05/06 09:24:17.512 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:17.513 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=135] [cur_db=test] [sql="alter table t drop primary key"] [user=] [2024/05/06 09:24:17.515 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:130, Type:drop primary key, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:17.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:17.515 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:130, Type:drop primary key, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:17.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop primary key"] [2024/05/06 09:24:17.524 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:130, Type:drop primary key, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:17.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:17.524 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=130] [conn=3] [category=ddl] [job="ID:130, Type:drop primary key, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:17.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:17.526 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:130, Type:drop primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:17.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:17.529 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=135] [neededSchemaVersion=136] ["start time"=340.967µs] [gotSchemaVersion=136] [phyTblIDs="[111]"] [actionTypes="[33]"] [diffTypes="[\"drop primary key\"]"] [2024/05/06 09:24:17.530 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=130] [version=136] [2024/05/06 09:24:17.530 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=136] ["take time"=2.028566ms] [job="ID:130, Type:drop primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:17.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:17.531 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:130, Type:drop primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:17.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:17.546 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:130, Type:drop primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:17.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:17.546 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=130] [conn=3] [category=ddl] [job="ID:130, Type:drop primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:17.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:17.546 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:130, Type:drop primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:17.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:17.548 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=136] [neededSchemaVersion=137] ["start time"=346.307µs] [gotSchemaVersion=137] [phyTblIDs="[111]"] [actionTypes="[33]"] [diffTypes="[\"drop primary key\"]"] [2024/05/06 09:24:17.551 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=130] [version=137] [2024/05/06 09:24:17.552 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=137] ["take time"=4.244298ms] [job="ID:130, Type:drop primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:17.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:17.553 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:130, Type:drop primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:17.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:17.562 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:130, Type:drop primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:17.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:17.565 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=130] [conn=3] [category=ddl] [job="ID:130, Type:drop primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:17.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:17.566 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:130, Type:drop primary key, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:17.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:17.568 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=137] [neededSchemaVersion=138] ["start time"=370.484µs] [gotSchemaVersion=138] [phyTblIDs="[111]"] [actionTypes="[33]"] [diffTypes="[\"drop primary key\"]"] [2024/05/06 09:24:17.570 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=130] [version=138] [2024/05/06 09:24:17.573 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=138] ["take time"=4.844072ms] [job="ID:130, Type:drop primary key, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:17.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:17.574 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:130, Type:drop primary key, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:17.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:17.590 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:130, Type:drop primary key, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:17.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:17.590 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=130] [conn=3] [category=ddl] [job="ID:130, Type:drop primary key, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:17.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:17.591 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:130, Type:drop primary key, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:17.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:17.594 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=138] [neededSchemaVersion=139] ["start time"=337.606µs] [gotSchemaVersion=139] [phyTblIDs="[111]"] [actionTypes="[33]"] [diffTypes="[\"drop primary key\"]"] [2024/05/06 09:24:17.595 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=130] [version=139] [2024/05/06 09:24:17.597 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=139] ["take time"=4.41188ms] [job="ID:130, Type:drop primary key, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:17.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:17.598 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:130, Type:drop primary key, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:17.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:17.603 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=130] [tableID=111] [indexIDs="[10]"] [comment="drop index: table ID"] [2024/05/06 09:24:17.604 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=130] [jobType="drop primary key"] [2024/05/06 09:24:17.604 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=130] [conn=3] [job="ID:130, Type:drop primary key, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:17.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:17.608 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:130, Type:drop primary key, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:17.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:17.610 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=130] [2024/05/06 09:24:17.610 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:17.611 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=139] [cur_db=test] [sql="alter table t add primary key idx_pc2 (c2)"] [user=] [2024/05/06 09:24:17.614 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:131, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:17.614 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:131, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add primary key idx_pc2 (c2)"] [2024/05/06 09:24:17.630 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=130] [elementID=1] [startKey=74800000000000006f5f69800000000000000a] [endKey=74800000000000006f5f69800000000000000b] [2024/05/06 09:24:17.634 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:131, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.634 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=131] [conn=3] [category=ddl] [job="ID:131, Type:add primary key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.635 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":11,\"idx_name\":{\"O\":\"PRIMARY\",\"L\":\"primary\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c2\",\"L\":\"c2\"},\"offset\":1,\"length\":-1}],\"state\":0,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":true,\"is_primary\":true,\"is_invisible\":false,\"is_global\":false,\"mv_index\":false}"] [2024/05/06 09:24:17.635 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:24:17.636 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.638 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=139] [neededSchemaVersion=140] ["start time"=332.531µs] [gotSchemaVersion=140] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:17.639 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=131] [version=140] [2024/05/06 09:24:17.639 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=140] ["take time"=2.096705ms] [job="ID:131, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.641 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.649 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.649 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=131] [conn=3] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.650 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.652 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=140] [neededSchemaVersion=141] ["start time"=375.796µs] [gotSchemaVersion=141] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:17.654 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=131] [version=141] [2024/05/06 09:24:17.656 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=141] ["take time"=4.537076ms] [job="ID:131, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.657 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.663 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.664 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=131] [conn=3] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.664 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.667 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=141] [neededSchemaVersion=142] ["start time"=448.993µs] [gotSchemaVersion=142] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:17.670 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=131] [version=142] [2024/05/06 09:24:17.671 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=142] ["take time"=4.382841ms] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.672 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.684 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.684 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=131] [conn=3] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.684 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=131] [table=t] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:17.685 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=131] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:17.687 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672107114498, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.688 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=131] [2024/05/06 09:24:17.689 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672107114498, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.696 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672107114498, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.696 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=131] [conn=3] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672107114498, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.697 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=131] [table=t] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:17.699 +00:00] [INFO] [index.go:1931] ["start to add table index"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672107114498, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:11,StartKey:74800000000000006f5f728000000000000001,EndKey:74800000000000006f5f72800000000000080100,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:24:17.700 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=111] ["start key"=74800000000000006f5f728000000000000001] ["end key"=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:17.700 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="add index"] [workerCnt=1] [regionCnt=1] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:17.700 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=111] ["end key"=74800000000000006f5f72800000000000080100] ["current end key"=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:17.709 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:17.709 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672107114498, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.710 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=131] [2024/05/06 09:24:17.710 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672107114498, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.718 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672107114498, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.718 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=131] [conn=3] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672107114498, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.719 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=131] [table=t] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:17.731 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:17.731 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672107114498, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.732 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=131] [2024/05/06 09:24:17.732 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672107114498, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.739 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672107114498, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.739 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=131] [conn=3] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672107114498, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.739 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=131] [table=t] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:17.752 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:17.752 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672107114498, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.753 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=131] [2024/05/06 09:24:17.754 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672107114498, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.780 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672107114498, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.780 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=131] [conn=3] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672107114498, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.781 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=131] [table=t] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:17.792 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:17.793 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672107114498, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.793 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=131] [2024/05/06 09:24:17.794 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:7, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672107114498, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.803 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672107114498, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.803 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=131] [conn=3] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672107114498, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.812 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=131] [table=t] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:17.866 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=608] [2024/05/06 09:24:17.866 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:608, ArgLen:7, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672107114498, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.868 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=131] [2024/05/06 09:24:17.868 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:608, ArgLen:7, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672107114498, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.875 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:608, ArgLen:0, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672107114498, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.875 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=131] [conn=3] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:608, ArgLen:0, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672107114498, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.875 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=131] [table=t] ["ingest mode"=false] [index=PRIMARY] [2024/05/06 09:24:17.878 +00:00] [INFO] [backfilling.go:330] ["backfill worker finish task"] [category=ddl] [worker="backfill-worker 0, tp add index"] [task="taskID: 1, physicalTableID: 111, range: [74800000000000006f5f728000000000000001, 74800000000000006f5f72800000000000080100), jobID: 131"] ["added count"=2049] ["scan count"=2049] ["next key"=74800000000000006f5f72800000000000080100] ["take time"=77.30563ms] [2024/05/06 09:24:17.878 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=131] [2024/05/06 09:24:17.879 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:11,TypeKey:_idx_] ["total added count"=2049] ["start key"=74800000000000006f5f728000000000000001] [2024/05/06 09:24:17.879 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:24:17.916 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672107114498, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.918 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=142] [neededSchemaVersion=143] ["start time"=431.31µs] [gotSchemaVersion=143] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:17.920 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=131] [version=143] [2024/05/06 09:24:17.922 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=143] ["take time"=4.243909ms] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672107114498, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.924 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672107114498, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.931 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672107114498, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.931 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=131] [conn=3] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672107114498, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.932 +00:00] [INFO] [index.go:880] ["index backfill state ready to merge"] [category=ddl] ["job ID"=131] [table=t] [index=PRIMARY] [2024/05/06 09:24:17.932 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.934 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=143] [neededSchemaVersion=144] ["start time"=441.013µs] [gotSchemaVersion=144] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:17.939 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=131] [version=144] [2024/05/06 09:24:17.940 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=144] ["take time"=6.098668ms] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.941 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.952 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.952 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=131] [conn=3] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.952 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=131] [physicalTableID=111] [startKey=74800000000000006f5f69ffff00000000000b] [endKey=74800000000000006f5f69ffff00000000000bff] [2024/05/06 09:24:17.955 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672177369089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.957 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=131] [2024/05/06 09:24:17.958 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672177369089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.978 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672177369089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.979 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=131] [conn=3] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672177369089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:17.982 +00:00] [INFO] [index.go:1928] ["start to merge temp index"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672177369089, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:11,StartKey:74800000000000006f5f69ffff00000000000b,EndKey:74800000000000006f5f69ffff00000000000bff,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:24:17.983 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=111] ["start key"=74800000000000006f5f69ffff00000000000b] ["end key"=74800000000000006f5f69ffff00000000000bff] [2024/05/06 09:24:17.983 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="merge temporary index"] [workerCnt=1] [regionCnt=1] [startKey=74800000000000006f5f69ffff00000000000b] [endKey=74800000000000006f5f69ffff00000000000bff] [2024/05/06 09:24:17.983 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=111] ["end key"=74800000000000006f5f69ffff00000000000bff] ["current end key"=74800000000000006f5f69ffff00000000000b00] [2024/05/06 09:24:18.035 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=2049] [2024/05/06 09:24:18.035 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672177369089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.036 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=131] [2024/05/06 09:24:18.037 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672177369089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.045 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672177369089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.045 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=131] [conn=3] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672177369089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.085 +00:00] [INFO] [backfilling.go:330] ["backfill worker finish task"] [category=ddl] [worker="backfill-worker 0, tp merge temporary index"] [task="taskID: 1, physicalTableID: 111, range: [74800000000000006f5f69ffff00000000000b, 74800000000000006f5f69ffff00000000000b00), jobID: 131"] ["added count"=0] ["scan count"=0] ["next key"=74800000000000006f5f69ffff00000000000b0000] ["take time"=186.041µs] [2024/05/06 09:24:18.085 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp merge temporary index"] [jobID=131] [2024/05/06 09:24:18.085 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:11,TypeKey:_idx_] ["total added count"=2049] ["start key"=74800000000000006f5f69ffff00000000000b] [2024/05/06 09:24:18.110 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=2049] [2024/05/06 09:24:18.110 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672177369089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.111 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=131] [2024/05/06 09:24:18.112 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:7, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672177369089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.118 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672177369089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.118 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=131] [conn=3] [category=ddl] [job="ID:131, Type:add primary key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672177369089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.120 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:24:18.167 +00:00] [INFO] [index.go:781] ["run add index job done"] [category=ddl] [charset=] [collation=] [2024/05/06 09:24:18.167 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:131, Type:add primary key, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672177369089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.170 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=144] [neededSchemaVersion=145] ["start time"=452.153µs] [gotSchemaVersion=145] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:24:18.171 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=131] [version=145] [2024/05/06 09:24:18.174 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=145] ["take time"=4.796606ms] [job="ID:131, Type:add primary key, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672177369089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.177 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:131, Type:add primary key, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672177369089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.184 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=131] [tableID=111] [indexIDs="[9223090561878065163]"] [comment="add index: physical table ID(s)"] [2024/05/06 09:24:18.185 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=131] [jobType="add primary key"] [2024/05/06 09:24:18.186 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=131] [conn=3] [job="ID:131, Type:add primary key, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672177369089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.188 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=131] [elementID=1] [startKey=74800000000000006f5f69ffff00000000000b] [endKey=74800000000000006f5f69ffff00000000000c] [2024/05/06 09:24:18.191 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:131, Type:add primary key, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:17.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672177369089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.194 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=131] [2024/05/06 09:24:18.194 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:18.194 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=145] [cur_db=test] [sql="alter table t drop primary key"] [user=] [2024/05/06 09:24:18.196 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:132, Type:drop primary key, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.195 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:18.196 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:132, Type:drop primary key, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.195 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop primary key"] [2024/05/06 09:24:18.204 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:132, Type:drop primary key, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.195 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:18.205 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=132] [conn=3] [category=ddl] [job="ID:132, Type:drop primary key, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.195 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:18.206 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:132, Type:drop primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.195 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:18.207 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=145] [neededSchemaVersion=146] ["start time"=381.107µs] [gotSchemaVersion=146] [phyTblIDs="[111]"] [actionTypes="[33]"] [diffTypes="[\"drop primary key\"]"] [2024/05/06 09:24:18.209 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=132] [version=146] [2024/05/06 09:24:18.210 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=146] ["take time"=2.606776ms] [job="ID:132, Type:drop primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.195 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:18.210 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:132, Type:drop primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.195 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:18.216 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:132, Type:drop primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.195 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:18.216 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=132] [conn=3] [category=ddl] [job="ID:132, Type:drop primary key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.195 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:18.217 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:132, Type:drop primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.195 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:18.220 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=146] [neededSchemaVersion=147] ["start time"=1.467928ms] [gotSchemaVersion=147] [phyTblIDs="[111]"] [actionTypes="[33]"] [diffTypes="[\"drop primary key\"]"] [2024/05/06 09:24:18.222 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=132] [version=147] [2024/05/06 09:24:18.223 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=147] ["take time"=4.345277ms] [job="ID:132, Type:drop primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.195 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:18.224 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:132, Type:drop primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.195 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:18.235 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:132, Type:drop primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.195 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:18.235 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=132] [conn=3] [category=ddl] [job="ID:132, Type:drop primary key, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.195 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:18.235 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:132, Type:drop primary key, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.195 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:18.238 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=147] [neededSchemaVersion=148] ["start time"=444.348µs] [gotSchemaVersion=148] [phyTblIDs="[111]"] [actionTypes="[33]"] [diffTypes="[\"drop primary key\"]"] [2024/05/06 09:24:18.240 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=132] [version=148] [2024/05/06 09:24:18.242 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=148] ["take time"=4.864255ms] [job="ID:132, Type:drop primary key, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.195 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:18.243 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:132, Type:drop primary key, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.195 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:18.249 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:132, Type:drop primary key, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.195 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:18.249 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=132] [conn=3] [category=ddl] [job="ID:132, Type:drop primary key, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.195 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:18.250 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:132, Type:drop primary key, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:18.195 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:18.254 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=148] [neededSchemaVersion=149] ["start time"=324.32µs] [gotSchemaVersion=149] [phyTblIDs="[111]"] [actionTypes="[33]"] [diffTypes="[\"drop primary key\"]"] [2024/05/06 09:24:18.256 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=132] [version=149] [2024/05/06 09:24:18.258 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=149] ["take time"=4.85895ms] [job="ID:132, Type:drop primary key, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:18.195 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:18.259 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:132, Type:drop primary key, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:18.195 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:18.267 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=132] [tableID=111] [indexIDs="[11]"] [comment="drop index: table ID"] [2024/05/06 09:24:18.269 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=132] [jobType="drop primary key"] [2024/05/06 09:24:18.273 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=132] [conn=3] [job="ID:132, Type:drop primary key, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:18.195 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:18.278 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:132, Type:drop primary key, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:18.195 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:18.281 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=132] [2024/05/06 09:24:18.281 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:18.282 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=149] [cur_db=test] [sql="alter table t add unique index idx_uc2 (c2)"] [user=] [2024/05/06 09:24:18.285 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:133, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.283 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:18.285 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:133, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.283 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add unique index idx_uc2 (c2)"] [2024/05/06 09:24:18.292 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:133, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.283 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.296 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=132] [elementID=1] [startKey=74800000000000006f5f69800000000000000b] [endKey=74800000000000006f5f69800000000000000c] [2024/05/06 09:24:18.296 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=133] [conn=3] [category=ddl] [job="ID:133, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.283 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.297 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:133, Type:add index, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.283 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":12,\"idx_name\":{\"O\":\"idx_uc2\",\"L\":\"idx_uc2\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c2\",\"L\":\"c2\"},\"offset\":1,\"length\":-1}],\"state\":0,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":true,\"is_primary\":false,\"is_invisible\":false,\"is_global\":false,\"mv_index\":false}"] [2024/05/06 09:24:18.297 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:24:18.297 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:133, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.283 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.299 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449573672266498050, conflictStartTS=449573672266760192, conflictCommitTS=449573672267284480, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=133}, originalKey=748000fffffffffffe5f728000000000000085, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [IsBatchInsert=false] [IsPessimistic=false] [InRestrictedSQL=true] [tidb_retry_limit=10] [tidb_disable_txn_auto_retry=true] [2024/05/06 09:24:18.299 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449573672266498050, conflictStartTS=449573672266760192, conflictCommitTS=449573672267284480, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=133}, originalKey=748000fffffffffffe5f728000000000000085, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:24:18.300 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 7, tp add index"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449573672266498050, conflictStartTS=449573672266760192, conflictCommitTS=449573672267284480, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=133}, originalKey=748000fffffffffffe5f728000000000000085, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:133, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.283 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.307 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:133, Type:add index, State:cancelling, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.283 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.307 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=133] [conn=3] [category=ddl] [job="ID:133, Type:add index, State:cancelling, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.283 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.308 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 8, tp add index"] [category=ddl] [jobID=133] [conn=3] [job="ID:133, Type:add index, State:cancelled, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:18.283 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:24:18.308 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:133, Type:add index, State:cancelled, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:18.283 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.309 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=133] [conn=3] [job="ID:133, Type:add index, State:cancelled, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:18.283 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.312 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=133] [2024/05/06 09:24:18.312 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:18.312 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:133, Type:add index, State:cancelled, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:18.283 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.312 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=149] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).createIndex\n\tpkg/ddl/ddl_api.go:7732\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:3938\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:289\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:18.313 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=149] [cur_db=test] [sql="alter table t add unique index idx_uc2 (c2)"] [user=] [2024/05/06 09:24:18.316 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:134, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:18.317 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:134, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add unique index idx_uc2 (c2)"] [2024/05/06 09:24:18.325 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:134, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.325 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=134] [conn=3] [category=ddl] [job="ID:134, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.326 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:134, Type:add index, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":12,\"idx_name\":{\"O\":\"idx_uc2\",\"L\":\"idx_uc2\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c2\",\"L\":\"c2\"},\"offset\":1,\"length\":-1}],\"state\":0,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":true,\"is_primary\":false,\"is_invisible\":false,\"is_global\":false,\"mv_index\":false}"] [2024/05/06 09:24:18.326 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:24:18.326 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:134, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.329 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=149] [neededSchemaVersion=151] ["start time"=464.873µs] [gotSchemaVersion=151] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:18.336 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=134] [version=151] [2024/05/06 09:24:18.338 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=151] ["take time"=8.482682ms] [job="ID:134, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.339 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:134, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.346 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:134, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.348 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=134] [conn=3] [category=ddl] [job="ID:134, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.349 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:134, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.350 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449573672280653824, conflictStartTS=449573672280653825, conflictCommitTS=449573672280915968, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=134}, originalKey=748000fffffffffffe5f728000000000000086, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [IsBatchInsert=false] [IsPessimistic=false] [InRestrictedSQL=true] [tidb_retry_limit=10] [tidb_disable_txn_auto_retry=true] [2024/05/06 09:24:18.350 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449573672280653824, conflictStartTS=449573672280653825, conflictCommitTS=449573672280915968, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=134}, originalKey=748000fffffffffffe5f728000000000000086, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:24:18.350 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 8, tp add index"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449573672280653824, conflictStartTS=449573672280653825, conflictCommitTS=449573672280915968, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=134}, originalKey=748000fffffffffffe5f728000000000000086, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:134, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.357 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:134, Type:add index, State:cancelling, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.357 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=134] [conn=3] [category=ddl] [job="ID:134, Type:add index, State:cancelling, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.314 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.358 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 9, tp add index"] [category=ddl] [jobID=134] [conn=3] [job="ID:134, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:18.314 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.completeErr\n\tpkg/ddl/index_cop.go:319\ngithub.com/pingcap/tidb/pkg/ddl.convertAddIdxJob2RollbackJob\n\tpkg/ddl/rollingback.go:93\ngithub.com/pingcap/tidb/pkg/ddl.convertNotReorgAddIdxJob2RollbackJob\n\tpkg/ddl/rollingback.go:139\ngithub.com/pingcap/tidb/pkg/ddl.rollingbackAddIndex\n\tpkg/ddl/rollingback.go:270\ngithub.com/pingcap/tidb/pkg/ddl.convertJob2RollbackJob\n\tpkg/ddl/rollingback.go:480\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).runDDLJob\n\tpkg/ddl/ddl_worker.go:1202\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).HandleDDLJobTable\n\tpkg/ddl/ddl_worker.go:946\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).delivery2Worker.func1\n\tpkg/ddl/job_table.go:461\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:157\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [2024/05/06 09:24:18.358 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:134, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:18.314 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.359 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=134] [2024/05/06 09:24:18.359 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:134, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:18.314 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.367 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:134, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.314 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.367 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=134] [conn=3] [category=ddl] [job="ID:134, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.314 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.368 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:134, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.314 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.370 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=151] [neededSchemaVersion=153] ["start time"=405.606µs] [gotSchemaVersion=153] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:18.371 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=134] [version=153] [2024/05/06 09:24:18.374 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=153] ["take time"=4.360352ms] [job="ID:134, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.314 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.375 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:134, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.314 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.386 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:134, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.314 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.390 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=134] [conn=3] [category=ddl] [job="ID:134, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.314 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.391 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:134, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.314 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.393 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=153] [neededSchemaVersion=154] ["start time"=349.981µs] [gotSchemaVersion=154] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:18.395 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=134] [version=154] [2024/05/06 09:24:18.395 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=154] ["take time"=2.023037ms] [job="ID:134, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.314 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.396 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:134, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.314 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.407 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=134] [tableID=111] [indexIDs="[12,9223090561878065164]"] [comment="add index: physical table ID(s)"] [2024/05/06 09:24:18.408 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=134] [jobType="add index"] [2024/05/06 09:24:18.408 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=134] [conn=3] [job="ID:134, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.314 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.411 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=134] [2024/05/06 09:24:18.412 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:134, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.314 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.415 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=134] [2024/05/06 09:24:18.415 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:18.415 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=149] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).createIndex\n\tpkg/ddl/ddl_api.go:7732\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:3938\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:289\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:18.416 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=154] [cur_db=test] [sql="alter table t add unique index idx_uc2 (c2)"] [user=] [2024/05/06 09:24:18.419 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=134] [elementID=1] [startKey=74800000000000006f5f69800000000000000c] [endKey=74800000000000006f5f69800000000000000d] [2024/05/06 09:24:18.420 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:135, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.418 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:18.420 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:135, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.418 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add unique index idx_uc2 (c2)"] [2024/05/06 09:24:18.421 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=134] [elementID=2] [startKey=74800000000000006f5f69ffff00000000000c] [endKey=74800000000000006f5f69ffff00000000000d] [2024/05/06 09:24:18.431 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:135, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.418 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.431 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=135] [conn=3] [category=ddl] [job="ID:135, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.418 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.434 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:135, Type:add index, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.418 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":13,\"idx_name\":{\"O\":\"idx_uc2\",\"L\":\"idx_uc2\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c2\",\"L\":\"c2\"},\"offset\":1,\"length\":-1}],\"state\":0,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":true,\"is_primary\":false,\"is_invisible\":false,\"is_global\":false,\"mv_index\":false}"] [2024/05/06 09:24:18.434 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:24:18.436 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:135, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.418 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.438 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=154] [neededSchemaVersion=155] ["start time"=392.394µs] [gotSchemaVersion=155] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:18.440 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=135] [version=155] [2024/05/06 09:24:18.440 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=155] ["take time"=2.038778ms] [job="ID:135, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.418 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.441 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:135, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.418 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.453 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:135, Type:add index, State:cancelling, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.418 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.453 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=135] [conn=3] [category=ddl] [job="ID:135, Type:add index, State:cancelling, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.418 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.453 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 9, tp add index"] [category=ddl] [jobID=135] [conn=3] [job="ID:135, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:18.418 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.completeErr\n\tpkg/ddl/index_cop.go:319\ngithub.com/pingcap/tidb/pkg/ddl.convertAddIdxJob2RollbackJob\n\tpkg/ddl/rollingback.go:93\ngithub.com/pingcap/tidb/pkg/ddl.convertNotReorgAddIdxJob2RollbackJob\n\tpkg/ddl/rollingback.go:139\ngithub.com/pingcap/tidb/pkg/ddl.rollingbackAddIndex\n\tpkg/ddl/rollingback.go:270\ngithub.com/pingcap/tidb/pkg/ddl.convertJob2RollbackJob\n\tpkg/ddl/rollingback.go:480\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).runDDLJob\n\tpkg/ddl/ddl_worker.go:1202\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).HandleDDLJobTable\n\tpkg/ddl/ddl_worker.go:946\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).delivery2Worker.func1\n\tpkg/ddl/job_table.go:461\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:157\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [2024/05/06 09:24:18.453 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:135, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:18.418 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.454 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=135] [2024/05/06 09:24:18.455 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:135, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:18.418 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.463 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:135, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.418 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.464 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=135] [conn=3] [category=ddl] [job="ID:135, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.418 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.465 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:135, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.418 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.468 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=155] [neededSchemaVersion=156] ["start time"=866.203µs] [gotSchemaVersion=156] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:18.470 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=135] [version=156] [2024/05/06 09:24:18.472 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=156] ["take time"=4.984813ms] [job="ID:135, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.418 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.473 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:135, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.418 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.480 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:135, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.418 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.480 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=135] [conn=3] [category=ddl] [job="ID:135, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.418 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.481 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:135, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.418 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.484 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=156] [neededSchemaVersion=157] ["start time"=350.256µs] [gotSchemaVersion=157] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:18.485 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=135] [version=157] [2024/05/06 09:24:18.486 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=157] ["take time"=2.588908ms] [job="ID:135, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.418 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.487 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:135, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.418 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.495 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=135] [tableID=111] [indexIDs="[13,9223090561878065165]"] [comment="add index: physical table ID(s)"] [2024/05/06 09:24:18.496 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=135] [jobType="add index"] [2024/05/06 09:24:18.497 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=135] [conn=3] [job="ID:135, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.418 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.499 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=135] [2024/05/06 09:24:18.500 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=135] [elementID=1] [startKey=74800000000000006f5f69800000000000000d] [endKey=74800000000000006f5f69800000000000000e] [2024/05/06 09:24:18.500 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:135, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.418 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.502 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=135] [2024/05/06 09:24:18.503 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:18.503 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=154] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).createIndex\n\tpkg/ddl/ddl_api.go:7732\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:3938\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:306\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:18.503 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=157] [cur_db=test] [sql="alter table t add unique index idx_uc2 (c2)"] [user=] [2024/05/06 09:24:18.505 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=135] [elementID=2] [startKey=74800000000000006f5f69ffff00000000000d] [endKey=74800000000000006f5f69ffff00000000000e] [2024/05/06 09:24:18.506 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:136, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.505 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:18.506 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:136, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.505 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add unique index idx_uc2 (c2)"] [2024/05/06 09:24:18.511 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:136, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.505 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.511 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=136] [conn=3] [category=ddl] [job="ID:136, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.505 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.511 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:136, Type:add index, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.505 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":14,\"idx_name\":{\"O\":\"idx_uc2\",\"L\":\"idx_uc2\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c2\",\"L\":\"c2\"},\"offset\":1,\"length\":-1}],\"state\":0,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":true,\"is_primary\":false,\"is_invisible\":false,\"is_global\":false,\"mv_index\":false}"] [2024/05/06 09:24:18.511 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:24:18.511 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:136, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.505 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.513 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=157] [neededSchemaVersion=158] ["start time"=376.184µs] [gotSchemaVersion=158] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:18.515 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=136] [version=158] [2024/05/06 09:24:18.515 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=158] ["take time"=2.049626ms] [job="ID:136, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.505 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.516 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:136, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.505 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.528 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:136, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.505 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.528 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=136] [conn=3] [category=ddl] [job="ID:136, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.505 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.529 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:136, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.505 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.531 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=158] [neededSchemaVersion=159] ["start time"=509.115µs] [gotSchemaVersion=159] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:18.533 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=136] [version=159] [2024/05/06 09:24:18.535 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=159] ["take time"=4.549741ms] [job="ID:136, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.505 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.536 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:136, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.505 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.543 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:136, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.505 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.546 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=136] [conn=3] [category=ddl] [job="ID:136, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.505 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.547 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:136, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.505 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.548 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449573672332296192, conflictStartTS=449573672332558336, conflictCommitTS=449573672333082624, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=136}, originalKey=748000fffffffffffe5f728000000000000088, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [IsBatchInsert=false] [IsPessimistic=false] [InRestrictedSQL=true] [tidb_retry_limit=10] [tidb_disable_txn_auto_retry=true] [2024/05/06 09:24:18.548 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449573672332296192, conflictStartTS=449573672332558336, conflictCommitTS=449573672333082624, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=136}, originalKey=748000fffffffffffe5f728000000000000088, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:24:18.548 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 7, tp add index"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449573672332296192, conflictStartTS=449573672332558336, conflictCommitTS=449573672333082624, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=136}, originalKey=748000fffffffffffe5f728000000000000088, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:136, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.505 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.555 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:136, Type:add index, State:cancelling, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.505 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.555 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=136] [conn=3] [category=ddl] [job="ID:136, Type:add index, State:cancelling, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.505 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.556 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 8, tp add index"] [category=ddl] [jobID=136] [conn=3] [job="ID:136, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:18.505 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.completeErr\n\tpkg/ddl/index_cop.go:319\ngithub.com/pingcap/tidb/pkg/ddl.convertAddIdxJob2RollbackJob\n\tpkg/ddl/rollingback.go:93\ngithub.com/pingcap/tidb/pkg/ddl.convertNotReorgAddIdxJob2RollbackJob\n\tpkg/ddl/rollingback.go:139\ngithub.com/pingcap/tidb/pkg/ddl.rollingbackAddIndex\n\tpkg/ddl/rollingback.go:270\ngithub.com/pingcap/tidb/pkg/ddl.convertJob2RollbackJob\n\tpkg/ddl/rollingback.go:480\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).runDDLJob\n\tpkg/ddl/ddl_worker.go:1202\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).HandleDDLJobTable\n\tpkg/ddl/ddl_worker.go:946\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).delivery2Worker.func1\n\tpkg/ddl/job_table.go:461\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:157\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [2024/05/06 09:24:18.556 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:136, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:18.505 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.559 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=159] [neededSchemaVersion=161] ["start time"=378.216µs] [gotSchemaVersion=161] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:18.560 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=136] [version=161] [2024/05/06 09:24:18.561 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=161] ["take time"=2.622769ms] [job="ID:136, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:18.505 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.564 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:136, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:18.505 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.574 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:136, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.505 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.574 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=136] [conn=3] [category=ddl] [job="ID:136, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.505 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.575 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:136, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.505 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.577 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=161] [neededSchemaVersion=162] ["start time"=364µs] [gotSchemaVersion=162] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:18.579 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=136] [version=162] [2024/05/06 09:24:18.580 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=162] ["take time"=2.836099ms] [job="ID:136, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.505 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.581 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:136, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.505 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.605 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:136, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.505 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.605 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=136] [conn=3] [category=ddl] [job="ID:136, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.505 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.611 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:136, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.505 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.615 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=162] [neededSchemaVersion=163] ["start time"=331.134µs] [gotSchemaVersion=163] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:18.617 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=136] [version=163] [2024/05/06 09:24:18.618 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=163] ["take time"=2.726594ms] [job="ID:136, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.505 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.619 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:136, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.505 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.634 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=136] [tableID=111] [indexIDs="[14,9223090561878065166]"] [comment="add index: physical table ID(s)"] [2024/05/06 09:24:18.636 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=136] [jobType="add index"] [2024/05/06 09:24:18.636 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=136] [conn=3] [job="ID:136, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.505 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.640 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=136] [2024/05/06 09:24:18.641 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:136, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.505 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.643 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=136] [2024/05/06 09:24:18.644 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:18.644 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=157] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).createIndex\n\tpkg/ddl/ddl_api.go:7732\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:3938\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:289\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:18.644 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=136] [elementID=1] [startKey=74800000000000006f5f69800000000000000e] [endKey=74800000000000006f5f69800000000000000f] [2024/05/06 09:24:18.644 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=163] [cur_db=test] [sql="alter table t add unique index idx_uc2 (c2)"] [user=] [2024/05/06 09:24:18.646 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=136] [elementID=2] [startKey=74800000000000006f5f69ffff00000000000e] [endKey=74800000000000006f5f69ffff00000000000f] [2024/05/06 09:24:18.647 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:137, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.646 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:18.647 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:137, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.646 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add unique index idx_uc2 (c2)"] [2024/05/06 09:24:18.658 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:137, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.646 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.658 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=137] [conn=3] [category=ddl] [job="ID:137, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.646 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.658 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:137, Type:add index, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.646 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":15,\"idx_name\":{\"O\":\"idx_uc2\",\"L\":\"idx_uc2\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c2\",\"L\":\"c2\"},\"offset\":1,\"length\":-1}],\"state\":0,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":true,\"is_primary\":false,\"is_invisible\":false,\"is_global\":false,\"mv_index\":false}"] [2024/05/06 09:24:18.658 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:24:18.659 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:137, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.646 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.661 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=163] [neededSchemaVersion=164] ["start time"=344.119µs] [gotSchemaVersion=164] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:18.662 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=137] [version=164] [2024/05/06 09:24:18.663 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=164] ["take time"=2.607473ms] [job="ID:137, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.646 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.664 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:137, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.646 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.674 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:137, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.646 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.674 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=137] [conn=3] [category=ddl] [job="ID:137, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.646 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.675 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:137, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.646 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.677 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=164] [neededSchemaVersion=165] ["start time"=385.283µs] [gotSchemaVersion=165] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:18.679 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=137] [version=165] [2024/05/06 09:24:18.680 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=165] ["take time"=4.222911ms] [job="ID:137, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.646 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.682 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:137, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.646 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.692 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:137, Type:add index, State:cancelling, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.646 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.692 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=137] [conn=3] [category=ddl] [job="ID:137, Type:add index, State:cancelling, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.646 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.693 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 9, tp add index"] [category=ddl] [jobID=137] [conn=3] [job="ID:137, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:18.646 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.completeErr\n\tpkg/ddl/index_cop.go:319\ngithub.com/pingcap/tidb/pkg/ddl.convertAddIdxJob2RollbackJob\n\tpkg/ddl/rollingback.go:93\ngithub.com/pingcap/tidb/pkg/ddl.convertNotReorgAddIdxJob2RollbackJob\n\tpkg/ddl/rollingback.go:139\ngithub.com/pingcap/tidb/pkg/ddl.rollingbackAddIndex\n\tpkg/ddl/rollingback.go:270\ngithub.com/pingcap/tidb/pkg/ddl.convertJob2RollbackJob\n\tpkg/ddl/rollingback.go:480\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).runDDLJob\n\tpkg/ddl/ddl_worker.go:1202\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).HandleDDLJobTable\n\tpkg/ddl/ddl_worker.go:946\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).delivery2Worker.func1\n\tpkg/ddl/job_table.go:461\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:157\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [2024/05/06 09:24:18.693 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:137, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:18.646 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.696 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=165] [neededSchemaVersion=166] ["start time"=452.257µs] [gotSchemaVersion=166] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:18.698 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=137] [version=166] [2024/05/06 09:24:18.701 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=166] ["take time"=5.004795ms] [job="ID:137, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:18.646 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.705 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:137, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:18.646 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.713 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:137, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.646 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.713 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=137] [conn=3] [category=ddl] [job="ID:137, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.646 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.714 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:137, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.646 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.716 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=166] [neededSchemaVersion=167] ["start time"=587.334µs] [gotSchemaVersion=167] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:18.718 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=137] [version=167] [2024/05/06 09:24:18.720 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=167] ["take time"=4.0296ms] [job="ID:137, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.646 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.720 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:137, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.646 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.730 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:137, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.646 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.730 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=137] [conn=3] [category=ddl] [job="ID:137, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.646 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.731 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:137, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.646 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.737 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=167] [neededSchemaVersion=168] ["start time"=333.563µs] [gotSchemaVersion=168] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:18.738 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=137] [version=168] [2024/05/06 09:24:18.738 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=168] ["take time"=2.055889ms] [job="ID:137, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.646 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.739 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:137, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.646 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.747 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=137] [tableID=111] [indexIDs="[15,9223090561878065167]"] [comment="add index: physical table ID(s)"] [2024/05/06 09:24:18.748 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=137] [jobType="add index"] [2024/05/06 09:24:18.749 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=137] [conn=3] [job="ID:137, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.646 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.751 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=137] [2024/05/06 09:24:18.752 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=137] [elementID=1] [startKey=74800000000000006f5f69800000000000000f] [endKey=74800000000000006f5f698000000000000010] [2024/05/06 09:24:18.752 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:137, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.646 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.755 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=137] [elementID=2] [startKey=74800000000000006f5f69ffff00000000000f] [endKey=74800000000000006f5f69ffff000000000010] [2024/05/06 09:24:18.760 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=137] [2024/05/06 09:24:18.760 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:18.760 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=163] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).createIndex\n\tpkg/ddl/ddl_api.go:7732\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:3938\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:306\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:18.761 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=168] [cur_db=test] [sql="alter table t add unique index idx_uc2 (c2)"] [user=] [2024/05/06 09:24:18.764 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:138, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.763 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:18.764 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:138, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.763 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add unique index idx_uc2 (c2)"] [2024/05/06 09:24:18.772 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:138, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.763 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.772 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=138] [conn=3] [category=ddl] [job="ID:138, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.763 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.773 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:138, Type:add index, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.763 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":16,\"idx_name\":{\"O\":\"idx_uc2\",\"L\":\"idx_uc2\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c2\",\"L\":\"c2\"},\"offset\":1,\"length\":-1}],\"state\":0,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":true,\"is_primary\":false,\"is_invisible\":false,\"is_global\":false,\"mv_index\":false}"] [2024/05/06 09:24:18.773 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:24:18.773 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:138, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.763 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.775 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=168] [neededSchemaVersion=169] ["start time"=374.2µs] [gotSchemaVersion=169] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:18.781 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=138] [version=169] [2024/05/06 09:24:18.790 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=169] ["take time"=15.217283ms] [job="ID:138, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.763 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.791 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:138, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.763 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.798 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:138, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.763 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.798 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=138] [conn=3] [category=ddl] [job="ID:138, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.763 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.799 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:138, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.763 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.801 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=169] [neededSchemaVersion=170] ["start time"=414.895µs] [gotSchemaVersion=170] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:18.803 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=138] [version=170] [2024/05/06 09:24:18.803 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=170] ["take time"=2.074272ms] [job="ID:138, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.763 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.804 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:138, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.763 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.810 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:138, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.763 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.811 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=138] [conn=3] [category=ddl] [job="ID:138, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.763 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.811 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:138, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.763 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.813 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=170] [neededSchemaVersion=171] ["start time"=350.03µs] [gotSchemaVersion=171] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:18.815 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=138] [version=171] [2024/05/06 09:24:18.815 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=171] ["take time"=2.404675ms] [job="ID:138, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.763 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.816 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:138, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.763 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.825 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:138, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.763 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.827 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=138] [conn=3] [category=ddl] [job="ID:138, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.763 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.827 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=138] [table=t] ["ingest mode"=false] [index=idx_uc2] [2024/05/06 09:24:18.828 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=138] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:18.830 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:138, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.763 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672406745089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.832 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449573672406220800, conflictStartTS=449573672406220801, conflictCommitTS=449573672406482944, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=138}, originalKey=748000fffffffffffe5f72800000000000008a, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [IsBatchInsert=false] [IsPessimistic=false] [InRestrictedSQL=true] [tidb_retry_limit=10] [tidb_disable_txn_auto_retry=true] [2024/05/06 09:24:18.832 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449573672406220800, conflictStartTS=449573672406220801, conflictCommitTS=449573672406482944, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=138}, originalKey=748000fffffffffffe5f72800000000000008a, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:24:18.832 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 10, tp add index"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449573672406220800, conflictStartTS=449573672406220801, conflictCommitTS=449573672406482944, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=138}, originalKey=748000fffffffffffe5f72800000000000008a, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:138, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.763 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672406745089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.841 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:138, Type:add index, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.763 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.841 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=138] [conn=3] [category=ddl] [job="ID:138, Type:add index, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.763 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.842 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 9, tp add index"] [category=ddl] [jobID=138] [conn=3] [job="ID:138, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:18.763 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.completeErr\n\tpkg/ddl/index_cop.go:319\ngithub.com/pingcap/tidb/pkg/ddl.convertAddIdxJob2RollbackJob\n\tpkg/ddl/rollingback.go:93\ngithub.com/pingcap/tidb/pkg/ddl.convertNotReorgAddIdxJob2RollbackJob\n\tpkg/ddl/rollingback.go:139\ngithub.com/pingcap/tidb/pkg/ddl.rollingbackAddIndex\n\tpkg/ddl/rollingback.go:270\ngithub.com/pingcap/tidb/pkg/ddl.convertJob2RollbackJob\n\tpkg/ddl/rollingback.go:480\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).runDDLJob\n\tpkg/ddl/ddl_worker.go:1202\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).HandleDDLJobTable\n\tpkg/ddl/ddl_worker.go:946\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).delivery2Worker.func1\n\tpkg/ddl/job_table.go:461\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:157\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [2024/05/06 09:24:18.842 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:138, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:18.763 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.845 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=171] [neededSchemaVersion=172] ["start time"=361.109µs] [gotSchemaVersion=172] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:18.846 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=138] [version=172] [2024/05/06 09:24:18.846 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=172] ["take time"=2.082512ms] [job="ID:138, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:18.763 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.847 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:138, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:18.763 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.853 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:138, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.763 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.853 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=138] [conn=3] [category=ddl] [job="ID:138, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.763 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.854 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:138, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.763 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.856 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=172] [neededSchemaVersion=173] ["start time"=405.072µs] [gotSchemaVersion=173] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:18.857 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=138] [version=173] [2024/05/06 09:24:18.857 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=173] ["take time"=2.054006ms] [job="ID:138, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.763 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.858 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:138, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.763 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.866 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:138, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.763 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.866 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=138] [conn=3] [category=ddl] [job="ID:138, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.763 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.867 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:138, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.763 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.870 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=173] [neededSchemaVersion=174] ["start time"=510.731µs] [gotSchemaVersion=174] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:18.871 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=138] [version=174] [2024/05/06 09:24:18.875 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=174] ["take time"=5.665201ms] [job="ID:138, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.763 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.876 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:138, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.763 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.889 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=138] [tableID=111] [indexIDs="[16,9223090561878065168]"] [comment="add index: physical table ID(s)"] [2024/05/06 09:24:18.890 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=138] [jobType="add index"] [2024/05/06 09:24:18.890 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=138] [conn=3] [job="ID:138, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.763 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.896 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=138] [elementID=1] [startKey=74800000000000006f5f698000000000000010] [endKey=74800000000000006f5f698000000000000011] [2024/05/06 09:24:18.898 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=138] [elementID=2] [startKey=74800000000000006f5f69ffff000000000010] [endKey=74800000000000006f5f69ffff000000000011] [2024/05/06 09:24:18.899 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=138] [2024/05/06 09:24:18.899 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:138, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:18.763 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.902 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=138] [2024/05/06 09:24:18.902 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:18.902 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=168] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).createIndex\n\tpkg/ddl/ddl_api.go:7732\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:3938\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:289\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:18.903 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=174] [cur_db=test] [sql="alter table t add unique index idx_uc2 (c2)"] [user=] [2024/05/06 09:24:18.905 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:139, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:18.906 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:139, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add unique index idx_uc2 (c2)"] [2024/05/06 09:24:18.918 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:139, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.932 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=139] [conn=3] [category=ddl] [job="ID:139, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.933 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:139, Type:add index, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":17,\"idx_name\":{\"O\":\"idx_uc2\",\"L\":\"idx_uc2\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c2\",\"L\":\"c2\"},\"offset\":1,\"length\":-1}],\"state\":0,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":true,\"is_primary\":false,\"is_invisible\":false,\"is_global\":false,\"mv_index\":false}"] [2024/05/06 09:24:18.933 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:24:18.933 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:139, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.936 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=174] [neededSchemaVersion=175] ["start time"=372.283µs] [gotSchemaVersion=175] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:18.937 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=139] [version=175] [2024/05/06 09:24:18.937 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=175] ["take time"=2.045769ms] [job="ID:139, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.938 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:139, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.950 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:139, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.950 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=139] [conn=3] [category=ddl] [job="ID:139, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.951 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:139, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.953 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=175] [neededSchemaVersion=176] ["start time"=384.989µs] [gotSchemaVersion=176] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:18.955 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=139] [version=176] [2024/05/06 09:24:18.955 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=176] ["take time"=2.177631ms] [job="ID:139, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.956 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:139, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.963 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:139, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.963 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=139] [conn=3] [category=ddl] [job="ID:139, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.964 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:139, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.968 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=176] [neededSchemaVersion=177] ["start time"=411.442µs] [gotSchemaVersion=177] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:18.970 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=139] [version=177] [2024/05/06 09:24:18.975 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=177] ["take time"=7.983778ms] [job="ID:139, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.977 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:139, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.991 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:139, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.991 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=139] [conn=3] [category=ddl] [job="ID:139, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.992 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=139] [table=t] ["ingest mode"=false] [index=idx_uc2] [2024/05/06 09:24:18.993 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=139] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:18.995 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:139, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:18.996 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=139] [2024/05/06 09:24:18.997 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:139, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.003 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:139, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.003 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=139] [conn=3] [category=ddl] [job="ID:139, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.003 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=139] [table=t] ["ingest mode"=false] [index=idx_uc2] [2024/05/06 09:24:19.005 +00:00] [INFO] [index.go:1931] ["start to add table index"] [category=ddl] [job="ID:139, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:17,StartKey:74800000000000006f5f728000000000000001,EndKey:74800000000000006f5f72800000000000080100,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:24:19.006 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=111] ["start key"=74800000000000006f5f728000000000000001] ["end key"=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:19.006 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="add index"] [workerCnt=1] [regionCnt=1] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:19.007 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=111] ["end key"=74800000000000006f5f72800000000000080100] ["current end key"=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:19.016 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:19.016 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:139, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.017 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=139] [2024/05/06 09:24:19.017 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:139, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.023 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:139, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.023 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=139] [conn=3] [category=ddl] [job="ID:139, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.024 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=139] [table=t] ["ingest mode"=false] [index=idx_uc2] [2024/05/06 09:24:19.036 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:19.036 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:139, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.037 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=139] [2024/05/06 09:24:19.038 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:139, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.055 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:139, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.055 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=139] [conn=3] [category=ddl] [job="ID:139, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.055 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=139] [table=t] ["ingest mode"=false] [index=idx_uc2] [2024/05/06 09:24:19.068 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:19.068 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:139, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.069 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=139] [2024/05/06 09:24:19.070 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:139, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.076 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:139, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.084 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=139] [conn=3] [category=ddl] [job="ID:139, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.085 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=139] [table=t] ["ingest mode"=false] [index=idx_uc2] [2024/05/06 09:24:19.096 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:19.096 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:139, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.097 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=139] [2024/05/06 09:24:19.098 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:139, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.104 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:139, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.105 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=139] [conn=3] [category=ddl] [job="ID:139, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.105 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=139] [table=t] ["ingest mode"=false] [index=idx_uc2] [2024/05/06 09:24:19.201 +00:00] [INFO] [backfilling.go:330] ["backfill worker finish task"] [category=ddl] [worker="backfill-worker 0, tp add index"] [task="taskID: 1, physicalTableID: 111, range: [74800000000000006f5f728000000000000001, 74800000000000006f5f72800000000000080100), jobID: 139"] ["added count"=2049] ["scan count"=2049] ["next key"=74800000000000006f5f72800000000000080100] ["take time"=94.03725ms] [2024/05/06 09:24:19.201 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=139] [2024/05/06 09:24:19.201 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:17,TypeKey:_idx_] ["total added count"=2049] ["start key"=74800000000000006f5f728000000000000001] [2024/05/06 09:24:19.211 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=352] [2024/05/06 09:24:19.212 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:139, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:352, ArgLen:6, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.213 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=139] [2024/05/06 09:24:19.214 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:139, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:352, ArgLen:6, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.246 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:139, Type:add index, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:352, ArgLen:0, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.246 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=139] [conn=3] [category=ddl] [job="ID:139, Type:add index, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:352, ArgLen:0, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.246 +00:00] [INFO] [rollingback.go:265] ["run the cancelling DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=139] [conn=3] [job="ID:139, Type:add index, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:352, ArgLen:0, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.246 +00:00] [INFO] [ddl.go:615] ["notify reorg worker the job's state"] [category=ddl] ["Job ID"=139] ["Job State"=cancelling] ["Schema State"="write reorganization"] [2024/05/06 09:24:19.247 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=139] [table=t] ["ingest mode"=false] [index=idx_uc2] [2024/05/06 09:24:19.250 +00:00] [WARN] [index.go:1058] ["run add index job failed, convert job to rollback"] [category=ddl] [job="ID:139, Type:add index, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:352, ArgLen:6, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:24:19.253 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 7, tp add index"] [category=ddl] [jobID=139] [conn=3] [job="ID:139, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:352, ArgLen:3, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.completeErr\n\tpkg/ddl/index_cop.go:319\ngithub.com/pingcap/tidb/pkg/ddl.convertAddIdxJob2RollbackJob\n\tpkg/ddl/rollingback.go:93\ngithub.com/pingcap/tidb/pkg/ddl.runReorgJobAndHandleErr\n\tpkg/ddl/index.go:1059\ngithub.com/pingcap/tidb/pkg/ddl.doReorgWorkForCreateIndex\n\tpkg/ddl/index.go:869\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).onCreateIndex\n\tpkg/ddl/index.go:731\ngithub.com/pingcap/tidb/pkg/ddl.rollingbackAddIndex\n\tpkg/ddl/rollingback.go:267\ngithub.com/pingcap/tidb/pkg/ddl.convertJob2RollbackJob\n\tpkg/ddl/rollingback.go:480\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).runDDLJob\n\tpkg/ddl/ddl_worker.go:1202\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).HandleDDLJobTable\n\tpkg/ddl/ddl_worker.go:946\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).delivery2Worker.func1\n\tpkg/ddl/job_table.go:461\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:157\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [2024/05/06 09:24:19.253 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:139, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:352, ArgLen:3, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.258 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=177] [neededSchemaVersion=178] ["start time"=423.517µs] [gotSchemaVersion=178] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:19.262 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=139] [version=178] [2024/05/06 09:24:19.264 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=178] ["take time"=5.217405ms] [job="ID:139, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:352, ArgLen:3, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.265 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:139, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:352, ArgLen:3, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.296 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:139, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:352, ArgLen:0, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.296 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=139] [conn=3] [category=ddl] [job="ID:139, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:352, ArgLen:0, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.297 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:139, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:352, ArgLen:2, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.300 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=178] [neededSchemaVersion=179] ["start time"=476.586µs] [gotSchemaVersion=179] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:19.301 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=139] [version=179] [2024/05/06 09:24:19.304 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=179] ["take time"=4.722459ms] [job="ID:139, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:352, ArgLen:2, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.305 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:139, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:352, ArgLen:2, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.314 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:139, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:352, ArgLen:0, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.314 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=139] [conn=3] [category=ddl] [job="ID:139, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:352, ArgLen:0, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.315 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:139, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:352, ArgLen:2, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.318 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=179] [neededSchemaVersion=180] ["start time"=359.049µs] [gotSchemaVersion=180] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:19.320 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=139] [version=180] [2024/05/06 09:24:19.320 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=180] ["take time"=2.068693ms] [job="ID:139, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:352, ArgLen:2, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.322 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:139, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:352, ArgLen:2, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.339 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=139] [tableID=111] [indexIDs="[17,9223090561878065169]"] [comment="add index: physical table ID(s)"] [2024/05/06 09:24:19.340 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=139] [jobType="add index"] [2024/05/06 09:24:19.341 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=139] [conn=3] [job="ID:139, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:352, ArgLen:2, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.343 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=139] [2024/05/06 09:24:19.344 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:139, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:352, ArgLen:2, start time: 2024-05-06 09:24:18.904 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449573672449998848, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.347 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=139] [2024/05/06 09:24:19.347 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:19.347 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=174] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).createIndex\n\tpkg/ddl/ddl_api.go:7732\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:3938\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:306\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:19.348 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=180] [cur_db=test] [sql="alter table t add unique index idx_uc2 (c2)"] [user=] [2024/05/06 09:24:19.358 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:140, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:19.358 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:140, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add unique index idx_uc2 (c2)"] [2024/05/06 09:24:19.372 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=139] [elementID=1] [startKey=74800000000000006f5f698000000000000011] [endKey=74800000000000006f5f698000000000000012] [2024/05/06 09:24:19.374 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=139] [elementID=2] [startKey=74800000000000006f5f69ffff000000000011] [endKey=74800000000000006f5f69ffff000000000012] [2024/05/06 09:24:19.378 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:140, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.378 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=140] [conn=3] [category=ddl] [job="ID:140, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.378 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":18,\"idx_name\":{\"O\":\"idx_uc2\",\"L\":\"idx_uc2\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c2\",\"L\":\"c2\"},\"offset\":1,\"length\":-1}],\"state\":0,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":true,\"is_primary\":false,\"is_invisible\":false,\"is_global\":false,\"mv_index\":false}"] [2024/05/06 09:24:19.378 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:24:19.379 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.380 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=180] [neededSchemaVersion=181] ["start time"=317.927µs] [gotSchemaVersion=181] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:19.384 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=140] [version=181] [2024/05/06 09:24:19.388 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=181] ["take time"=8.273011ms] [job="ID:140, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.389 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.397 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.397 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=140] [conn=3] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.398 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.400 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=181] [neededSchemaVersion=182] ["start time"=377.474µs] [gotSchemaVersion=182] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:19.401 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=140] [version=182] [2024/05/06 09:24:19.402 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=182] ["take time"=2.090594ms] [job="ID:140, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.402 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.409 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.409 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=140] [conn=3] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.410 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.412 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=182] [neededSchemaVersion=183] ["start time"=369.026µs] [gotSchemaVersion=183] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:19.413 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=140] [version=183] [2024/05/06 09:24:19.416 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=183] ["take time"=4.173792ms] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.417 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.426 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.427 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=140] [conn=3] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.428 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=140] [table=t] ["ingest mode"=false] [index=idx_uc2] [2024/05/06 09:24:19.429 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=140] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:19.432 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672564555776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.433 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=140] [2024/05/06 09:24:19.433 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672564555776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.441 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672564555776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.441 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=140] [conn=3] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672564555776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.441 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=140] [table=t] ["ingest mode"=false] [index=idx_uc2] [2024/05/06 09:24:19.443 +00:00] [INFO] [index.go:1931] ["start to add table index"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672564555776, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:18,StartKey:74800000000000006f5f728000000000000001,EndKey:74800000000000006f5f72800000000000080100,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:24:19.444 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=111] ["start key"=74800000000000006f5f728000000000000001] ["end key"=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:19.444 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="add index"] [workerCnt=1] [regionCnt=1] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:19.444 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=111] ["end key"=74800000000000006f5f72800000000000080100] ["current end key"=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:19.453 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:19.453 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672564555776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.454 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=140] [2024/05/06 09:24:19.454 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672564555776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.462 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672564555776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.462 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=140] [conn=3] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672564555776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.462 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=140] [table=t] ["ingest mode"=false] [index=idx_uc2] [2024/05/06 09:24:19.474 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:19.475 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672564555776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.475 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=140] [2024/05/06 09:24:19.476 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672564555776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.485 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672564555776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.485 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=140] [conn=3] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672564555776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.485 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=140] [table=t] ["ingest mode"=false] [index=idx_uc2] [2024/05/06 09:24:19.498 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:19.498 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672564555776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.498 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=140] [2024/05/06 09:24:19.499 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672564555776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.510 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672564555776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.510 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=140] [conn=3] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672564555776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.510 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=140] [table=t] ["ingest mode"=false] [index=idx_uc2] [2024/05/06 09:24:19.523 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:19.523 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672564555776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.524 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=140] [2024/05/06 09:24:19.524 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672564555776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.532 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672564555776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.532 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=140] [conn=3] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672564555776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.532 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=140] [table=t] ["ingest mode"=false] [index=idx_uc2] [2024/05/06 09:24:19.544 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:19.545 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672564555776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.545 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=140] [2024/05/06 09:24:19.546 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672564555776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.552 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672564555776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.552 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=140] [conn=3] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672564555776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.552 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=140] [table=t] ["ingest mode"=false] [index=idx_uc2] [2024/05/06 09:24:19.626 +00:00] [INFO] [backfilling.go:330] ["backfill worker finish task"] [category=ddl] [worker="backfill-worker 0, tp add index"] [task="taskID: 1, physicalTableID: 111, range: [74800000000000006f5f728000000000000001, 74800000000000006f5f72800000000000080100), jobID: 140"] ["added count"=2049] ["scan count"=2049] ["next key"=74800000000000006f5f72800000000000080100] ["take time"=80.484771ms] [2024/05/06 09:24:19.626 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=140] [2024/05/06 09:24:19.626 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:18,TypeKey:_idx_] ["total added count"=2049] ["start key"=74800000000000006f5f728000000000000001] [2024/05/06 09:24:19.646 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=512] [2024/05/06 09:24:19.646 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:512, ArgLen:6, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672564555776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.647 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=140] [2024/05/06 09:24:19.648 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:512, ArgLen:6, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672564555776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.654 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:512, ArgLen:0, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672564555776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.654 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=140] [conn=3] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:512, ArgLen:0, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672564555776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.654 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=140] [table=t] ["ingest mode"=false] [index=idx_uc2] [2024/05/06 09:24:19.657 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:24:19.699 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672564555776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.702 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=183] [neededSchemaVersion=184] ["start time"=374.131µs] [gotSchemaVersion=184] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:19.703 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=140] [version=184] [2024/05/06 09:24:19.703 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=184] ["take time"=2.167102ms] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672564555776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.704 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672564555776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.712 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672564555776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.712 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=140] [conn=3] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672564555776, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.712 +00:00] [INFO] [index.go:880] ["index backfill state ready to merge"] [category=ddl] ["job ID"=140] [table=t] [index=idx_uc2] [2024/05/06 09:24:19.713 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.717 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=184] [neededSchemaVersion=185] ["start time"=389.967µs] [gotSchemaVersion=185] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:19.719 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=140] [version=185] [2024/05/06 09:24:19.721 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=185] ["take time"=4.623199ms] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.723 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.734 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.734 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=140] [conn=3] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.734 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=140] [physicalTableID=111] [startKey=74800000000000006f5f69ffff000000000012] [endKey=74800000000000006f5f69ffff000000000012ff] [2024/05/06 09:24:19.737 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672644509697, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.738 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=140] [2024/05/06 09:24:19.739 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672644509697, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.746 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672644509697, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.746 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=140] [conn=3] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672644509697, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.747 +00:00] [INFO] [index.go:1928] ["start to merge temp index"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672644509697, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:18,StartKey:74800000000000006f5f69ffff000000000012,EndKey:74800000000000006f5f69ffff000000000012ff,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:24:19.754 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=111] ["start key"=74800000000000006f5f69ffff000000000012] ["end key"=74800000000000006f5f69ffff000000000012ff] [2024/05/06 09:24:19.754 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="merge temporary index"] [workerCnt=1] [regionCnt=1] [startKey=74800000000000006f5f69ffff000000000012] [endKey=74800000000000006f5f69ffff000000000012ff] [2024/05/06 09:24:19.755 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=111] ["end key"=74800000000000006f5f69ffff000000000012ff] ["current end key"=74800000000000006f5f69ffff00000000001200] [2024/05/06 09:24:19.805 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=2049] [2024/05/06 09:24:19.805 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672644509697, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.805 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=140] [2024/05/06 09:24:19.806 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672644509697, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.814 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672644509697, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.814 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=140] [conn=3] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672644509697, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.858 +00:00] [INFO] [backfilling.go:330] ["backfill worker finish task"] [category=ddl] [worker="backfill-worker 0, tp merge temporary index"] [task="taskID: 1, physicalTableID: 111, range: [74800000000000006f5f69ffff000000000012, 74800000000000006f5f69ffff00000000001200), jobID: 140"] ["added count"=0] ["scan count"=0] ["next key"=74800000000000006f5f69ffff0000000000120000] ["take time"=207.717µs] [2024/05/06 09:24:19.858 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp merge temporary index"] [jobID=140] [2024/05/06 09:24:19.858 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:18,TypeKey:_idx_] ["total added count"=2049] ["start key"=74800000000000006f5f69ffff000000000012] [2024/05/06 09:24:19.887 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=2049] [2024/05/06 09:24:19.887 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672644509697, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.888 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=140] [2024/05/06 09:24:19.889 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672644509697, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.896 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672644509697, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.896 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=140] [conn=3] [category=ddl] [job="ID:140, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672644509697, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.899 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:24:19.950 +00:00] [INFO] [index.go:781] ["run add index job done"] [category=ddl] [charset=utf8mb4] [collation=utf8mb4_bin] [2024/05/06 09:24:19.950 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:140, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672644509697, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.952 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=185] [neededSchemaVersion=186] ["start time"=394.109µs] [gotSchemaVersion=186] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:19.954 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=140] [version=186] [2024/05/06 09:24:19.954 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=186] ["take time"=2.098474ms] [job="ID:140, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672644509697, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.955 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:140, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672644509697, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.964 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=140] [tableID=111] [indexIDs="[9223090561878065170]"] [comment="add index: physical table ID(s)"] [2024/05/06 09:24:19.965 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=140] [jobType="add index"] [2024/05/06 09:24:19.966 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=140] [conn=3] [job="ID:140, Type:add index, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672644509697, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.972 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=140] [elementID=1] [startKey=74800000000000006f5f69ffff000000000012] [endKey=74800000000000006f5f69ffff000000000013] [2024/05/06 09:24:19.972 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:140, Type:add index, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:19.349 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672644509697, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.975 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=140] [2024/05/06 09:24:19.975 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:19.979 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=186] [cur_db=test] [sql="alter table t add index idx_c2(c2)"] [user=] [2024/05/06 09:24:19.984 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:141, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:19.981 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:19.984 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:141, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:19.981 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add index idx_c2(c2)"] [2024/05/06 09:24:19.994 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:141, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:19.981 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:19.996 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=141] [conn=3] [category=ddl] [job="ID:141, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:19.981 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.000 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:141, Type:add index, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:19.981 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":19,\"idx_name\":{\"O\":\"idx_c2\",\"L\":\"idx_c2\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c2\",\"L\":\"c2\"},\"offset\":1,\"length\":-1}],\"state\":0,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":false,\"is_primary\":false,\"is_invisible\":false,\"is_global\":false,\"mv_index\":false}"] [2024/05/06 09:24:20.001 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:24:20.007 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:141, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:19.981 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.008 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449573672712667136, conflictStartTS=449573672712667137, conflictCommitTS=449573672713191424, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=141}, originalKey=748000fffffffffffe5f72800000000000008d, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [IsBatchInsert=false] [IsPessimistic=false] [InRestrictedSQL=true] [tidb_retry_limit=10] [tidb_disable_txn_auto_retry=true] [2024/05/06 09:24:20.008 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449573672712667136, conflictStartTS=449573672712667137, conflictCommitTS=449573672713191424, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=141}, originalKey=748000fffffffffffe5f72800000000000008d, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:24:20.008 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 9, tp add index"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449573672712667136, conflictStartTS=449573672712667137, conflictCommitTS=449573672713191424, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=141}, originalKey=748000fffffffffffe5f72800000000000008d, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:141, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:19.981 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.016 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:141, Type:add index, State:cancelling, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:19.981 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.016 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=141] [conn=3] [category=ddl] [job="ID:141, Type:add index, State:cancelling, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:19.981 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.016 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 7, tp add index"] [category=ddl] [jobID=141] [conn=3] [job="ID:141, Type:add index, State:cancelled, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:19.981 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:24:20.016 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:141, Type:add index, State:cancelled, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:19.981 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.016 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=141] [conn=3] [job="ID:141, Type:add index, State:cancelled, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:19.981 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.020 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=141] [2024/05/06 09:24:20.020 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:20.020 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=186] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).createIndex\n\tpkg/ddl/ddl_api.go:7732\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:3935\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:289\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:20.020 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:141, Type:add index, State:cancelled, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:19.981 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.020 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=186] [cur_db=test] [sql="alter table t add index idx_c2(c2)"] [user=] [2024/05/06 09:24:20.023 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:142, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.021 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:20.023 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:142, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.021 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add index idx_c2(c2)"] [2024/05/06 09:24:20.028 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:142, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.021 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.028 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=142] [conn=3] [category=ddl] [job="ID:142, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.021 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.028 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:142, Type:add index, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.021 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":19,\"idx_name\":{\"O\":\"idx_c2\",\"L\":\"idx_c2\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c2\",\"L\":\"c2\"},\"offset\":1,\"length\":-1}],\"state\":0,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":false,\"is_primary\":false,\"is_invisible\":false,\"is_global\":false,\"mv_index\":false}"] [2024/05/06 09:24:20.028 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:24:20.029 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:142, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.021 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.030 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=186] [neededSchemaVersion=188] ["start time"=388.182µs] [gotSchemaVersion=188] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:20.032 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=142] [version=188] [2024/05/06 09:24:20.032 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=188] ["take time"=2.011723ms] [job="ID:142, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.021 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.037 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:142, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.021 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.046 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:142, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.021 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.048 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=142] [conn=3] [category=ddl] [job="ID:142, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.021 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.049 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:142, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.021 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.050 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449573672726298624, conflictStartTS=449573672726298625, conflictCommitTS=449573672726560768, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=142}, originalKey=748000fffffffffffe5f72800000000000008e, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [IsBatchInsert=false] [IsPessimistic=false] [InRestrictedSQL=true] [tidb_retry_limit=10] [tidb_disable_txn_auto_retry=true] [2024/05/06 09:24:20.050 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449573672726298624, conflictStartTS=449573672726298625, conflictCommitTS=449573672726560768, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=142}, originalKey=748000fffffffffffe5f72800000000000008e, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:24:20.050 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 9, tp add index"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449573672726298624, conflictStartTS=449573672726298625, conflictCommitTS=449573672726560768, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=142}, originalKey=748000fffffffffffe5f72800000000000008e, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:142, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.021 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.055 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:142, Type:add index, State:cancelling, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.021 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.055 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=142] [conn=3] [category=ddl] [job="ID:142, Type:add index, State:cancelling, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.021 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.056 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 7, tp add index"] [category=ddl] [jobID=142] [conn=3] [job="ID:142, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:20.021 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.completeErr\n\tpkg/ddl/index_cop.go:319\ngithub.com/pingcap/tidb/pkg/ddl.convertAddIdxJob2RollbackJob\n\tpkg/ddl/rollingback.go:93\ngithub.com/pingcap/tidb/pkg/ddl.convertNotReorgAddIdxJob2RollbackJob\n\tpkg/ddl/rollingback.go:139\ngithub.com/pingcap/tidb/pkg/ddl.rollingbackAddIndex\n\tpkg/ddl/rollingback.go:270\ngithub.com/pingcap/tidb/pkg/ddl.convertJob2RollbackJob\n\tpkg/ddl/rollingback.go:480\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).runDDLJob\n\tpkg/ddl/ddl_worker.go:1202\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).HandleDDLJobTable\n\tpkg/ddl/ddl_worker.go:946\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).delivery2Worker.func1\n\tpkg/ddl/job_table.go:461\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:157\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [2024/05/06 09:24:20.056 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:142, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:20.021 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.057 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=142] [2024/05/06 09:24:20.058 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:142, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:20.021 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.066 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:142, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.021 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.066 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=142] [conn=3] [category=ddl] [job="ID:142, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.021 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.067 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:142, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:20.021 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.069 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=188] [neededSchemaVersion=190] ["start time"=426.876µs] [gotSchemaVersion=190] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:20.071 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=142] [version=190] [2024/05/06 09:24:20.071 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=190] ["take time"=2.086149ms] [job="ID:142, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:20.021 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.072 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:142, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:20.021 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.078 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:142, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.021 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.078 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=142] [conn=3] [category=ddl] [job="ID:142, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.021 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.079 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:142, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:20.021 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.081 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=190] [neededSchemaVersion=191] ["start time"=348.676µs] [gotSchemaVersion=191] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:20.083 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=142] [version=191] [2024/05/06 09:24:20.084 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=191] ["take time"=3.409841ms] [job="ID:142, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:20.021 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.085 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:142, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:20.021 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.095 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=142] [tableID=111] [indexIDs="[19,9223090561878065171]"] [comment="add index: physical table ID(s)"] [2024/05/06 09:24:20.096 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=142] [jobType="add index"] [2024/05/06 09:24:20.097 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=142] [conn=3] [job="ID:142, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:20.021 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.101 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=142] [elementID=1] [startKey=74800000000000006f5f698000000000000013] [endKey=74800000000000006f5f698000000000000014] [2024/05/06 09:24:20.102 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=142] [2024/05/06 09:24:20.102 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:142, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:20.021 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.103 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=142] [elementID=2] [startKey=74800000000000006f5f69ffff000000000013] [endKey=74800000000000006f5f69ffff000000000014] [2024/05/06 09:24:20.106 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=142] [2024/05/06 09:24:20.106 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:20.106 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=186] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).createIndex\n\tpkg/ddl/ddl_api.go:7732\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:3935\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:289\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:20.106 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=191] [cur_db=test] [sql="alter table t add index idx_c2(c2)"] [user=] [2024/05/06 09:24:20.109 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:143, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.108 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:20.109 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:143, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.108 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add index idx_c2(c2)"] [2024/05/06 09:24:20.117 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:143, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.108 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.117 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=143] [conn=3] [category=ddl] [job="ID:143, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.108 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.117 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:143, Type:add index, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.108 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":20,\"idx_name\":{\"O\":\"idx_c2\",\"L\":\"idx_c2\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c2\",\"L\":\"c2\"},\"offset\":1,\"length\":-1}],\"state\":0,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":false,\"is_primary\":false,\"is_invisible\":false,\"is_global\":false,\"mv_index\":false}"] [2024/05/06 09:24:20.117 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:24:20.118 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:143, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.108 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.120 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=191] [neededSchemaVersion=192] ["start time"=355.014µs] [gotSchemaVersion=192] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:20.121 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=143] [version=192] [2024/05/06 09:24:20.122 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=192] ["take time"=2.049908ms] [job="ID:143, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.108 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.123 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:143, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.108 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.130 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:143, Type:add index, State:cancelling, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.108 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.130 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=143] [conn=3] [category=ddl] [job="ID:143, Type:add index, State:cancelling, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.108 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.131 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 7, tp add index"] [category=ddl] [jobID=143] [conn=3] [job="ID:143, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:20.108 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.completeErr\n\tpkg/ddl/index_cop.go:319\ngithub.com/pingcap/tidb/pkg/ddl.convertAddIdxJob2RollbackJob\n\tpkg/ddl/rollingback.go:93\ngithub.com/pingcap/tidb/pkg/ddl.convertNotReorgAddIdxJob2RollbackJob\n\tpkg/ddl/rollingback.go:139\ngithub.com/pingcap/tidb/pkg/ddl.rollingbackAddIndex\n\tpkg/ddl/rollingback.go:270\ngithub.com/pingcap/tidb/pkg/ddl.convertJob2RollbackJob\n\tpkg/ddl/rollingback.go:480\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).runDDLJob\n\tpkg/ddl/ddl_worker.go:1202\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).HandleDDLJobTable\n\tpkg/ddl/ddl_worker.go:946\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).delivery2Worker.func1\n\tpkg/ddl/job_table.go:461\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:157\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [2024/05/06 09:24:20.131 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:143, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:20.108 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.134 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=143] [2024/05/06 09:24:20.135 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:143, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:20.108 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.160 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:143, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.108 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.160 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=143] [conn=3] [category=ddl] [job="ID:143, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.108 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.161 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:143, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:20.108 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.163 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=192] [neededSchemaVersion=193] ["start time"=371.787µs] [gotSchemaVersion=193] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:20.165 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=143] [version=193] [2024/05/06 09:24:20.165 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=193] ["take time"=2.03566ms] [job="ID:143, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:20.108 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.166 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:143, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:20.108 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.173 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:143, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.108 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.173 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=143] [conn=3] [category=ddl] [job="ID:143, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.108 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.174 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:143, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:20.108 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.177 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=193] [neededSchemaVersion=194] ["start time"=477.469µs] [gotSchemaVersion=194] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:20.178 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=143] [version=194] [2024/05/06 09:24:20.180 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=194] ["take time"=4.073435ms] [job="ID:143, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:20.108 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.180 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:143, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:20.108 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.189 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=143] [tableID=111] [indexIDs="[20,9223090561878065172]"] [comment="add index: physical table ID(s)"] [2024/05/06 09:24:20.190 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=143] [jobType="add index"] [2024/05/06 09:24:20.191 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=143] [conn=3] [job="ID:143, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:20.108 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.193 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=143] [elementID=1] [startKey=74800000000000006f5f698000000000000014] [endKey=74800000000000006f5f698000000000000015] [2024/05/06 09:24:20.196 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=143] [2024/05/06 09:24:20.196 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:143, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:20.108 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.199 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=143] [2024/05/06 09:24:20.199 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:20.199 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=191] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).createIndex\n\tpkg/ddl/ddl_api.go:7732\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:3935\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:306\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:20.200 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=194] [cur_db=test] [sql="alter table t add index idx_c2(c2)"] [user=] [2024/05/06 09:24:20.200 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=143] [elementID=2] [startKey=74800000000000006f5f69ffff000000000014] [endKey=74800000000000006f5f69ffff000000000015] [2024/05/06 09:24:20.203 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:144, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.201 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:20.203 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:144, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.201 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add index idx_c2(c2)"] [2024/05/06 09:24:20.213 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:144, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.201 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.213 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=144] [conn=3] [category=ddl] [job="ID:144, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.201 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.213 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:144, Type:add index, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.201 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":21,\"idx_name\":{\"O\":\"idx_c2\",\"L\":\"idx_c2\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c2\",\"L\":\"c2\"},\"offset\":1,\"length\":-1}],\"state\":0,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":false,\"is_primary\":false,\"is_invisible\":false,\"is_global\":false,\"mv_index\":false}"] [2024/05/06 09:24:20.213 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:24:20.214 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:144, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.201 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.216 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=194] [neededSchemaVersion=195] ["start time"=426.435µs] [gotSchemaVersion=195] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:20.220 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=144] [version=195] [2024/05/06 09:24:20.223 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=195] ["take time"=6.740333ms] [job="ID:144, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.201 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.224 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:144, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.201 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.235 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:144, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.201 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.242 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=144] [conn=3] [category=ddl] [job="ID:144, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.201 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.245 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:144, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.201 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.247 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=195] [neededSchemaVersion=196] ["start time"=374.211µs] [gotSchemaVersion=196] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:20.250 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=144] [version=196] [2024/05/06 09:24:20.253 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=196] ["take time"=6.273497ms] [job="ID:144, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.201 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.254 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:144, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.201 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.264 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:144, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.201 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.266 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=144] [conn=3] [category=ddl] [job="ID:144, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.201 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.267 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:144, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.201 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.269 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449573672783446016, conflictStartTS=449573672783446017, conflictCommitTS=449573672783970304, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=144}, originalKey=748000fffffffffffe5f728000000000000090, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [IsBatchInsert=false] [IsPessimistic=false] [InRestrictedSQL=true] [tidb_retry_limit=10] [tidb_disable_txn_auto_retry=true] [2024/05/06 09:24:20.269 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449573672783446016, conflictStartTS=449573672783446017, conflictCommitTS=449573672783970304, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=144}, originalKey=748000fffffffffffe5f728000000000000090, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:24:20.269 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 8, tp add index"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449573672783446016, conflictStartTS=449573672783446017, conflictCommitTS=449573672783970304, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=144}, originalKey=748000fffffffffffe5f728000000000000090, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:144, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.201 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.276 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:144, Type:add index, State:cancelling, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.201 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.276 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=144] [conn=3] [category=ddl] [job="ID:144, Type:add index, State:cancelling, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.201 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.277 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 9, tp add index"] [category=ddl] [jobID=144] [conn=3] [job="ID:144, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:20.201 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.completeErr\n\tpkg/ddl/index_cop.go:319\ngithub.com/pingcap/tidb/pkg/ddl.convertAddIdxJob2RollbackJob\n\tpkg/ddl/rollingback.go:93\ngithub.com/pingcap/tidb/pkg/ddl.convertNotReorgAddIdxJob2RollbackJob\n\tpkg/ddl/rollingback.go:139\ngithub.com/pingcap/tidb/pkg/ddl.rollingbackAddIndex\n\tpkg/ddl/rollingback.go:270\ngithub.com/pingcap/tidb/pkg/ddl.convertJob2RollbackJob\n\tpkg/ddl/rollingback.go:480\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).runDDLJob\n\tpkg/ddl/ddl_worker.go:1202\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).HandleDDLJobTable\n\tpkg/ddl/ddl_worker.go:946\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).delivery2Worker.func1\n\tpkg/ddl/job_table.go:461\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:157\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [2024/05/06 09:24:20.278 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:144, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:20.201 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.280 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=196] [neededSchemaVersion=198] ["start time"=397.758µs] [gotSchemaVersion=198] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:20.281 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=144] [version=198] [2024/05/06 09:24:20.283 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=198] ["take time"=4.171613ms] [job="ID:144, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:20.201 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.284 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:144, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:20.201 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.291 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:144, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.201 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.291 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=144] [conn=3] [category=ddl] [job="ID:144, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.201 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.303 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:144, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:20.201 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.305 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=198] [neededSchemaVersion=199] ["start time"=392.446µs] [gotSchemaVersion=199] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:20.307 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=144] [version=199] [2024/05/06 09:24:20.309 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=199] ["take time"=3.941957ms] [job="ID:144, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:20.201 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.309 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:144, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:20.201 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.316 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:144, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.201 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.316 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=144] [conn=3] [category=ddl] [job="ID:144, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.201 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.317 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:144, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:20.201 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.319 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=199] [neededSchemaVersion=200] ["start time"=467.993µs] [gotSchemaVersion=200] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:20.321 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=144] [version=200] [2024/05/06 09:24:20.323 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=200] ["take time"=4.667582ms] [job="ID:144, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:20.201 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.324 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:144, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:20.201 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.333 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=144] [tableID=111] [indexIDs="[21,9223090561878065173]"] [comment="add index: physical table ID(s)"] [2024/05/06 09:24:20.335 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=144] [jobType="add index"] [2024/05/06 09:24:20.335 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=144] [conn=3] [job="ID:144, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:20.201 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.337 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=144] [elementID=1] [startKey=74800000000000006f5f698000000000000015] [endKey=74800000000000006f5f698000000000000016] [2024/05/06 09:24:20.339 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=144] [elementID=2] [startKey=74800000000000006f5f69ffff000000000015] [endKey=74800000000000006f5f69ffff000000000016] [2024/05/06 09:24:20.339 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=144] [2024/05/06 09:24:20.340 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:144, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:20.201 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.345 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=144] [2024/05/06 09:24:20.345 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:20.345 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=194] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).createIndex\n\tpkg/ddl/ddl_api.go:7732\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:3935\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:289\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:20.346 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=200] [cur_db=test] [sql="alter table t add index idx_c2(c2)"] [user=] [2024/05/06 09:24:20.348 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:145, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.347 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:20.348 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:145, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.347 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add index idx_c2(c2)"] [2024/05/06 09:24:20.357 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:145, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.347 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.357 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=145] [conn=3] [category=ddl] [job="ID:145, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.347 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.357 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:145, Type:add index, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.347 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":22,\"idx_name\":{\"O\":\"idx_c2\",\"L\":\"idx_c2\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c2\",\"L\":\"c2\"},\"offset\":1,\"length\":-1}],\"state\":0,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":false,\"is_primary\":false,\"is_invisible\":false,\"is_global\":false,\"mv_index\":false}"] [2024/05/06 09:24:20.357 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:24:20.358 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:145, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.347 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.360 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=200] [neededSchemaVersion=201] ["start time"=360.192µs] [gotSchemaVersion=201] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:20.361 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=145] [version=201] [2024/05/06 09:24:20.362 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=201] ["take time"=2.457152ms] [job="ID:145, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.347 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.363 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:145, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.347 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.370 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:145, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.347 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.370 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=145] [conn=3] [category=ddl] [job="ID:145, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.347 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.370 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:145, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.347 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.372 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=201] [neededSchemaVersion=202] ["start time"=371.802µs] [gotSchemaVersion=202] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:20.374 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=145] [version=202] [2024/05/06 09:24:20.374 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=202] ["take time"=2.031891ms] [job="ID:145, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.347 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.375 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:145, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.347 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.384 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:145, Type:add index, State:cancelling, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.347 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.384 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=145] [conn=3] [category=ddl] [job="ID:145, Type:add index, State:cancelling, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.347 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.385 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 9, tp add index"] [category=ddl] [jobID=145] [conn=3] [job="ID:145, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:20.347 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.completeErr\n\tpkg/ddl/index_cop.go:319\ngithub.com/pingcap/tidb/pkg/ddl.convertAddIdxJob2RollbackJob\n\tpkg/ddl/rollingback.go:93\ngithub.com/pingcap/tidb/pkg/ddl.convertNotReorgAddIdxJob2RollbackJob\n\tpkg/ddl/rollingback.go:139\ngithub.com/pingcap/tidb/pkg/ddl.rollingbackAddIndex\n\tpkg/ddl/rollingback.go:270\ngithub.com/pingcap/tidb/pkg/ddl.convertJob2RollbackJob\n\tpkg/ddl/rollingback.go:480\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).runDDLJob\n\tpkg/ddl/ddl_worker.go:1202\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).HandleDDLJobTable\n\tpkg/ddl/ddl_worker.go:946\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).delivery2Worker.func1\n\tpkg/ddl/job_table.go:461\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:157\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [2024/05/06 09:24:20.385 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:145, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:20.347 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.387 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=202] [neededSchemaVersion=203] ["start time"=361.898µs] [gotSchemaVersion=203] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:20.388 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=145] [version=203] [2024/05/06 09:24:20.389 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=203] ["take time"=2.867314ms] [job="ID:145, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:20.347 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.390 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:145, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:20.347 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.398 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:145, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.347 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.398 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=145] [conn=3] [category=ddl] [job="ID:145, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.347 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.399 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:145, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:20.347 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.401 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=203] [neededSchemaVersion=204] ["start time"=435.683µs] [gotSchemaVersion=204] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:20.403 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=145] [version=204] [2024/05/06 09:24:20.403 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=204] ["take time"=2.025751ms] [job="ID:145, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:20.347 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.404 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:145, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:20.347 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.411 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:145, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.347 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.411 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=145] [conn=3] [category=ddl] [job="ID:145, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.347 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.412 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:145, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:20.347 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.414 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=204] [neededSchemaVersion=205] ["start time"=336.654µs] [gotSchemaVersion=205] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:20.415 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=145] [version=205] [2024/05/06 09:24:20.417 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=205] ["take time"=3.010423ms] [job="ID:145, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:20.347 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.418 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:145, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:20.347 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.427 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=145] [tableID=111] [indexIDs="[22,9223090561878065174]"] [comment="add index: physical table ID(s)"] [2024/05/06 09:24:20.428 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=145] [jobType="add index"] [2024/05/06 09:24:20.429 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=145] [conn=3] [job="ID:145, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:20.347 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.432 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=145] [2024/05/06 09:24:20.433 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:145, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:20.347 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.434 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=145] [elementID=1] [startKey=74800000000000006f5f698000000000000016] [endKey=74800000000000006f5f698000000000000017] [2024/05/06 09:24:20.437 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=145] [elementID=2] [startKey=74800000000000006f5f69ffff000000000016] [endKey=74800000000000006f5f69ffff000000000017] [2024/05/06 09:24:20.441 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=145] [2024/05/06 09:24:20.441 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:20.441 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=200] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).createIndex\n\tpkg/ddl/ddl_api.go:7732\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:3935\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:306\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:20.456 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=205] [cur_db=test] [sql="alter table t add index idx_cx2(c2)"] [user=] [2024/05/06 09:24:20.459 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:146, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:20.459 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:146, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add index idx_cx2(c2)"] [2024/05/06 09:24:20.470 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:146, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.470 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=146] [conn=3] [category=ddl] [job="ID:146, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.470 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":23,\"idx_name\":{\"O\":\"idx_cx2\",\"L\":\"idx_cx2\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c2\",\"L\":\"c2\"},\"offset\":1,\"length\":-1}],\"state\":0,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":false,\"is_primary\":false,\"is_invisible\":false,\"is_global\":false,\"mv_index\":false}"] [2024/05/06 09:24:20.471 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:24:20.471 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.473 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=205] [neededSchemaVersion=206] ["start time"=362.969µs] [gotSchemaVersion=206] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:20.474 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=146] [version=206] [2024/05/06 09:24:20.475 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=206] ["take time"=2.353066ms] [job="ID:146, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.475 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.481 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.481 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=146] [conn=3] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.482 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.485 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=206] [neededSchemaVersion=207] ["start time"=666.827µs] [gotSchemaVersion=207] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:20.488 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=146] [version=207] [2024/05/06 09:24:20.491 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=207] ["take time"=6.328104ms] [job="ID:146, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.492 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.498 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.498 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=146] [conn=3] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.499 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.501 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=207] [neededSchemaVersion=208] ["start time"=489.377µs] [gotSchemaVersion=208] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:20.503 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=146] [version=208] [2024/05/06 09:24:20.505 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=208] ["take time"=4.626533ms] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.506 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.516 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.516 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=146] [conn=3] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.516 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=146] [table=t] ["ingest mode"=false] [index=idx_cx2] [2024/05/06 09:24:20.517 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=146] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:20.519 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672849506305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.520 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=146] [2024/05/06 09:24:20.520 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672849506305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.529 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672849506305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.529 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=146] [conn=3] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672849506305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.529 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=146] [table=t] ["ingest mode"=false] [index=idx_cx2] [2024/05/06 09:24:20.531 +00:00] [INFO] [index.go:1931] ["start to add table index"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672849506305, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:23,StartKey:74800000000000006f5f728000000000000001,EndKey:74800000000000006f5f72800000000000080100,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:24:20.532 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=111] ["start key"=74800000000000006f5f728000000000000001] ["end key"=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:20.532 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="add index"] [workerCnt=1] [regionCnt=1] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:20.533 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=111] ["end key"=74800000000000006f5f72800000000000080100] ["current end key"=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:20.541 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:20.541 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672849506305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.542 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=146] [2024/05/06 09:24:20.543 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672849506305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.550 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672849506305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.551 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=146] [conn=3] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672849506305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.551 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=146] [table=t] ["ingest mode"=false] [index=idx_cx2] [2024/05/06 09:24:20.565 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:20.565 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672849506305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.566 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=146] [2024/05/06 09:24:20.566 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672849506305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.573 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672849506305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.573 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=146] [conn=3] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672849506305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.574 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=146] [table=t] ["ingest mode"=false] [index=idx_cx2] [2024/05/06 09:24:20.587 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:20.587 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672849506305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.588 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=146] [2024/05/06 09:24:20.588 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672849506305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.595 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672849506305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.595 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=146] [conn=3] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672849506305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.595 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=146] [table=t] ["ingest mode"=false] [index=idx_cx2] [2024/05/06 09:24:20.607 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:20.607 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672849506305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.608 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=146] [2024/05/06 09:24:20.608 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672849506305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.614 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672849506305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.614 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=146] [conn=3] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672849506305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.614 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=146] [table=t] ["ingest mode"=false] [index=idx_cx2] [2024/05/06 09:24:20.626 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:20.626 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672849506305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.626 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=146] [2024/05/06 09:24:20.627 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672849506305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.632 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672849506305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.632 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=146] [conn=3] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672849506305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.632 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=146] [table=t] ["ingest mode"=false] [index=idx_cx2] [2024/05/06 09:24:20.697 +00:00] [INFO] [backfilling.go:330] ["backfill worker finish task"] [category=ddl] [worker="backfill-worker 0, tp add index"] [task="taskID: 1, physicalTableID: 111, range: [74800000000000006f5f728000000000000001, 74800000000000006f5f72800000000000080100), jobID: 146"] ["added count"=2049] ["scan count"=2049] ["next key"=74800000000000006f5f72800000000000080100] ["take time"=64.530611ms] [2024/05/06 09:24:20.697 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=146] [2024/05/06 09:24:20.697 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:23,TypeKey:_idx_] ["total added count"=2049] ["start key"=74800000000000006f5f728000000000000001] [2024/05/06 09:24:20.707 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=352] [2024/05/06 09:24:20.707 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:352, ArgLen:6, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672849506305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.708 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=146] [2024/05/06 09:24:20.708 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:352, ArgLen:6, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672849506305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.715 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:352, ArgLen:0, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672849506305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.715 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=146] [conn=3] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:352, ArgLen:0, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672849506305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.715 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=146] [table=t] ["ingest mode"=false] [index=idx_cx2] [2024/05/06 09:24:20.717 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:24:20.760 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672849506305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.763 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=208] [neededSchemaVersion=209] ["start time"=350.124µs] [gotSchemaVersion=209] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:20.764 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=146] [version=209] [2024/05/06 09:24:20.764 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=209] ["take time"=2.039397ms] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672849506305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.765 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672849506305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.771 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672849506305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.771 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=146] [conn=3] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672849506305, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.771 +00:00] [INFO] [index.go:880] ["index backfill state ready to merge"] [category=ddl] ["job ID"=146] [table=t] [index=idx_cx2] [2024/05/06 09:24:20.771 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.776 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=209] [neededSchemaVersion=210] ["start time"=374.993µs] [gotSchemaVersion=210] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:20.783 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=146] [version=210] [2024/05/06 09:24:20.784 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=210] ["take time"=10.121134ms] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.784 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.792 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.792 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=146] [conn=3] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.792 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=146] [physicalTableID=111] [startKey=74800000000000006f5f69ffff000000000017] [endKey=74800000000000006f5f69ffff000000000017ff] [2024/05/06 09:24:20.795 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672921858049, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.797 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=146] [2024/05/06 09:24:20.798 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672921858049, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.803 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672921858049, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.803 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=146] [conn=3] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672921858049, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.805 +00:00] [INFO] [index.go:1928] ["start to merge temp index"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672921858049, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:23,StartKey:74800000000000006f5f69ffff000000000017,EndKey:74800000000000006f5f69ffff000000000017ff,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:24:20.806 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=111] ["start key"=74800000000000006f5f69ffff000000000017] ["end key"=74800000000000006f5f69ffff000000000017ff] [2024/05/06 09:24:20.806 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="merge temporary index"] [workerCnt=1] [regionCnt=1] [startKey=74800000000000006f5f69ffff000000000017] [endKey=74800000000000006f5f69ffff000000000017ff] [2024/05/06 09:24:20.806 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=111] ["end key"=74800000000000006f5f69ffff000000000017ff] ["current end key"=74800000000000006f5f69ffff00000000001700] [2024/05/06 09:24:20.872 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=2049] [2024/05/06 09:24:20.872 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672921858049, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.872 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=146] [2024/05/06 09:24:20.875 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672921858049, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.882 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672921858049, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.882 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=146] [conn=3] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672921858049, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.907 +00:00] [INFO] [backfilling.go:330] ["backfill worker finish task"] [category=ddl] [worker="backfill-worker 0, tp merge temporary index"] [task="taskID: 1, physicalTableID: 111, range: [74800000000000006f5f69ffff000000000017, 74800000000000006f5f69ffff00000000001700), jobID: 146"] ["added count"=0] ["scan count"=0] ["next key"=74800000000000006f5f69ffff0000000000170000] ["take time"=200.214µs] [2024/05/06 09:24:20.907 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp merge temporary index"] [jobID=146] [2024/05/06 09:24:20.907 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:23,TypeKey:_idx_] ["total added count"=2049] ["start key"=74800000000000006f5f69ffff000000000017] [2024/05/06 09:24:20.988 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=2049] [2024/05/06 09:24:20.988 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672921858049, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.989 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=146] [2024/05/06 09:24:20.990 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672921858049, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.997 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672921858049, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.997 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=146] [conn=3] [category=ddl] [job="ID:146, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672921858049, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:20.999 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:24:21.048 +00:00] [INFO] [index.go:781] ["run add index job done"] [category=ddl] [charset=utf8mb4] [collation=utf8mb4_bin] [2024/05/06 09:24:21.048 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:146, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672921858049, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:21.051 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=210] [neededSchemaVersion=211] ["start time"=352.47µs] [gotSchemaVersion=211] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:21.052 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=146] [version=211] [2024/05/06 09:24:21.052 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=211] ["take time"=2.03222ms] [job="ID:146, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672921858049, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:21.053 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:146, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672921858049, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:21.060 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=146] [tableID=111] [indexIDs="[9223090561878065175]"] [comment="add index: physical table ID(s)"] [2024/05/06 09:24:21.061 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=146] [jobType="add index"] [2024/05/06 09:24:21.062 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=146] [conn=3] [job="ID:146, Type:add index, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672921858049, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:21.065 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:146, Type:add index, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:20.458 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573672921858049, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:21.065 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=146] [elementID=1] [startKey=74800000000000006f5f69ffff000000000017] [endKey=74800000000000006f5f69ffff000000000018] [2024/05/06 09:24:21.068 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=146] [2024/05/06 09:24:21.068 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:21.069 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=211] [cur_db=test] [sql="alter table t add column c4 bigint"] [user=] [2024/05/06 09:24:21.072 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:147, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.07 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:21.072 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:147, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.07 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c4 bigint"] [2024/05/06 09:24:21.081 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:147, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.07 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.084 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=147] [conn=3] [category=ddl] [job="ID:147, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.07 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.084 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:147, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.07 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [columnInfo="{\"id\":5,\"name\":{\"O\":\"c4\",\"L\":\"c4\"},\"offset\":4,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{},\"state\":0,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2}"] [2024/05/06 09:24:21.085 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:147, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.07 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.086 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449573672997617665, conflictStartTS=449573672997879808, conflictCommitTS=449573672998141952, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=147}, originalKey=748000fffffffffffe5f728000000000000093, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [IsBatchInsert=false] [IsPessimistic=false] [InRestrictedSQL=true] [tidb_retry_limit=10] [tidb_disable_txn_auto_retry=true] [2024/05/06 09:24:21.086 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449573672997617665, conflictStartTS=449573672997879808, conflictCommitTS=449573672998141952, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=147}, originalKey=748000fffffffffffe5f728000000000000093, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:24:21.086 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449573672997617665, conflictStartTS=449573672997879808, conflictCommitTS=449573672998141952, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=147}, originalKey=748000fffffffffffe5f728000000000000093, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:147, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.07 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.093 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:147, Type:add column, State:cancelling, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.07 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.093 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=147] [conn=3] [category=ddl] [job="ID:147, Type:add column, State:cancelling, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.07 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.094 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=147] [conn=3] [job="ID:147, Type:add column, State:cancelled, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.07 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:24:21.094 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:147, Type:add column, State:cancelled, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.07 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.094 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=147] [conn=3] [job="ID:147, Type:add column, State:cancelled, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.07 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.097 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:147, Type:add column, State:cancelled, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.07 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.097 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=147] [2024/05/06 09:24:21.097 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:21.097 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=211] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AddColumn\n\tpkg/ddl/ddl_api.go:4407\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:3878\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:289\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:21.098 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=211] [cur_db=test] [sql="alter table t add column c4 bigint"] [user=] [2024/05/06 09:24:21.103 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:148, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.102 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:21.103 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:148, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.102 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c4 bigint"] [2024/05/06 09:24:21.110 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:148, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.102 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.110 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=148] [conn=3] [category=ddl] [job="ID:148, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.102 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.110 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:148, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.102 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [columnInfo="{\"id\":5,\"name\":{\"O\":\"c4\",\"L\":\"c4\"},\"offset\":4,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{},\"state\":0,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2}"] [2024/05/06 09:24:21.111 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:148, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.102 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.116 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=211] [neededSchemaVersion=213] ["start time"=418.332µs] [gotSchemaVersion=213] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:21.117 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=148] [version=213] [2024/05/06 09:24:21.118 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=213] ["take time"=2.052336ms] [job="ID:148, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.102 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.119 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:148, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.102 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.124 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:148, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.102 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.126 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=148] [conn=3] [category=ddl] [job="ID:148, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.102 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.126 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:148, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.102 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.128 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449573673008889856, conflictStartTS=449573673008889857, conflictCommitTS=449573673009152000, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=148}, originalKey=748000fffffffffffe5f728000000000000094, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [IsBatchInsert=false] [IsPessimistic=false] [InRestrictedSQL=true] [tidb_retry_limit=10] [tidb_disable_txn_auto_retry=true] [2024/05/06 09:24:21.128 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449573673008889856, conflictStartTS=449573673008889857, conflictCommitTS=449573673009152000, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=148}, originalKey=748000fffffffffffe5f728000000000000094, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:24:21.128 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449573673008889856, conflictStartTS=449573673008889857, conflictCommitTS=449573673009152000, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=148}, originalKey=748000fffffffffffe5f728000000000000094, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:148, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.102 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.134 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:148, Type:add column, State:cancelling, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.102 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.135 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=148] [conn=3] [category=ddl] [job="ID:148, Type:add column, State:cancelling, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.102 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.135 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=148] [conn=3] [job="ID:148, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.102 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:24:21.135 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:148, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.102 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.136 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=148] [2024/05/06 09:24:21.137 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:148, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.102 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.143 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:148, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.102 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.143 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=148] [conn=3] [category=ddl] [job="ID:148, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.102 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.143 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:148, Type:add column, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.102 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.145 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=213] [neededSchemaVersion=215] ["start time"=386.389µs] [gotSchemaVersion=215] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:21.147 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=148] [version=215] [2024/05/06 09:24:21.150 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=215] ["take time"=5.153665ms] [job="ID:148, Type:add column, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.102 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.155 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:148, Type:add column, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.102 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.159 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:148, Type:add column, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.102 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.159 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=148] [conn=3] [category=ddl] [job="ID:148, Type:add column, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.102 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.160 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:148, Type:add column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.102 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.162 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=215] [neededSchemaVersion=216] ["start time"=354.583µs] [gotSchemaVersion=216] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:21.163 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=148] [version=216] [2024/05/06 09:24:21.164 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=216] ["take time"=2.311329ms] [job="ID:148, Type:add column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.102 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.165 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:148, Type:add column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.102 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.169 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=148] [conn=3] [job="ID:148, Type:add column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.102 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.171 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=148] [2024/05/06 09:24:21.172 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:148, Type:add column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.102 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.172 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=148] [2024/05/06 09:24:21.172 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:21.172 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=211] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AddColumn\n\tpkg/ddl/ddl_api.go:4407\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:3878\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:289\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:21.173 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=216] [cur_db=test] [sql="alter table t add column c4 bigint"] [user=] [2024/05/06 09:24:21.175 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:149, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.174 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:21.175 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:149, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.174 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c4 bigint"] [2024/05/06 09:24:21.187 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:149, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.174 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.187 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=149] [conn=3] [category=ddl] [job="ID:149, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.174 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.187 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:149, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.174 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [columnInfo="{\"id\":6,\"name\":{\"O\":\"c4\",\"L\":\"c4\"},\"offset\":4,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{},\"state\":0,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2}"] [2024/05/06 09:24:21.189 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:149, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.174 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.194 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=216] [neededSchemaVersion=217] ["start time"=411.564µs] [gotSchemaVersion=217] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:21.195 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=149] [version=217] [2024/05/06 09:24:21.196 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=217] ["take time"=2.630973ms] [job="ID:149, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.174 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.198 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:149, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.174 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.203 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:149, Type:add column, State:cancelling, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.174 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.203 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=149] [conn=3] [category=ddl] [job="ID:149, Type:add column, State:cancelling, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.174 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.204 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=149] [conn=3] [job="ID:149, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.174 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:24:21.204 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:149, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.174 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.205 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=149] [2024/05/06 09:24:21.205 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:149, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.174 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.211 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:149, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.174 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.211 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=149] [conn=3] [category=ddl] [job="ID:149, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.174 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.213 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:149, Type:add column, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.174 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.215 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=217] [neededSchemaVersion=218] ["start time"=392.371µs] [gotSchemaVersion=218] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:21.216 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=149] [version=218] [2024/05/06 09:24:21.219 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=218] ["take time"=4.252442ms] [job="ID:149, Type:add column, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.174 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.221 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:149, Type:add column, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.174 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.225 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:149, Type:add column, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.174 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.225 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=149] [conn=3] [category=ddl] [job="ID:149, Type:add column, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.174 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.226 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:149, Type:add column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.174 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.230 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=218] [neededSchemaVersion=219] ["start time"=1.427752ms] [gotSchemaVersion=219] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:21.232 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=149] [version=219] [2024/05/06 09:24:21.232 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=219] ["take time"=4.552131ms] [job="ID:149, Type:add column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.174 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.233 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:149, Type:add column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.174 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.238 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=149] [conn=3] [job="ID:149, Type:add column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.174 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.240 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=149] [2024/05/06 09:24:21.241 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:149, Type:add column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.174 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.241 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=149] [2024/05/06 09:24:21.241 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:21.241 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=216] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AddColumn\n\tpkg/ddl/ddl_api.go:4407\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:3878\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:306\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:21.241 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=219] [cur_db=test] [sql="alter table t add column c4 bigint"] [user=] [2024/05/06 09:24:21.244 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:150, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.243 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:21.244 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:150, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.243 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c4 bigint"] [2024/05/06 09:24:21.249 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:150, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.243 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.249 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=150] [conn=3] [category=ddl] [job="ID:150, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.243 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.250 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:150, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.243 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [columnInfo="{\"id\":7,\"name\":{\"O\":\"c4\",\"L\":\"c4\"},\"offset\":4,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{},\"state\":0,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2}"] [2024/05/06 09:24:21.250 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:150, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.243 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.252 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=219] [neededSchemaVersion=220] ["start time"=388.394µs] [gotSchemaVersion=220] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:21.254 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=150] [version=220] [2024/05/06 09:24:21.254 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=220] ["take time"=2.884155ms] [job="ID:150, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.243 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.255 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:150, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.243 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.262 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:150, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.243 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.262 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=150] [conn=3] [category=ddl] [job="ID:150, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.243 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.263 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:150, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.243 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.265 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=220] [neededSchemaVersion=221] ["start time"=758.122µs] [gotSchemaVersion=221] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:21.266 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=150] [version=221] [2024/05/06 09:24:21.269 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=221] ["take time"=4.823079ms] [job="ID:150, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.243 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.270 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:150, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.243 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.274 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:150, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.243 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.276 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=150] [conn=3] [category=ddl] [job="ID:150, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.243 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.277 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:150, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.243 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.278 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449573673048211456, conflictStartTS=449573673048211457, conflictCommitTS=449573673048473600, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=150}, originalKey=748000fffffffffffe5f728000000000000096, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [IsBatchInsert=false] [IsPessimistic=false] [InRestrictedSQL=true] [tidb_retry_limit=10] [tidb_disable_txn_auto_retry=true] [2024/05/06 09:24:21.278 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449573673048211456, conflictStartTS=449573673048211457, conflictCommitTS=449573673048473600, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=150}, originalKey=748000fffffffffffe5f728000000000000096, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:24:21.278 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449573673048211456, conflictStartTS=449573673048211457, conflictCommitTS=449573673048473600, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=150}, originalKey=748000fffffffffffe5f728000000000000096, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:150, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.243 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.285 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:150, Type:add column, State:cancelling, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.243 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.287 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=150] [conn=3] [category=ddl] [job="ID:150, Type:add column, State:cancelling, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.243 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.288 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=150] [conn=3] [job="ID:150, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.243 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:24:21.288 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:150, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.243 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.290 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=221] [neededSchemaVersion=223] ["start time"=397.2µs] [gotSchemaVersion=223] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:21.291 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=150] [version=223] [2024/05/06 09:24:21.291 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=223] ["take time"=2.07398ms] [job="ID:150, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.243 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.292 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:150, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.243 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.298 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:150, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.243 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.298 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=150] [conn=3] [category=ddl] [job="ID:150, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.243 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.299 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:150, Type:add column, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.243 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.300 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=223] [neededSchemaVersion=224] ["start time"=363.685µs] [gotSchemaVersion=224] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:21.302 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=150] [version=224] [2024/05/06 09:24:21.302 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=224] ["take time"=2.448063ms] [job="ID:150, Type:add column, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.243 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.303 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:150, Type:add column, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.243 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.306 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:150, Type:add column, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.243 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.306 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=150] [conn=3] [category=ddl] [job="ID:150, Type:add column, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.243 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.307 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:150, Type:add column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.243 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.309 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=224] [neededSchemaVersion=225] ["start time"=370.855µs] [gotSchemaVersion=225] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:21.311 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=150] [version=225] [2024/05/06 09:24:21.313 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=225] ["take time"=4.034162ms] [job="ID:150, Type:add column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.243 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.314 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:150, Type:add column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.243 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.318 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=150] [conn=3] [job="ID:150, Type:add column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.243 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.321 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=150] [2024/05/06 09:24:21.322 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:150, Type:add column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.243 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.324 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=150] [2024/05/06 09:24:21.324 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:21.324 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=219] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AddColumn\n\tpkg/ddl/ddl_api.go:4407\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:3878\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:289\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:21.324 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=225] [cur_db=test] [sql="alter table t add column c4 bigint"] [user=] [2024/05/06 09:24:21.330 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:151, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.329 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:21.330 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:151, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.329 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c4 bigint"] [2024/05/06 09:24:21.335 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:151, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.329 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.335 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=151] [conn=3] [category=ddl] [job="ID:151, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.329 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.335 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:151, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.329 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [columnInfo="{\"id\":8,\"name\":{\"O\":\"c4\",\"L\":\"c4\"},\"offset\":4,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{},\"state\":0,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2}"] [2024/05/06 09:24:21.337 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:151, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.329 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.339 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=225] [neededSchemaVersion=226] ["start time"=509.693µs] [gotSchemaVersion=226] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:21.340 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=151] [version=226] [2024/05/06 09:24:21.343 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=226] ["take time"=4.635216ms] [job="ID:151, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.329 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.344 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:151, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.329 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.349 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:151, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.329 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.350 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=151] [conn=3] [category=ddl] [job="ID:151, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.329 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.350 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:151, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.329 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.352 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=226] [neededSchemaVersion=227] ["start time"=433.477µs] [gotSchemaVersion=227] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:21.353 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=151] [version=227] [2024/05/06 09:24:21.354 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=227] ["take time"=2.732718ms] [job="ID:151, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.329 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.355 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:151, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.329 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.361 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:151, Type:add column, State:cancelling, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.329 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.362 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=151] [conn=3] [category=ddl] [job="ID:151, Type:add column, State:cancelling, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.329 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.366 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=151] [conn=3] [job="ID:151, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.329 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:24:21.366 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:151, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.329 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.368 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=227] [neededSchemaVersion=228] ["start time"=387.12µs] [gotSchemaVersion=228] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:21.369 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=151] [version=228] [2024/05/06 09:24:21.369 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=228] ["take time"=2.057324ms] [job="ID:151, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.329 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.370 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:151, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.329 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.374 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:151, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.329 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.374 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=151] [conn=3] [category=ddl] [job="ID:151, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.329 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.375 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:151, Type:add column, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.329 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.378 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=228] [neededSchemaVersion=229] ["start time"=395.396µs] [gotSchemaVersion=229] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:21.379 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=151] [version=229] [2024/05/06 09:24:21.379 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=229] ["take time"=2.697642ms] [job="ID:151, Type:add column, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.329 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.380 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:151, Type:add column, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.329 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.385 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:151, Type:add column, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.329 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.385 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=151] [conn=3] [category=ddl] [job="ID:151, Type:add column, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.329 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.385 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:151, Type:add column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.329 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.388 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=229] [neededSchemaVersion=230] ["start time"=419.238µs] [gotSchemaVersion=230] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:21.389 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=151] [version=230] [2024/05/06 09:24:21.389 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=230] ["take time"=2.053238ms] [job="ID:151, Type:add column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.329 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.390 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:151, Type:add column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.329 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.408 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=151] [conn=3] [job="ID:151, Type:add column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.329 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.411 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=151] [2024/05/06 09:24:21.412 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:151, Type:add column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.329 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.414 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=151] [2024/05/06 09:24:21.414 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:21.414 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=225] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AddColumn\n\tpkg/ddl/ddl_api.go:4407\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:3878\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:306\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:21.414 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=230] [cur_db=test] [sql="alter table t add column c4 bigint"] [user=] [2024/05/06 09:24:21.417 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:152, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.415 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:21.417 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:152, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.415 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c4 bigint"] [2024/05/06 09:24:21.423 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:152, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.415 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.423 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=152] [conn=3] [category=ddl] [job="ID:152, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.415 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.423 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:152, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.415 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [columnInfo="{\"id\":9,\"name\":{\"O\":\"c4\",\"L\":\"c4\"},\"offset\":4,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{},\"state\":0,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2}"] [2024/05/06 09:24:21.424 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:152, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.415 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.426 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=230] [neededSchemaVersion=231] ["start time"=423.291µs] [gotSchemaVersion=231] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:21.428 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=152] [version=231] [2024/05/06 09:24:21.428 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=231] ["take time"=2.134156ms] [job="ID:152, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.415 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.429 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:152, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.415 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.433 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:152, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.415 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.433 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=152] [conn=3] [category=ddl] [job="ID:152, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.415 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.434 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:152, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.415 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.436 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=231] [neededSchemaVersion=232] ["start time"=397.075µs] [gotSchemaVersion=232] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:21.438 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=152] [version=232] [2024/05/06 09:24:21.441 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=232] ["take time"=5.053693ms] [job="ID:152, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.415 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.442 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:152, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.415 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.445 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:152, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.415 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.445 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=152] [conn=3] [category=ddl] [job="ID:152, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.415 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.446 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:152, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.415 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.448 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=232] [neededSchemaVersion=233] ["start time"=400.227µs] [gotSchemaVersion=233] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:21.450 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=152] [version=233] [2024/05/06 09:24:21.452 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=233] ["take time"=4.194411ms] [job="ID:152, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.415 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.453 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:152, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.415 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.457 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:152, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.415 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.459 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=152] [conn=3] [category=ddl] [job="ID:152, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.415 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.460 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:152, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.415 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.462 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449573673096183808, conflictStartTS=449573673096183810, conflictCommitTS=449573673096708096, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=152}, originalKey=748000fffffffffffe5f728000000000000098, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [IsBatchInsert=false] [IsPessimistic=false] [InRestrictedSQL=true] [tidb_retry_limit=10] [tidb_disable_txn_auto_retry=true] [2024/05/06 09:24:21.462 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449573673096183808, conflictStartTS=449573673096183810, conflictCommitTS=449573673096708096, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=152}, originalKey=748000fffffffffffe5f728000000000000098, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:24:21.462 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449573673096183808, conflictStartTS=449573673096183810, conflictCommitTS=449573673096708096, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=152}, originalKey=748000fffffffffffe5f728000000000000098, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:152, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.415 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.467 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:152, Type:add column, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.415 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.467 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=152] [conn=3] [category=ddl] [job="ID:152, Type:add column, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.415 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.467 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=152] [conn=3] [job="ID:152, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.415 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:24:21.467 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:152, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.415 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.469 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=233] [neededSchemaVersion=235] ["start time"=442.967µs] [gotSchemaVersion=235] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:21.471 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=152] [version=235] [2024/05/06 09:24:21.471 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=235] ["take time"=2.118858ms] [job="ID:152, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.415 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.472 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:152, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.415 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.477 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:152, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.415 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.483 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=152] [conn=3] [category=ddl] [job="ID:152, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.415 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.484 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:152, Type:add column, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.415 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.487 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=235] [neededSchemaVersion=236] ["start time"=412.798µs] [gotSchemaVersion=236] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:21.488 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=152] [version=236] [2024/05/06 09:24:21.490 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=236] ["take time"=4.077293ms] [job="ID:152, Type:add column, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.415 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.491 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:152, Type:add column, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.415 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.496 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:152, Type:add column, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.415 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.496 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=152] [conn=3] [category=ddl] [job="ID:152, Type:add column, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.415 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.497 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:152, Type:add column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.415 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.499 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=236] [neededSchemaVersion=237] ["start time"=430.279µs] [gotSchemaVersion=237] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:21.500 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=152] [version=237] [2024/05/06 09:24:21.501 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=237] ["take time"=2.076136ms] [job="ID:152, Type:add column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.415 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.502 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:152, Type:add column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.415 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.511 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=152] [conn=3] [job="ID:152, Type:add column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.415 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.514 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=152] [2024/05/06 09:24:21.514 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:152, Type:add column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.415 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.516 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=152] [2024/05/06 09:24:21.516 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:21.517 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=230] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AddColumn\n\tpkg/ddl/ddl_api.go:4407\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:3878\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:289\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:21.517 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=237] [cur_db=test] [sql="alter table t add column c4 bigint"] [user=] [2024/05/06 09:24:21.521 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:153, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.519 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:21.521 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:153, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.519 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c4 bigint"] [2024/05/06 09:24:21.527 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:153, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.519 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.527 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=153] [conn=3] [category=ddl] [job="ID:153, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.519 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.527 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:153, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.519 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [columnInfo="{\"id\":10,\"name\":{\"O\":\"c4\",\"L\":\"c4\"},\"offset\":4,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{},\"state\":0,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2}"] [2024/05/06 09:24:21.528 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:153, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.519 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.531 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=237] [neededSchemaVersion=238] ["start time"=433.1µs] [gotSchemaVersion=238] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:21.532 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=153] [version=238] [2024/05/06 09:24:21.532 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=238] ["take time"=2.333011ms] [job="ID:153, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.519 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.533 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:153, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.519 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.543 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:153, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.519 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.544 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=153] [conn=3] [category=ddl] [job="ID:153, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.519 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.545 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:153, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.519 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.547 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=238] [neededSchemaVersion=239] ["start time"=439.764µs] [gotSchemaVersion=239] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:21.548 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=153] [version=239] [2024/05/06 09:24:21.552 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=239] ["take time"=6.179968ms] [job="ID:153, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.519 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.554 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:153, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.519 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.558 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:153, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.519 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.558 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=153] [conn=3] [category=ddl] [job="ID:153, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.519 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.559 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:153, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.519 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.561 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=239] [neededSchemaVersion=240] ["start time"=399.435µs] [gotSchemaVersion=240] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:21.562 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=153] [version=240] [2024/05/06 09:24:21.563 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=240] ["take time"=2.996165ms] [job="ID:153, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.519 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.564 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:153, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.519 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.573 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:153, Type:add column, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.519 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.573 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=153] [conn=3] [category=ddl] [job="ID:153, Type:add column, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.519 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.574 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=153] [conn=3] [job="ID:153, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.519 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:24:21.574 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:153, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.519 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.576 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=240] [neededSchemaVersion=241] ["start time"=428.297µs] [gotSchemaVersion=241] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:21.578 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=153] [version=241] [2024/05/06 09:24:21.580 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=241] ["take time"=4.192775ms] [job="ID:153, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.519 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.581 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:153, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.519 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.589 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:153, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.519 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.590 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=153] [conn=3] [category=ddl] [job="ID:153, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.519 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.590 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:153, Type:add column, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.519 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.592 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=241] [neededSchemaVersion=242] ["start time"=416.15µs] [gotSchemaVersion=242] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:21.594 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=153] [version=242] [2024/05/06 09:24:21.594 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=242] ["take time"=2.030686ms] [job="ID:153, Type:add column, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.519 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.595 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:153, Type:add column, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.519 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.600 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:153, Type:add column, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.519 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.600 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=153] [conn=3] [category=ddl] [job="ID:153, Type:add column, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.519 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.601 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:153, Type:add column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.519 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.604 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=242] [neededSchemaVersion=243] ["start time"=422.039µs] [gotSchemaVersion=243] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:21.605 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=153] [version=243] [2024/05/06 09:24:21.605 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=243] ["take time"=2.050685ms] [job="ID:153, Type:add column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.519 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.606 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:153, Type:add column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:21.519 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.614 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=153] [conn=3] [job="ID:153, Type:add column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.519 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.617 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=153] [2024/05/06 09:24:21.618 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=153] [2024/05/06 09:24:21.618 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:21.618 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=237] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AddColumn\n\tpkg/ddl/ddl_api.go:4407\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:3878\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:306\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:21.618 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=243] [cur_db=test] [sql="alter table t add column c4 bigint"] [user=] [2024/05/06 09:24:21.620 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:153, Type:add column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.519 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.622 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:154, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.62 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:21.622 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:154, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.62 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c4 bigint"] [2024/05/06 09:24:21.632 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:154, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.62 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.632 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=154] [conn=3] [category=ddl] [job="ID:154, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.62 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.636 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:154, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.62 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [columnInfo="{\"id\":11,\"name\":{\"O\":\"c4\",\"L\":\"c4\"},\"offset\":4,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{},\"state\":0,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2}"] [2024/05/06 09:24:21.637 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:154, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.62 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.639 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=243] [neededSchemaVersion=244] ["start time"=390.483µs] [gotSchemaVersion=244] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:21.640 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=154] [version=244] [2024/05/06 09:24:21.640 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=244] ["take time"=2.096377ms] [job="ID:154, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.62 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.641 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:154, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.62 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.649 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:154, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.62 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.649 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=154] [conn=3] [category=ddl] [job="ID:154, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.62 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.650 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:154, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.62 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.652 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=244] [neededSchemaVersion=245] ["start time"=381.56µs] [gotSchemaVersion=245] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:21.654 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=154] [version=245] [2024/05/06 09:24:21.656 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=245] ["take time"=4.831674ms] [job="ID:154, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.62 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.657 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:154, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.62 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.661 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:154, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.62 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.661 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=154] [conn=3] [category=ddl] [job="ID:154, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.62 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.661 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:154, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.62 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.664 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=245] [neededSchemaVersion=246] ["start time"=413.313µs] [gotSchemaVersion=246] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:21.665 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=154] [version=246] [2024/05/06 09:24:21.665 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=246] ["take time"=2.034363ms] [job="ID:154, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.62 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.666 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:154, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.62 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.680 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:154, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.62 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.680 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=154] [conn=3] [category=ddl] [job="ID:154, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.62 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.681 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:154, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.62 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.683 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=246] [neededSchemaVersion=247] ["start time"=404.992µs] [gotSchemaVersion=247] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:21.684 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=154] [version=247] [2024/05/06 09:24:21.685 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=247] ["take time"=2.090454ms] [job="ID:154, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.62 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.685 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:154, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:21.62 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.693 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=154] [conn=3] [job="ID:154, Type:add column, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.62 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.696 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:154, Type:add column, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.62 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.697 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=154] [2024/05/06 09:24:21.698 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:21.698 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=247] [cur_db=test] [sql="create table test_create_table(a int)"] [user=] [2024/05/06 09:24:21.701 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:156, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:155, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:21.699 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:21.701 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:156, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:155, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:21.699 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create table test_create_table(a int)"] [2024/05/06 09:24:21.705 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:156, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:155, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.699 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.707 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=156] [conn=3] [category=ddl] [job="ID:156, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:155, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.699 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.708 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:156, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:155, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:21.699 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.710 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449573673161195521, conflictStartTS=449573673161457664, conflictCommitTS=449573673161719808, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=156}, originalKey=748000fffffffffffe5f72800000000000009c, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [IsBatchInsert=false] [IsPessimistic=false] [InRestrictedSQL=true] [tidb_retry_limit=10] [tidb_disable_txn_auto_retry=true] [2024/05/06 09:24:21.710 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449573673161195521, conflictStartTS=449573673161457664, conflictCommitTS=449573673161719808, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=156}, originalKey=748000fffffffffffe5f72800000000000009c, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:24:21.710 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449573673161195521, conflictStartTS=449573673161457664, conflictCommitTS=449573673161719808, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=156}, originalKey=748000fffffffffffe5f72800000000000009c, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:156, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:155, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:21.699 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.715 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:156, Type:create table, State:cancelling, SchemaState:none, SchemaID:2, TableID:155, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.699 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.715 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=156] [conn=3] [category=ddl] [job="ID:156, Type:create table, State:cancelling, SchemaState:none, SchemaID:2, TableID:155, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.699 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.715 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=156] [conn=3] [job="ID:156, Type:create table, State:cancelled, SchemaState:none, SchemaID:2, TableID:155, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.699 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:24:21.715 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:156, Type:create table, State:cancelled, SchemaState:none, SchemaID:2, TableID:155, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.699 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.716 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=156] [conn=3] [job="ID:156, Type:create table, State:cancelled, SchemaState:none, SchemaID:2, TableID:155, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.699 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.719 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:156, Type:create table, State:cancelled, SchemaState:none, SchemaID:2, TableID:155, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.699 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.719 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=156] [2024/05/06 09:24:21.719 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:21.720 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=247] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).CreateTableWithInfo\n\tpkg/ddl/ddl_api.go:2879\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).CreateTable\n\tpkg/ddl/ddl_api.go:2717\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeCreateTable\n\tpkg/executor/ddl.go:268\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:160\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:289\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:21.720 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=247] [cur_db=test] [sql="create table test_create_table(a int)"] [user=] [2024/05/06 09:24:21.722 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:158, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:157, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:21.721 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:21.723 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:158, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:157, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:21.721 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create table test_create_table(a int)"] [2024/05/06 09:24:21.730 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:158, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:157, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.721 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.730 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=158] [conn=3] [category=ddl] [job="ID:158, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:157, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.721 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.731 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:158, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:157, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:21.721 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.734 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=247] [neededSchemaVersion=249] ["start time"=204.54µs] [gotSchemaVersion=249] [phyTblIDs="[157]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:21.735 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=158] [version=249] [2024/05/06 09:24:21.735 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=249] ["take time"=2.245044ms] [job="ID:158, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:157, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:21.721 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.736 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:158, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:157, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:21.721 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.754 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=158] [conn=3] [job="ID:158, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:157, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.721 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.757 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:158, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:157, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.721 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.758 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=158] [2024/05/06 09:24:21.758 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:21.758 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=249] [cur_db=test] [sql="drop table test_create_table"] [user=] [2024/05/06 09:24:21.760 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:159, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:157, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:21.759 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:21.760 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:159, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:157, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:21.759 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="drop table test_create_table"] [2024/05/06 09:24:21.772 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:159, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:157, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.759 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.777 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=159] [conn=3] [category=ddl] [job="ID:159, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:157, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.759 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.777 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:159, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:157, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:21.759 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.779 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449573673178759168, conflictStartTS=449573673179021312, conflictCommitTS=449573673179807744, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=159}, originalKey=748000fffffffffffe5f72800000000000009f, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [IsBatchInsert=false] [IsPessimistic=false] [InRestrictedSQL=true] [tidb_retry_limit=10] [tidb_disable_txn_auto_retry=true] [2024/05/06 09:24:21.779 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449573673178759168, conflictStartTS=449573673179021312, conflictCommitTS=449573673179807744, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=159}, originalKey=748000fffffffffffe5f72800000000000009f, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:24:21.779 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449573673178759168, conflictStartTS=449573673179021312, conflictCommitTS=449573673179807744, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=159}, originalKey=748000fffffffffffe5f72800000000000009f, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:159, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:157, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:21.759 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.782 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:159, Type:drop table, State:cancelling, SchemaState:public, SchemaID:2, TableID:157, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.759 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.783 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=159] [conn=3] [category=ddl] [job="ID:159, Type:drop table, State:cancelling, SchemaState:public, SchemaID:2, TableID:157, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.759 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.783 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=159] [conn=3] [job="ID:159, Type:drop table, State:cancelled, SchemaState:public, SchemaID:2, TableID:157, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.759 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:24:21.783 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:159, Type:drop table, State:cancelled, SchemaState:public, SchemaID:2, TableID:157, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.759 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.783 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=159] [conn=3] [job="ID:159, Type:drop table, State:cancelled, SchemaState:public, SchemaID:2, TableID:157, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.759 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.786 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:159, Type:drop table, State:cancelled, SchemaState:public, SchemaID:2, TableID:157, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.759 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.786 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=159] [2024/05/06 09:24:21.786 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:21.786 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=249] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).dropTableObject\n\tpkg/ddl/ddl_api.go:7048\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DropTable\n\tpkg/ddl/ddl_api.go:7082\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeDropTable\n\tpkg/executor/ddl.go:349\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:171\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:289\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:21.787 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=249] [cur_db=test] [sql="create table if not exists test_create_table(a int)"] [user=] [2024/05/06 09:24:21.787 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=249] [cur_db=test] [sql="drop table test_create_table"] [user=] [2024/05/06 09:24:21.790 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:160, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:157, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:21.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:21.790 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:160, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:157, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:21.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="drop table test_create_table"] [2024/05/06 09:24:21.808 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:160, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:157, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.808 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=160] [conn=3] [category=ddl] [job="ID:160, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:157, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.808 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:160, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:157, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:21.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.810 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=249] [neededSchemaVersion=251] ["start time"=101.436µs] [gotSchemaVersion=251] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:21.811 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=160] [version=251] [2024/05/06 09:24:21.815 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=251] ["take time"=4.941514ms] [job="ID:160, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:157, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:21.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.816 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:160, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:157, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:21.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.823 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:160, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:157, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.832 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=160] [conn=3] [category=ddl] [job="ID:160, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:157, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.834 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:160, Type:drop table, State:running, SchemaState:delete only, SchemaID:2, TableID:157, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.836 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=251] [neededSchemaVersion=252] ["start time"=41.54µs] [gotSchemaVersion=252] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:21.839 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=160] [version=252] [2024/05/06 09:24:21.840 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=252] ["take time"=4.747959ms] [job="ID:160, Type:drop table, State:running, SchemaState:delete only, SchemaID:2, TableID:157, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.842 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:160, Type:drop table, State:running, SchemaState:delete only, SchemaID:2, TableID:157, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.849 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:160, Type:drop table, State:running, SchemaState:delete only, SchemaID:2, TableID:157, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.851 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=160] [conn=3] [category=ddl] [job="ID:160, Type:drop table, State:running, SchemaState:delete only, SchemaID:2, TableID:157, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.866 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:160, Type:drop table, State:done, SchemaState:none, SchemaID:2, TableID:157, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:21.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.869 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=252] [neededSchemaVersion=253] ["start time"=43.837µs] [gotSchemaVersion=253] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:21.871 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=160] [version=253] [2024/05/06 09:24:21.871 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=253] ["take time"=2.037809ms] [job="ID:160, Type:drop table, State:done, SchemaState:none, SchemaID:2, TableID:157, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:21.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.872 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:160, Type:drop table, State:done, SchemaState:none, SchemaID:2, TableID:157, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:21.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.881 +00:00] [INFO] [delete_range.go:447] ["insert into delete-range table"] [category=ddl] [jobID=160] [tableIDs="[157]"] [comment="drop table: table ID"] [2024/05/06 09:24:21.882 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=160] [jobType="drop table"] [2024/05/06 09:24:21.882 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=160] [conn=3] [job="ID:160, Type:drop table, State:synced, SchemaState:none, SchemaID:2, TableID:157, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:21.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.886 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=160] [elementID=1] [startKey=74800000000000009d] [endKey=74800000000000009e] [2024/05/06 09:24:21.888 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:160, Type:drop table, State:synced, SchemaState:none, SchemaID:2, TableID:157, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:21.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.889 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=160] [2024/05/06 09:24:21.889 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:21.889 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=253] [cur_db=test] [sql="create table if not exists test_create_table(a int)"] [user=] [2024/05/06 09:24:21.893 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:162, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:161, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:21.891 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:21.893 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:162, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:161, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:21.891 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create table if not exists test_create_table(a int)"] [2024/05/06 09:24:21.903 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:162, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:161, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.891 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.903 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=162] [conn=3] [category=ddl] [job="ID:162, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:161, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.891 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.904 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:162, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:161, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:21.891 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.906 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=253] [neededSchemaVersion=254] ["start time"=203.565µs] [gotSchemaVersion=254] [phyTblIDs="[161]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:21.914 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=162] [version=254] [2024/05/06 09:24:21.917 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=254] ["take time"=11.512953ms] [job="ID:162, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:161, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:21.891 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.919 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:162, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:161, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:21.891 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.924 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=162] [conn=3] [job="ID:162, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:161, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.891 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.931 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=162] [2024/05/06 09:24:21.931 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:21.931 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=254] [cur_db=test] [sql="drop table test_create_table"] [user=] [2024/05/06 09:24:21.936 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:162, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:161, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.891 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.936 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:163, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:161, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:21.933 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:21.936 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:163, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:161, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:21.933 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="drop table test_create_table"] [2024/05/06 09:24:21.944 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:163, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:161, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.933 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.944 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=163] [conn=3] [category=ddl] [job="ID:163, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:161, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.933 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.946 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:163, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:161, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:21.933 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.948 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=254] [neededSchemaVersion=255] ["start time"=78.193µs] [gotSchemaVersion=255] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:21.950 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=163] [version=255] [2024/05/06 09:24:21.952 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=255] ["take time"=4.087021ms] [job="ID:163, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:161, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:21.933 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.954 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:163, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:161, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:21.933 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.969 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:163, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:161, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.933 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.969 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=163] [conn=3] [category=ddl] [job="ID:163, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:161, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.933 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.970 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:163, Type:drop table, State:running, SchemaState:delete only, SchemaID:2, TableID:161, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.933 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.971 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=255] [neededSchemaVersion=256] ["start time"=69.612µs] [gotSchemaVersion=256] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:21.973 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=163] [version=256] [2024/05/06 09:24:21.973 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=256] ["take time"=2.060082ms] [job="ID:163, Type:drop table, State:running, SchemaState:delete only, SchemaID:2, TableID:161, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.933 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.974 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:163, Type:drop table, State:running, SchemaState:delete only, SchemaID:2, TableID:161, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.933 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.984 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:163, Type:drop table, State:running, SchemaState:delete only, SchemaID:2, TableID:161, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.933 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.984 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=163] [conn=3] [category=ddl] [job="ID:163, Type:drop table, State:running, SchemaState:delete only, SchemaID:2, TableID:161, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:21.933 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.985 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:163, Type:drop table, State:done, SchemaState:none, SchemaID:2, TableID:161, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:21.933 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.987 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=256] [neededSchemaVersion=257] ["start time"=41.389µs] [gotSchemaVersion=257] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:21.988 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=163] [version=257] [2024/05/06 09:24:21.989 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=257] ["take time"=2.12739ms] [job="ID:163, Type:drop table, State:done, SchemaState:none, SchemaID:2, TableID:161, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:21.933 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.990 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:163, Type:drop table, State:done, SchemaState:none, SchemaID:2, TableID:161, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:21.933 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:21.999 +00:00] [INFO] [delete_range.go:447] ["insert into delete-range table"] [category=ddl] [jobID=163] [tableIDs="[161]"] [comment="drop table: table ID"] [2024/05/06 09:24:22.000 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=163] [jobType="drop table"] [2024/05/06 09:24:22.001 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=163] [conn=3] [job="ID:163, Type:drop table, State:synced, SchemaState:none, SchemaID:2, TableID:161, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:21.933 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.006 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:163, Type:drop table, State:synced, SchemaState:none, SchemaID:2, TableID:161, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:21.933 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.008 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=163] [elementID=1] [startKey=7480000000000000a1] [endKey=7480000000000000a2] [2024/05/06 09:24:22.016 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=163] [2024/05/06 09:24:22.017 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:22.020 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=257] [cur_db=test] [sql="create table if not exists test_create_table(a int)"] [user=] [2024/05/06 09:24:22.024 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:165, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:164, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:22.022 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:22.024 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:165, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:164, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:22.022 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create table if not exists test_create_table(a int)"] [2024/05/06 09:24:22.030 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:165, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:164, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.022 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.030 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=165] [conn=3] [category=ddl] [job="ID:165, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:164, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.022 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.031 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:165, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:164, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:22.022 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.033 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=257] [neededSchemaVersion=258] ["start time"=193.349µs] [gotSchemaVersion=258] [phyTblIDs="[164]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:22.035 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=165] [version=258] [2024/05/06 09:24:22.039 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=258] ["take time"=6.237053ms] [job="ID:165, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:164, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:22.022 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.040 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:165, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:164, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:22.022 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.054 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=165] [conn=3] [job="ID:165, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:164, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.022 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.057 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:165, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:164, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.022 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.058 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=165] [2024/05/06 09:24:22.058 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:22.058 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=258] [cur_db=test] [sql="drop table test_create_table"] [user=] [2024/05/06 09:24:22.061 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:166, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:164, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:22.06 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:22.061 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:166, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:164, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:22.06 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="drop table test_create_table"] [2024/05/06 09:24:22.069 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:166, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:164, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.06 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.069 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=166] [conn=3] [category=ddl] [job="ID:166, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:164, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.06 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.071 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:166, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:164, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:22.06 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.072 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=258] [neededSchemaVersion=259] ["start time"=74.016µs] [gotSchemaVersion=259] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:22.074 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=166] [version=259] [2024/05/06 09:24:22.074 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=259] ["take time"=2.115295ms] [job="ID:166, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:164, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:22.06 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.075 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:166, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:164, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:22.06 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.087 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:166, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:164, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.06 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.087 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=166] [conn=3] [category=ddl] [job="ID:166, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:164, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.06 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.091 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:166, Type:drop table, State:running, SchemaState:delete only, SchemaID:2, TableID:164, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.06 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.092 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=259] [neededSchemaVersion=260] ["start time"=44.909µs] [gotSchemaVersion=260] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:22.094 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=166] [version=260] [2024/05/06 09:24:22.095 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=260] ["take time"=2.919888ms] [job="ID:166, Type:drop table, State:running, SchemaState:delete only, SchemaID:2, TableID:164, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.06 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.096 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:166, Type:drop table, State:running, SchemaState:delete only, SchemaID:2, TableID:164, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.06 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.101 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:166, Type:drop table, State:running, SchemaState:delete only, SchemaID:2, TableID:164, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.06 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.102 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=166] [conn=3] [category=ddl] [job="ID:166, Type:drop table, State:running, SchemaState:delete only, SchemaID:2, TableID:164, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.06 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.103 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:166, Type:drop table, State:done, SchemaState:none, SchemaID:2, TableID:164, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:22.06 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.104 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=260] [neededSchemaVersion=261] ["start time"=40.863µs] [gotSchemaVersion=261] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:22.106 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=166] [version=261] [2024/05/06 09:24:22.107 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=261] ["take time"=2.859036ms] [job="ID:166, Type:drop table, State:done, SchemaState:none, SchemaID:2, TableID:164, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:22.06 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.108 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:166, Type:drop table, State:done, SchemaState:none, SchemaID:2, TableID:164, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:22.06 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.113 +00:00] [INFO] [delete_range.go:447] ["insert into delete-range table"] [category=ddl] [jobID=166] [tableIDs="[164]"] [comment="drop table: table ID"] [2024/05/06 09:24:22.114 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=166] [jobType="drop table"] [2024/05/06 09:24:22.117 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=166] [conn=3] [job="ID:166, Type:drop table, State:synced, SchemaState:none, SchemaID:2, TableID:164, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:22.06 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.117 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=166] [elementID=1] [startKey=7480000000000000a4] [endKey=7480000000000000a5] [2024/05/06 09:24:22.121 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:166, Type:drop table, State:synced, SchemaState:none, SchemaID:2, TableID:164, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:22.06 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.123 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=166] [2024/05/06 09:24:22.123 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:22.123 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=261] [cur_db=test] [sql="create table if not exists test_create_table(a int)"] [user=] [2024/05/06 09:24:22.126 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:168, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:167, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:22.125 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:22.126 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:168, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:167, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:22.125 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create table if not exists test_create_table(a int)"] [2024/05/06 09:24:22.132 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:168, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:167, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.125 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.132 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=168] [conn=3] [category=ddl] [job="ID:168, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:167, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.125 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.137 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:168, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:167, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:22.125 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.139 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=261] [neededSchemaVersion=262] ["start time"=198.224µs] [gotSchemaVersion=262] [phyTblIDs="[167]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:22.140 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=168] [version=262] [2024/05/06 09:24:22.141 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=262] ["take time"=2.218618ms] [job="ID:168, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:167, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:22.125 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.142 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:168, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:167, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:22.125 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.147 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=168] [conn=3] [job="ID:168, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:167, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.125 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.150 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:168, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:167, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.125 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.150 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=168] [2024/05/06 09:24:22.150 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:22.150 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=262] [cur_db=test] [sql="drop table test_create_table"] [user=] [2024/05/06 09:24:22.153 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:169, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:167, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:22.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:22.154 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:169, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:167, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:22.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="drop table test_create_table"] [2024/05/06 09:24:22.162 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:169, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:167, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.162 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=169] [conn=3] [category=ddl] [job="ID:169, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:167, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.163 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:169, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:167, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:22.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.165 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=262] [neededSchemaVersion=263] ["start time"=81.581µs] [gotSchemaVersion=263] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:22.166 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=169] [version=263] [2024/05/06 09:24:22.166 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=263] ["take time"=2.117536ms] [job="ID:169, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:167, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:22.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.167 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:169, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:167, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:22.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.173 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:169, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:167, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.173 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=169] [conn=3] [category=ddl] [job="ID:169, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:167, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.173 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:169, Type:drop table, State:running, SchemaState:delete only, SchemaID:2, TableID:167, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.177 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=263] [neededSchemaVersion=264] ["start time"=43.345µs] [gotSchemaVersion=264] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:22.178 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=169] [version=264] [2024/05/06 09:24:22.179 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=264] ["take time"=2.348973ms] [job="ID:169, Type:drop table, State:running, SchemaState:delete only, SchemaID:2, TableID:167, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.180 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:169, Type:drop table, State:running, SchemaState:delete only, SchemaID:2, TableID:167, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.213 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:169, Type:drop table, State:running, SchemaState:delete only, SchemaID:2, TableID:167, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.213 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=169] [conn=3] [category=ddl] [job="ID:169, Type:drop table, State:running, SchemaState:delete only, SchemaID:2, TableID:167, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.216 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:169, Type:drop table, State:done, SchemaState:none, SchemaID:2, TableID:167, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:22.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.218 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=264] [neededSchemaVersion=265] ["start time"=82.153µs] [gotSchemaVersion=265] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:22.222 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=169] [version=265] [2024/05/06 09:24:22.225 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=265] ["take time"=7.221263ms] [job="ID:169, Type:drop table, State:done, SchemaState:none, SchemaID:2, TableID:167, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:22.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.228 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:169, Type:drop table, State:done, SchemaState:none, SchemaID:2, TableID:167, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:22.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.257 +00:00] [INFO] [delete_range.go:447] ["insert into delete-range table"] [category=ddl] [jobID=169] [tableIDs="[167]"] [comment="drop table: table ID"] [2024/05/06 09:24:22.267 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=169] [jobType="drop table"] [2024/05/06 09:24:22.268 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=169] [conn=3] [job="ID:169, Type:drop table, State:synced, SchemaState:none, SchemaID:2, TableID:167, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:22.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.274 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:169, Type:drop table, State:synced, SchemaState:none, SchemaID:2, TableID:167, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:22.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.276 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=169] [elementID=1] [startKey=7480000000000000a7] [endKey=7480000000000000a8] [2024/05/06 09:24:22.276 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=169] [2024/05/06 09:24:22.276 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:22.277 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=265] [cur_db=test] [sql="create table if not exists test_create_table(a int)"] [user=] [2024/05/06 09:24:22.287 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:171, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:170, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:22.278 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:22.287 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:171, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:170, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:22.278 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create table if not exists test_create_table(a int)"] [2024/05/06 09:24:22.295 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:171, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:170, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.278 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.296 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=171] [conn=3] [category=ddl] [job="ID:171, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:170, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.278 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.297 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:171, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:170, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:22.278 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.301 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=265] [neededSchemaVersion=266] ["start time"=239.77µs] [gotSchemaVersion=266] [phyTblIDs="[170]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:22.303 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=171] [version=266] [2024/05/06 09:24:22.307 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=266] ["take time"=6.166419ms] [job="ID:171, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:170, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:22.278 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.309 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:171, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:170, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:22.278 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.315 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=171] [conn=3] [job="ID:171, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:170, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.278 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.318 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:171, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:170, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.278 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.319 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=171] [2024/05/06 09:24:22.319 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:22.319 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=266] [cur_db=test] [sql="drop table test_create_table"] [user=] [2024/05/06 09:24:22.322 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:172, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:170, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:22.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:22.322 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:172, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:170, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:22.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="drop table test_create_table"] [2024/05/06 09:24:22.330 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:172, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:170, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.330 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=172] [conn=3] [category=ddl] [job="ID:172, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:170, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.331 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:172, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:170, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:22.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.332 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=266] [neededSchemaVersion=267] ["start time"=74.916µs] [gotSchemaVersion=267] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:22.334 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=172] [version=267] [2024/05/06 09:24:22.340 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=267] ["take time"=7.566636ms] [job="ID:172, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:170, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:22.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.341 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:172, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:170, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:22.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.346 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:172, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:170, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.346 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=172] [conn=3] [category=ddl] [job="ID:172, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:170, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.347 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:172, Type:drop table, State:running, SchemaState:delete only, SchemaID:2, TableID:170, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.349 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=267] [neededSchemaVersion=268] ["start time"=47.709µs] [gotSchemaVersion=268] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:22.350 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=172] [version=268] [2024/05/06 09:24:22.351 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=268] ["take time"=2.040393ms] [job="ID:172, Type:drop table, State:running, SchemaState:delete only, SchemaID:2, TableID:170, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.352 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:172, Type:drop table, State:running, SchemaState:delete only, SchemaID:2, TableID:170, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.357 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:172, Type:drop table, State:running, SchemaState:delete only, SchemaID:2, TableID:170, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.357 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=172] [conn=3] [category=ddl] [job="ID:172, Type:drop table, State:running, SchemaState:delete only, SchemaID:2, TableID:170, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.360 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:172, Type:drop table, State:done, SchemaState:none, SchemaID:2, TableID:170, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:22.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.362 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=268] [neededSchemaVersion=269] ["start time"=51.49µs] [gotSchemaVersion=269] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:22.364 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=172] [version=269] [2024/05/06 09:24:22.367 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=269] ["take time"=5.154539ms] [job="ID:172, Type:drop table, State:done, SchemaState:none, SchemaID:2, TableID:170, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:22.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.369 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:172, Type:drop table, State:done, SchemaState:none, SchemaID:2, TableID:170, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:22.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.374 +00:00] [INFO] [delete_range.go:447] ["insert into delete-range table"] [category=ddl] [jobID=172] [tableIDs="[170]"] [comment="drop table: table ID"] [2024/05/06 09:24:22.375 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=172] [jobType="drop table"] [2024/05/06 09:24:22.376 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=172] [conn=3] [job="ID:172, Type:drop table, State:synced, SchemaState:none, SchemaID:2, TableID:170, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:22.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.379 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=172] [elementID=1] [startKey=7480000000000000aa] [endKey=7480000000000000ab] [2024/05/06 09:24:22.380 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:172, Type:drop table, State:synced, SchemaState:none, SchemaID:2, TableID:170, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:22.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.390 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=172] [2024/05/06 09:24:22.390 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:22.390 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=269] [cur_db=test] [sql="create database test_create_db"] [user=] [2024/05/06 09:24:22.394 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:174, Type:create schema, State:queueing, SchemaState:none, SchemaID:173, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.393 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:22.395 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:174, Type:create schema, State:queueing, SchemaState:none, SchemaID:173, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.393 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create database test_create_db"] [2024/05/06 09:24:22.405 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:174, Type:create schema, State:queueing, SchemaState:none, SchemaID:173, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.393 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.407 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=174] [conn=3] [category=ddl] [job="ID:174, Type:create schema, State:queueing, SchemaState:none, SchemaID:173, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.393 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.408 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:174, Type:create schema, State:done, SchemaState:public, SchemaID:173, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.393 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.409 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449573673344696320, conflictStartTS=449573673344696321, conflictCommitTS=449573673345220608, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=174}, originalKey=748000fffffffffffe5f7280000000000000ae, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [IsBatchInsert=false] [IsPessimistic=false] [InRestrictedSQL=true] [tidb_retry_limit=10] [tidb_disable_txn_auto_retry=true] [2024/05/06 09:24:22.409 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449573673344696320, conflictStartTS=449573673344696321, conflictCommitTS=449573673345220608, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=174}, originalKey=748000fffffffffffe5f7280000000000000ae, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:24:22.410 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449573673344696320, conflictStartTS=449573673344696321, conflictCommitTS=449573673345220608, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=174}, originalKey=748000fffffffffffe5f7280000000000000ae, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:174, Type:create schema, State:done, SchemaState:public, SchemaID:173, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.393 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.417 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:174, Type:create schema, State:cancelling, SchemaState:none, SchemaID:173, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.393 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.418 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=174] [conn=3] [category=ddl] [job="ID:174, Type:create schema, State:cancelling, SchemaState:none, SchemaID:173, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.393 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.419 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=174] [conn=3] [job="ID:174, Type:create schema, State:cancelled, SchemaState:none, SchemaID:173, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.393 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:24:22.419 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:174, Type:create schema, State:cancelled, SchemaState:none, SchemaID:173, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.393 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.419 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=174] [conn=3] [job="ID:174, Type:create schema, State:cancelled, SchemaState:none, SchemaID:173, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.393 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.423 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:174, Type:create schema, State:cancelled, SchemaState:none, SchemaID:173, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.393 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.423 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=174] [2024/05/06 09:24:22.423 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:22.423 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=269] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).CreateSchemaWithInfo\n\tpkg/ddl/ddl_api.go:226\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).CreateSchema\n\tpkg/ddl/ddl_api.go:174\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeCreateDatabase\n\tpkg/executor/ddl.go:258\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:156\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:289\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:22.424 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=269] [cur_db=test] [sql="create database test_create_db"] [user=] [2024/05/06 09:24:22.427 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:176, Type:create schema, State:queueing, SchemaState:none, SchemaID:175, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.425 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:22.427 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:176, Type:create schema, State:queueing, SchemaState:none, SchemaID:175, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.425 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create database test_create_db"] [2024/05/06 09:24:22.442 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:176, Type:create schema, State:queueing, SchemaState:none, SchemaID:175, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.425 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.442 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=176] [conn=3] [category=ddl] [job="ID:176, Type:create schema, State:queueing, SchemaState:none, SchemaID:175, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.425 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.443 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:176, Type:create schema, State:done, SchemaState:public, SchemaID:175, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.425 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.446 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=269] [neededSchemaVersion=271] ["start time"=129.079µs] [gotSchemaVersion=271] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"create schema\"]"] [2024/05/06 09:24:22.448 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=176] [version=271] [2024/05/06 09:24:22.448 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=271] ["take time"=2.039381ms] [job="ID:176, Type:create schema, State:done, SchemaState:public, SchemaID:175, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.425 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.449 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:176, Type:create schema, State:done, SchemaState:public, SchemaID:175, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.425 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.456 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=176] [conn=3] [job="ID:176, Type:create schema, State:synced, SchemaState:public, SchemaID:175, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.425 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.459 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:176, Type:create schema, State:synced, SchemaState:public, SchemaID:175, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.425 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.460 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=176] [2024/05/06 09:24:22.460 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:22.461 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=271] [cur_db=test] [sql="drop database test_create_db"] [user=] [2024/05/06 09:24:22.463 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:177, Type:drop schema, State:queueing, SchemaState:public, SchemaID:175, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.462 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:22.463 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:177, Type:drop schema, State:queueing, SchemaState:public, SchemaID:175, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.462 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="drop database test_create_db"] [2024/05/06 09:24:22.481 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:177, Type:drop schema, State:queueing, SchemaState:public, SchemaID:175, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.462 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.484 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=177] [conn=3] [category=ddl] [job="ID:177, Type:drop schema, State:queueing, SchemaState:public, SchemaID:175, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.462 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.485 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:177, Type:drop schema, State:running, SchemaState:write only, SchemaID:175, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.462 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.489 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449573673364619265, conflictStartTS=449573673364881408, conflictCommitTS=449573673365143552, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=177}, originalKey=748000fffffffffffe5f7280000000000000b1, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [IsBatchInsert=false] [IsPessimistic=false] [InRestrictedSQL=true] [tidb_retry_limit=10] [tidb_disable_txn_auto_retry=true] [2024/05/06 09:24:22.489 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449573673364619265, conflictStartTS=449573673364881408, conflictCommitTS=449573673365143552, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=177}, originalKey=748000fffffffffffe5f7280000000000000b1, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:24:22.489 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449573673364619265, conflictStartTS=449573673364881408, conflictCommitTS=449573673365143552, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=177}, originalKey=748000fffffffffffe5f7280000000000000b1, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:177, Type:drop schema, State:running, SchemaState:write only, SchemaID:175, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.462 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.495 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:177, Type:drop schema, State:cancelling, SchemaState:public, SchemaID:175, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.462 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.495 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=177] [conn=3] [category=ddl] [job="ID:177, Type:drop schema, State:cancelling, SchemaState:public, SchemaID:175, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.462 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.495 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=177] [conn=3] [job="ID:177, Type:drop schema, State:cancelled, SchemaState:public, SchemaID:175, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.462 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:24:22.495 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:177, Type:drop schema, State:cancelled, SchemaState:public, SchemaID:175, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.462 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.495 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=177] [conn=3] [job="ID:177, Type:drop schema, State:cancelled, SchemaState:public, SchemaID:175, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.462 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.498 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:177, Type:drop schema, State:cancelled, SchemaState:public, SchemaID:175, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.462 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.498 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=177] [2024/05/06 09:24:22.498 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:22.498 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=271] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DropSchema\n\tpkg/ddl/ddl_api.go:648\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeDropDatabase\n\tpkg/executor/ddl.go:332\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:166\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:289\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:22.499 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=271] [cur_db=test] [sql="create database if not exists test_create_db"] [user=] [2024/05/06 09:24:22.499 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=271] [cur_db=test] [sql="drop database test_create_db"] [user=] [2024/05/06 09:24:22.502 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:178, Type:drop schema, State:queueing, SchemaState:public, SchemaID:175, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.501 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:22.502 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:178, Type:drop schema, State:queueing, SchemaState:public, SchemaID:175, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.501 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="drop database test_create_db"] [2024/05/06 09:24:22.512 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:178, Type:drop schema, State:queueing, SchemaState:public, SchemaID:175, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.501 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.512 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=178] [conn=3] [category=ddl] [job="ID:178, Type:drop schema, State:queueing, SchemaState:public, SchemaID:175, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.501 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.513 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:178, Type:drop schema, State:running, SchemaState:write only, SchemaID:175, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.501 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.514 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=271] [neededSchemaVersion=273] ["start time"=113.007µs] [gotSchemaVersion=273] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop schema\"]"] [2024/05/06 09:24:22.516 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=178] [version=273] [2024/05/06 09:24:22.516 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=273] ["take time"=2.34651ms] [job="ID:178, Type:drop schema, State:running, SchemaState:write only, SchemaID:175, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.501 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.517 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:178, Type:drop schema, State:running, SchemaState:write only, SchemaID:175, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.501 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.523 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:178, Type:drop schema, State:running, SchemaState:write only, SchemaID:175, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.501 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.525 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=178] [conn=3] [category=ddl] [job="ID:178, Type:drop schema, State:running, SchemaState:write only, SchemaID:175, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.501 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.526 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:178, Type:drop schema, State:running, SchemaState:delete only, SchemaID:175, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.501 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.527 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=273] [neededSchemaVersion=274] ["start time"=38.032µs] [gotSchemaVersion=274] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop schema\"]"] [2024/05/06 09:24:22.529 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=178] [version=274] [2024/05/06 09:24:22.531 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=274] ["take time"=4.3371ms] [job="ID:178, Type:drop schema, State:running, SchemaState:delete only, SchemaID:175, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.501 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.533 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:178, Type:drop schema, State:running, SchemaState:delete only, SchemaID:175, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.501 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.549 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:178, Type:drop schema, State:running, SchemaState:delete only, SchemaID:175, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.501 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.549 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=178] [conn=3] [category=ddl] [job="ID:178, Type:drop schema, State:running, SchemaState:delete only, SchemaID:175, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.501 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.550 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:178, Type:drop schema, State:done, SchemaState:none, SchemaID:175, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.501 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.551 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=274] [neededSchemaVersion=275] ["start time"=33.982µs] [gotSchemaVersion=275] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop schema\"]"] [2024/05/06 09:24:22.553 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=178] [version=275] [2024/05/06 09:24:22.553 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=275] ["take time"=2.019242ms] [job="ID:178, Type:drop schema, State:done, SchemaState:none, SchemaID:175, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.501 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.554 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:178, Type:drop schema, State:done, SchemaState:none, SchemaID:175, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.501 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.565 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=178] [jobType="drop schema"] [2024/05/06 09:24:22.566 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=178] [conn=3] [job="ID:178, Type:drop schema, State:synced, SchemaState:none, SchemaID:175, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.501 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.568 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:178, Type:drop schema, State:synced, SchemaState:none, SchemaID:175, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.501 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.571 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=178] [2024/05/06 09:24:22.571 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:22.571 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=275] [cur_db=test] [sql="create database if not exists test_create_db"] [user=] [2024/05/06 09:24:22.574 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:180, Type:create schema, State:queueing, SchemaState:none, SchemaID:179, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.573 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:22.574 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:180, Type:create schema, State:queueing, SchemaState:none, SchemaID:179, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.573 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create database if not exists test_create_db"] [2024/05/06 09:24:22.580 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:180, Type:create schema, State:queueing, SchemaState:none, SchemaID:179, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.573 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.580 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=180] [conn=3] [category=ddl] [job="ID:180, Type:create schema, State:queueing, SchemaState:none, SchemaID:179, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.573 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.580 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:180, Type:create schema, State:done, SchemaState:public, SchemaID:179, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.573 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.582 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=275] [neededSchemaVersion=276] ["start time"=70.059µs] [gotSchemaVersion=276] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"create schema\"]"] [2024/05/06 09:24:22.583 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=180] [version=276] [2024/05/06 09:24:22.584 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=276] ["take time"=2.042429ms] [job="ID:180, Type:create schema, State:done, SchemaState:public, SchemaID:179, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.573 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.585 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:180, Type:create schema, State:done, SchemaState:public, SchemaID:179, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.573 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.591 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=180] [conn=3] [job="ID:180, Type:create schema, State:synced, SchemaState:public, SchemaID:179, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.573 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.606 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:180, Type:create schema, State:synced, SchemaState:public, SchemaID:179, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.573 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.607 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=180] [2024/05/06 09:24:22.607 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:22.613 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=276] [cur_db=test] [sql="drop database test_create_db"] [user=] [2024/05/06 09:24:22.617 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:181, Type:drop schema, State:queueing, SchemaState:public, SchemaID:179, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.616 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:22.618 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:181, Type:drop schema, State:queueing, SchemaState:public, SchemaID:179, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.616 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="drop database test_create_db"] [2024/05/06 09:24:22.625 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:181, Type:drop schema, State:queueing, SchemaState:public, SchemaID:179, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.616 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.625 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=181] [conn=3] [category=ddl] [job="ID:181, Type:drop schema, State:queueing, SchemaState:public, SchemaID:179, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.616 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.626 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:181, Type:drop schema, State:running, SchemaState:write only, SchemaID:179, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.616 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.646 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=276] [neededSchemaVersion=277] ["start time"=100.906µs] [gotSchemaVersion=277] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop schema\"]"] [2024/05/06 09:24:22.654 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=181] [version=277] [2024/05/06 09:24:22.656 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=277] ["take time"=28.583758ms] [job="ID:181, Type:drop schema, State:running, SchemaState:write only, SchemaID:179, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.616 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.657 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:181, Type:drop schema, State:running, SchemaState:write only, SchemaID:179, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.616 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.667 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:181, Type:drop schema, State:running, SchemaState:write only, SchemaID:179, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.616 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.667 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=181] [conn=3] [category=ddl] [job="ID:181, Type:drop schema, State:running, SchemaState:write only, SchemaID:179, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.616 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.667 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:181, Type:drop schema, State:running, SchemaState:delete only, SchemaID:179, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.616 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.669 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=277] [neededSchemaVersion=278] ["start time"=34.245µs] [gotSchemaVersion=278] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop schema\"]"] [2024/05/06 09:24:22.670 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=181] [version=278] [2024/05/06 09:24:22.671 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=278] ["take time"=2.660264ms] [job="ID:181, Type:drop schema, State:running, SchemaState:delete only, SchemaID:179, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.616 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.672 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:181, Type:drop schema, State:running, SchemaState:delete only, SchemaID:179, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.616 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.682 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:181, Type:drop schema, State:running, SchemaState:delete only, SchemaID:179, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.616 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.682 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=181] [conn=3] [category=ddl] [job="ID:181, Type:drop schema, State:running, SchemaState:delete only, SchemaID:179, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.616 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.683 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:181, Type:drop schema, State:done, SchemaState:none, SchemaID:179, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.616 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.684 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=278] [neededSchemaVersion=279] ["start time"=35.658µs] [gotSchemaVersion=279] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop schema\"]"] [2024/05/06 09:24:22.687 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=181] [version=279] [2024/05/06 09:24:22.687 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=279] ["take time"=2.94675ms] [job="ID:181, Type:drop schema, State:done, SchemaState:none, SchemaID:179, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.616 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.688 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:181, Type:drop schema, State:done, SchemaState:none, SchemaID:179, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.616 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.691 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=181] [jobType="drop schema"] [2024/05/06 09:24:22.692 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=181] [conn=3] [job="ID:181, Type:drop schema, State:synced, SchemaState:none, SchemaID:179, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.616 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.696 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:181, Type:drop schema, State:synced, SchemaState:none, SchemaID:179, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.616 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.699 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=181] [2024/05/06 09:24:22.699 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:22.700 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=279] [cur_db=test] [sql="create database if not exists test_create_db"] [user=] [2024/05/06 09:24:22.703 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:183, Type:create schema, State:queueing, SchemaState:none, SchemaID:182, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.702 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:22.703 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:183, Type:create schema, State:queueing, SchemaState:none, SchemaID:182, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.702 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create database if not exists test_create_db"] [2024/05/06 09:24:22.722 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:183, Type:create schema, State:queueing, SchemaState:none, SchemaID:182, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.702 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.722 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=183] [conn=3] [category=ddl] [job="ID:183, Type:create schema, State:queueing, SchemaState:none, SchemaID:182, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.702 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.723 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:183, Type:create schema, State:done, SchemaState:public, SchemaID:182, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.702 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.724 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=279] [neededSchemaVersion=280] ["start time"=70.178µs] [gotSchemaVersion=280] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"create schema\"]"] [2024/05/06 09:24:22.727 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=183] [version=280] [2024/05/06 09:24:22.729 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=280] ["take time"=5.411391ms] [job="ID:183, Type:create schema, State:done, SchemaState:public, SchemaID:182, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.702 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.731 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:183, Type:create schema, State:done, SchemaState:public, SchemaID:182, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.702 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.737 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=183] [conn=3] [job="ID:183, Type:create schema, State:synced, SchemaState:public, SchemaID:182, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.702 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.745 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=183] [2024/05/06 09:24:22.746 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:22.746 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:183, Type:create schema, State:synced, SchemaState:public, SchemaID:182, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.702 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.749 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=280] [cur_db=test] [sql="drop database test_create_db"] [user=] [2024/05/06 09:24:22.754 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:184, Type:drop schema, State:queueing, SchemaState:public, SchemaID:182, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.751 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:22.754 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:184, Type:drop schema, State:queueing, SchemaState:public, SchemaID:182, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.751 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="drop database test_create_db"] [2024/05/06 09:24:22.765 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:184, Type:drop schema, State:queueing, SchemaState:public, SchemaID:182, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.751 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.765 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=184] [conn=3] [category=ddl] [job="ID:184, Type:drop schema, State:queueing, SchemaState:public, SchemaID:182, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.751 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.766 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:184, Type:drop schema, State:running, SchemaState:write only, SchemaID:182, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.751 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.768 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=280] [neededSchemaVersion=281] ["start time"=110.84µs] [gotSchemaVersion=281] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop schema\"]"] [2024/05/06 09:24:22.769 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=184] [version=281] [2024/05/06 09:24:22.776 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=281] ["take time"=8.278386ms] [job="ID:184, Type:drop schema, State:running, SchemaState:write only, SchemaID:182, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.751 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.779 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:184, Type:drop schema, State:running, SchemaState:write only, SchemaID:182, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.751 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.787 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:184, Type:drop schema, State:running, SchemaState:write only, SchemaID:182, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.751 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.787 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=184] [conn=3] [category=ddl] [job="ID:184, Type:drop schema, State:running, SchemaState:write only, SchemaID:182, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.751 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.788 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:184, Type:drop schema, State:running, SchemaState:delete only, SchemaID:182, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.751 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.790 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=281] [neededSchemaVersion=282] ["start time"=37.32µs] [gotSchemaVersion=282] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop schema\"]"] [2024/05/06 09:24:22.792 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=184] [version=282] [2024/05/06 09:24:22.794 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=282] ["take time"=4.836981ms] [job="ID:184, Type:drop schema, State:running, SchemaState:delete only, SchemaID:182, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.751 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.796 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:184, Type:drop schema, State:running, SchemaState:delete only, SchemaID:182, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.751 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.803 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:184, Type:drop schema, State:running, SchemaState:delete only, SchemaID:182, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.751 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.804 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=184] [conn=3] [category=ddl] [job="ID:184, Type:drop schema, State:running, SchemaState:delete only, SchemaID:182, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.751 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.805 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:184, Type:drop schema, State:done, SchemaState:none, SchemaID:182, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.751 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.807 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=282] [neededSchemaVersion=283] ["start time"=39.242µs] [gotSchemaVersion=283] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop schema\"]"] [2024/05/06 09:24:22.808 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=184] [version=283] [2024/05/06 09:24:22.809 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=283] ["take time"=2.724512ms] [job="ID:184, Type:drop schema, State:done, SchemaState:none, SchemaID:182, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.751 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.810 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:184, Type:drop schema, State:done, SchemaState:none, SchemaID:182, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.751 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.816 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=184] [jobType="drop schema"] [2024/05/06 09:24:22.817 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=184] [conn=3] [job="ID:184, Type:drop schema, State:synced, SchemaState:none, SchemaID:182, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.751 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.821 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:184, Type:drop schema, State:synced, SchemaState:none, SchemaID:182, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.751 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.825 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=184] [2024/05/06 09:24:22.832 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:22.833 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=283] [cur_db=test] [sql="create database if not exists test_create_db"] [user=] [2024/05/06 09:24:22.836 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:186, Type:create schema, State:queueing, SchemaState:none, SchemaID:185, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.835 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:22.836 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:186, Type:create schema, State:queueing, SchemaState:none, SchemaID:185, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.835 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create database if not exists test_create_db"] [2024/05/06 09:24:22.846 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:186, Type:create schema, State:queueing, SchemaState:none, SchemaID:185, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.835 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.846 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=186] [conn=3] [category=ddl] [job="ID:186, Type:create schema, State:queueing, SchemaState:none, SchemaID:185, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.835 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.847 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:186, Type:create schema, State:done, SchemaState:public, SchemaID:185, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.835 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.849 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=283] [neededSchemaVersion=284] ["start time"=74.193µs] [gotSchemaVersion=284] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"create schema\"]"] [2024/05/06 09:24:22.855 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=186] [version=284] [2024/05/06 09:24:22.857 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=284] ["take time"=8.483965ms] [job="ID:186, Type:create schema, State:done, SchemaState:public, SchemaID:185, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.835 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.858 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:186, Type:create schema, State:done, SchemaState:public, SchemaID:185, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.835 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.863 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=186] [conn=3] [job="ID:186, Type:create schema, State:synced, SchemaState:public, SchemaID:185, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.835 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.869 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:186, Type:create schema, State:synced, SchemaState:public, SchemaID:185, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.835 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.870 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=186] [2024/05/06 09:24:22.870 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:22.870 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=284] [cur_db=test] [sql="drop database test_create_db"] [user=] [2024/05/06 09:24:22.874 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:187, Type:drop schema, State:queueing, SchemaState:public, SchemaID:185, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.873 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:22.874 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:187, Type:drop schema, State:queueing, SchemaState:public, SchemaID:185, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.873 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="drop database test_create_db"] [2024/05/06 09:24:22.890 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:187, Type:drop schema, State:queueing, SchemaState:public, SchemaID:185, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.873 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.890 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=187] [conn=3] [category=ddl] [job="ID:187, Type:drop schema, State:queueing, SchemaState:public, SchemaID:185, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.873 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.891 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:187, Type:drop schema, State:running, SchemaState:write only, SchemaID:185, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.873 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.893 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=284] [neededSchemaVersion=285] ["start time"=96.32µs] [gotSchemaVersion=285] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop schema\"]"] [2024/05/06 09:24:22.897 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=187] [version=285] [2024/05/06 09:24:22.897 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=285] ["take time"=4.062955ms] [job="ID:187, Type:drop schema, State:running, SchemaState:write only, SchemaID:185, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.873 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.898 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:187, Type:drop schema, State:running, SchemaState:write only, SchemaID:185, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.873 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.909 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:187, Type:drop schema, State:running, SchemaState:write only, SchemaID:185, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.873 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.909 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=187] [conn=3] [category=ddl] [job="ID:187, Type:drop schema, State:running, SchemaState:write only, SchemaID:185, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.873 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.910 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:187, Type:drop schema, State:running, SchemaState:delete only, SchemaID:185, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.873 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.912 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=285] [neededSchemaVersion=286] ["start time"=45.903µs] [gotSchemaVersion=286] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop schema\"]"] [2024/05/06 09:24:22.913 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=187] [version=286] [2024/05/06 09:24:22.917 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=286] ["take time"=5.47153ms] [job="ID:187, Type:drop schema, State:running, SchemaState:delete only, SchemaID:185, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.873 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.918 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:187, Type:drop schema, State:running, SchemaState:delete only, SchemaID:185, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.873 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.928 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:187, Type:drop schema, State:running, SchemaState:delete only, SchemaID:185, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.873 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.928 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=187] [conn=3] [category=ddl] [job="ID:187, Type:drop schema, State:running, SchemaState:delete only, SchemaID:185, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.873 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.929 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:187, Type:drop schema, State:done, SchemaState:none, SchemaID:185, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.873 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.931 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=286] [neededSchemaVersion=287] ["start time"=33.975µs] [gotSchemaVersion=287] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop schema\"]"] [2024/05/06 09:24:22.935 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=187] [version=287] [2024/05/06 09:24:22.935 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=287] ["take time"=4.995582ms] [job="ID:187, Type:drop schema, State:done, SchemaState:none, SchemaID:185, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.873 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.936 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:187, Type:drop schema, State:done, SchemaState:none, SchemaID:185, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.873 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.944 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=187] [jobType="drop schema"] [2024/05/06 09:24:22.946 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=187] [conn=3] [job="ID:187, Type:drop schema, State:synced, SchemaState:none, SchemaID:185, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.873 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.949 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:187, Type:drop schema, State:synced, SchemaState:none, SchemaID:185, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.873 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.952 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=187] [2024/05/06 09:24:22.952 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:22.952 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=287] [cur_db=test] [sql="create database if not exists test_create_db"] [user=] [2024/05/06 09:24:22.955 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:189, Type:create schema, State:queueing, SchemaState:none, SchemaID:188, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.954 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:22.955 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:189, Type:create schema, State:queueing, SchemaState:none, SchemaID:188, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.954 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create database if not exists test_create_db"] [2024/05/06 09:24:22.964 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:189, Type:create schema, State:queueing, SchemaState:none, SchemaID:188, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.954 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.964 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=189] [conn=3] [category=ddl] [job="ID:189, Type:create schema, State:queueing, SchemaState:none, SchemaID:188, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.954 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.965 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:189, Type:create schema, State:done, SchemaState:public, SchemaID:188, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.954 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.971 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=287] [neededSchemaVersion=288] ["start time"=78.141µs] [gotSchemaVersion=288] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"create schema\"]"] [2024/05/06 09:24:22.972 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=189] [version=288] [2024/05/06 09:24:22.973 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=288] ["take time"=2.446228ms] [job="ID:189, Type:create schema, State:done, SchemaState:public, SchemaID:188, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.954 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.975 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:189, Type:create schema, State:done, SchemaState:public, SchemaID:188, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.954 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.985 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=189] [conn=3] [job="ID:189, Type:create schema, State:synced, SchemaState:public, SchemaID:188, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.954 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.988 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=189] [2024/05/06 09:24:22.988 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:189, Type:create schema, State:synced, SchemaState:public, SchemaID:188, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.954 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:22.988 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:22.989 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=288] [cur_db=test] [sql="drop database test_create_db"] [user=] [2024/05/06 09:24:22.991 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:190, Type:drop schema, State:queueing, SchemaState:public, SchemaID:188, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:22.991 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:190, Type:drop schema, State:queueing, SchemaState:public, SchemaID:188, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="drop database test_create_db"] [2024/05/06 09:24:23.002 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:190, Type:drop schema, State:queueing, SchemaState:public, SchemaID:188, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.002 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=190] [conn=3] [category=ddl] [job="ID:190, Type:drop schema, State:queueing, SchemaState:public, SchemaID:188, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.004 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:190, Type:drop schema, State:running, SchemaState:write only, SchemaID:188, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.006 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=288] [neededSchemaVersion=289] ["start time"=88.367µs] [gotSchemaVersion=289] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop schema\"]"] [2024/05/06 09:24:23.007 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=190] [version=289] [2024/05/06 09:24:23.017 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=289] ["take time"=11.660352ms] [job="ID:190, Type:drop schema, State:running, SchemaState:write only, SchemaID:188, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.021 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:190, Type:drop schema, State:running, SchemaState:write only, SchemaID:188, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:22.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.026 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:190, Type:drop schema, State:running, SchemaState:write only, SchemaID:188, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.026 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=190] [conn=3] [category=ddl] [job="ID:190, Type:drop schema, State:running, SchemaState:write only, SchemaID:188, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.026 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:190, Type:drop schema, State:running, SchemaState:delete only, SchemaID:188, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.028 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=289] [neededSchemaVersion=290] ["start time"=33.131µs] [gotSchemaVersion=290] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop schema\"]"] [2024/05/06 09:24:23.029 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=190] [version=290] [2024/05/06 09:24:23.030 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=290] ["take time"=2.338459ms] [job="ID:190, Type:drop schema, State:running, SchemaState:delete only, SchemaID:188, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.031 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:190, Type:drop schema, State:running, SchemaState:delete only, SchemaID:188, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.045 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:190, Type:drop schema, State:running, SchemaState:delete only, SchemaID:188, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.045 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=190] [conn=3] [category=ddl] [job="ID:190, Type:drop schema, State:running, SchemaState:delete only, SchemaID:188, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.045 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:190, Type:drop schema, State:done, SchemaState:none, SchemaID:188, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.047 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=290] [neededSchemaVersion=291] ["start time"=31.871µs] [gotSchemaVersion=291] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop schema\"]"] [2024/05/06 09:24:23.050 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=190] [version=291] [2024/05/06 09:24:23.052 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=291] ["take time"=5.459418ms] [job="ID:190, Type:drop schema, State:done, SchemaState:none, SchemaID:188, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.054 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:190, Type:drop schema, State:done, SchemaState:none, SchemaID:188, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.061 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=190] [jobType="drop schema"] [2024/05/06 09:24:23.062 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=190] [conn=3] [job="ID:190, Type:drop schema, State:synced, SchemaState:none, SchemaID:188, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.067 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:190, Type:drop schema, State:synced, SchemaState:none, SchemaID:188, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:22.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.070 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=190] [2024/05/06 09:24:23.071 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:23.076 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=291] [cur_db=test] [sql="alter table t drop column c3"] [user=] [2024/05/06 09:24:23.084 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:191, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:23.083 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:23.084 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:191, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:23.083 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop column c3"] [2024/05/06 09:24:23.094 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:191, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.083 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.096 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=191] [conn=3] [category=ddl] [job="ID:191, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.083 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.097 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:191, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:23.083 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.099 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449573673525313536, conflictStartTS=449573673525313537, conflictCommitTS=449573673525575680, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=191}, originalKey=748000fffffffffffe5f7280000000000000bf, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [IsBatchInsert=false] [IsPessimistic=false] [InRestrictedSQL=true] [tidb_retry_limit=10] [tidb_disable_txn_auto_retry=true] [2024/05/06 09:24:23.099 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449573673525313536, conflictStartTS=449573673525313537, conflictCommitTS=449573673525575680, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=191}, originalKey=748000fffffffffffe5f7280000000000000bf, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:24:23.099 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449573673525313536, conflictStartTS=449573673525313537, conflictCommitTS=449573673525575680, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=191}, originalKey=748000fffffffffffe5f7280000000000000bf, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:191, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:23.083 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.103 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:191, Type:drop column, State:cancelling, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.083 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.103 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=191] [conn=3] [category=ddl] [job="ID:191, Type:drop column, State:cancelling, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.083 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.104 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=191] [conn=3] [job="ID:191, Type:drop column, State:cancelled, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:23.083 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:24:23.104 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:191, Type:drop column, State:cancelled, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:23.083 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.104 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=191] [conn=3] [job="ID:191, Type:drop column, State:cancelled, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:23.083 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.107 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=191] [2024/05/06 09:24:23.107 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:191, Type:drop column, State:cancelled, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:23.083 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.107 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:23.107 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=291] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DropColumn\n\tpkg/ddl/ddl_api.go:5378\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:3900\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:289\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:23.108 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=291] [cur_db=test] [sql="alter table t drop column c3"] [user=] [2024/05/06 09:24:23.110 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:192, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:23.109 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:23.110 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:192, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:23.109 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop column c3"] [2024/05/06 09:24:23.123 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:192, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.109 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.123 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=192] [conn=3] [category=ddl] [job="ID:192, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.109 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.127 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:192, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:23.109 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.130 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=291] [neededSchemaVersion=292] ["start time"=47.253µs] [gotSchemaVersion=291] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[]"] [2024/05/06 09:24:23.134 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=291] [neededSchemaVersion=293] ["start time"=477.166µs] [gotSchemaVersion=293] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:23.135 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=192] [version=293] [2024/05/06 09:24:23.138 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=293] ["take time"=4.543133ms] [job="ID:192, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:23.109 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.138 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:192, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:23.109 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.144 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:192, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.109 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.144 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=192] [conn=3] [category=ddl] [job="ID:192, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.109 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.145 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:192, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:23.109 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.147 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=293] [neededSchemaVersion=294] ["start time"=424.21µs] [gotSchemaVersion=294] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:23.148 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=192] [version=294] [2024/05/06 09:24:23.148 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=294] ["take time"=2.183549ms] [job="ID:192, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:23.109 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.149 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:192, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:23.109 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.153 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:192, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.109 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.155 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=192] [conn=3] [category=ddl] [job="ID:192, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.109 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.156 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:192, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:23.109 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.158 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=294] [neededSchemaVersion=295] ["start time"=428.985µs] [gotSchemaVersion=295] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:23.159 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=192] [version=295] [2024/05/06 09:24:23.160 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=295] ["take time"=2.137233ms] [job="ID:192, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:23.109 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.160 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:192, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:23.109 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.166 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:192, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.109 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.167 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=192] [conn=3] [category=ddl] [job="ID:192, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.109 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.168 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:192, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.109 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.170 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=295] [neededSchemaVersion=296] ["start time"=427.822µs] [gotSchemaVersion=296] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:23.172 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=192] [version=296] [2024/05/06 09:24:23.178 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=296] ["take time"=7.911481ms] [job="ID:192, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.109 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.179 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:192, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.109 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.191 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=192] [jobType="drop column"] [2024/05/06 09:24:23.191 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=192] [conn=3] [job="ID:192, Type:drop column, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.109 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.198 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:192, Type:drop column, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.109 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.200 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=192] [2024/05/06 09:24:23.200 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:23.201 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=296] [cur_db=test] [sql="alter table t add column c3 bigint"] [user=] [2024/05/06 09:24:23.203 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:193, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.202 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:23.203 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:193, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.202 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c3 bigint"] [2024/05/06 09:24:23.214 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:193, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.202 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.214 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=193] [conn=3] [category=ddl] [job="ID:193, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.202 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.214 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:193, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.202 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [columnInfo="{\"id\":12,\"name\":{\"O\":\"c3\",\"L\":\"c3\"},\"offset\":4,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{},\"state\":0,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2}"] [2024/05/06 09:24:23.215 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:193, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.202 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.217 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=296] [neededSchemaVersion=297] ["start time"=441.227µs] [gotSchemaVersion=297] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:23.218 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=193] [version=297] [2024/05/06 09:24:23.219 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=297] ["take time"=2.18025ms] [job="ID:193, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.202 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.220 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:193, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.202 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.225 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:193, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.202 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.225 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=193] [conn=3] [category=ddl] [job="ID:193, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.202 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.226 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:193, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.202 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.229 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=297] [neededSchemaVersion=298] ["start time"=415.071µs] [gotSchemaVersion=298] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:23.230 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=193] [version=298] [2024/05/06 09:24:23.232 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=298] ["take time"=4.188228ms] [job="ID:193, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.202 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.236 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:193, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.202 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.240 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:193, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.202 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.240 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=193] [conn=3] [category=ddl] [job="ID:193, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.202 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.241 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:193, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.202 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.243 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=298] [neededSchemaVersion=299] ["start time"=452.75µs] [gotSchemaVersion=299] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:23.244 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=193] [version=299] [2024/05/06 09:24:23.247 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=299] ["take time"=4.350687ms] [job="ID:193, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.202 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.248 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:193, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.202 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.254 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:193, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.202 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.254 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=193] [conn=3] [category=ddl] [job="ID:193, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.202 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.255 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:193, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.202 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.258 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=299] [neededSchemaVersion=300] ["start time"=424.414µs] [gotSchemaVersion=300] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:23.259 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=193] [version=300] [2024/05/06 09:24:23.261 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=300] ["take time"=4.239686ms] [job="ID:193, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.202 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.262 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:193, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.202 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.268 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=193] [conn=3] [job="ID:193, Type:add column, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.202 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.272 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=193] [2024/05/06 09:24:23.272 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:23.278 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:193, Type:add column, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.202 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.279 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=300] [cur_db=test] [sql="alter table t drop column c3"] [user=] [2024/05/06 09:24:23.289 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:194, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:23.281 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:23.289 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:194, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:23.281 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop column c3"] [2024/05/06 09:24:23.308 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:194, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.281 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.308 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=194] [conn=3] [category=ddl] [job="ID:194, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.281 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.309 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:194, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:23.281 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.311 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=300] [neededSchemaVersion=301] ["start time"=586.468µs] [gotSchemaVersion=301] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:23.313 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=194] [version=301] [2024/05/06 09:24:23.315 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=301] ["take time"=4.526494ms] [job="ID:194, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:23.281 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.316 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:194, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:23.281 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.321 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:194, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.281 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.321 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=194] [conn=3] [category=ddl] [job="ID:194, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.281 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.322 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:194, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:23.281 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.325 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=301] [neededSchemaVersion=302] ["start time"=750.306µs] [gotSchemaVersion=302] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:23.327 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=194] [version=302] [2024/05/06 09:24:23.327 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=302] ["take time"=3.665168ms] [job="ID:194, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:23.281 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.328 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:194, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:23.281 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.341 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:194, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.281 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.341 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=194] [conn=3] [category=ddl] [job="ID:194, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.281 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.342 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:194, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:23.281 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.344 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=302] [neededSchemaVersion=303] ["start time"=424.121µs] [gotSchemaVersion=303] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:23.345 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=194] [version=303] [2024/05/06 09:24:23.345 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=303] ["take time"=2.117784ms] [job="ID:194, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:23.281 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.346 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:194, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:23.281 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.351 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:194, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.281 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.352 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=194] [conn=3] [category=ddl] [job="ID:194, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.281 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.352 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:194, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.281 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.355 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=303] [neededSchemaVersion=304] ["start time"=415.352µs] [gotSchemaVersion=304] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:23.356 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=194] [version=304] [2024/05/06 09:24:23.357 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=304] ["take time"=2.550919ms] [job="ID:194, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.281 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.358 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:194, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.281 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.364 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=194] [jobType="drop column"] [2024/05/06 09:24:23.364 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=194] [conn=3] [job="ID:194, Type:drop column, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.281 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.367 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:194, Type:drop column, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.281 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.370 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=194] [2024/05/06 09:24:23.370 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:23.371 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=304] [cur_db=test] [sql="alter table t add column c3 bigint"] [user=] [2024/05/06 09:24:23.373 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:195, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:23.373 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:195, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c3 bigint"] [2024/05/06 09:24:23.383 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:195, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.383 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=195] [conn=3] [category=ddl] [job="ID:195, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.384 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:195, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [columnInfo="{\"id\":13,\"name\":{\"O\":\"c3\",\"L\":\"c3\"},\"offset\":4,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{},\"state\":0,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2}"] [2024/05/06 09:24:23.384 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:195, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.387 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=304] [neededSchemaVersion=305] ["start time"=411.92µs] [gotSchemaVersion=305] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:23.389 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=195] [version=305] [2024/05/06 09:24:23.389 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=305] ["take time"=2.128158ms] [job="ID:195, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.390 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:195, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.394 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:195, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.394 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=195] [conn=3] [category=ddl] [job="ID:195, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.397 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:195, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.399 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=305] [neededSchemaVersion=306] ["start time"=392.547µs] [gotSchemaVersion=306] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:23.401 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=195] [version=306] [2024/05/06 09:24:23.403 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=306] ["take time"=4.499715ms] [job="ID:195, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.404 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:195, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.410 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:195, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.412 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=195] [conn=3] [category=ddl] [job="ID:195, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.413 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:195, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.415 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=306] [neededSchemaVersion=307] ["start time"=430.406µs] [gotSchemaVersion=307] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:23.417 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=195] [version=307] [2024/05/06 09:24:23.419 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=307] ["take time"=4.078156ms] [job="ID:195, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.420 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:195, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.426 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:195, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.426 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=195] [conn=3] [category=ddl] [job="ID:195, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.428 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:195, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.430 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=307] [neededSchemaVersion=308] ["start time"=425.813µs] [gotSchemaVersion=308] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:23.432 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=195] [version=308] [2024/05/06 09:24:23.434 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=308] ["take time"=4.151392ms] [job="ID:195, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.435 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:195, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.449 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=195] [conn=3] [job="ID:195, Type:add column, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.454 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:195, Type:add column, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.455 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=195] [2024/05/06 09:24:23.455 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:23.455 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=308] [cur_db=test] [sql="alter table t drop column c3"] [user=] [2024/05/06 09:24:23.458 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:196, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:23.456 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:23.458 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:196, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:23.456 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop column c3"] [2024/05/06 09:24:23.467 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:196, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.456 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.467 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=196] [conn=3] [category=ddl] [job="ID:196, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.456 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.469 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:196, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:23.456 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.474 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=308] [neededSchemaVersion=309] ["start time"=430.359µs] [gotSchemaVersion=309] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:23.477 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=196] [version=309] [2024/05/06 09:24:23.477 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=309] ["take time"=4.140486ms] [job="ID:196, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:23.456 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.478 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:196, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:23.456 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.489 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:196, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.456 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.493 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=196] [conn=3] [category=ddl] [job="ID:196, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.456 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.495 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:196, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:23.456 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.497 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=309] [neededSchemaVersion=310] ["start time"=458.399µs] [gotSchemaVersion=310] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:23.499 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=196] [version=310] [2024/05/06 09:24:23.501 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=310] ["take time"=4.380639ms] [job="ID:196, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:23.456 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.502 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:196, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:23.456 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.508 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:196, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.456 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.508 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=196] [conn=3] [category=ddl] [job="ID:196, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.456 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.509 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:196, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:23.456 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.512 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=310] [neededSchemaVersion=311] ["start time"=410.565µs] [gotSchemaVersion=311] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:23.513 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=196] [version=311] [2024/05/06 09:24:23.513 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=311] ["take time"=2.144569ms] [job="ID:196, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:23.456 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.514 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:196, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:23.456 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.534 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:196, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.456 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.535 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=196] [conn=3] [category=ddl] [job="ID:196, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.456 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.535 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:196, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.456 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.538 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=311] [neededSchemaVersion=312] ["start time"=472.808µs] [gotSchemaVersion=312] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:23.539 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=196] [version=312] [2024/05/06 09:24:23.539 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=312] ["take time"=2.016459ms] [job="ID:196, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.456 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.540 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:196, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.456 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.547 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=196] [jobType="drop column"] [2024/05/06 09:24:23.550 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=196] [conn=3] [job="ID:196, Type:drop column, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.456 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.554 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:196, Type:drop column, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.456 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.557 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=196] [2024/05/06 09:24:23.557 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:23.557 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=312] [cur_db=test] [sql="alter table t add column c3 bigint"] [user=] [2024/05/06 09:24:23.561 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:197, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.559 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:23.561 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:197, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.559 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c3 bigint"] [2024/05/06 09:24:23.572 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:197, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.559 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.572 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=197] [conn=3] [category=ddl] [job="ID:197, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.559 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.572 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:197, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.559 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [columnInfo="{\"id\":14,\"name\":{\"O\":\"c3\",\"L\":\"c3\"},\"offset\":4,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{},\"state\":0,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2}"] [2024/05/06 09:24:23.573 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:197, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.559 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.575 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=312] [neededSchemaVersion=313] ["start time"=408.502µs] [gotSchemaVersion=313] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:23.577 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=197] [version=313] [2024/05/06 09:24:23.577 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=313] ["take time"=2.731774ms] [job="ID:197, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.559 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.579 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:197, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.559 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.587 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:197, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.559 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.587 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=197] [conn=3] [category=ddl] [job="ID:197, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.559 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.588 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:197, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.559 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.591 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=313] [neededSchemaVersion=314] ["start time"=594.893µs] [gotSchemaVersion=314] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:23.593 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=197] [version=314] [2024/05/06 09:24:23.595 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=314] ["take time"=4.052544ms] [job="ID:197, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.559 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.597 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:197, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.559 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.620 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:197, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.559 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.620 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=197] [conn=3] [category=ddl] [job="ID:197, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.559 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.622 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:197, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.559 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.624 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=314] [neededSchemaVersion=315] ["start time"=442.442µs] [gotSchemaVersion=315] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:23.626 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=197] [version=315] [2024/05/06 09:24:23.626 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=315] ["take time"=2.238425ms] [job="ID:197, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.559 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.627 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:197, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.559 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.647 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:197, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.559 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.647 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=197] [conn=3] [category=ddl] [job="ID:197, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.559 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.647 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:197, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.559 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.651 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=315] [neededSchemaVersion=316] ["start time"=444.169µs] [gotSchemaVersion=316] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:23.652 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=197] [version=316] [2024/05/06 09:24:23.655 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=316] ["take time"=4.375954ms] [job="ID:197, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.559 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.656 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:197, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.559 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.663 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=197] [conn=3] [job="ID:197, Type:add column, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.559 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.667 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:197, Type:add column, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.559 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.668 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=197] [2024/05/06 09:24:23.668 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:23.669 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=316] [cur_db=test] [sql="alter table t drop column c3"] [user=] [2024/05/06 09:24:23.671 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:198, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:23.67 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:23.672 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:198, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:23.67 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop column c3"] [2024/05/06 09:24:23.693 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:198, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.67 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.693 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=198] [conn=3] [category=ddl] [job="ID:198, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.67 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.694 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:198, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:23.67 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.696 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=316] [neededSchemaVersion=317] ["start time"=413.312µs] [gotSchemaVersion=317] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:23.698 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=198] [version=317] [2024/05/06 09:24:23.701 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=317] ["take time"=5.317032ms] [job="ID:198, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:23.67 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.702 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:198, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:23.67 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.716 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:198, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.67 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.716 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=198] [conn=3] [category=ddl] [job="ID:198, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.67 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.717 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:198, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:23.67 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.719 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=317] [neededSchemaVersion=318] ["start time"=423.628µs] [gotSchemaVersion=318] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:23.720 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=198] [version=318] [2024/05/06 09:24:23.722 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=318] ["take time"=4.194219ms] [job="ID:198, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:23.67 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.723 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:198, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:23.67 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.729 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:198, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.67 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.734 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=198] [conn=3] [category=ddl] [job="ID:198, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.67 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.735 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:198, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:23.67 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.737 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=318] [neededSchemaVersion=319] ["start time"=425.861µs] [gotSchemaVersion=319] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:23.753 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=198] [version=319] [2024/05/06 09:24:23.755 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=319] ["take time"=18.616209ms] [job="ID:198, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:23.67 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.756 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:198, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:23.67 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.762 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:198, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.67 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.762 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=198] [conn=3] [category=ddl] [job="ID:198, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.67 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.763 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:198, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.67 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.765 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=319] [neededSchemaVersion=320] ["start time"=390.546µs] [gotSchemaVersion=320] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:23.766 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=198] [version=320] [2024/05/06 09:24:23.767 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=320] ["take time"=2.907727ms] [job="ID:198, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.67 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.768 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:198, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.67 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.773 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=198] [jobType="drop column"] [2024/05/06 09:24:23.774 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=198] [conn=3] [job="ID:198, Type:drop column, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.67 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.778 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:198, Type:drop column, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.67 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.782 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=198] [2024/05/06 09:24:23.782 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:23.782 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=320] [cur_db=test] [sql="alter table t add column c3 bigint"] [user=] [2024/05/06 09:24:23.785 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:199, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.784 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:23.785 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:199, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.784 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c3 bigint"] [2024/05/06 09:24:23.794 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:199, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.784 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.794 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=199] [conn=3] [category=ddl] [job="ID:199, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.784 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.794 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:199, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.784 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [columnInfo="{\"id\":15,\"name\":{\"O\":\"c3\",\"L\":\"c3\"},\"offset\":4,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{},\"state\":0,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2}"] [2024/05/06 09:24:23.795 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:199, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.784 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.798 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=320] [neededSchemaVersion=321] ["start time"=434.301µs] [gotSchemaVersion=321] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:23.799 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=199] [version=321] [2024/05/06 09:24:23.800 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=321] ["take time"=2.560746ms] [job="ID:199, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.784 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.800 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:199, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.784 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.805 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:199, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.784 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.805 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=199] [conn=3] [category=ddl] [job="ID:199, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.784 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.806 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:199, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.784 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.808 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=321] [neededSchemaVersion=322] ["start time"=460.005µs] [gotSchemaVersion=322] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:23.809 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=199] [version=322] [2024/05/06 09:24:23.812 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=322] ["take time"=4.360744ms] [job="ID:199, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.784 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.813 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:199, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.784 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.818 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:199, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.784 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.821 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=199] [conn=3] [category=ddl] [job="ID:199, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.784 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.821 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:199, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.784 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.823 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=322] [neededSchemaVersion=323] ["start time"=407.829µs] [gotSchemaVersion=323] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:23.825 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=199] [version=323] [2024/05/06 09:24:23.825 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=323] ["take time"=2.163174ms] [job="ID:199, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.784 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.830 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:199, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.784 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.837 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:199, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.784 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.838 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=199] [conn=3] [category=ddl] [job="ID:199, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.784 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.838 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:199, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.784 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.841 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=323] [neededSchemaVersion=324] ["start time"=432.334µs] [gotSchemaVersion=324] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:23.842 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=199] [version=324] [2024/05/06 09:24:23.843 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=324] ["take time"=2.170914ms] [job="ID:199, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.784 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.843 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:199, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.784 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.855 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=199] [conn=3] [job="ID:199, Type:add column, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.784 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.858 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:199, Type:add column, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.784 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.859 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=199] [2024/05/06 09:24:23.859 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:23.859 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=324] [cur_db=test] [sql="alter table t drop column c3"] [user=] [2024/05/06 09:24:23.862 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:200, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:23.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:23.862 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:200, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:23.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop column c3"] [2024/05/06 09:24:23.879 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:200, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.879 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=200] [conn=3] [category=ddl] [job="ID:200, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.880 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:200, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:23.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.882 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=324] [neededSchemaVersion=325] ["start time"=426.191µs] [gotSchemaVersion=325] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:23.883 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=200] [version=325] [2024/05/06 09:24:23.884 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=325] ["take time"=2.363412ms] [job="ID:200, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:23.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.884 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:200, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:23.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.889 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:200, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.889 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=200] [conn=3] [category=ddl] [job="ID:200, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.889 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:200, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:23.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.891 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=325] [neededSchemaVersion=326] ["start time"=404.665µs] [gotSchemaVersion=326] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:23.893 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=200] [version=326] [2024/05/06 09:24:23.893 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=326] ["take time"=2.036022ms] [job="ID:200, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:23.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.894 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:200, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:23.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.899 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:200, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.899 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=200] [conn=3] [category=ddl] [job="ID:200, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.900 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:200, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:23.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.902 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=326] [neededSchemaVersion=327] ["start time"=417.794µs] [gotSchemaVersion=327] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:23.904 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=200] [version=327] [2024/05/06 09:24:23.906 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=327] ["take time"=4.713532ms] [job="ID:200, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:23.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.907 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:200, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:23.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.911 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:200, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.912 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=200] [conn=3] [category=ddl] [job="ID:200, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.913 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:200, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.916 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=327] [neededSchemaVersion=328] ["start time"=1.331562ms] [gotSchemaVersion=328] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:23.917 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=200] [version=328] [2024/05/06 09:24:23.917 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=328] ["take time"=3.08268ms] [job="ID:200, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.918 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:200, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.923 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=200] [jobType="drop column"] [2024/05/06 09:24:23.925 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=200] [conn=3] [job="ID:200, Type:drop column, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.929 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:200, Type:drop column, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.933 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=200] [2024/05/06 09:24:23.933 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:23.934 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=328] [cur_db=test] [sql="alter table t add column c3 bigint"] [user=] [2024/05/06 09:24:23.937 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:201, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.935 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:23.937 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:201, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.935 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c3 bigint"] [2024/05/06 09:24:23.945 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:201, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.935 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.945 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=201] [conn=3] [category=ddl] [job="ID:201, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.935 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.945 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:201, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.935 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [columnInfo="{\"id\":16,\"name\":{\"O\":\"c3\",\"L\":\"c3\"},\"offset\":4,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{},\"state\":0,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2}"] [2024/05/06 09:24:23.946 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:201, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.935 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.948 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=328] [neededSchemaVersion=329] ["start time"=407.484µs] [gotSchemaVersion=329] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:23.949 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=201] [version=329] [2024/05/06 09:24:23.950 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=329] ["take time"=2.885334ms] [job="ID:201, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.935 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.951 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:201, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.935 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.955 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:201, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.935 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.955 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=201] [conn=3] [category=ddl] [job="ID:201, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.935 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.956 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:201, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.935 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.958 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=329] [neededSchemaVersion=330] ["start time"=463.324µs] [gotSchemaVersion=330] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:23.960 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=201] [version=330] [2024/05/06 09:24:23.960 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=330] ["take time"=2.078249ms] [job="ID:201, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.935 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.961 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:201, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.935 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.966 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:201, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.935 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.967 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=201] [conn=3] [category=ddl] [job="ID:201, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.935 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.967 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:201, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.935 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.969 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=330] [neededSchemaVersion=331] ["start time"=410.332µs] [gotSchemaVersion=331] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:23.971 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=201] [version=331] [2024/05/06 09:24:23.973 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=331] ["take time"=4.535613ms] [job="ID:201, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.935 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.974 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:201, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.935 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.979 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:201, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.935 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.979 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=201] [conn=3] [category=ddl] [job="ID:201, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.935 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.979 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:201, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.935 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.982 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=331] [neededSchemaVersion=332] ["start time"=407.581µs] [gotSchemaVersion=332] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:23.983 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=201] [version=332] [2024/05/06 09:24:23.983 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=332] ["take time"=2.061922ms] [job="ID:201, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.935 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:23.984 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:201, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:23.935 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.009 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=201] [conn=3] [job="ID:201, Type:add column, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.935 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.013 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:201, Type:add column, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:23.935 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.014 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=201] [2024/05/06 09:24:24.014 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:24.014 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=332] [cur_db=test] [sql="alter table t drop column c3"] [user=] [2024/05/06 09:24:24.020 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:202, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:24.016 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:24.020 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:202, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:24.016 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop column c3"] [2024/05/06 09:24:24.027 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:202, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.016 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.027 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=202] [conn=3] [category=ddl] [job="ID:202, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.016 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.030 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:202, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:24.016 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.032 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=332] [neededSchemaVersion=333] ["start time"=502.233µs] [gotSchemaVersion=333] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:24.034 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=202] [version=333] [2024/05/06 09:24:24.037 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=333] ["take time"=4.947005ms] [job="ID:202, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:24.016 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.038 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:202, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:24.016 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.046 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:202, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.016 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.046 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=202] [conn=3] [category=ddl] [job="ID:202, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.016 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.049 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:202, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:24.016 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.053 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=333] [neededSchemaVersion=334] ["start time"=640.083µs] [gotSchemaVersion=334] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:24.055 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=202] [version=334] [2024/05/06 09:24:24.057 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=334] ["take time"=4.331283ms] [job="ID:202, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:24.016 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.058 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:202, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:24.016 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.065 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:202, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.016 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.065 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=202] [conn=3] [category=ddl] [job="ID:202, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.016 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.065 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:202, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:24.016 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.067 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=334] [neededSchemaVersion=335] ["start time"=444.317µs] [gotSchemaVersion=335] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:24.069 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=202] [version=335] [2024/05/06 09:24:24.071 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=335] ["take time"=4.058164ms] [job="ID:202, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:24.016 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.072 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:202, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:24.016 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.094 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:202, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.016 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.094 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=202] [conn=3] [category=ddl] [job="ID:202, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.016 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.096 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:202, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:24.016 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.099 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=335] [neededSchemaVersion=336] ["start time"=407.661µs] [gotSchemaVersion=336] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:24.100 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=202] [version=336] [2024/05/06 09:24:24.102 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=336] ["take time"=4.348269ms] [job="ID:202, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:24.016 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.103 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:202, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:24.016 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.109 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=202] [jobType="drop column"] [2024/05/06 09:24:24.109 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=202] [conn=3] [job="ID:202, Type:drop column, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:24.016 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.117 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=202] [2024/05/06 09:24:24.117 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:24.117 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=336] [cur_db=test] [sql="alter table t add column c3 bigint"] [user=] [2024/05/06 09:24:24.120 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:202, Type:drop column, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:24.016 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.121 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:203, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:24.12 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:24.122 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:203, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:24.12 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c3 bigint"] [2024/05/06 09:24:24.135 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:203, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.12 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.135 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=203] [conn=3] [category=ddl] [job="ID:203, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.12 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.135 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:203, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:24.12 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [columnInfo="{\"id\":17,\"name\":{\"O\":\"c3\",\"L\":\"c3\"},\"offset\":4,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{},\"state\":0,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2}"] [2024/05/06 09:24:24.136 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:203, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:24.12 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.142 +00:00] [INFO] [mvcc.go:1246] ["trying to commit with smaller commitTs than minCommitTs"] ["commit ts"=449573673798729728] ["min commit ts"=449573673799516161] [key=bURCOjIAAAAA+wAAAAAAAABoVGFibGU6MTH/MQAAAAAAAAD4] [2024/05/06 09:24:24.142 +00:00] [INFO] [commit.go:160] ["2PC commitTS rejected by TiKV, retry with a newer commitTS"] [txnStartTS=449573673798205440] [info="{StartTs:449573673798205440 AttemptedCommitTs:449573673798729728 Key:6d44423a3200000000fb00000000000000685461626c653a3131ff3100000000000000f8 MinCommitTs:449573673799516161}"] [2024/05/06 09:24:24.143 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=336] [neededSchemaVersion=337] ["start time"=495.884µs] [gotSchemaVersion=337] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:24.146 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=203] [version=337] [2024/05/06 09:24:24.146 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=337] ["take time"=4.00908ms] [job="ID:203, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:24.12 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.147 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:203, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:24.12 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.155 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:203, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.12 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.155 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=203] [conn=3] [category=ddl] [job="ID:203, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.12 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.156 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:203, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:24.12 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.158 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=337] [neededSchemaVersion=338] ["start time"=473.61µs] [gotSchemaVersion=338] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:24.160 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=203] [version=338] [2024/05/06 09:24:24.160 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=338] ["take time"=2.209738ms] [job="ID:203, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:24.12 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.162 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:203, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:24.12 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.167 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:203, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.12 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.167 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=203] [conn=3] [category=ddl] [job="ID:203, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.12 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.170 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:203, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:24.12 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.172 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=338] [neededSchemaVersion=339] ["start time"=451.378µs] [gotSchemaVersion=339] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:24.173 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=203] [version=339] [2024/05/06 09:24:24.175 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=339] ["take time"=4.290993ms] [job="ID:203, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:24.12 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.182 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:203, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:24.12 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.198 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:203, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.12 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.198 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=203] [conn=3] [category=ddl] [job="ID:203, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.12 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.199 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:203, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:24.12 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.202 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=339] [neededSchemaVersion=340] ["start time"=474.096µs] [gotSchemaVersion=340] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:24.205 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=203] [version=340] [2024/05/06 09:24:24.206 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=340] ["take time"=4.065686ms] [job="ID:203, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:24.12 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.207 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:203, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:24.12 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.222 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=203] [conn=3] [job="ID:203, Type:add column, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.12 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.227 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:203, Type:add column, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.12 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.227 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=203] [2024/05/06 09:24:24.227 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:24.228 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=340] [cur_db=test] [sql="alter table t drop column c3"] [user=] [2024/05/06 09:24:24.230 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:204, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:24.229 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:24.230 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:204, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:24.229 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop column c3"] [2024/05/06 09:24:24.246 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:204, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.229 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.246 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=204] [conn=3] [category=ddl] [job="ID:204, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.229 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.247 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:204, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:24.229 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.249 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=340] [neededSchemaVersion=341] ["start time"=442.96µs] [gotSchemaVersion=341] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:24.251 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=204] [version=341] [2024/05/06 09:24:24.253 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=341] ["take time"=4.186134ms] [job="ID:204, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:24.229 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.255 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:204, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:24.229 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.266 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:204, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.229 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.266 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=204] [conn=3] [category=ddl] [job="ID:204, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.229 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.267 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:204, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:24.229 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.269 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=341] [neededSchemaVersion=342] ["start time"=434.568µs] [gotSchemaVersion=342] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:24.271 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=204] [version=342] [2024/05/06 09:24:24.274 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=342] ["take time"=4.837379ms] [job="ID:204, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:24.229 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.275 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:204, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:24.229 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.281 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:204, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.229 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.282 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=204] [conn=3] [category=ddl] [job="ID:204, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.229 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.282 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:204, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:24.229 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.286 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=342] [neededSchemaVersion=343] ["start time"=421.212µs] [gotSchemaVersion=343] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:24.287 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=204] [version=343] [2024/05/06 09:24:24.288 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=343] ["take time"=4.249324ms] [job="ID:204, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:24.229 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.289 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:204, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:24.229 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.294 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:204, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.229 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.294 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=204] [conn=3] [category=ddl] [job="ID:204, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.229 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.294 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:204, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:24.229 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.298 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=343] [neededSchemaVersion=344] ["start time"=453.479µs] [gotSchemaVersion=344] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:24.299 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=204] [version=344] [2024/05/06 09:24:24.302 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=344] ["take time"=4.565889ms] [job="ID:204, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:24.229 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.303 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:204, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:24.229 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.309 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=204] [jobType="drop column"] [2024/05/06 09:24:24.310 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=204] [conn=3] [job="ID:204, Type:drop column, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:24.229 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.313 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:204, Type:drop column, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:24.229 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.316 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=204] [2024/05/06 09:24:24.316 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:24.316 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=344] [cur_db=test] [sql="alter table t add column c3 bigint"] [user=] [2024/05/06 09:24:24.319 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:205, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:24.317 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:24.319 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:205, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:24.317 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c3 bigint"] [2024/05/06 09:24:24.325 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:205, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.317 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.325 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=205] [conn=3] [category=ddl] [job="ID:205, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.317 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.326 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:205, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:24.317 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [columnInfo="{\"id\":18,\"name\":{\"O\":\"c3\",\"L\":\"c3\"},\"offset\":4,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{},\"state\":0,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2}"] [2024/05/06 09:24:24.327 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:205, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:24.317 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.330 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=344] [neededSchemaVersion=345] ["start time"=455.829µs] [gotSchemaVersion=345] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:24.336 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=205] [version=345] [2024/05/06 09:24:24.338 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=345] ["take time"=8.762534ms] [job="ID:205, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:24.317 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.340 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:205, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:24.317 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.344 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:205, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.317 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.344 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=205] [conn=3] [category=ddl] [job="ID:205, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.317 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.345 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:205, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:24.317 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.349 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=345] [neededSchemaVersion=346] ["start time"=456.098µs] [gotSchemaVersion=346] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:24.350 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=205] [version=346] [2024/05/06 09:24:24.353 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=346] ["take time"=4.813147ms] [job="ID:205, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:24.317 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.354 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:205, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:24.317 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.358 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:205, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.317 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.358 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=205] [conn=3] [category=ddl] [job="ID:205, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.317 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.359 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:205, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:24.317 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.361 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=346] [neededSchemaVersion=347] ["start time"=417.363µs] [gotSchemaVersion=347] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:24.362 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=205] [version=347] [2024/05/06 09:24:24.362 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=347] ["take time"=2.02268ms] [job="ID:205, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:24.317 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.364 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:205, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:24.317 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.369 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:205, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.317 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.369 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=205] [conn=3] [category=ddl] [job="ID:205, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.317 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.369 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:205, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:24.317 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.372 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=347] [neededSchemaVersion=348] ["start time"=639.074µs] [gotSchemaVersion=348] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:24.378 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=205] [version=348] [2024/05/06 09:24:24.381 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=348] ["take time"=8.924845ms] [job="ID:205, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:24.317 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.382 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:205, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:24.317 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.388 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=205] [conn=3] [job="ID:205, Type:add column, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.317 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.391 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:205, Type:add column, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.317 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:24.392 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=205] [2024/05/06 09:24:24.392 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:24.392 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=348] [cur_db=test] [sql="alter table t add index idx_c3(c3)"] [user=] [2024/05/06 09:24:24.395 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:206, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:24.395 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:206, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add index idx_c3(c3)"] [2024/05/06 09:24:24.406 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:206, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.406 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=206] [conn=3] [category=ddl] [job="ID:206, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.406 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":24,\"idx_name\":{\"O\":\"idx_c3\",\"L\":\"idx_c3\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c3\",\"L\":\"c3\"},\"offset\":4,\"length\":-1}],\"state\":0,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":false,\"is_primary\":false,\"is_invisible\":false,\"is_global\":false,\"mv_index\":false}"] [2024/05/06 09:24:24.406 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:24:24.412 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.414 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=348] [neededSchemaVersion=349] ["start time"=449.016µs] [gotSchemaVersion=349] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:24.416 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=206] [version=349] [2024/05/06 09:24:24.418 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=349] ["take time"=4.879739ms] [job="ID:206, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.419 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.427 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.428 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=206] [conn=3] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.428 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.437 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=349] [neededSchemaVersion=350] ["start time"=6.282674ms] [gotSchemaVersion=350] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:24.439 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=206] [version=350] [2024/05/06 09:24:24.446 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=350] ["take time"=15.331541ms] [job="ID:206, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.447 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.456 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.456 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=206] [conn=3] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.457 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.459 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=350] [neededSchemaVersion=351] ["start time"=477.738µs] [gotSchemaVersion=351] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:24.460 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=206] [version=351] [2024/05/06 09:24:24.461 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=351] ["take time"=2.32663ms] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.462 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.469 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.469 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=206] [conn=3] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.469 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=206] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:24.470 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=206] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:24.473 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673885761537, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.474 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=206] [2024/05/06 09:24:24.474 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673885761537, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.483 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673885761537, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.488 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=206] [conn=3] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673885761537, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.489 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=206] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:24.491 +00:00] [INFO] [index.go:1931] ["start to add table index"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673885761537, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:24,StartKey:74800000000000006f5f728000000000000001,EndKey:74800000000000006f5f72800000000000080100,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:24:24.492 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=111] ["start key"=74800000000000006f5f728000000000000001] ["end key"=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:24.492 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="add index"] [workerCnt=1] [regionCnt=1] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:24.492 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=111] ["end key"=74800000000000006f5f72800000000000080100] ["current end key"=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:24.501 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:24.501 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673885761537, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.502 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=206] [2024/05/06 09:24:24.502 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673885761537, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.513 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673885761537, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.513 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=206] [conn=3] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673885761537, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.514 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=206] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:24.532 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:24.532 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673885761537, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.533 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=206] [2024/05/06 09:24:24.533 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673885761537, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.542 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673885761537, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.542 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=206] [conn=3] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673885761537, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.542 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=206] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:24.558 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:24.558 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673885761537, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.559 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=206] [2024/05/06 09:24:24.559 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673885761537, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.567 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673885761537, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.567 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=206] [conn=3] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673885761537, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.567 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=206] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:24.584 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:24.584 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673885761537, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.585 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=206] [2024/05/06 09:24:24.585 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673885761537, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.621 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673885761537, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.621 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=206] [conn=3] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673885761537, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.621 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=206] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:24.679 +00:00] [INFO] [backfilling.go:330] ["backfill worker finish task"] [category=ddl] [worker="backfill-worker 0, tp add index"] [task="taskID: 1, physicalTableID: 111, range: [74800000000000006f5f728000000000000001, 74800000000000006f5f72800000000000080100), jobID: 206"] ["added count"=2049] ["scan count"=2049] ["next key"=74800000000000006f5f72800000000000080100] ["take time"=86.468444ms] [2024/05/06 09:24:24.679 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=206] [2024/05/06 09:24:24.679 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:24,TypeKey:_idx_] ["total added count"=2049] ["start key"=74800000000000006f5f728000000000000001] [2024/05/06 09:24:24.734 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=1056] [2024/05/06 09:24:24.734 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:1056, ArgLen:6, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673885761537, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.735 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=206] [2024/05/06 09:24:24.736 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:1056, ArgLen:6, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673885761537, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.741 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:1056, ArgLen:0, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673885761537, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.741 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=206] [conn=3] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:1056, ArgLen:0, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673885761537, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.742 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=206] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:24.743 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:24:24.807 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673885761537, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.809 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=351] [neededSchemaVersion=352] ["start time"=520.138µs] [gotSchemaVersion=352] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:24.811 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=206] [version=352] [2024/05/06 09:24:24.814 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=352] ["take time"=5.240569ms] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673885761537, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.816 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673885761537, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.823 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673885761537, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.824 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=206] [conn=3] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673885761537, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.825 +00:00] [INFO] [index.go:880] ["index backfill state ready to merge"] [category=ddl] ["job ID"=206] [table=t] [index=idx_c3] [2024/05/06 09:24:24.825 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.828 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=352] [neededSchemaVersion=353] ["start time"=463.21µs] [gotSchemaVersion=353] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:24.831 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=206] [version=353] [2024/05/06 09:24:24.832 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=353] ["take time"=4.384043ms] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.833 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.844 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.844 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=206] [conn=3] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.845 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=206] [physicalTableID=111] [startKey=74800000000000006f5f69ffff000000000018] [endKey=74800000000000006f5f69ffff000000000018ff] [2024/05/06 09:24:24.848 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673984327680, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.849 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=206] [2024/05/06 09:24:24.849 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673984327680, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.858 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673984327680, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.858 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=206] [conn=3] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673984327680, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.860 +00:00] [INFO] [index.go:1928] ["start to merge temp index"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673984327680, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:24,StartKey:74800000000000006f5f69ffff000000000018,EndKey:74800000000000006f5f69ffff000000000018ff,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:24:24.861 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=111] ["start key"=74800000000000006f5f69ffff000000000018] ["end key"=74800000000000006f5f69ffff000000000018ff] [2024/05/06 09:24:24.861 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="merge temporary index"] [workerCnt=1] [regionCnt=1] [startKey=74800000000000006f5f69ffff000000000018] [endKey=74800000000000006f5f69ffff000000000018ff] [2024/05/06 09:24:24.862 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=111] ["end key"=74800000000000006f5f69ffff000000000018ff] ["current end key"=74800000000000006f5f69ffff00000000001800] [2024/05/06 09:24:24.964 +00:00] [INFO] [backfilling.go:330] ["backfill worker finish task"] [category=ddl] [worker="backfill-worker 0, tp merge temporary index"] [task="taskID: 1, physicalTableID: 111, range: [74800000000000006f5f69ffff000000000018, 74800000000000006f5f69ffff00000000001800), jobID: 206"] ["added count"=0] ["scan count"=0] ["next key"=74800000000000006f5f69ffff0000000000180000] ["take time"=202.074µs] [2024/05/06 09:24:24.964 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp merge temporary index"] [jobID=206] [2024/05/06 09:24:24.964 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:24,TypeKey:_idx_] ["total added count"=2049] ["start key"=74800000000000006f5f69ffff000000000018] [2024/05/06 09:24:24.972 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=2049] [2024/05/06 09:24:24.972 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673984327680, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.973 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=206] [2024/05/06 09:24:24.980 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673984327680, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.989 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673984327680, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.989 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=206] [conn=3] [category=ddl] [job="ID:206, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673984327680, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:24.991 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:24:25.093 +00:00] [INFO] [index.go:781] ["run add index job done"] [category=ddl] [charset=utf8mb4] [collation=utf8mb4_bin] [2024/05/06 09:24:25.093 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:206, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673984327680, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.096 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=353] [neededSchemaVersion=354] ["start time"=465.637µs] [gotSchemaVersion=354] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:25.097 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=206] [version=354] [2024/05/06 09:24:25.101 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=354] ["take time"=5.604261ms] [job="ID:206, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673984327680, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.102 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:206, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673984327680, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.109 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=206] [tableID=111] [indexIDs="[9223090561878065176]"] [comment="add index: physical table ID(s)"] [2024/05/06 09:24:25.110 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=206] [jobType="add index"] [2024/05/06 09:24:25.110 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=206] [conn=3] [job="ID:206, Type:add index, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673984327680, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.113 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=206] [elementID=1] [startKey=74800000000000006f5f69ffff000000000018] [endKey=74800000000000006f5f69ffff000000000019] [2024/05/06 09:24:25.114 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:206, Type:add index, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:24.394 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573673984327680, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.120 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=206] [2024/05/06 09:24:25.120 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:25.121 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=354] [cur_db=test] [sql="alter table t drop column c3"] [user=] [2024/05/06 09:24:25.124 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:207, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:25.123 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:25.124 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:207, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:25.123 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop column c3"] [2024/05/06 09:24:25.130 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:207, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.123 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.132 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=207] [conn=3] [category=ddl] [job="ID:207, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.123 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.133 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:207, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:25.123 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.135 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449573674059038720, conflictStartTS=449573674059038721, conflictCommitTS=449573674059300864, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=207}, originalKey=748000fffffffffffe5f7280000000000000cf, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [IsBatchInsert=false] [IsPessimistic=false] [InRestrictedSQL=true] [tidb_retry_limit=10] [tidb_disable_txn_auto_retry=true] [2024/05/06 09:24:25.135 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449573674059038720, conflictStartTS=449573674059038721, conflictCommitTS=449573674059300864, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=207}, originalKey=748000fffffffffffe5f7280000000000000cf, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:24:25.135 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449573674059038720, conflictStartTS=449573674059038721, conflictCommitTS=449573674059300864, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=207}, originalKey=748000fffffffffffe5f7280000000000000cf, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:207, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:25.123 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.147 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:207, Type:drop column, State:cancelling, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.123 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.147 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=207] [conn=3] [category=ddl] [job="ID:207, Type:drop column, State:cancelling, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.123 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.147 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=207] [conn=3] [job="ID:207, Type:drop column, State:cancelled, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:25.123 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:24:25.147 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:207, Type:drop column, State:cancelled, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:25.123 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.147 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=207] [conn=3] [job="ID:207, Type:drop column, State:cancelled, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:25.123 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.150 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:207, Type:drop column, State:cancelled, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:25.123 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.150 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=207] [2024/05/06 09:24:25.150 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:25.150 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=354] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DropColumn\n\tpkg/ddl/ddl_api.go:5378\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:3900\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:289\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:25.151 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=354] [cur_db=test] [sql="alter table t drop column c3"] [user=] [2024/05/06 09:24:25.153 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:208, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:25.153 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:208, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop column c3"] [2024/05/06 09:24:25.172 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:208, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.172 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=208] [conn=3] [category=ddl] [job="ID:208, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.174 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:208, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.176 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=354] [neededSchemaVersion=356] ["start time"=481.537µs] [gotSchemaVersion=356] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:25.180 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=208] [version=356] [2024/05/06 09:24:25.183 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=356] ["take time"=7.005121ms] [job="ID:208, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.184 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:208, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.200 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:208, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.200 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=208] [conn=3] [category=ddl] [job="ID:208, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.201 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:208, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.203 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=356] [neededSchemaVersion=357] ["start time"=595.204µs] [gotSchemaVersion=357] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:25.205 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=208] [version=357] [2024/05/06 09:24:25.210 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=357] ["take time"=7.028674ms] [job="ID:208, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.211 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:208, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.217 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:208, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.218 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=208] [conn=3] [category=ddl] [job="ID:208, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.222 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:208, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.224 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=357] [neededSchemaVersion=358] ["start time"=499.823µs] [gotSchemaVersion=358] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:25.227 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=208] [version=358] [2024/05/06 09:24:25.227 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=358] ["take time"=3.651774ms] [job="ID:208, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.228 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:208, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.232 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:208, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.232 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=208] [conn=3] [category=ddl] [job="ID:208, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.236 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:208, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.238 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=358] [neededSchemaVersion=359] ["start time"=423.9µs] [gotSchemaVersion=359] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:25.240 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=208] [version=359] [2024/05/06 09:24:25.242 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=359] ["take time"=4.420904ms] [job="ID:208, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.243 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:208, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.248 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=208] [tableID=111] [indexIDs="[24]"] [comment="drop column: table ID"] [2024/05/06 09:24:25.250 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=208] [jobType="drop column"] [2024/05/06 09:24:25.251 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=208] [conn=3] [job="ID:208, Type:drop column, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.262 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:208, Type:drop column, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.270 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=208] [2024/05/06 09:24:25.270 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:25.271 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=359] [cur_db=test] [sql="alter table t add column c3 bigint"] [user=] [2024/05/06 09:24:25.272 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=208] [elementID=1] [startKey=74800000000000006f5f698000000000000018] [endKey=74800000000000006f5f698000000000000019] [2024/05/06 09:24:25.276 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:209, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:25.273 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:25.276 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:209, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:25.273 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c3 bigint"] [2024/05/06 09:24:25.294 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:209, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.273 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.294 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=209] [conn=3] [category=ddl] [job="ID:209, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.273 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.295 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:209, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:25.273 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [columnInfo="{\"id\":19,\"name\":{\"O\":\"c3\",\"L\":\"c3\"},\"offset\":4,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{},\"state\":0,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2}"] [2024/05/06 09:24:25.295 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:209, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:25.273 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.297 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=359] [neededSchemaVersion=360] ["start time"=452.793µs] [gotSchemaVersion=360] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:25.299 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=209] [version=360] [2024/05/06 09:24:25.299 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=360] ["take time"=2.028005ms] [job="ID:209, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:25.273 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.300 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:209, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:25.273 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.311 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:209, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.273 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.311 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=209] [conn=3] [category=ddl] [job="ID:209, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.273 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.312 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:209, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:25.273 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.314 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=360] [neededSchemaVersion=361] ["start time"=554.829µs] [gotSchemaVersion=361] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:25.315 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=209] [version=361] [2024/05/06 09:24:25.319 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=361] ["take time"=5.428992ms] [job="ID:209, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:25.273 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.320 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:209, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:25.273 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.326 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:209, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.273 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.326 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=209] [conn=3] [category=ddl] [job="ID:209, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.273 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.327 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:209, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:25.273 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.330 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=361] [neededSchemaVersion=362] ["start time"=462.937µs] [gotSchemaVersion=362] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:25.331 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=209] [version=362] [2024/05/06 09:24:25.331 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=362] ["take time"=2.024355ms] [job="ID:209, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:25.273 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.332 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:209, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:25.273 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.339 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:209, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.273 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.339 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=209] [conn=3] [category=ddl] [job="ID:209, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.273 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.340 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:209, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:25.273 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.342 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=362] [neededSchemaVersion=363] ["start time"=460.182µs] [gotSchemaVersion=363] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:25.344 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=209] [version=363] [2024/05/06 09:24:25.344 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=363] ["take time"=2.01543ms] [job="ID:209, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:25.273 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.345 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:209, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:25.273 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.353 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=209] [conn=3] [job="ID:209, Type:add column, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.273 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.356 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:209, Type:add column, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.273 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:25.356 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=209] [2024/05/06 09:24:25.356 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:25.357 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=363] [cur_db=test] [sql="alter table t add index idx_c3(c3)"] [user=] [2024/05/06 09:24:25.360 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:210, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:25.360 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:210, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add index idx_c3(c3)"] [2024/05/06 09:24:25.376 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:210, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.376 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=210] [conn=3] [category=ddl] [job="ID:210, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.377 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":25,\"idx_name\":{\"O\":\"idx_c3\",\"L\":\"idx_c3\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c3\",\"L\":\"c3\"},\"offset\":4,\"length\":-1}],\"state\":0,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":false,\"is_primary\":false,\"is_invisible\":false,\"is_global\":false,\"mv_index\":false}"] [2024/05/06 09:24:25.377 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:24:25.381 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.389 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=363] [neededSchemaVersion=364] ["start time"=481.436µs] [gotSchemaVersion=364] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:25.391 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=210] [version=364] [2024/05/06 09:24:25.393 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=364] ["take time"=4.673465ms] [job="ID:210, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.394 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.407 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.407 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=210] [conn=3] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.408 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.410 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=364] [neededSchemaVersion=365] ["start time"=389.048µs] [gotSchemaVersion=365] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:25.411 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=210] [version=365] [2024/05/06 09:24:25.411 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=365] ["take time"=2.031573ms] [job="ID:210, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.413 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.432 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.432 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=210] [conn=3] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.433 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.435 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=365] [neededSchemaVersion=366] ["start time"=452.878µs] [gotSchemaVersion=366] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:25.436 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=210] [version=366] [2024/05/06 09:24:25.439 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=366] ["take time"=4.389342ms] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.440 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.452 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.452 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=210] [conn=3] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.452 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=210] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:25.453 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=210] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:25.458 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674143449089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.459 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=210] [2024/05/06 09:24:25.459 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674143449089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.467 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674143449089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.467 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=210] [conn=3] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674143449089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.468 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=210] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:25.470 +00:00] [INFO] [index.go:1931] ["start to add table index"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674143449089, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:25,StartKey:74800000000000006f5f728000000000000001,EndKey:74800000000000006f5f72800000000000080100,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:24:25.471 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=111] ["start key"=74800000000000006f5f728000000000000001] ["end key"=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:25.471 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="add index"] [workerCnt=1] [regionCnt=1] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:25.472 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=111] ["end key"=74800000000000006f5f72800000000000080100] ["current end key"=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:25.482 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:25.482 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674143449089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.483 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=210] [2024/05/06 09:24:25.484 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674143449089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.493 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674143449089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.493 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=210] [conn=3] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674143449089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.493 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=210] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:25.506 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:25.506 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674143449089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.507 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=210] [2024/05/06 09:24:25.507 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674143449089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.514 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674143449089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.514 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=210] [conn=3] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674143449089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.514 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=210] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:25.529 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:25.529 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674143449089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.530 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=210] [2024/05/06 09:24:25.530 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674143449089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.541 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674143449089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.541 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=210] [conn=3] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674143449089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.542 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=210] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:25.557 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:25.558 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674143449089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.558 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=210] [2024/05/06 09:24:25.559 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674143449089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.566 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674143449089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.566 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=210] [conn=3] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674143449089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.567 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=210] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:25.579 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:25.579 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674143449089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.580 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=210] [2024/05/06 09:24:25.580 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674143449089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.588 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674143449089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.589 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=210] [conn=3] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674143449089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.589 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=210] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:25.649 +00:00] [INFO] [backfilling.go:330] ["backfill worker finish task"] [category=ddl] [worker="backfill-worker 0, tp add index"] [task="taskID: 1, physicalTableID: 111, range: [74800000000000006f5f728000000000000001, 74800000000000006f5f72800000000000080100), jobID: 210"] ["added count"=2049] ["scan count"=2049] ["next key"=74800000000000006f5f72800000000000080100] ["take time"=76.887506ms] [2024/05/06 09:24:25.649 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=210] [2024/05/06 09:24:25.650 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:25,TypeKey:_idx_] ["total added count"=2049] ["start key"=74800000000000006f5f728000000000000001] [2024/05/06 09:24:25.673 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=672] [2024/05/06 09:24:25.673 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:672, ArgLen:6, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674143449089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.674 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=210] [2024/05/06 09:24:25.675 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:672, ArgLen:6, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674143449089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.681 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:672, ArgLen:0, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674143449089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.681 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=210] [conn=3] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:672, ArgLen:0, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674143449089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.682 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=210] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:25.684 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:24:25.820 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674143449089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.823 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=366] [neededSchemaVersion=367] ["start time"=471.301µs] [gotSchemaVersion=367] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:25.824 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=210] [version=367] [2024/05/06 09:24:25.828 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=367] ["take time"=6.158196ms] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674143449089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.830 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674143449089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.853 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674143449089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.853 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=210] [conn=3] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674143449089, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.853 +00:00] [INFO] [index.go:880] ["index backfill state ready to merge"] [category=ddl] ["job ID"=210] [table=t] [index=idx_c3] [2024/05/06 09:24:25.856 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.858 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=367] [neededSchemaVersion=368] ["start time"=497.832µs] [gotSchemaVersion=368] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:25.859 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=210] [version=368] [2024/05/06 09:24:25.862 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=368] ["take time"=4.623468ms] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.865 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.872 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.873 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=210] [conn=3] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.873 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=210] [physicalTableID=111] [startKey=74800000000000006f5f69ffff000000000019] [endKey=74800000000000006f5f69ffff000000000019ff] [2024/05/06 09:24:25.887 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674253811712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.888 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=210] [2024/05/06 09:24:25.888 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674253811712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.896 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674253811712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.896 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=210] [conn=3] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674253811712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.898 +00:00] [INFO] [index.go:1928] ["start to merge temp index"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674253811712, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:25,StartKey:74800000000000006f5f69ffff000000000019,EndKey:74800000000000006f5f69ffff000000000019ff,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:24:25.899 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=111] ["start key"=74800000000000006f5f69ffff000000000019] ["end key"=74800000000000006f5f69ffff000000000019ff] [2024/05/06 09:24:25.899 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="merge temporary index"] [workerCnt=1] [regionCnt=1] [startKey=74800000000000006f5f69ffff000000000019] [endKey=74800000000000006f5f69ffff000000000019ff] [2024/05/06 09:24:25.899 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=111] ["end key"=74800000000000006f5f69ffff000000000019ff] ["current end key"=74800000000000006f5f69ffff00000000001900] [2024/05/06 09:24:25.976 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=2049] [2024/05/06 09:24:25.976 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674253811712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.977 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=210] [2024/05/06 09:24:25.978 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674253811712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.984 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674253811712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:25.984 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=210] [conn=3] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674253811712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.002 +00:00] [INFO] [backfilling.go:330] ["backfill worker finish task"] [category=ddl] [worker="backfill-worker 0, tp merge temporary index"] [task="taskID: 1, physicalTableID: 111, range: [74800000000000006f5f69ffff000000000019, 74800000000000006f5f69ffff00000000001900), jobID: 210"] ["added count"=0] ["scan count"=0] ["next key"=74800000000000006f5f69ffff0000000000190000] ["take time"=232.488µs] [2024/05/06 09:24:26.002 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp merge temporary index"] [jobID=210] [2024/05/06 09:24:26.003 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:25,TypeKey:_idx_] ["total added count"=2049] ["start key"=74800000000000006f5f69ffff000000000019] [2024/05/06 09:24:26.149 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=2049] [2024/05/06 09:24:26.150 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674253811712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.151 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=210] [2024/05/06 09:24:26.159 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674253811712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.189 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674253811712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.189 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=210] [conn=3] [category=ddl] [job="ID:210, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674253811712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.191 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:24:26.329 +00:00] [INFO] [index.go:781] ["run add index job done"] [category=ddl] [charset=utf8mb4] [collation=utf8mb4_bin] [2024/05/06 09:24:26.329 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:210, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674253811712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.333 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=368] [neededSchemaVersion=369] ["start time"=457.184µs] [gotSchemaVersion=369] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:26.336 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=210] [version=369] [2024/05/06 09:24:26.339 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=369] ["take time"=8.138715ms] [job="ID:210, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674253811712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.340 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:210, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674253811712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.350 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=210] [tableID=111] [indexIDs="[9223090561878065177]"] [comment="add index: physical table ID(s)"] [2024/05/06 09:24:26.352 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=210] [jobType="add index"] [2024/05/06 09:24:26.353 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=210] [conn=3] [job="ID:210, Type:add index, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674253811712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.356 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:210, Type:add index, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:25.358 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674253811712, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.359 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=210] [elementID=1] [startKey=74800000000000006f5f69ffff000000000019] [endKey=74800000000000006f5f69ffff00000000001a] [2024/05/06 09:24:26.366 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=210] [2024/05/06 09:24:26.367 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:26.367 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=369] [cur_db=test] [sql="alter table t drop column c3"] [user=] [2024/05/06 09:24:26.371 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:211, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:26.37 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:26.371 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:211, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:26.37 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop column c3"] [2024/05/06 09:24:26.382 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:211, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:26.37 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.382 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=211] [conn=3] [category=ddl] [job="ID:211, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:26.37 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.383 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:211, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:26.37 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.385 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=369] [neededSchemaVersion=370] ["start time"=460.271µs] [gotSchemaVersion=370] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:26.387 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=211] [version=370] [2024/05/06 09:24:26.390 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=370] ["take time"=5.202764ms] [job="ID:211, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:26.37 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.394 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:211, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:26.37 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.399 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:211, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:26.37 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.399 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=211] [conn=3] [category=ddl] [job="ID:211, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:26.37 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.400 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:211, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:26.37 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.402 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=370] [neededSchemaVersion=371] ["start time"=450.727µs] [gotSchemaVersion=371] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:26.403 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=211] [version=371] [2024/05/06 09:24:26.403 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=371] ["take time"=2.075573ms] [job="ID:211, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:26.37 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.404 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:211, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:26.37 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.412 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:211, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:26.37 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.414 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=211] [conn=3] [category=ddl] [job="ID:211, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:26.37 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.415 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:211, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:26.37 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.417 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=371] [neededSchemaVersion=372] ["start time"=416.527µs] [gotSchemaVersion=372] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:26.418 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=211] [version=372] [2024/05/06 09:24:26.419 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=372] ["take time"=2.342219ms] [job="ID:211, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:26.37 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.420 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:211, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:26.37 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.426 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:211, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:26.37 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.430 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=211] [conn=3] [category=ddl] [job="ID:211, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:26.37 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.431 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:211, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:26.37 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.434 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=372] [neededSchemaVersion=373] ["start time"=367.365µs] [gotSchemaVersion=373] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:26.435 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=211] [version=373] [2024/05/06 09:24:26.435 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=373] ["take time"=2.728064ms] [job="ID:211, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:26.37 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.436 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:211, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:26.37 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.440 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=211] [tableID=111] [indexIDs="[25]"] [comment="drop column: table ID"] [2024/05/06 09:24:26.441 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=211] [jobType="drop column"] [2024/05/06 09:24:26.441 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=211] [conn=3] [job="ID:211, Type:drop column, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:26.37 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.444 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:211, Type:drop column, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:26.37 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.446 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=211] [2024/05/06 09:24:26.446 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:26.447 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=373] [cur_db=test] [sql="alter table t add column c3 bigint"] [user=] [2024/05/06 09:24:26.450 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:212, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:26.448 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:26.450 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:212, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:26.448 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c3 bigint"] [2024/05/06 09:24:26.462 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=211] [elementID=1] [startKey=74800000000000006f5f698000000000000019] [endKey=74800000000000006f5f69800000000000001a] [2024/05/06 09:24:26.465 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:212, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:26.448 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.465 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=212] [conn=3] [category=ddl] [job="ID:212, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:26.448 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.466 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:212, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:26.448 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [columnInfo="{\"id\":20,\"name\":{\"O\":\"c3\",\"L\":\"c3\"},\"offset\":4,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{},\"state\":0,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2}"] [2024/05/06 09:24:26.466 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:212, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:26.448 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.472 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=373] [neededSchemaVersion=374] ["start time"=554.691µs] [gotSchemaVersion=374] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:26.473 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=212] [version=374] [2024/05/06 09:24:26.475 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=374] ["take time"=4.014315ms] [job="ID:212, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:26.448 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.476 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:212, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:26.448 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.494 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:212, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:26.448 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.494 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=212] [conn=3] [category=ddl] [job="ID:212, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:26.448 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.495 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:212, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:26.448 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.497 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=374] [neededSchemaVersion=375] ["start time"=431.343µs] [gotSchemaVersion=375] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:26.498 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=212] [version=375] [2024/05/06 09:24:26.499 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=375] ["take time"=2.066907ms] [job="ID:212, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:26.448 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.499 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:212, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:26.448 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.506 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:212, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:26.448 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.506 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=212] [conn=3] [category=ddl] [job="ID:212, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:26.448 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.507 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:212, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:26.448 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.509 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=375] [neededSchemaVersion=376] ["start time"=532.868µs] [gotSchemaVersion=376] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:26.511 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=212] [version=376] [2024/05/06 09:24:26.513 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=376] ["take time"=4.139698ms] [job="ID:212, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:26.448 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.514 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:212, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:26.448 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.534 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:212, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:26.448 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.534 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=212] [conn=3] [category=ddl] [job="ID:212, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:26.448 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.535 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:212, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:26.448 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.538 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=376] [neededSchemaVersion=377] ["start time"=448.945µs] [gotSchemaVersion=377] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:26.543 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=212] [version=377] [2024/05/06 09:24:26.546 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=377] ["take time"=8.483895ms] [job="ID:212, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:26.448 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.547 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:212, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:26.448 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.568 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=212] [conn=3] [job="ID:212, Type:add column, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:26.448 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.573 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:212, Type:add column, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:26.448 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:26.574 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=212] [2024/05/06 09:24:26.574 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:26.574 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=377] [cur_db=test] [sql="alter table t add index idx_c3(c3)"] [user=] [2024/05/06 09:24:26.582 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:213, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:26.582 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:213, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add index idx_c3(c3)"] [2024/05/06 09:24:26.590 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:213, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.590 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=213] [conn=3] [category=ddl] [job="ID:213, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.591 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":26,\"idx_name\":{\"O\":\"idx_c3\",\"L\":\"idx_c3\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c3\",\"L\":\"c3\"},\"offset\":4,\"length\":-1}],\"state\":0,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":false,\"is_primary\":false,\"is_invisible\":false,\"is_global\":false,\"mv_index\":false}"] [2024/05/06 09:24:26.591 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:24:26.591 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.593 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=377] [neededSchemaVersion=378] ["start time"=462.61µs] [gotSchemaVersion=378] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:26.595 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=213] [version=378] [2024/05/06 09:24:26.595 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=378] ["take time"=2.017524ms] [job="ID:213, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.596 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.608 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.608 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=213] [conn=3] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.609 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.611 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=378] [neededSchemaVersion=379] ["start time"=465.167µs] [gotSchemaVersion=379] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:26.614 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=213] [version=379] [2024/05/06 09:24:26.621 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=379] ["take time"=10.21605ms] [job="ID:213, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.622 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.651 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.651 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=213] [conn=3] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.652 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.655 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=379] [neededSchemaVersion=380] ["start time"=443.98µs] [gotSchemaVersion=380] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:26.656 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=213] [version=380] [2024/05/06 09:24:26.658 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=380] ["take time"=4.458865ms] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.660 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.671 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.679 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=213] [conn=3] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.680 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=213] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:26.680 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=213] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:26.686 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674465361920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.688 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=213] [2024/05/06 09:24:26.689 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674465361920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.700 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674465361920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.700 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=213] [conn=3] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674465361920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.701 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=213] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:26.703 +00:00] [INFO] [index.go:1931] ["start to add table index"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674465361920, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:26,StartKey:74800000000000006f5f728000000000000001,EndKey:74800000000000006f5f72800000000000080100,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:24:26.704 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=111] ["start key"=74800000000000006f5f728000000000000001] ["end key"=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:26.704 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="add index"] [workerCnt=1] [regionCnt=1] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:26.705 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=111] ["end key"=74800000000000006f5f72800000000000080100] ["current end key"=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:26.713 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:26.713 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674465361920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.714 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=213] [2024/05/06 09:24:26.714 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674465361920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.722 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674465361920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.723 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=213] [conn=3] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674465361920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.723 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=213] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:26.744 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:26.744 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674465361920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.745 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=213] [2024/05/06 09:24:26.746 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674465361920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.753 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674465361920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.754 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=213] [conn=3] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674465361920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.754 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=213] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:26.767 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:26.767 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674465361920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.768 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=213] [2024/05/06 09:24:26.768 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674465361920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.777 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674465361920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.777 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=213] [conn=3] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674465361920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.778 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=213] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:26.790 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:26.790 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674465361920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.790 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=213] [2024/05/06 09:24:26.791 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674465361920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.798 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674465361920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.799 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=213] [conn=3] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674465361920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.799 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=213] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:26.895 +00:00] [INFO] [backfilling.go:330] ["backfill worker finish task"] [category=ddl] [worker="backfill-worker 0, tp add index"] [task="taskID: 1, physicalTableID: 111, range: [74800000000000006f5f728000000000000001, 74800000000000006f5f72800000000000080100), jobID: 213"] ["added count"=2049] ["scan count"=2049] ["next key"=74800000000000006f5f72800000000000080100] ["take time"=89.845289ms] [2024/05/06 09:24:26.895 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=213] [2024/05/06 09:24:26.895 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:26,TypeKey:_idx_] ["total added count"=2049] ["start key"=74800000000000006f5f728000000000000001] [2024/05/06 09:24:26.940 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=160] [2024/05/06 09:24:26.940 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:160, ArgLen:6, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674465361920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.941 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=213] [2024/05/06 09:24:26.941 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:160, ArgLen:6, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674465361920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.951 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:160, ArgLen:0, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674465361920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.951 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=213] [conn=3] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:160, ArgLen:0, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674465361920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:26.952 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=213] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:26.953 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:24:27.023 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674465361920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.027 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=380] [neededSchemaVersion=381] ["start time"=435.28µs] [gotSchemaVersion=381] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:27.029 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=213] [version=381] [2024/05/06 09:24:27.029 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=381] ["take time"=2.659962ms] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674465361920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.030 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674465361920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.038 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674465361920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.039 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=213] [conn=3] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674465361920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.040 +00:00] [INFO] [index.go:880] ["index backfill state ready to merge"] [category=ddl] ["job ID"=213] [table=t] [index=idx_c3] [2024/05/06 09:24:27.041 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.045 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=381] [neededSchemaVersion=382] ["start time"=511.545µs] [gotSchemaVersion=382] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:27.047 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=213] [version=382] [2024/05/06 09:24:27.051 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=382] ["take time"=6.269105ms] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.052 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.060 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.061 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=213] [conn=3] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.061 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=213] [physicalTableID=111] [startKey=74800000000000006f5f69ffff00000000001a] [endKey=74800000000000006f5f69ffff00000000001aff] [2024/05/06 09:24:27.064 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674565238784, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.065 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=213] [2024/05/06 09:24:27.066 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674565238784, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.073 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674565238784, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.074 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=213] [conn=3] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674565238784, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.081 +00:00] [INFO] [index.go:1928] ["start to merge temp index"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674565238784, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:26,StartKey:74800000000000006f5f69ffff00000000001a,EndKey:74800000000000006f5f69ffff00000000001aff,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:24:27.082 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=111] ["start key"=74800000000000006f5f69ffff00000000001a] ["end key"=74800000000000006f5f69ffff00000000001aff] [2024/05/06 09:24:27.083 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="merge temporary index"] [workerCnt=1] [regionCnt=1] [startKey=74800000000000006f5f69ffff00000000001a] [endKey=74800000000000006f5f69ffff00000000001aff] [2024/05/06 09:24:27.083 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=111] ["end key"=74800000000000006f5f69ffff00000000001aff] ["current end key"=74800000000000006f5f69ffff00000000001a00] [2024/05/06 09:24:27.184 +00:00] [INFO] [backfilling.go:330] ["backfill worker finish task"] [category=ddl] [worker="backfill-worker 0, tp merge temporary index"] [task="taskID: 1, physicalTableID: 111, range: [74800000000000006f5f69ffff00000000001a, 74800000000000006f5f69ffff00000000001a00), jobID: 213"] ["added count"=0] ["scan count"=0] ["next key"=74800000000000006f5f69ffff00000000001a0000] ["take time"=229.696µs] [2024/05/06 09:24:27.184 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp merge temporary index"] [jobID=213] [2024/05/06 09:24:27.184 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:26,TypeKey:_idx_] ["total added count"=2049] ["start key"=74800000000000006f5f69ffff00000000001a] [2024/05/06 09:24:27.230 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=2049] [2024/05/06 09:24:27.230 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674565238784, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.231 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=213] [2024/05/06 09:24:27.231 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674565238784, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.247 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674565238784, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.248 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=213] [conn=3] [category=ddl] [job="ID:213, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674565238784, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.250 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:24:27.342 +00:00] [INFO] [index.go:781] ["run add index job done"] [category=ddl] [charset=utf8mb4] [collation=utf8mb4_bin] [2024/05/06 09:24:27.342 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:213, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674565238784, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.345 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=382] [neededSchemaVersion=383] ["start time"=484.602µs] [gotSchemaVersion=383] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:27.346 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=213] [version=383] [2024/05/06 09:24:27.349 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=383] ["take time"=4.884447ms] [job="ID:213, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674565238784, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.350 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:213, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674565238784, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.363 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=213] [tableID=111] [indexIDs="[9223090561878065178]"] [comment="add index: physical table ID(s)"] [2024/05/06 09:24:27.364 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=213] [jobType="add index"] [2024/05/06 09:24:27.365 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=213] [conn=3] [job="ID:213, Type:add index, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674565238784, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.370 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:213, Type:add index, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:26.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674565238784, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.371 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=213] [elementID=1] [startKey=74800000000000006f5f69ffff00000000001a] [endKey=74800000000000006f5f69ffff00000000001b] [2024/05/06 09:24:27.373 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=213] [2024/05/06 09:24:27.373 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:27.373 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=383] [cur_db=test] [sql="alter table t drop column c3"] [user=] [2024/05/06 09:24:27.375 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:214, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:27.375 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:27.375 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:214, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:27.375 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop column c3"] [2024/05/06 09:24:27.389 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:214, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:27.375 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.389 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=214] [conn=3] [category=ddl] [job="ID:214, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:27.375 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.390 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:214, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:27.375 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.393 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=383] [neededSchemaVersion=384] ["start time"=488.165µs] [gotSchemaVersion=384] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:27.395 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=214] [version=384] [2024/05/06 09:24:27.396 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=384] ["take time"=4.178583ms] [job="ID:214, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:27.375 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.397 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:214, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:27.375 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.405 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:214, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:27.375 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.408 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=214] [conn=3] [category=ddl] [job="ID:214, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:27.375 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.409 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:214, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:27.375 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.411 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=384] [neededSchemaVersion=385] ["start time"=448.089µs] [gotSchemaVersion=385] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:27.413 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=214] [version=385] [2024/05/06 09:24:27.420 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=385] ["take time"=9.648863ms] [job="ID:214, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:27.375 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.455 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:214, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:27.375 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.462 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:214, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:27.375 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.463 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=214] [conn=3] [category=ddl] [job="ID:214, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:27.375 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.463 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:214, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:27.375 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.466 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=385] [neededSchemaVersion=386] ["start time"=452.355µs] [gotSchemaVersion=386] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:27.467 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=214] [version=386] [2024/05/06 09:24:27.469 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=386] ["take time"=4.026556ms] [job="ID:214, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:27.375 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.470 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:214, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:27.375 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.477 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:214, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:27.375 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.477 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=214] [conn=3] [category=ddl] [job="ID:214, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:27.375 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.478 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:214, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:27.375 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.481 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=386] [neededSchemaVersion=387] ["start time"=1.356669ms] [gotSchemaVersion=387] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:27.485 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=214] [version=387] [2024/05/06 09:24:27.486 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=387] ["take time"=5.772786ms] [job="ID:214, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:27.375 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.486 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:214, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:27.375 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.499 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=214] [tableID=111] [indexIDs="[26]"] [comment="drop column: table ID"] [2024/05/06 09:24:27.500 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=214] [jobType="drop column"] [2024/05/06 09:24:27.501 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=214] [conn=3] [job="ID:214, Type:drop column, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:27.375 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.503 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:214, Type:drop column, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:27.375 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.512 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=214] [2024/05/06 09:24:27.512 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:27.513 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=387] [cur_db=test] [sql="alter table t add column c3 bigint"] [user=] [2024/05/06 09:24:27.519 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:215, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:27.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:27.519 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:215, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:27.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c3 bigint"] [2024/05/06 09:24:27.530 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=214] [elementID=1] [startKey=74800000000000006f5f69800000000000001a] [endKey=74800000000000006f5f69800000000000001b] [2024/05/06 09:24:27.536 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:215, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:27.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.536 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=215] [conn=3] [category=ddl] [job="ID:215, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:27.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.536 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:215, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:27.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [columnInfo="{\"id\":21,\"name\":{\"O\":\"c3\",\"L\":\"c3\"},\"offset\":4,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{},\"state\":0,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2}"] [2024/05/06 09:24:27.536 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:215, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:27.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.538 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=387] [neededSchemaVersion=388] ["start time"=437.66µs] [gotSchemaVersion=388] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:27.540 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=215] [version=388] [2024/05/06 09:24:27.542 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=388] ["take time"=4.164677ms] [job="ID:215, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:27.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.543 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:215, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:27.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.549 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:215, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:27.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.549 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=215] [conn=3] [category=ddl] [job="ID:215, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:27.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.550 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:215, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:27.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.552 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=388] [neededSchemaVersion=389] ["start time"=508.362µs] [gotSchemaVersion=389] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:27.554 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=215] [version=389] [2024/05/06 09:24:27.556 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=389] ["take time"=4.400416ms] [job="ID:215, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:27.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.558 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:215, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:27.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.567 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:215, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:27.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.568 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=215] [conn=3] [category=ddl] [job="ID:215, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:27.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.569 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:215, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:27.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.572 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=389] [neededSchemaVersion=390] ["start time"=448.914µs] [gotSchemaVersion=390] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:27.576 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=215] [version=390] [2024/05/06 09:24:27.578 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=390] ["take time"=6.012603ms] [job="ID:215, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:27.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.580 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:215, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:27.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.600 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:215, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:27.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.600 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=215] [conn=3] [category=ddl] [job="ID:215, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:27.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.601 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:215, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:27.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.604 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=390] [neededSchemaVersion=391] ["start time"=441.125µs] [gotSchemaVersion=391] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:27.606 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=215] [version=391] [2024/05/06 09:24:27.608 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=391] ["take time"=4.49751ms] [job="ID:215, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:27.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.609 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:215, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:27.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.618 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=215] [conn=3] [job="ID:215, Type:add column, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:27.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.622 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=215] [2024/05/06 09:24:27.622 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:27.622 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=391] [cur_db=test] [sql="alter table t add index idx_c3(c3)"] [user=] [2024/05/06 09:24:27.626 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:216, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:27.626 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:216, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add index idx_c3(c3)"] [2024/05/06 09:24:27.639 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:215, Type:add column, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:27.514 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:27.656 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:216, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.656 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=216] [conn=3] [category=ddl] [job="ID:216, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.656 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":27,\"idx_name\":{\"O\":\"idx_c3\",\"L\":\"idx_c3\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c3\",\"L\":\"c3\"},\"offset\":4,\"length\":-1}],\"state\":0,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":false,\"is_primary\":false,\"is_invisible\":false,\"is_global\":false,\"mv_index\":false}"] [2024/05/06 09:24:27.656 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:24:27.657 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.659 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=391] [neededSchemaVersion=392] ["start time"=438.981µs] [gotSchemaVersion=392] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:27.660 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=216] [version=392] [2024/05/06 09:24:27.672 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=392] ["take time"=13.482468ms] [job="ID:216, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.673 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.682 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.682 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=216] [conn=3] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.683 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.685 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=392] [neededSchemaVersion=393] ["start time"=448.718µs] [gotSchemaVersion=393] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:27.686 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=216] [version=393] [2024/05/06 09:24:27.687 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=393] ["take time"=2.101558ms] [job="ID:216, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.687 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.699 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.699 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=216] [conn=3] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.700 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.702 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=393] [neededSchemaVersion=394] ["start time"=461.349µs] [gotSchemaVersion=394] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:27.703 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=216] [version=394] [2024/05/06 09:24:27.703 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=394] ["take time"=2.142211ms] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.704 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.711 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.711 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=216] [conn=3] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.712 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=216] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:27.713 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=216] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:27.715 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674735894528, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.716 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=216] [2024/05/06 09:24:27.717 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674735894528, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.723 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674735894528, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.723 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=216] [conn=3] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674735894528, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.724 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=216] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:27.732 +00:00] [INFO] [index.go:1931] ["start to add table index"] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674735894528, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:27,StartKey:74800000000000006f5f728000000000000001,EndKey:74800000000000006f5f72800000000000080100,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:24:27.737 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=111] ["start key"=74800000000000006f5f728000000000000001] ["end key"=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:27.737 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="add index"] [workerCnt=1] [regionCnt=1] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:27.737 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=111] ["end key"=74800000000000006f5f72800000000000080100] ["current end key"=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:27.742 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:27.743 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674735894528, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.743 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=216] [2024/05/06 09:24:27.744 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674735894528, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.752 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674735894528, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.753 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=216] [conn=3] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674735894528, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.753 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=216] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:27.768 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:27.768 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674735894528, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.769 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=216] [2024/05/06 09:24:27.769 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674735894528, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.781 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674735894528, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.791 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=216] [conn=3] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674735894528, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.792 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=216] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:27.808 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:27.808 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674735894528, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.809 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=216] [2024/05/06 09:24:27.810 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674735894528, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.845 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674735894528, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.846 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=216] [conn=3] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674735894528, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.847 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=216] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:27.953 +00:00] [INFO] [backfilling.go:330] ["backfill worker finish task"] [category=ddl] [worker="backfill-worker 0, tp add index"] [task="taskID: 1, physicalTableID: 111, range: [74800000000000006f5f728000000000000001, 74800000000000006f5f72800000000000080100), jobID: 216"] ["added count"=2049] ["scan count"=2049] ["next key"=74800000000000006f5f72800000000000080100] ["take time"=114.837672ms] [2024/05/06 09:24:27.953 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=216] [2024/05/06 09:24:27.953 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:27,TypeKey:_idx_] ["total added count"=2049] ["start key"=74800000000000006f5f728000000000000001] [2024/05/06 09:24:27.964 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=416] [2024/05/06 09:24:27.964 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:416, ArgLen:6, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674735894528, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.965 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=216] [2024/05/06 09:24:27.966 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:416, ArgLen:6, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674735894528, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.974 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:416, ArgLen:0, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674735894528, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.974 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=216] [conn=3] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:416, ArgLen:0, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674735894528, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:27.974 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=216] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:27.976 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:24:28.083 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674735894528, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.086 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=394] [neededSchemaVersion=395] ["start time"=455.552µs] [gotSchemaVersion=395] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:28.087 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=216] [version=395] [2024/05/06 09:24:28.087 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=395] ["take time"=2.18384ms] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674735894528, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.090 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674735894528, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.100 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674735894528, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.100 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=216] [conn=3] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674735894528, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.100 +00:00] [INFO] [index.go:880] ["index backfill state ready to merge"] [category=ddl] ["job ID"=216] [table=t] [index=idx_c3] [2024/05/06 09:24:28.101 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.111 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=395] [neededSchemaVersion=396] ["start time"=524.612µs] [gotSchemaVersion=396] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:28.112 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=216] [version=396] [2024/05/06 09:24:28.126 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=396] ["take time"=16.214047ms] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.135 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.157 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.157 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=216] [conn=3] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.157 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=216] [physicalTableID=111] [startKey=74800000000000006f5f69ffff00000000001b] [endKey=74800000000000006f5f69ffff00000000001bff] [2024/05/06 09:24:28.160 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674852548609, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.161 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=216] [2024/05/06 09:24:28.162 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674852548609, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.170 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674852548609, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.170 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=216] [conn=3] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674852548609, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.172 +00:00] [INFO] [index.go:1928] ["start to merge temp index"] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674852548609, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:27,StartKey:74800000000000006f5f69ffff00000000001b,EndKey:74800000000000006f5f69ffff00000000001bff,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:24:28.173 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=111] ["start key"=74800000000000006f5f69ffff00000000001b] ["end key"=74800000000000006f5f69ffff00000000001bff] [2024/05/06 09:24:28.173 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="merge temporary index"] [workerCnt=1] [regionCnt=1] [startKey=74800000000000006f5f69ffff00000000001b] [endKey=74800000000000006f5f69ffff00000000001bff] [2024/05/06 09:24:28.174 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=111] ["end key"=74800000000000006f5f69ffff00000000001bff] ["current end key"=74800000000000006f5f69ffff00000000001b00] [2024/05/06 09:24:28.266 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=2049] [2024/05/06 09:24:28.266 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674852548609, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.267 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=216] [2024/05/06 09:24:28.268 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674852548609, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.278 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674852548609, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.278 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=216] [conn=3] [category=ddl] [job="ID:216, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674852548609, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.280 +00:00] [INFO] [backfilling.go:330] ["backfill worker finish task"] [category=ddl] [worker="backfill-worker 0, tp merge temporary index"] [task="taskID: 1, physicalTableID: 111, range: [74800000000000006f5f69ffff00000000001b, 74800000000000006f5f69ffff00000000001b00), jobID: 216"] ["added count"=0] ["scan count"=0] ["next key"=74800000000000006f5f69ffff00000000001b0000] ["take time"=175.991µs] [2024/05/06 09:24:28.280 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp merge temporary index"] [jobID=216] [2024/05/06 09:24:28.280 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:27,TypeKey:_idx_] ["total added count"=2049] ["start key"=74800000000000006f5f69ffff00000000001b] [2024/05/06 09:24:28.280 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:24:28.338 +00:00] [INFO] [index.go:781] ["run add index job done"] [category=ddl] [charset=utf8mb4] [collation=utf8mb4_bin] [2024/05/06 09:24:28.338 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:216, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674852548609, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.341 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=396] [neededSchemaVersion=397] ["start time"=481.715µs] [gotSchemaVersion=397] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:28.344 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=216] [version=397] [2024/05/06 09:24:28.345 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=397] ["take time"=4.604859ms] [job="ID:216, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674852548609, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.346 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:216, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674852548609, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.360 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=216] [tableID=111] [indexIDs="[9223090561878065179]"] [comment="add index: physical table ID(s)"] [2024/05/06 09:24:28.361 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=216] [jobType="add index"] [2024/05/06 09:24:28.362 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=216] [conn=3] [job="ID:216, Type:add index, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674852548609, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.366 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:216, Type:add index, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:27.624 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674852548609, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.366 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=216] [elementID=1] [startKey=74800000000000006f5f69ffff00000000001b] [endKey=74800000000000006f5f69ffff00000000001c] [2024/05/06 09:24:28.370 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=216] [2024/05/06 09:24:28.370 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:28.370 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=397] [cur_db=test] [sql="alter table t drop column c3"] [user=] [2024/05/06 09:24:28.373 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:217, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:28.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:28.373 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:217, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:28.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop column c3"] [2024/05/06 09:24:28.380 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:217, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:28.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.380 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=217] [conn=3] [category=ddl] [job="ID:217, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:28.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.382 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:217, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:28.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.386 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=397] [neededSchemaVersion=398] ["start time"=1.366304ms] [gotSchemaVersion=398] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:28.387 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=217] [version=398] [2024/05/06 09:24:28.395 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=398] ["take time"=10.656164ms] [job="ID:217, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:28.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.396 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:217, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:28.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.401 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:217, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:28.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.401 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=217] [conn=3] [category=ddl] [job="ID:217, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:28.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.403 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:217, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:28.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.406 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=398] [neededSchemaVersion=399] ["start time"=445.28µs] [gotSchemaVersion=399] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:28.407 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=217] [version=399] [2024/05/06 09:24:28.407 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=399] ["take time"=2.063701ms] [job="ID:217, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:28.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.408 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:217, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:28.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.412 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:217, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:28.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.412 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=217] [conn=3] [category=ddl] [job="ID:217, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:28.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.413 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:217, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:28.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.416 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=399] [neededSchemaVersion=400] ["start time"=523.103µs] [gotSchemaVersion=400] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:28.417 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=217] [version=400] [2024/05/06 09:24:28.420 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=400] ["take time"=5.230062ms] [job="ID:217, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:28.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.421 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:217, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:28.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.431 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:217, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:28.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.431 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=217] [conn=3] [category=ddl] [job="ID:217, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:28.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.432 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:217, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:28.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.434 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=400] [neededSchemaVersion=401] ["start time"=389.207µs] [gotSchemaVersion=401] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:28.436 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=217] [version=401] [2024/05/06 09:24:28.439 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=401] ["take time"=5.020526ms] [job="ID:217, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:28.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.440 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:217, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:28.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.446 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=217] [tableID=111] [indexIDs="[27]"] [comment="drop column: table ID"] [2024/05/06 09:24:28.448 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=217] [jobType="drop column"] [2024/05/06 09:24:28.449 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=217] [conn=3] [job="ID:217, Type:drop column, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:28.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.455 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:217, Type:drop column, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:28.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.457 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=217] [2024/05/06 09:24:28.457 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:28.457 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=401] [cur_db=test] [sql="alter table t add column c3 bigint"] [user=] [2024/05/06 09:24:28.461 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:218, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:28.459 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:28.461 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:218, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:28.459 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c3 bigint"] [2024/05/06 09:24:28.472 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=217] [elementID=1] [startKey=74800000000000006f5f69800000000000001b] [endKey=74800000000000006f5f69800000000000001c] [2024/05/06 09:24:28.479 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:218, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:28.459 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.479 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=218] [conn=3] [category=ddl] [job="ID:218, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:28.459 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.480 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:218, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:28.459 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [columnInfo="{\"id\":22,\"name\":{\"O\":\"c3\",\"L\":\"c3\"},\"offset\":4,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{},\"state\":0,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2}"] [2024/05/06 09:24:28.480 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:218, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:28.459 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.483 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=401] [neededSchemaVersion=402] ["start time"=430.809µs] [gotSchemaVersion=402] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:28.484 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=218] [version=402] [2024/05/06 09:24:28.488 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=402] ["take time"=6.315516ms] [job="ID:218, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:28.459 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.489 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:218, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:28.459 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.504 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:218, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:28.459 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.504 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=218] [conn=3] [category=ddl] [job="ID:218, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:28.459 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.504 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:218, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:28.459 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.510 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=402] [neededSchemaVersion=403] ["start time"=509.91µs] [gotSchemaVersion=403] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:28.517 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=218] [version=403] [2024/05/06 09:24:28.518 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=403] ["take time"=12.079034ms] [job="ID:218, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:28.459 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.521 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:218, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:28.459 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.529 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:218, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:28.459 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.530 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=218] [conn=3] [category=ddl] [job="ID:218, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:28.459 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.533 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:218, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:28.459 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.537 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=403] [neededSchemaVersion=404] ["start time"=470.22µs] [gotSchemaVersion=404] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:28.543 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=218] [version=404] [2024/05/06 09:24:28.550 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=404] ["take time"=13.07143ms] [job="ID:218, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:28.459 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.554 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:218, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:28.459 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.564 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:218, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:28.459 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.564 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=218] [conn=3] [category=ddl] [job="ID:218, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:28.459 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.570 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:218, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:28.459 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.573 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=404] [neededSchemaVersion=405] ["start time"=500.914µs] [gotSchemaVersion=405] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:28.575 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=218] [version=405] [2024/05/06 09:24:28.576 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=405] ["take time"=4.091686ms] [job="ID:218, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:28.459 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.579 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:218, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:28.459 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.587 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=218] [conn=3] [job="ID:218, Type:add column, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:28.459 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.591 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:218, Type:add column, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:28.459 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:28.591 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=218] [2024/05/06 09:24:28.594 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:28.594 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=405] [cur_db=test] [sql="alter table t add index idx_c3(c3)"] [user=] [2024/05/06 09:24:28.598 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:219, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:28.598 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:219, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add index idx_c3(c3)"] [2024/05/06 09:24:28.639 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:219, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.639 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=219] [conn=3] [category=ddl] [job="ID:219, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.640 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":28,\"idx_name\":{\"O\":\"idx_c3\",\"L\":\"idx_c3\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c3\",\"L\":\"c3\"},\"offset\":4,\"length\":-1}],\"state\":0,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":false,\"is_primary\":false,\"is_invisible\":false,\"is_global\":false,\"mv_index\":false}"] [2024/05/06 09:24:28.640 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:24:28.641 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.644 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=405] [neededSchemaVersion=406] ["start time"=595.732µs] [gotSchemaVersion=406] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:28.646 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=219] [version=406] [2024/05/06 09:24:28.649 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=406] ["take time"=5.792806ms] [job="ID:219, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.650 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.661 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.661 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=219] [conn=3] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.662 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.665 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=406] [neededSchemaVersion=407] ["start time"=520.006µs] [gotSchemaVersion=407] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:28.666 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=219] [version=407] [2024/05/06 09:24:28.668 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=407] ["take time"=4.362937ms] [job="ID:219, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.669 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.685 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.685 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=219] [conn=3] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.686 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.688 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=407] [neededSchemaVersion=408] ["start time"=471.638µs] [gotSchemaVersion=408] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:28.690 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=219] [version=408] [2024/05/06 09:24:28.692 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=408] ["take time"=4.170541ms] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.693 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.699 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.699 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=219] [conn=3] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.699 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=219] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:28.700 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=219] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:28.703 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674994892800, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.704 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=219] [2024/05/06 09:24:28.705 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674994892800, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.720 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674994892800, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.726 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=219] [conn=3] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674994892800, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.727 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=219] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:28.731 +00:00] [INFO] [index.go:1931] ["start to add table index"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674994892800, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:28,StartKey:74800000000000006f5f728000000000000001,EndKey:74800000000000006f5f72800000000000080100,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:24:28.738 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=111] ["start key"=74800000000000006f5f728000000000000001] ["end key"=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:28.738 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="add index"] [workerCnt=1] [regionCnt=1] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:28.741 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:28.741 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674994892800, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.742 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=219] [2024/05/06 09:24:28.742 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674994892800, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.757 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674994892800, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.757 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=219] [conn=3] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674994892800, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.757 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=219] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:28.759 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=111] ["end key"=74800000000000006f5f72800000000000080100] ["current end key"=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:28.776 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:28.776 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674994892800, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.777 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=219] [2024/05/06 09:24:28.777 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674994892800, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.782 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674994892800, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.782 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=219] [conn=3] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674994892800, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.782 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=219] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:28.795 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:28.796 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674994892800, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.796 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=219] [2024/05/06 09:24:28.797 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674994892800, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.809 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674994892800, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.809 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=219] [conn=3] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674994892800, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.811 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=219] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:28.836 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:28.836 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674994892800, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.836 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=219] [2024/05/06 09:24:28.837 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674994892800, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.852 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674994892800, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.852 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=219] [conn=3] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674994892800, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:28.854 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=219] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:28.962 +00:00] [INFO] [backfilling.go:330] ["backfill worker finish task"] [category=ddl] [worker="backfill-worker 0, tp add index"] [task="taskID: 1, physicalTableID: 111, range: [74800000000000006f5f728000000000000001, 74800000000000006f5f72800000000000080100), jobID: 219"] ["added count"=2049] ["scan count"=2049] ["next key"=74800000000000006f5f72800000000000080100] ["take time"=102.050531ms] [2024/05/06 09:24:28.962 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=219] [2024/05/06 09:24:28.962 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:28,TypeKey:_idx_] ["total added count"=2049] ["start key"=74800000000000006f5f728000000000000001] [2024/05/06 09:24:29.041 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=480] [2024/05/06 09:24:29.041 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:480, ArgLen:6, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674994892800, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.044 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=219] [2024/05/06 09:24:29.046 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:480, ArgLen:6, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674994892800, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.054 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:480, ArgLen:0, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674994892800, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.055 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=219] [conn=3] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:480, ArgLen:0, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674994892800, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.055 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=219] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:29.057 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:24:29.168 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674994892800, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.170 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=408] [neededSchemaVersion=409] ["start time"=453.544µs] [gotSchemaVersion=409] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:29.171 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=219] [version=409] [2024/05/06 09:24:29.176 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=409] ["take time"=6.842232ms] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674994892800, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.177 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674994892800, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.184 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674994892800, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.184 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=219] [conn=3] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573674994892800, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.184 +00:00] [INFO] [index.go:880] ["index backfill state ready to merge"] [category=ddl] ["job ID"=219] [table=t] [index=idx_c3] [2024/05/06 09:24:29.185 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.187 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=409] [neededSchemaVersion=410] ["start time"=455.434µs] [gotSchemaVersion=410] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:29.189 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=219] [version=410] [2024/05/06 09:24:29.189 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=410] ["take time"=2.440499ms] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.190 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.212 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.213 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=219] [conn=3] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.213 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=219] [physicalTableID=111] [startKey=74800000000000006f5f69ffff00000000001c] [endKey=74800000000000006f5f69ffff00000000001cff] [2024/05/06 09:24:29.216 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675129372672, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.217 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=219] [2024/05/06 09:24:29.217 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675129372672, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.241 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675129372672, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.241 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=219] [conn=3] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675129372672, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.244 +00:00] [INFO] [index.go:1928] ["start to merge temp index"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675129372672, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:28,StartKey:74800000000000006f5f69ffff00000000001c,EndKey:74800000000000006f5f69ffff00000000001cff,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:24:29.245 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=111] ["start key"=74800000000000006f5f69ffff00000000001c] ["end key"=74800000000000006f5f69ffff00000000001cff] [2024/05/06 09:24:29.245 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="merge temporary index"] [workerCnt=1] [regionCnt=1] [startKey=74800000000000006f5f69ffff00000000001c] [endKey=74800000000000006f5f69ffff00000000001cff] [2024/05/06 09:24:29.246 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=111] ["end key"=74800000000000006f5f69ffff00000000001cff] ["current end key"=74800000000000006f5f69ffff00000000001c00] [2024/05/06 09:24:29.346 +00:00] [INFO] [backfilling.go:330] ["backfill worker finish task"] [category=ddl] [worker="backfill-worker 0, tp merge temporary index"] [task="taskID: 1, physicalTableID: 111, range: [74800000000000006f5f69ffff00000000001c, 74800000000000006f5f69ffff00000000001c00), jobID: 219"] ["added count"=0] ["scan count"=0] ["next key"=74800000000000006f5f69ffff00000000001c0000] ["take time"=189.323µs] [2024/05/06 09:24:29.346 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp merge temporary index"] [jobID=219] [2024/05/06 09:24:29.346 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:28,TypeKey:_idx_] ["total added count"=2049] ["start key"=74800000000000006f5f69ffff00000000001c] [2024/05/06 09:24:29.358 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=2049] [2024/05/06 09:24:29.358 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675129372672, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.359 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=219] [2024/05/06 09:24:29.364 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675129372672, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.389 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675129372672, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.389 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=219] [conn=3] [category=ddl] [job="ID:219, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675129372672, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.391 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:24:29.496 +00:00] [INFO] [index.go:781] ["run add index job done"] [category=ddl] [charset=utf8mb4] [collation=utf8mb4_bin] [2024/05/06 09:24:29.496 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:219, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675129372672, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.498 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=410] [neededSchemaVersion=411] ["start time"=446.585µs] [gotSchemaVersion=411] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:29.500 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=219] [version=411] [2024/05/06 09:24:29.500 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=411] ["take time"=2.123515ms] [job="ID:219, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675129372672, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.501 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:219, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675129372672, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.509 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=219] [tableID=111] [indexIDs="[9223090561878065180]"] [comment="add index: physical table ID(s)"] [2024/05/06 09:24:29.510 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=219] [jobType="add index"] [2024/05/06 09:24:29.510 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=219] [conn=3] [job="ID:219, Type:add index, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675129372672, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.515 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:219, Type:add index, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:28.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675129372672, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.519 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=219] [elementID=1] [startKey=74800000000000006f5f69ffff00000000001c] [endKey=74800000000000006f5f69ffff00000000001d] [2024/05/06 09:24:29.520 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=219] [2024/05/06 09:24:29.520 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:29.520 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=411] [cur_db=test] [sql="alter table t drop column c3"] [user=] [2024/05/06 09:24:29.523 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:220, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:29.522 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:29.523 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:220, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:29.522 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop column c3"] [2024/05/06 09:24:29.537 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:220, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:29.522 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.537 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=220] [conn=3] [category=ddl] [job="ID:220, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:29.522 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.538 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:220, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:29.522 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.540 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=411] [neededSchemaVersion=412] ["start time"=485.175µs] [gotSchemaVersion=412] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:29.542 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=220] [version=412] [2024/05/06 09:24:29.547 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=412] ["take time"=8.062999ms] [job="ID:220, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:29.522 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.554 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:220, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:29.522 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.559 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:220, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:29.522 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.559 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=220] [conn=3] [category=ddl] [job="ID:220, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:29.522 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.561 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:220, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:29.522 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.563 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=412] [neededSchemaVersion=413] ["start time"=403.679µs] [gotSchemaVersion=413] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:29.565 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=220] [version=413] [2024/05/06 09:24:29.571 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=413] ["take time"=8.322681ms] [job="ID:220, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:29.522 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.572 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:220, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:29.522 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.579 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:220, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:29.522 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.579 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=220] [conn=3] [category=ddl] [job="ID:220, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:29.522 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.580 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:220, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:29.522 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.586 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=413] [neededSchemaVersion=414] ["start time"=440.991µs] [gotSchemaVersion=414] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:29.588 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=220] [version=414] [2024/05/06 09:24:29.589 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=414] ["take time"=6.142455ms] [job="ID:220, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:29.522 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.590 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:220, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:29.522 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.595 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:220, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:29.522 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.598 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=220] [conn=3] [category=ddl] [job="ID:220, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:29.522 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.600 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:220, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:29.522 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.602 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=414] [neededSchemaVersion=415] ["start time"=458.969µs] [gotSchemaVersion=415] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:29.604 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=220] [version=415] [2024/05/06 09:24:29.606 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=415] ["take time"=4.072319ms] [job="ID:220, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:29.522 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.607 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:220, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:29.522 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.612 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=220] [tableID=111] [indexIDs="[28]"] [comment="drop column: table ID"] [2024/05/06 09:24:29.614 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=220] [jobType="drop column"] [2024/05/06 09:24:29.614 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=220] [conn=3] [job="ID:220, Type:drop column, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:29.522 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.624 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:220, Type:drop column, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:29.522 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.627 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=220] [2024/05/06 09:24:29.627 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:29.628 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=415] [cur_db=test] [sql="alter table t add column c3 bigint"] [user=] [2024/05/06 09:24:29.630 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:221, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:29.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:29.630 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:221, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:29.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c3 bigint"] [2024/05/06 09:24:29.633 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=220] [elementID=1] [startKey=74800000000000006f5f69800000000000001c] [endKey=74800000000000006f5f69800000000000001d] [2024/05/06 09:24:29.647 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:221, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:29.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.647 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=221] [conn=3] [category=ddl] [job="ID:221, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:29.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.648 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:221, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:29.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [columnInfo="{\"id\":23,\"name\":{\"O\":\"c3\",\"L\":\"c3\"},\"offset\":4,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{},\"state\":0,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2}"] [2024/05/06 09:24:29.648 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:221, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:29.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.651 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=415] [neededSchemaVersion=416] ["start time"=448.647µs] [gotSchemaVersion=416] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:29.653 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=221] [version=416] [2024/05/06 09:24:29.655 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=416] ["take time"=4.857487ms] [job="ID:221, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:29.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.657 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:221, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:29.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.661 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:221, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:29.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.661 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=221] [conn=3] [category=ddl] [job="ID:221, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:29.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.662 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:221, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:29.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.665 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=416] [neededSchemaVersion=417] ["start time"=440.539µs] [gotSchemaVersion=417] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:29.667 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=221] [version=417] [2024/05/06 09:24:29.669 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=417] ["take time"=5.125341ms] [job="ID:221, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:29.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.670 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:221, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:29.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.675 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:221, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:29.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.676 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=221] [conn=3] [category=ddl] [job="ID:221, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:29.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.678 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:221, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:29.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.680 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=417] [neededSchemaVersion=418] ["start time"=455.739µs] [gotSchemaVersion=418] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:29.681 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=221] [version=418] [2024/05/06 09:24:29.683 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=418] ["take time"=4.056119ms] [job="ID:221, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:29.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.684 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:221, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:29.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.691 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:221, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:29.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.691 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=221] [conn=3] [category=ddl] [job="ID:221, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:29.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.692 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:221, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:29.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.695 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=418] [neededSchemaVersion=419] ["start time"=440.456µs] [gotSchemaVersion=419] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:29.697 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=221] [version=419] [2024/05/06 09:24:29.699 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=419] ["take time"=4.023771ms] [job="ID:221, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:29.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.700 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:221, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:29.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.724 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=221] [conn=3] [job="ID:221, Type:add column, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:29.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.727 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:221, Type:add column, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:29.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:29.727 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=221] [2024/05/06 09:24:29.727 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:29.728 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=419] [cur_db=test] [sql="alter table t add index idx_c3(c3)"] [user=] [2024/05/06 09:24:29.730 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:222, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:29.730 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:222, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add index idx_c3(c3)"] [2024/05/06 09:24:29.741 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:222, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.741 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=222] [conn=3] [category=ddl] [job="ID:222, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.742 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":29,\"idx_name\":{\"O\":\"idx_c3\",\"L\":\"idx_c3\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c3\",\"L\":\"c3\"},\"offset\":4,\"length\":-1}],\"state\":0,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":false,\"is_primary\":false,\"is_invisible\":false,\"is_global\":false,\"mv_index\":false}"] [2024/05/06 09:24:29.742 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:24:29.742 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.744 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=419] [neededSchemaVersion=420] ["start time"=443.863µs] [gotSchemaVersion=420] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:29.745 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=222] [version=420] [2024/05/06 09:24:29.746 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=420] ["take time"=2.731128ms] [job="ID:222, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.747 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.755 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.755 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=222] [conn=3] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.756 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.759 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=420] [neededSchemaVersion=421] ["start time"=1.145389ms] [gotSchemaVersion=421] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:29.761 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=222] [version=421] [2024/05/06 09:24:29.764 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=421] ["take time"=5.645616ms] [job="ID:222, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.765 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.775 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.775 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=222] [conn=3] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.777 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.779 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=421] [neededSchemaVersion=422] ["start time"=596.736µs] [gotSchemaVersion=422] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:29.781 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=222] [version=422] [2024/05/06 09:24:29.783 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=422] ["take time"=4.588042ms] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.784 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.793 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.796 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=222] [conn=3] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.796 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=222] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:29.797 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=222] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:29.799 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675282464768, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.801 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=222] [2024/05/06 09:24:29.802 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675282464768, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.818 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675282464768, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.818 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=222] [conn=3] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675282464768, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.818 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=222] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:29.820 +00:00] [INFO] [index.go:1931] ["start to add table index"] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675282464768, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:29,StartKey:74800000000000006f5f728000000000000001,EndKey:74800000000000006f5f72800000000000080100,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:24:29.821 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=111] ["start key"=74800000000000006f5f728000000000000001] ["end key"=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:29.821 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="add index"] [workerCnt=1] [regionCnt=1] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:29.821 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=111] ["end key"=74800000000000006f5f72800000000000080100] ["current end key"=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:29.836 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:29.836 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675282464768, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.836 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=222] [2024/05/06 09:24:29.837 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675282464768, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.861 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675282464768, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.862 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=222] [conn=3] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675282464768, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.862 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=222] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:29.883 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:29.885 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675282464768, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.885 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=222] [2024/05/06 09:24:29.886 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675282464768, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.899 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675282464768, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.900 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=222] [conn=3] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675282464768, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.900 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=222] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:29.914 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:29.914 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675282464768, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.915 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=222] [2024/05/06 09:24:29.915 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675282464768, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.922 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675282464768, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.922 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=222] [conn=3] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675282464768, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.923 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=222] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:29.995 +00:00] [INFO] [backfilling.go:330] ["backfill worker finish task"] [category=ddl] [worker="backfill-worker 0, tp add index"] [task="taskID: 1, physicalTableID: 111, range: [74800000000000006f5f728000000000000001, 74800000000000006f5f72800000000000080100), jobID: 222"] ["added count"=2049] ["scan count"=2049] ["next key"=74800000000000006f5f72800000000000080100] ["take time"=72.664457ms] [2024/05/06 09:24:29.995 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=222] [2024/05/06 09:24:29.995 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:29,TypeKey:_idx_] ["total added count"=2049] ["start key"=74800000000000006f5f728000000000000001] [2024/05/06 09:24:29.998 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=384] [2024/05/06 09:24:29.998 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:384, ArgLen:6, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675282464768, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:29.999 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=222] [2024/05/06 09:24:29.999 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:384, ArgLen:6, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675282464768, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.007 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:384, ArgLen:0, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675282464768, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.007 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=222] [conn=3] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:384, ArgLen:0, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675282464768, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.007 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=222] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:30.009 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:24:30.063 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675282464768, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.066 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=422] [neededSchemaVersion=423] ["start time"=548.112µs] [gotSchemaVersion=423] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:30.068 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=222] [version=423] [2024/05/06 09:24:30.070 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=423] ["take time"=4.510124ms] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675282464768, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.073 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675282464768, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.080 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675282464768, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.080 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=222] [conn=3] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675282464768, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.080 +00:00] [INFO] [index.go:880] ["index backfill state ready to merge"] [category=ddl] ["job ID"=222] [table=t] [index=idx_c3] [2024/05/06 09:24:30.081 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.083 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=423] [neededSchemaVersion=424] ["start time"=489.968µs] [gotSchemaVersion=424] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:30.084 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=222] [version=424] [2024/05/06 09:24:30.084 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=424] ["take time"=2.007289ms] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.085 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.093 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.093 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=222] [conn=3] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.093 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=222] [physicalTableID=111] [startKey=74800000000000006f5f69ffff00000000001d] [endKey=74800000000000006f5f69ffff00000000001dff] [2024/05/06 09:24:30.096 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675360059393, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.096 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=222] [2024/05/06 09:24:30.097 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675360059393, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.105 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675360059393, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.105 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=222] [conn=3] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675360059393, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.107 +00:00] [INFO] [index.go:1928] ["start to merge temp index"] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675360059393, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:29,StartKey:74800000000000006f5f69ffff00000000001d,EndKey:74800000000000006f5f69ffff00000000001dff,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:24:30.107 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=111] ["start key"=74800000000000006f5f69ffff00000000001d] ["end key"=74800000000000006f5f69ffff00000000001dff] [2024/05/06 09:24:30.107 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="merge temporary index"] [workerCnt=1] [regionCnt=1] [startKey=74800000000000006f5f69ffff00000000001d] [endKey=74800000000000006f5f69ffff00000000001dff] [2024/05/06 09:24:30.108 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=111] ["end key"=74800000000000006f5f69ffff00000000001dff] ["current end key"=74800000000000006f5f69ffff00000000001d00] [2024/05/06 09:24:30.189 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=2049] [2024/05/06 09:24:30.189 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675360059393, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.190 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=222] [2024/05/06 09:24:30.190 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675360059393, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.199 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675360059393, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.199 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=222] [conn=3] [category=ddl] [job="ID:222, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675360059393, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.209 +00:00] [INFO] [backfilling.go:330] ["backfill worker finish task"] [category=ddl] [worker="backfill-worker 0, tp merge temporary index"] [task="taskID: 1, physicalTableID: 111, range: [74800000000000006f5f69ffff00000000001d, 74800000000000006f5f69ffff00000000001d00), jobID: 222"] ["added count"=0] ["scan count"=0] ["next key"=74800000000000006f5f69ffff00000000001d0000] ["take time"=182.426µs] [2024/05/06 09:24:30.209 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp merge temporary index"] [jobID=222] [2024/05/06 09:24:30.209 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:29,TypeKey:_idx_] ["total added count"=2049] ["start key"=74800000000000006f5f69ffff00000000001d] [2024/05/06 09:24:30.209 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:24:30.274 +00:00] [INFO] [index.go:781] ["run add index job done"] [category=ddl] [charset=utf8mb4] [collation=utf8mb4_bin] [2024/05/06 09:24:30.274 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:222, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675360059393, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.280 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=424] [neededSchemaVersion=425] ["start time"=464.086µs] [gotSchemaVersion=425] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:30.282 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=222] [version=425] [2024/05/06 09:24:30.283 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=425] ["take time"=4.246488ms] [job="ID:222, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675360059393, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.299 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:222, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675360059393, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.341 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=222] [tableID=111] [indexIDs="[9223090561878065181]"] [comment="add index: physical table ID(s)"] [2024/05/06 09:24:30.343 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=222] [jobType="add index"] [2024/05/06 09:24:30.343 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=222] [conn=3] [job="ID:222, Type:add index, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675360059393, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.351 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:222, Type:add index, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:29.729 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675360059393, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.358 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=222] [elementID=1] [startKey=74800000000000006f5f69ffff00000000001d] [endKey=74800000000000006f5f69ffff00000000001e] [2024/05/06 09:24:30.361 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=222] [2024/05/06 09:24:30.361 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:30.362 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=425] [cur_db=test] [sql="alter table t drop column c3"] [user=] [2024/05/06 09:24:30.365 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:223, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:30.364 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:30.365 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:223, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:30.364 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop column c3"] [2024/05/06 09:24:30.384 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:223, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:30.364 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.384 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=223] [conn=3] [category=ddl] [job="ID:223, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:30.364 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.385 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:223, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:30.364 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.387 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=425] [neededSchemaVersion=426] ["start time"=488.651µs] [gotSchemaVersion=426] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:30.392 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=223] [version=426] [2024/05/06 09:24:30.392 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=426] ["take time"=5.624292ms] [job="ID:223, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:30.364 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.392 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:223, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:30.364 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.401 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:223, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:30.364 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.401 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=223] [conn=3] [category=ddl] [job="ID:223, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:30.364 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.402 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:223, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:30.364 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.405 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=426] [neededSchemaVersion=427] ["start time"=1.93996ms] [gotSchemaVersion=427] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:30.407 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=223] [version=427] [2024/05/06 09:24:30.407 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=427] ["take time"=4.036384ms] [job="ID:223, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:30.364 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.408 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:223, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:30.364 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.412 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:223, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:30.364 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.412 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=223] [conn=3] [category=ddl] [job="ID:223, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:30.364 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.413 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:223, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:30.364 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.415 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=427] [neededSchemaVersion=428] ["start time"=509.742µs] [gotSchemaVersion=428] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:30.416 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=223] [version=428] [2024/05/06 09:24:30.419 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=428] ["take time"=4.164083ms] [job="ID:223, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:30.364 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.422 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:223, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:30.364 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.428 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:223, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:30.364 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.428 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=223] [conn=3] [category=ddl] [job="ID:223, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:30.364 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.429 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:223, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:30.364 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.431 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=428] [neededSchemaVersion=429] ["start time"=417.955µs] [gotSchemaVersion=429] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:30.432 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=223] [version=429] [2024/05/06 09:24:30.435 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=429] ["take time"=4.840678ms] [job="ID:223, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:30.364 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.439 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:223, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:30.364 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.453 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=223] [tableID=111] [indexIDs="[29]"] [comment="drop column: table ID"] [2024/05/06 09:24:30.454 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=223] [jobType="drop column"] [2024/05/06 09:24:30.454 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=223] [conn=3] [job="ID:223, Type:drop column, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:30.364 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.457 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:223, Type:drop column, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:30.364 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.465 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=223] [2024/05/06 09:24:30.465 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:30.466 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=429] [cur_db=test] [sql="alter table t add column c3 bigint"] [user=] [2024/05/06 09:24:30.469 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:224, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:30.467 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:30.469 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:224, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:30.467 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c3 bigint"] [2024/05/06 09:24:30.480 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:224, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:30.467 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.480 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=224] [conn=3] [category=ddl] [job="ID:224, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:30.467 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.480 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:224, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:30.467 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [columnInfo="{\"id\":24,\"name\":{\"O\":\"c3\",\"L\":\"c3\"},\"offset\":4,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{},\"state\":0,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2}"] [2024/05/06 09:24:30.481 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:224, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:30.467 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.487 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=429] [neededSchemaVersion=430] ["start time"=414.156µs] [gotSchemaVersion=430] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:30.493 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=224] [version=430] [2024/05/06 09:24:30.494 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=430] ["take time"=8.26185ms] [job="ID:224, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:30.467 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.498 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=223] [elementID=1] [startKey=74800000000000006f5f69800000000000001d] [endKey=74800000000000006f5f69800000000000001e] [2024/05/06 09:24:30.498 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:224, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:30.467 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.502 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:224, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:30.467 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.502 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=224] [conn=3] [category=ddl] [job="ID:224, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:30.467 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.503 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:224, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:30.467 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.505 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=430] [neededSchemaVersion=431] ["start time"=428.461µs] [gotSchemaVersion=431] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:30.507 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=224] [version=431] [2024/05/06 09:24:30.510 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=431] ["take time"=4.966002ms] [job="ID:224, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:30.467 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.511 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:224, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:30.467 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.525 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:224, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:30.467 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.527 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=224] [conn=3] [category=ddl] [job="ID:224, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:30.467 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.528 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:224, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:30.467 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.530 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=431] [neededSchemaVersion=432] ["start time"=489.744µs] [gotSchemaVersion=432] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:30.532 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=224] [version=432] [2024/05/06 09:24:30.534 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=432] ["take time"=4.444123ms] [job="ID:224, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:30.467 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.535 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:224, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:30.467 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.541 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:224, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:30.467 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.545 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=224] [conn=3] [category=ddl] [job="ID:224, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:30.467 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.546 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:224, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:30.467 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.549 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=432] [neededSchemaVersion=433] ["start time"=416.506µs] [gotSchemaVersion=433] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:30.550 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=224] [version=433] [2024/05/06 09:24:30.553 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=433] ["take time"=4.348363ms] [job="ID:224, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:30.467 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.554 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:224, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:30.467 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.558 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=224] [conn=3] [job="ID:224, Type:add column, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:30.467 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.563 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:224, Type:add column, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:30.467 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:30.564 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=224] [2024/05/06 09:24:30.564 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:30.566 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=433] [cur_db=test] [sql="alter table t add index idx_c3(c3)"] [user=] [2024/05/06 09:24:30.569 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:225, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:30.569 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:225, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add index idx_c3(c3)"] [2024/05/06 09:24:30.576 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:225, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.576 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=225] [conn=3] [category=ddl] [job="ID:225, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.576 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":30,\"idx_name\":{\"O\":\"idx_c3\",\"L\":\"idx_c3\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c3\",\"L\":\"c3\"},\"offset\":4,\"length\":-1}],\"state\":0,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":false,\"is_primary\":false,\"is_invisible\":false,\"is_global\":false,\"mv_index\":false}"] [2024/05/06 09:24:30.576 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:24:30.577 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.583 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=433] [neededSchemaVersion=434] ["start time"=580.77µs] [gotSchemaVersion=434] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:30.584 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=225] [version=434] [2024/05/06 09:24:30.588 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=434] ["take time"=5.995023ms] [job="ID:225, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.589 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.597 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.597 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=225] [conn=3] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.598 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.600 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=434] [neededSchemaVersion=435] ["start time"=477.32µs] [gotSchemaVersion=435] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:30.602 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=225] [version=435] [2024/05/06 09:24:30.619 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=435] ["take time"=19.5767ms] [job="ID:225, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.620 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.632 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.632 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=225] [conn=3] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.644 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.646 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=435] [neededSchemaVersion=436] ["start time"=475.522µs] [gotSchemaVersion=436] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:30.648 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=225] [version=436] [2024/05/06 09:24:30.653 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=436] ["take time"=6.721789ms] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.654 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.664 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.665 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=225] [conn=3] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.665 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=225] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:30.671 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=225] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:30.684 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675510005760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.686 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=225] [2024/05/06 09:24:30.687 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675510005760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.694 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675510005760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.694 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=225] [conn=3] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675510005760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.694 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=225] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:30.696 +00:00] [INFO] [index.go:1931] ["start to add table index"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675510005760, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:30,StartKey:74800000000000006f5f728000000000000001,EndKey:74800000000000006f5f72800000000000080100,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:24:30.697 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=111] ["start key"=74800000000000006f5f728000000000000001] ["end key"=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:30.698 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="add index"] [workerCnt=1] [regionCnt=1] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:30.698 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=111] ["end key"=74800000000000006f5f72800000000000080100] ["current end key"=74800000000000006f5f72800000000000080100] [2024/05/06 09:24:30.707 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:30.707 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675510005760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.708 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=225] [2024/05/06 09:24:30.708 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675510005760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.716 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675510005760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.716 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=225] [conn=3] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675510005760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.716 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=225] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:30.731 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:30.731 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675510005760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.732 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=225] [2024/05/06 09:24:30.732 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675510005760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.742 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675510005760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.742 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=225] [conn=3] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675510005760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.742 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=225] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:30.755 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:30.755 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675510005760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.756 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=225] [2024/05/06 09:24:30.757 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675510005760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.765 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675510005760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.765 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=225] [conn=3] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675510005760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.765 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=225] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:30.778 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=0] [2024/05/06 09:24:30.778 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675510005760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.779 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=225] [2024/05/06 09:24:30.779 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675510005760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.790 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675510005760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.790 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=225] [conn=3] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675510005760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.790 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=225] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:30.869 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=64] [2024/05/06 09:24:30.869 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:64, ArgLen:6, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675510005760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.870 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=225] [2024/05/06 09:24:30.872 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:64, ArgLen:6, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675510005760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.887 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:64, ArgLen:0, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675510005760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.887 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=225] [conn=3] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:64, ArgLen:0, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675510005760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.888 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=225] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:30.902 +00:00] [INFO] [backfilling.go:330] ["backfill worker finish task"] [category=ddl] [worker="backfill-worker 0, tp add index"] [task="taskID: 1, physicalTableID: 111, range: [74800000000000006f5f728000000000000001, 74800000000000006f5f72800000000000080100), jobID: 225"] ["added count"=2049] ["scan count"=2049] ["next key"=74800000000000006f5f72800000000000080100] ["take time"=103.082295ms] [2024/05/06 09:24:30.902 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=225] [2024/05/06 09:24:30.902 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:30,TypeKey:_idx_] ["total added count"=2049] ["start key"=74800000000000006f5f728000000000000001] [2024/05/06 09:24:30.995 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=1984] [2024/05/06 09:24:30.995 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:1984, ArgLen:6, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675510005760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:30.996 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=225] [2024/05/06 09:24:30.997 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:1984, ArgLen:6, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675510005760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.005 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:1984, ArgLen:0, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675510005760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.005 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=225] [conn=3] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:1984, ArgLen:0, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675510005760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.006 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=225] [table=t] ["ingest mode"=false] [index=idx_c3] [2024/05/06 09:24:31.007 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:24:31.064 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675510005760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.066 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=436] [neededSchemaVersion=437] ["start time"=507.336µs] [gotSchemaVersion=437] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:31.068 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=225] [version=437] [2024/05/06 09:24:31.070 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=437] ["take time"=4.858324ms] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675510005760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.071 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675510005760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.081 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675510005760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.082 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=225] [conn=3] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675510005760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.082 +00:00] [INFO] [index.go:880] ["index backfill state ready to merge"] [category=ddl] ["job ID"=225] [table=t] [index=idx_c3] [2024/05/06 09:24:31.083 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.094 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=437] [neededSchemaVersion=438] ["start time"=9.529335ms] [gotSchemaVersion=438] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:31.103 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=225] [version=438] [2024/05/06 09:24:31.105 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=438] ["take time"=20.235759ms] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.106 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.113 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.114 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=225] [conn=3] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.114 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=225] [physicalTableID=111] [startKey=74800000000000006f5f69ffff00000000001e] [endKey=74800000000000006f5f69ffff00000000001eff] [2024/05/06 09:24:31.122 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675627708416, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.123 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=225] [2024/05/06 09:24:31.124 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675627708416, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.136 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675627708416, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.141 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=225] [conn=3] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675627708416, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.144 +00:00] [INFO] [index.go:1928] ["start to merge temp index"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675627708416, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:30,StartKey:74800000000000006f5f69ffff00000000001e,EndKey:74800000000000006f5f69ffff00000000001eff,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:24:31.145 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=111] ["start key"=74800000000000006f5f69ffff00000000001e] ["end key"=74800000000000006f5f69ffff00000000001eff] [2024/05/06 09:24:31.146 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="merge temporary index"] [workerCnt=1] [regionCnt=1] [startKey=74800000000000006f5f69ffff00000000001e] [endKey=74800000000000006f5f69ffff00000000001eff] [2024/05/06 09:24:31.146 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=111] ["end key"=74800000000000006f5f69ffff00000000001eff] ["current end key"=74800000000000006f5f69ffff00000000001e00] [2024/05/06 09:24:31.223 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=2049] [2024/05/06 09:24:31.223 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675627708416, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.223 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=225] [2024/05/06 09:24:31.224 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675627708416, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.236 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675627708416, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.236 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=225] [conn=3] [category=ddl] [job="ID:225, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675627708416, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.247 +00:00] [INFO] [backfilling.go:330] ["backfill worker finish task"] [category=ddl] [worker="backfill-worker 0, tp merge temporary index"] [task="taskID: 1, physicalTableID: 111, range: [74800000000000006f5f69ffff00000000001e, 74800000000000006f5f69ffff00000000001e00), jobID: 225"] ["added count"=0] ["scan count"=0] ["next key"=74800000000000006f5f69ffff00000000001e0000] ["take time"=154.903µs] [2024/05/06 09:24:31.247 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp merge temporary index"] [jobID=225] [2024/05/06 09:24:31.247 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:30,TypeKey:_idx_] ["total added count"=2049] ["start key"=74800000000000006f5f69ffff00000000001e] [2024/05/06 09:24:31.247 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:24:31.306 +00:00] [INFO] [index.go:781] ["run add index job done"] [category=ddl] [charset=utf8mb4] [collation=utf8mb4_bin] [2024/05/06 09:24:31.306 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:225, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675627708416, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.309 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=438] [neededSchemaVersion=439] ["start time"=500.295µs] [gotSchemaVersion=439] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:31.310 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=225] [version=439] [2024/05/06 09:24:31.313 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=439] ["take time"=4.532317ms] [job="ID:225, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675627708416, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.314 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:225, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675627708416, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.323 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=225] [tableID=111] [indexIDs="[9223090561878065182]"] [comment="add index: physical table ID(s)"] [2024/05/06 09:24:31.324 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=225] [jobType="add index"] [2024/05/06 09:24:31.324 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=225] [conn=3] [job="ID:225, Type:add index, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675627708416, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.330 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=225] [elementID=1] [startKey=74800000000000006f5f69ffff00000000001e] [endKey=74800000000000006f5f69ffff00000000001f] [2024/05/06 09:24:31.331 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:225, Type:add index, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:24:30.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573675627708416, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.338 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=225] [2024/05/06 09:24:31.338 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:31.339 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=439] [cur_db=test] [sql="alter table t drop column c3"] [user=] [2024/05/06 09:24:31.341 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:226, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:31.34 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:31.341 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:226, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:31.34 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop column c3"] [2024/05/06 09:24:31.354 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:226, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.34 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.354 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=226] [conn=3] [category=ddl] [job="ID:226, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.34 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.355 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:226, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:31.34 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.357 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=439] [neededSchemaVersion=440] ["start time"=503.337µs] [gotSchemaVersion=440] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:31.359 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=226] [version=440] [2024/05/06 09:24:31.361 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=440] ["take time"=4.78643ms] [job="ID:226, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:31.34 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.370 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:226, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:31.34 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.377 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:226, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.34 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.377 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=226] [conn=3] [category=ddl] [job="ID:226, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.34 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.378 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:226, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:31.34 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.381 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=440] [neededSchemaVersion=441] ["start time"=488.211µs] [gotSchemaVersion=441] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:31.382 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=226] [version=441] [2024/05/06 09:24:31.384 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=441] ["take time"=4.086428ms] [job="ID:226, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:31.34 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.385 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:226, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:31.34 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.392 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:226, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.34 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.393 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=226] [conn=3] [category=ddl] [job="ID:226, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.34 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.393 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:226, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:31.34 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.396 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=441] [neededSchemaVersion=442] ["start time"=483.69µs] [gotSchemaVersion=442] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:31.398 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=226] [version=442] [2024/05/06 09:24:31.399 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=442] ["take time"=4.089925ms] [job="ID:226, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:31.34 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.400 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:226, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:31.34 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.412 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:226, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.34 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.422 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=226] [conn=3] [category=ddl] [job="ID:226, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.34 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.423 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:226, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:31.34 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.425 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=442] [neededSchemaVersion=443] ["start time"=471.436µs] [gotSchemaVersion=443] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:24:31.427 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=226] [version=443] [2024/05/06 09:24:31.429 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=443] ["take time"=4.156902ms] [job="ID:226, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:31.34 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.430 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:226, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:31.34 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.436 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=226] [tableID=111] [indexIDs="[30]"] [comment="drop column: table ID"] [2024/05/06 09:24:31.437 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=226] [jobType="drop column"] [2024/05/06 09:24:31.438 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=226] [conn=3] [job="ID:226, Type:drop column, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:31.34 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.445 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=226] [2024/05/06 09:24:31.445 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:31.465 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=226] [elementID=1] [startKey=74800000000000006f5f69800000000000001e] [endKey=74800000000000006f5f69800000000000001f] [2024/05/06 09:24:31.466 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:226, Type:drop column, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:31.34 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.466 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=443] [cur_db=test] [sql="create table t_rebase (c1 bigint auto_increment primary key, c2 bigint);"] [user=] [2024/05/06 09:24:31.472 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:228, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:227, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:31.471 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:31.472 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:228, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:227, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:31.471 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create table t_rebase (c1 bigint auto_increment primary key, c2 bigint);"] [2024/05/06 09:24:31.492 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:228, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:227, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.471 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.493 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=228] [conn=3] [category=ddl] [job="ID:228, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:227, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.471 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.493 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:228, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:227, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:31.471 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.496 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=443] [neededSchemaVersion=444] ["start time"=226.703µs] [gotSchemaVersion=444] [phyTblIDs="[227]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:31.497 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=228] [version=444] [2024/05/06 09:24:31.498 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=444] ["take time"=2.448ms] [job="ID:228, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:227, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:31.471 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.499 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:228, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:227, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:31.471 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.504 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=228] [conn=3] [job="ID:228, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:227, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.471 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.507 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:228, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:227, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.471 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.508 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=228] [2024/05/06 09:24:31.508 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:31.509 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=444] [cur_db=test] [sql="alter table t_rebase auto_increment = 6000"] [user=] [2024/05/06 09:24:31.511 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:229, Type:rebase auto_increment ID, State:queueing, SchemaState:none, SchemaID:2, TableID:227, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:31.51 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:31.511 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:229, Type:rebase auto_increment ID, State:queueing, SchemaState:none, SchemaID:2, TableID:227, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:31.51 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t_rebase auto_increment = 6000"] [2024/05/06 09:24:31.526 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:229, Type:rebase auto_increment ID, State:queueing, SchemaState:none, SchemaID:2, TableID:227, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.51 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.534 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=229] [conn=3] [category=ddl] [job="ID:229, Type:rebase auto_increment ID, State:queueing, SchemaState:none, SchemaID:2, TableID:227, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.51 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.535 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:229, Type:rebase auto_increment ID, State:done, SchemaState:public, SchemaID:2, TableID:227, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:31.51 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.536 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449573675735711744, conflictStartTS=449573675737284608, conflictCommitTS=449573675737546752, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=229}, originalKey=748000fffffffffffe5f7280000000000000e5, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [IsBatchInsert=false] [IsPessimistic=false] [InRestrictedSQL=true] [tidb_retry_limit=10] [tidb_disable_txn_auto_retry=true] [2024/05/06 09:24:31.536 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449573675735711744, conflictStartTS=449573675737284608, conflictCommitTS=449573675737546752, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=229}, originalKey=748000fffffffffffe5f7280000000000000e5, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:24:31.536 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449573675735711744, conflictStartTS=449573675737284608, conflictCommitTS=449573675737546752, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=229}, originalKey=748000fffffffffffe5f7280000000000000e5, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:229, Type:rebase auto_increment ID, State:done, SchemaState:public, SchemaID:2, TableID:227, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:31.51 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.546 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:229, Type:rebase auto_increment ID, State:cancelling, SchemaState:none, SchemaID:2, TableID:227, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.51 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.546 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=229] [conn=3] [category=ddl] [job="ID:229, Type:rebase auto_increment ID, State:cancelling, SchemaState:none, SchemaID:2, TableID:227, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.51 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.546 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=229] [conn=3] [job="ID:229, Type:rebase auto_increment ID, State:cancelled, SchemaState:none, SchemaID:2, TableID:227, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.51 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:24:31.546 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:229, Type:rebase auto_increment ID, State:cancelled, SchemaState:none, SchemaID:2, TableID:227, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.51 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.547 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=229] [conn=3] [job="ID:229, Type:rebase auto_increment ID, State:cancelled, SchemaState:none, SchemaID:2, TableID:227, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.51 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.549 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:229, Type:rebase auto_increment ID, State:cancelled, SchemaState:none, SchemaID:2, TableID:227, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.51 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.550 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=229] [2024/05/06 09:24:31.550 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:31.550 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=444] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).RebaseAutoID\n\tpkg/ddl/ddl_api.go:4155\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:3984\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:289\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:31.550 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=444] [cur_db=test] [sql="alter table t_rebase auto_increment = 9000"] [user=] [2024/05/06 09:24:31.553 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:230, Type:rebase auto_increment ID, State:queueing, SchemaState:none, SchemaID:2, TableID:227, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:31.552 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:31.553 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:230, Type:rebase auto_increment ID, State:queueing, SchemaState:none, SchemaID:2, TableID:227, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:31.552 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t_rebase auto_increment = 9000"] [2024/05/06 09:24:31.567 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:230, Type:rebase auto_increment ID, State:queueing, SchemaState:none, SchemaID:2, TableID:227, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.552 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.567 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=230] [conn=3] [category=ddl] [job="ID:230, Type:rebase auto_increment ID, State:queueing, SchemaState:none, SchemaID:2, TableID:227, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.552 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.568 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:230, Type:rebase auto_increment ID, State:done, SchemaState:public, SchemaID:2, TableID:227, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:31.552 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.571 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=444] [neededSchemaVersion=446] ["start time"=256.671µs] [gotSchemaVersion=446] [phyTblIDs="[227]"] [actionTypes="[13]"] [diffTypes="[\"rebase auto_increment ID\"]"] [2024/05/06 09:24:31.572 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=230] [version=446] [2024/05/06 09:24:31.573 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=446] ["take time"=3.120861ms] [job="ID:230, Type:rebase auto_increment ID, State:done, SchemaState:public, SchemaID:2, TableID:227, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:31.552 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.575 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:230, Type:rebase auto_increment ID, State:done, SchemaState:public, SchemaID:2, TableID:227, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:31.552 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.589 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=230] [conn=3] [job="ID:230, Type:rebase auto_increment ID, State:synced, SchemaState:public, SchemaID:2, TableID:227, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.552 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.592 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:230, Type:rebase auto_increment ID, State:synced, SchemaState:public, SchemaID:2, TableID:227, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.552 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.593 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=230] [2024/05/06 09:24:31.593 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:31.594 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=446] [cur_db=test] [sql="create table t_auto (c1 int not null auto_increment unique) shard_row_id_bits = 0"] [user=] [2024/05/06 09:24:31.597 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:232, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:231, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:31.595 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:31.597 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:232, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:231, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:31.595 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create table t_auto (c1 int not null auto_increment unique) shard_row_id_bits = 0"] [2024/05/06 09:24:31.612 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:232, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:231, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.595 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.612 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=232] [conn=3] [category=ddl] [job="ID:232, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:231, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.595 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.620 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:232, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:231, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:31.595 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.622 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=446] [neededSchemaVersion=447] ["start time"=273.787µs] [gotSchemaVersion=447] [phyTblIDs="[231]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:31.624 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=232] [version=447] [2024/05/06 09:24:31.624 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=447] ["take time"=2.060345ms] [job="ID:232, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:231, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:31.595 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.626 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:232, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:231, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:31.595 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.633 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=232] [conn=3] [job="ID:232, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:231, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.595 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.636 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:232, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:231, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.595 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.637 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=232] [2024/05/06 09:24:31.637 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:31.637 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=447] [cur_db=test] [sql="alter table t_auto shard_row_id_bits = 5"] [user=] [2024/05/06 09:24:31.640 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:233, Type:shard row ID, State:queueing, SchemaState:none, SchemaID:2, TableID:231, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:31.639 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:31.640 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:233, Type:shard row ID, State:queueing, SchemaState:none, SchemaID:2, TableID:231, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:31.639 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t_auto shard_row_id_bits = 5"] [2024/05/06 09:24:31.653 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:233, Type:shard row ID, State:queueing, SchemaState:none, SchemaID:2, TableID:231, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.639 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.655 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=233] [conn=3] [category=ddl] [job="ID:233, Type:shard row ID, State:queueing, SchemaState:none, SchemaID:2, TableID:231, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.639 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.659 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:233, Type:shard row ID, State:done, SchemaState:public, SchemaID:2, TableID:231, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:31.639 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.661 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449573675769004032, conflictStartTS=449573675769004033, conflictCommitTS=449573675769528320, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=233}, originalKey=748000fffffffffffe5f7280000000000000e9, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [IsBatchInsert=false] [IsPessimistic=false] [InRestrictedSQL=true] [tidb_retry_limit=10] [tidb_disable_txn_auto_retry=true] [2024/05/06 09:24:31.661 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449573675769004032, conflictStartTS=449573675769004033, conflictCommitTS=449573675769528320, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=233}, originalKey=748000fffffffffffe5f7280000000000000e9, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:24:31.661 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449573675769004032, conflictStartTS=449573675769004033, conflictCommitTS=449573675769528320, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=233}, originalKey=748000fffffffffffe5f7280000000000000e9, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:233, Type:shard row ID, State:done, SchemaState:public, SchemaID:2, TableID:231, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:31.639 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.666 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:233, Type:shard row ID, State:cancelling, SchemaState:none, SchemaID:2, TableID:231, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.639 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.666 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=233] [conn=3] [category=ddl] [job="ID:233, Type:shard row ID, State:cancelling, SchemaState:none, SchemaID:2, TableID:231, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.639 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.666 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=233] [conn=3] [job="ID:233, Type:shard row ID, State:cancelled, SchemaState:none, SchemaID:2, TableID:231, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.639 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:24:31.666 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:233, Type:shard row ID, State:cancelled, SchemaState:none, SchemaID:2, TableID:231, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.639 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.667 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=233] [conn=3] [job="ID:233, Type:shard row ID, State:cancelled, SchemaState:none, SchemaID:2, TableID:231, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.639 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.670 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:233, Type:shard row ID, State:cancelled, SchemaState:none, SchemaID:2, TableID:231, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.639 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.670 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=233] [2024/05/06 09:24:31.670 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:31.671 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=447] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).ShardRowID\n\tpkg/ddl/ddl_api.go:4209\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:3982\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:289\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:31.671 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=447] [cur_db=test] [sql="alter table t_auto shard_row_id_bits = 8"] [user=] [2024/05/06 09:24:31.674 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:234, Type:shard row ID, State:queueing, SchemaState:none, SchemaID:2, TableID:231, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:31.673 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:31.674 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:234, Type:shard row ID, State:queueing, SchemaState:none, SchemaID:2, TableID:231, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:31.673 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t_auto shard_row_id_bits = 8"] [2024/05/06 09:24:31.688 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:234, Type:shard row ID, State:queueing, SchemaState:none, SchemaID:2, TableID:231, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.673 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.688 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=234] [conn=3] [category=ddl] [job="ID:234, Type:shard row ID, State:queueing, SchemaState:none, SchemaID:2, TableID:231, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.673 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.691 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:234, Type:shard row ID, State:done, SchemaState:public, SchemaID:2, TableID:231, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:31.673 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.693 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=447] [neededSchemaVersion=449] ["start time"=293.335µs] [gotSchemaVersion=449] [phyTblIDs="[231]"] [actionTypes="[16]"] [diffTypes="[\"shard row ID\"]"] [2024/05/06 09:24:31.697 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=234] [version=449] [2024/05/06 09:24:31.699 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=449] ["take time"=6.582511ms] [job="ID:234, Type:shard row ID, State:done, SchemaState:public, SchemaID:2, TableID:231, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:31.673 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.705 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:234, Type:shard row ID, State:done, SchemaState:public, SchemaID:2, TableID:231, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:31.673 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.722 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=234] [conn=3] [job="ID:234, Type:shard row ID, State:synced, SchemaState:public, SchemaID:2, TableID:231, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.673 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.725 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:234, Type:shard row ID, State:synced, SchemaState:public, SchemaID:2, TableID:231, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.673 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.726 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=234] [2024/05/06 09:24:31.726 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:31.727 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=449] [cur_db=test] [sql="alter table t modify column c11 mediumint"] [user=] [2024/05/06 09:24:31.731 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:235, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:24:31.728 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:31.731 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:235, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:24:31.728 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t modify column c11 mediumint"] [2024/05/06 09:24:31.744 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:235, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.728 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.747 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=235] [conn=3] [category=ddl] [job="ID:235, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.728 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.748 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:235, Type:modify column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:31.728 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.750 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449573675792859138, conflictStartTS=449573675793121280, conflictCommitTS=449573675793383425, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=235}, originalKey=748000fffffffffffe5f7280000000000000eb, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [IsBatchInsert=false] [IsPessimistic=false] [InRestrictedSQL=true] [tidb_retry_limit=10] [tidb_disable_txn_auto_retry=true] [2024/05/06 09:24:31.750 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449573675792859138, conflictStartTS=449573675793121280, conflictCommitTS=449573675793383425, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=235}, originalKey=748000fffffffffffe5f7280000000000000eb, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:24:31.750 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449573675792859138, conflictStartTS=449573675793121280, conflictCommitTS=449573675793383425, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=235}, originalKey=748000fffffffffffe5f7280000000000000eb, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:235, Type:modify column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:31.728 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.765 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:235, Type:modify column, State:cancelling, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.728 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.765 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=235] [conn=3] [category=ddl] [job="ID:235, Type:modify column, State:cancelling, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.728 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.765 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=235] [conn=3] [job="ID:235, Type:modify column, State:cancelled, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:24:31.728 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:24:31.765 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:235, Type:modify column, State:cancelled, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:24:31.728 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.766 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=235] [conn=3] [job="ID:235, Type:modify column, State:cancelled, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:24:31.728 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.769 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:235, Type:modify column, State:cancelled, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:24:31.728 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.770 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=235] [2024/05/06 09:24:31.770 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:31.770 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=449] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).ModifyColumn\n\tpkg/ddl/ddl_api.go:6315\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:3961\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:289\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:31.771 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=449] [cur_db=test] [sql="alter table t modify column c11 int"] [user=] [2024/05/06 09:24:31.774 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:236, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:24:31.772 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:31.774 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:236, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:24:31.772 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t modify column c11 int"] [2024/05/06 09:24:31.802 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:236, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.772 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.802 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=236] [conn=3] [category=ddl] [job="ID:236, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.772 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.803 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:236, Type:modify column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:31.772 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.816 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=449] [neededSchemaVersion=451] ["start time"=506.596µs] [gotSchemaVersion=451] [phyTblIDs="[111]"] [actionTypes="[12]"] [diffTypes="[\"modify column\"]"] [2024/05/06 09:24:31.824 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=236] [version=451] [2024/05/06 09:24:31.825 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=451] ["take time"=10.35936ms] [job="ID:236, Type:modify column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:31.772 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.826 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:236, Type:modify column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:31.772 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.838 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=236] [jobType="modify column"] [2024/05/06 09:24:31.840 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=236] [conn=3] [job="ID:236, Type:modify column, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:31.772 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.845 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:236, Type:modify column, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:31.772 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.848 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=236] [2024/05/06 09:24:31.848 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:31.849 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=451] [cur_db=test] [sql="alter table t add column mayNullCol bigint default 1"] [user=] [2024/05/06 09:24:31.851 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:237, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:31.85 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:31.852 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:237, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:31.85 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column mayNullCol bigint default 1"] [2024/05/06 09:24:31.866 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:237, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.85 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.872 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=237] [conn=3] [category=ddl] [job="ID:237, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.85 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.872 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:237, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:31.85 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [columnInfo="{\"id\":25,\"name\":{\"O\":\"mayNullCol\",\"L\":\"maynullcol\"},\"offset\":4,\"origin_default\":\"1\",\"origin_default_bit\":null,\"default\":\"1\",\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{},\"state\":0,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2}"] [2024/05/06 09:24:31.874 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:237, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:31.85 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.876 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=451] [neededSchemaVersion=452] ["start time"=450.004µs] [gotSchemaVersion=452] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:31.879 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=237] [version=452] [2024/05/06 09:24:31.880 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=452] ["take time"=4.466038ms] [job="ID:237, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:31.85 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.881 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:237, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:31.85 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.888 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:237, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.85 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.888 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=237] [conn=3] [category=ddl] [job="ID:237, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.85 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.889 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:237, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:31.85 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.892 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=452] [neededSchemaVersion=453] ["start time"=441.342µs] [gotSchemaVersion=453] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:31.893 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=237] [version=453] [2024/05/06 09:24:31.895 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=453] ["take time"=4.082641ms] [job="ID:237, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:31.85 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.896 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:237, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:31.85 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.903 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:237, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.85 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.903 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=237] [conn=3] [category=ddl] [job="ID:237, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.85 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.904 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:237, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:31.85 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.906 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=453] [neededSchemaVersion=454] ["start time"=463.136µs] [gotSchemaVersion=454] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:31.908 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=237] [version=454] [2024/05/06 09:24:31.910 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=454] ["take time"=4.040964ms] [job="ID:237, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:31.85 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.911 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:237, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:31.85 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.919 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:237, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.85 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.919 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=237] [conn=3] [category=ddl] [job="ID:237, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.85 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.920 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:237, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:31.85 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.922 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=454] [neededSchemaVersion=455] ["start time"=476.701µs] [gotSchemaVersion=455] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:31.924 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=237] [version=455] [2024/05/06 09:24:31.928 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=455] ["take time"=6.309345ms] [job="ID:237, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:31.85 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.929 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:237, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:31.85 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.940 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=237] [conn=3] [job="ID:237, Type:add column, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.85 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.943 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:237, Type:add column, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.85 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:31.944 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=237] [2024/05/06 09:24:31.944 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:31.945 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=455] [cur_db=test] [sql="alter table t modify column mayNullCol bigint default 1 not null"] [user=] [2024/05/06 09:24:31.955 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:238, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:24:31.954 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:31.955 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:238, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:24:31.954 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t modify column mayNullCol bigint default 1 not null"] [2024/05/06 09:24:31.975 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:238, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.954 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.977 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=238] [conn=3] [category=ddl] [job="ID:238, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.954 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.984 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:238, Type:modify column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:24:31.954 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.985 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449573675853414401, conflictStartTS=449573675853676544, conflictCommitTS=449573675853938688, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=238}, originalKey=748000fffffffffffe5f7280000000000000ee, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [IsBatchInsert=false] [IsPessimistic=false] [InRestrictedSQL=true] [tidb_retry_limit=10] [tidb_disable_txn_auto_retry=true] [2024/05/06 09:24:31.985 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449573675853414401, conflictStartTS=449573675853676544, conflictCommitTS=449573675853938688, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=238}, originalKey=748000fffffffffffe5f7280000000000000ee, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:24:31.985 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449573675853414401, conflictStartTS=449573675853676544, conflictCommitTS=449573675853938688, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=238}, originalKey=748000fffffffffffe5f7280000000000000ee, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:238, Type:modify column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:24:31.954 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.993 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:238, Type:modify column, State:cancelling, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.954 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.997 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=238] [conn=3] [category=ddl] [job="ID:238, Type:modify column, State:cancelling, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.954 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.998 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=238] [conn=3] [job="ID:238, Type:modify column, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:24:31.954 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:24:31.998 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:238, Type:modify column, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:24:31.954 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:31.999 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=238] [2024/05/06 09:24:32.000 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:238, Type:modify column, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:24:31.954 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:32.005 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:238, Type:modify column, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.954 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:32.005 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=238] [conn=3] [category=ddl] [job="ID:238, Type:modify column, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:31.954 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:32.006 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:238, Type:modify column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:31.954 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:32.011 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=455] [neededSchemaVersion=457] ["start time"=508.594µs] [gotSchemaVersion=457] [phyTblIDs="[111]"] [actionTypes="[12]"] [diffTypes="[\"modify column\"]"] [2024/05/06 09:24:32.013 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=238] [version=457] [2024/05/06 09:24:32.017 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=457] ["take time"=6.331579ms] [job="ID:238, Type:modify column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:31.954 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:32.029 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:238, Type:modify column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:31.954 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:32.039 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=238] [jobType="modify column"] [2024/05/06 09:24:32.040 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=238] [conn=3] [job="ID:238, Type:modify column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:31.954 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:32.042 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=238] [2024/05/06 09:24:32.045 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=238] [2024/05/06 09:24:32.045 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:32.045 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=455] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).ModifyColumn\n\tpkg/ddl/ddl_api.go:6315\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:3961\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCancel\n\tpkg/ddl/cancel_test.go:289\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 3,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:32.046 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:238, Type:modify column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:31.954 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:32.054 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=457] [cur_db=test] [sql="alter table t modify column mayNullCol bigint default 1 not null"] [user=] [2024/05/06 09:24:32.064 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:239, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:24:32.063 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:32.064 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:239, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:24:32.063 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t modify column mayNullCol bigint default 1 not null"] [2024/05/06 09:24:32.074 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:239, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:32.063 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:32.074 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=239] [conn=3] [category=ddl] [job="ID:239, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:32.063 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:32.083 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:239, Type:modify column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:24:32.063 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:32.085 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=457] [neededSchemaVersion=458] ["start time"=491.711µs] [gotSchemaVersion=458] [phyTblIDs="[111]"] [actionTypes="[12]"] [diffTypes="[\"modify column\"]"] [2024/05/06 09:24:32.087 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=239] [version=458] [2024/05/06 09:24:32.091 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=458] ["take time"=6.548936ms] [job="ID:239, Type:modify column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:24:32.063 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:32.092 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:239, Type:modify column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:24:32.063 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:32.099 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:239, Type:modify column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:32.063 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:32.099 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=239] [conn=3] [category=ddl] [job="ID:239, Type:modify column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:32.063 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:32.110 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:239, Type:modify column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:32.063 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:32.112 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=458] [neededSchemaVersion=459] ["start time"=499.048µs] [gotSchemaVersion=459] [phyTblIDs="[111]"] [actionTypes="[12]"] [diffTypes="[\"modify column\"]"] [2024/05/06 09:24:32.114 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=239] [version=459] [2024/05/06 09:24:32.116 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=459] ["take time"=4.483043ms] [job="ID:239, Type:modify column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:32.063 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:32.117 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:239, Type:modify column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:32.063 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:32.124 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=239] [jobType="modify column"] [2024/05/06 09:24:32.124 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=239] [conn=3] [job="ID:239, Type:modify column, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:32.063 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:32.136 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:239, Type:modify column, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:32.063 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:32.142 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=239] [2024/05/06 09:24:32.143 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] testkit.go:470: Error Trace: pkg/testkit/testkit.go:470 pkg/ddl/cancel_test.go:306 Error: An error is expected but got nil. Test: TestCancel Messages: sql: alter table t modify column mayNullCol bigint default 1 not null [2024/05/06 09:24:32.147 +00:00] [INFO] [mock.go:106] ["owner manager is canceled"] [category=ddl] [ID=133d16c9-a138-4783-b1be-b537febb6b5b] [ownerKey=/tidb/ddl/fg/owner] [2024/05/06 09:24:32.147 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:32.147 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 10, tp add index"] [category=ddl] ["take time"=4.325µs] [2024/05/06 09:24:32.147 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 7, tp add index"] [category=ddl] ["take time"=1.986µs] [2024/05/06 09:24:32.148 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 8, tp add index"] [category=ddl] ["take time"=1.874µs] [2024/05/06 09:24:32.148 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 9, tp add index"] [category=ddl] ["take time"=7.612µs] [2024/05/06 09:24:32.148 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:32.148 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 6, tp general"] [category=ddl] ["take time"=1.792µs] [2024/05/06 09:24:32.148 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:32.148 +00:00] [INFO] [delete_range.go:162] ["closing delRange"] [category=ddl] [2024/05/06 09:24:32.148 +00:00] [INFO] [session_pool.go:99] ["closing session pool"] [category=ddl] [2024/05/06 09:24:32.158 +00:00] [INFO] [ddl.go:951] ["DDL closed"] [category=ddl] [ID=133d16c9-a138-4783-b1be-b537febb6b5b] ["take time"=14.326038ms] [2024/05/06 09:24:32.158 +00:00] [INFO] [ddl.go:769] ["stop DDL"] [category=ddl] [ID=133d16c9-a138-4783-b1be-b537febb6b5b] [2024/05/06 09:24:32.158 +00:00] [INFO] [domain.go:1026] ["stopping ttlJobManager"] [2024/05/06 09:24:32.158 +00:00] [INFO] [runtime.go:190] ["TimerGroupRuntime loop exit"] [groupID=ttl] [2024/05/06 09:24:32.158 +00:00] [INFO] [task_manager.go:194] ["shrink ttl worker"] [ttl-worker=job-manager] [ttl-worker=task-manager] [originalCount=4] [newCount=0] [2024/05/06 09:24:32.158 +00:00] [INFO] [scan.go:309] ["ttlScanWorker loop exited."] [2024/05/06 09:24:32.158 +00:00] [INFO] [scan.go:309] ["ttlScanWorker loop exited."] [2024/05/06 09:24:32.158 +00:00] [INFO] [scan.go:309] ["ttlScanWorker loop exited."] [2024/05/06 09:24:32.158 +00:00] [INFO] [scan.go:309] ["ttlScanWorker loop exited."] [2024/05/06 09:24:32.158 +00:00] [INFO] [task_manager.go:194] ["shrink ttl worker"] [ttl-worker=job-manager] [ttl-worker=task-manager] [originalCount=4] [newCount=0] [2024/05/06 09:24:32.158 +00:00] [INFO] [del.go:261] ["ttlDeleteWorker loop exited."] [2024/05/06 09:24:32.159 +00:00] [INFO] [del.go:261] ["ttlDeleteWorker loop exited."] [2024/05/06 09:24:32.159 +00:00] [INFO] [del.go:261] ["ttlDeleteWorker loop exited."] [2024/05/06 09:24:32.159 +00:00] [INFO] [del.go:261] ["ttlDeleteWorker loop exited."] [2024/05/06 09:24:32.160 +00:00] [INFO] [job_manager.go:174] ["ttlJobManager loop exited."] [ttl-worker=job-manager] [2024/05/06 09:24:32.160 +00:00] [INFO] [domain.go:1037] ["ttlJobManager exited."] [2024/05/06 09:24:32.160 +00:00] [INFO] [manager.go:280] ["recoverMetaLoop done"] [server-id=:4000] [2024/05/06 09:24:32.160 +00:00] [INFO] [stats_syncload.go:202] ["SubLoadWorker exited."] [2024/05/06 09:24:32.160 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=mdlCheckLoop] [2024/05/06 09:24:32.160 +00:00] [INFO] [domain.go:907] ["loadSchemaInLoop exited."] [2024/05/06 09:24:32.161 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=loadSchemaInLoop] [2024/05/06 09:24:32.160 +00:00] [INFO] [domain.go:1542] ["stopping dist task scheduler manager because the current node is not DDL owner anymore"] [id=133d16c9-a138-4783-b1be-b537febb6b5b] [2024/05/06 09:24:32.160 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=runawayWatchSyncLoop] [2024/05/06 09:24:32.160 +00:00] [INFO] [mock.go:106] ["owner manager is canceled"] [category=ddl] [ID=133d16c9-a138-4783-b1be-b537febb6b5b] [ownerKey=/tidb/bindinfo/owner] [2024/05/06 09:24:32.161 +00:00] [INFO] [domain.go:1889] ["globalBindHandleWorkerLoop exited."] [2024/05/06 09:24:32.161 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=globalBindHandleWorkerLoop] [2024/05/06 09:24:32.160 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=runawayRecordFlushLoop] [2024/05/06 09:24:32.160 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=loadSigningCertLoop] [2024/05/06 09:24:32.160 +00:00] [INFO] [stats_syncload.go:202] ["SubLoadWorker exited."] [2024/05/06 09:24:32.160 +00:00] [INFO] [stats_syncload.go:202] ["SubLoadWorker exited."] [2024/05/06 09:24:32.160 +00:00] [INFO] [stats_syncload.go:202] ["SubLoadWorker exited."] [2024/05/06 09:24:32.160 +00:00] [INFO] [stats_syncload.go:202] ["SubLoadWorker exited."] [2024/05/06 09:24:32.160 +00:00] [INFO] [mock.go:106] ["owner manager is canceled"] [category=ddl] [ID=133d16c9-a138-4783-b1be-b537febb6b5b] [ownerKey=/tidb/stats/owner] [2024/05/06 09:24:32.161 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=quitStatsOwner] [2024/05/06 09:24:32.160 +00:00] [INFO] [domain.go:737] ["globalConfigSyncerKeeper exited."] [2024/05/06 09:24:32.161 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=globalConfigSyncerKeeper] [2024/05/06 09:24:32.160 +00:00] [INFO] [domain.go:2352] ["indexUsageWorker exited."] [2024/05/06 09:24:32.161 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=indexUsageWorker] [2024/05/06 09:24:32.160 +00:00] [INFO] [domain.go:2074] ["dumpFileGcChecker exited."] [2024/05/06 09:24:32.161 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=dumpFileGcChecker] [2024/05/06 09:24:32.160 +00:00] [INFO] [domain.go:1750] ["LoadSysVarCacheLoop exited."] [2024/05/06 09:24:32.161 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=LoadSysVarCacheLoop] [2024/05/06 09:24:32.160 +00:00] [INFO] [domain.go:1700] ["loadPrivilegeInLoop exited."] [2024/05/06 09:24:32.161 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=loadPrivilegeInLoop] [2024/05/06 09:24:32.160 +00:00] [INFO] [domain.go:761] ["topologySyncerKeeper exited."] [2024/05/06 09:24:32.161 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=topologySyncerKeeper] [2024/05/06 09:24:32.160 +00:00] [INFO] [domain.go:683] ["topNSlowQueryLoop exited."] [2024/05/06 09:24:32.161 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=topNSlowQueryLoop] [2024/05/06 09:24:32.160 +00:00] [INFO] [domain.go:711] ["infoSyncerKeeper exited."] [2024/05/06 09:24:32.161 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=infoSyncerKeeper] [2024/05/06 09:24:32.160 +00:00] [INFO] [domain.go:1361] ["closestReplicaReadCheckLoop exited."] [2024/05/06 09:24:32.161 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=closestReplicaReadCheckLoop] [2024/05/06 09:24:32.160 +00:00] [INFO] [manager.go:179] ["handle tasks loop done"] [server-id=:4000] [2024/05/06 09:24:32.161 +00:00] [INFO] [scheduler_manager.go:459] ["collect loop exits"] [server-id=:4000] [2024/05/06 09:24:32.161 +00:00] [INFO] [scheduler_manager.go:206] ["schedule task loop exits"] [server-id=:4000] [2024/05/06 09:24:32.161 +00:00] [INFO] [scheduler_manager.go:379] ["cleanup loop exits"] [server-id=:4000] [2024/05/06 09:24:32.161 +00:00] [INFO] [scheduler_manager.go:318] ["subtask history table gc loop exits"] [server-id=:4000] [2024/05/06 09:24:32.161 +00:00] [INFO] [domain.go:1544] ["dist task scheduler manager stopped"] [id=133d16c9-a138-4783-b1be-b537febb6b5b] [2024/05/06 09:24:32.161 +00:00] [INFO] [domain.go:1527] ["stopping dist task executor manager"] [2024/05/06 09:24:32.162 +00:00] [INFO] [domain.go:1529] ["dist task executor manager stopped"] [2024/05/06 09:24:32.162 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=distTaskFrameworkLoop] [2024/05/06 09:24:32.176 +00:00] [INFO] [domain.go:1074] ["domain closed"] ["take time"=33.197226ms] [2024/05/06 09:24:32.178 +00:00] [INFO] [db.go:567] ["Closing database"] [2024/05/06 09:24:32.179 +00:00] [INFO] [db.go:592] ["Memtable flushed"] [2024/05/06 09:24:32.179 +00:00] [INFO] [db.go:596] ["Compaction finished"] [2024/05/06 09:24:32.179 +00:00] [INFO] [db.go:615] ["BlobManager finished"] [2024/05/06 09:24:32.179 +00:00] [INFO] [db.go:619] ["ResourceManager finished"] [2024/05/06 09:24:32.179 +00:00] [INFO] [db.go:625] ["Waiting for closer"] --- FAIL: TestCancel (25.67s) === RUN TestWriteOnlyWriteNULL [2024/05/06 09:24:32.183 +00:00] [INFO] [store_cache.go:510] ["change store resolve state"] [store=1] [addr=store1] [from=unresolved] [to=resolved] [liveness-state=reachable] [2024/05/06 09:24:32.184 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:32.184 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:32.184 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:32.184 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:32.185 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:32.187 +00:00] [INFO] [tidb.go:80] ["new domain"] [store=2bba1bb7-2dc3-4a43-a5df-c96a1bef4c3d] ["ddl lease"=500ms] ["stats lease"=-1ns] [2024/05/06 09:24:32.194 +00:00] [WARN] [controller.go:198] ["[resource group controller] server does not save config, load config failed"] [2024/05/06 09:24:32.194 +00:00] [INFO] [controller.go:185] ["load resource controller config"] [config="{\"degraded-mode-wait-duration\":\"0s\",\"ltb-max-wait-duration\":\"30s\",\"wait-retry-interval\":\"50ms\",\"wait-retry-times\":10,\"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,\"WaitRetryInterval\":50000000,\"WaitRetryTimes\":10,\"DegradedModeWaitDuration\":0}"] [2024/05/06 09:24:32.195 +00:00] [WARN] [domain.go:245] ["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:335\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).loadInfoSchema\n\tpkg/domain/domain.go:242\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).Reload\n\tpkg/domain/domain.go:606\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).Init\n\tpkg/domain/domain.go:1260\ngithub.com/pingcap/tidb/pkg/session.(*domainMap).Get.func1\n\tpkg/session/tidb.go:92\ngithub.com/pingcap/tidb/pkg/util.RunWithRetry\n\tpkg/util/misc.go:70\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:3620\ngithub.com/pingcap/tidb/pkg/session.createSession\n\tpkg/session/session.go:3612\ngithub.com/pingcap/tidb/pkg/session.runInBootstrapSession\n\tpkg/session/session.go:3562\ngithub.com/pingcap/tidb/pkg/session.bootstrapSessionImpl\n\tpkg/session/session.go:3346\ngithub.com/pingcap/tidb/pkg/session.BootstrapSession\n\tpkg/session/session.go:3312\ngithub.com/pingcap/tidb/pkg/testkit.bootstrap\n\tpkg/testkit/mockstore.go:294\ngithub.com/pingcap/tidb/pkg/testkit.CreateMockStoreAndDomain\n\tpkg/testkit/mockstore.go:265\ngithub.com/pingcap/tidb/pkg/ddl_test.TestWriteOnlyWriteNULL\n\tpkg/ddl/db_change_test.go:426\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [version=0] [2024/05/06 09:24:32.259 +00:00] [INFO] [domain.go:315] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=0] ["start time"=64.554832ms] [2024/05/06 09:24:32.262 +00:00] [INFO] [domain.go:635] ["full load and reset schema validator"] [2024/05/06 09:24:32.263 +00:00] [INFO] [ddl.go:818] ["start DDL"] [category=ddl] [ID=8be03db3-c054-4d22-a94f-88b3d5f054c3] [runWorker=true] [2024/05/06 09:24:32.263 +00:00] [INFO] [ddl.go:777] ["start delRangeManager OK"] [category=ddl] ["is a emulator"=true] [2024/05/06 09:24:32.266 +00:00] [INFO] [delete_range.go:172] ["start delRange emulator"] [category=ddl] [2024/05/06 09:24:32.266 +00:00] [INFO] [job_table.go:334] ["get global state and global state change"] [category=ddl] [oldState=false] [currState=false] [2024/05/06 09:24:32.268 +00:00] [INFO] [job_table.go:349] ["the owner sets owner operator value"] [category=ddl] [ownerOp=none] [2024/05/06 09:24:32.266 +00:00] [WARN] [env.go:51] ["initialize environment failed"] [category=ddl-ingest] ["storage limitation"="only support TiKV storage"] ["current storage"=unistore] ["lightning is initialized"=false] [2024/05/06 09:24:32.269 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=loadSchemaInLoop] [2024/05/06 09:24:32.269 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=mdlCheckLoop] [2024/05/06 09:24:32.270 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=topNSlowQueryLoop] [2024/05/06 09:24:32.270 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=infoSyncerKeeper] [2024/05/06 09:24:32.270 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=globalConfigSyncerKeeper] [2024/05/06 09:24:32.270 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=runawayStartLoop] [2024/05/06 09:24:32.270 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=requestUnitsWriterLoop] [2024/05/06 09:24:32.270 +00:00] [INFO] [runaway.go:149] ["try to start runaway manager loop"] [2024/05/06 09:24:32.270 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=requestUnitsWriterLoop] [2024/05/06 09:24:32.270 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=topologySyncerKeeper] [2024/05/06 09:24:32.270 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=closestReplicaReadCheckLoop] [2024/05/06 09:24:32.271 +00:00] [WARN] [domain.go:1326] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 09:24:32.272 +00:00] [INFO] [controller.go:447] ["[resource group controller] create resource group cost controller"] [name=default] [2024/05/06 09:24:32.272 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=0] [cur_db=mysql] [sql="CREATE DATABASE IF NOT EXISTS test"] [user=] [2024/05/06 09:24:32.275 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:32.274 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:32.275 +00:00] [INFO] [ddl.go:1182] ["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 09:24:32.274 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE DATABASE IF NOT EXISTS test"] [2024/05/06 09:24:32.284 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:32.274 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:32.312 +00:00] [INFO] [domain.go:315] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=1] ["start time"=25.510097ms] [2024/05/06 09:24:32.313 +00:00] [INFO] [domain.go:635] ["full load and reset schema validator"] [2024/05/06 09:24:32.315 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:32.315 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=3] [version=1] [2024/05/06 09:24:32.317 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=1] ["take time"=30.417207ms] [job="ID:3, Type:create schema, State:done, SchemaState:public, SchemaID:2, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:32.274 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:32.324 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:32.274 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:32.334 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=3] [2024/05/06 09:24:32.334 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:32.335 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=1] [cur_db=mysql] [sql="CREATE DATABASE IF NOT EXISTS `mysql`"] [user=] [2024/05/06 09:24:32.336 +00:00] [INFO] [session.go:3945] ["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 09:24:32.341 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:32.338 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:32.341 +00:00] [INFO] [ddl.go:1182] ["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 09:24:32.338 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:32.358 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:32.338 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:32.368 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=1] [neededSchemaVersion=2] ["start time"=1.365017ms] [gotSchemaVersion=2] [phyTblIDs="[4]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:32.369 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:32.369 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=5] [version=2] [2024/05/06 09:24:32.371 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=2] ["take time"=4.221993ms] [job="ID:5, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:4, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:32.338 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:32.406 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:32.338 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:32.414 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=5] [2024/05/06 09:24:32.414 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:32.414 +00:00] [INFO] [session.go:3945] ["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 09:24:32.418 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:32.416 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:32.418 +00:00] [INFO] [ddl.go:1182] ["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 09:24:32.416 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:32.435 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:32.416 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:32.439 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=2] [neededSchemaVersion=3] ["start time"=303.37µs] [gotSchemaVersion=3] [phyTblIDs="[6]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:32.441 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:32.441 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=7] [version=3] [2024/05/06 09:24:32.441 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=3] ["take time"=2.087885ms] [job="ID:7, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:6, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:32.416 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:32.455 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:32.416 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:32.459 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=7] [2024/05/06 09:24:32.459 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:32.460 +00:00] [INFO] [session.go:3945] ["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 09:24:32.463 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:32.462 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:32.463 +00:00] [INFO] [ddl.go:1182] ["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 09:24:32.462 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:32.488 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:32.462 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:32.501 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=3] [neededSchemaVersion=4] ["start time"=329.021µs] [gotSchemaVersion=4] [phyTblIDs="[8]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:32.502 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:32.502 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=9] [version=4] [2024/05/06 09:24:32.502 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=4] ["take time"=2.081876ms] [job="ID:9, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:8, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:32.462 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:32.522 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:32.462 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:32.574 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=9] [2024/05/06 09:24:32.574 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:32.580 +00:00] [INFO] [session.go:3945] ["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 09:24:32.589 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:32.582 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:32.589 +00:00] [INFO] [ddl.go:1182] ["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 09:24:32.582 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:32.602 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:32.582 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:32.609 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=4] [neededSchemaVersion=5] ["start time"=791.572µs] [gotSchemaVersion=5] [phyTblIDs="[10]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:32.610 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:32.610 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=11] [version=5] [2024/05/06 09:24:32.614 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=5] ["take time"=6.582449ms] [job="ID:11, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:10, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:32.582 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:32.627 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:32.582 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:32.633 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=11] [2024/05/06 09:24:32.633 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:32.633 +00:00] [INFO] [session.go:3945] ["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 09:24:32.637 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:32.635 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:32.637 +00:00] [INFO] [ddl.go:1182] ["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 09:24:32.635 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:32.652 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:32.635 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:32.663 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=5] [neededSchemaVersion=6] ["start time"=596.091µs] [gotSchemaVersion=6] [phyTblIDs="[12]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:32.665 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:32.665 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=13] [version=6] [2024/05/06 09:24:32.668 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=6] ["take time"=5.453084ms] [job="ID:13, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:12, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:32.635 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:32.676 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:32.635 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:32.680 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=13] [2024/05/06 09:24:32.680 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:32.681 +00:00] [INFO] [session.go:3945] ["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 09:24:32.684 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:32.682 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:32.684 +00:00] [INFO] [ddl.go:1182] ["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 09:24:32.682 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:32.697 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:32.682 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:32.704 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=6] [neededSchemaVersion=7] ["start time"=424.279µs] [gotSchemaVersion=7] [phyTblIDs="[14]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:32.707 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:32.708 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=15] [version=7] [2024/05/06 09:24:32.709 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=7] ["take time"=6.331058ms] [job="ID:15, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:14, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:32.682 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:32.724 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:32.682 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:32.728 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=15] [2024/05/06 09:24:32.729 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:32.729 +00:00] [INFO] [session.go:3945] ["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 09:24:32.735 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:32.734 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:32.736 +00:00] [INFO] [ddl.go:1182] ["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 09:24:32.734 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:32.758 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:32.734 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:32.762 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=7] [neededSchemaVersion=8] ["start time"=291.03µs] [gotSchemaVersion=8] [phyTblIDs="[16]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:32.764 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:32.764 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=17] [version=8] [2024/05/06 09:24:32.766 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=8] ["take time"=4.028542ms] [job="ID:17, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:16, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:32.734 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:32.789 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:32.734 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:32.794 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=17] [2024/05/06 09:24:32.794 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:32.795 +00:00] [INFO] [session.go:3945] ["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 09:24:32.799 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:32.797 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:32.799 +00:00] [INFO] [ddl.go:1182] ["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 09:24:32.797 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:32.809 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:32.797 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:32.812 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=8] [neededSchemaVersion=9] ["start time"=279.564µs] [gotSchemaVersion=9] [phyTblIDs="[18]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:32.813 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:32.813 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=19] [version=9] [2024/05/06 09:24:32.815 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=9] ["take time"=3.785973ms] [job="ID:19, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:18, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:32.797 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:32.829 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:32.797 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:32.833 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=19] [2024/05/06 09:24:32.833 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:32.833 +00:00] [INFO] [session.go:3945] ["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 09:24:32.838 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:32.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:32.839 +00:00] [INFO] [ddl.go:1182] ["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 09:24:32.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:32.859 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:32.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:32.863 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=9] [neededSchemaVersion=10] ["start time"=341.468µs] [gotSchemaVersion=10] [phyTblIDs="[20]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:32.865 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:32.865 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=21] [version=10] [2024/05/06 09:24:32.867 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=10] ["take time"=4.802287ms] [job="ID:21, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:20, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:32.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:32.881 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:32.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:32.887 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=21] [2024/05/06 09:24:32.887 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:32.887 +00:00] [INFO] [session.go:3945] ["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 09:24:32.890 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:32.889 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:32.890 +00:00] [INFO] [ddl.go:1182] ["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 09:24:32.889 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:32.900 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:32.889 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:32.905 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=10] [neededSchemaVersion=11] ["start time"=373.541µs] [gotSchemaVersion=11] [phyTblIDs="[22]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:32.906 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:32.906 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=23] [version=11] [2024/05/06 09:24:32.906 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=11] ["take time"=2.035489ms] [job="ID:23, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:22, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:32.889 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:32.925 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:32.889 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:32.929 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=23] [2024/05/06 09:24:32.937 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:32.940 +00:00] [INFO] [session.go:3945] ["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 09:24:32.941 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(6291456) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:32.945 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:32.943 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:32.945 +00:00] [INFO] [ddl.go:1182] ["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 09:24:32.943 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:32.955 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:32.943 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:32.960 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=11] [neededSchemaVersion=12] ["start time"=515.32µs] [gotSchemaVersion=12] [phyTblIDs="[24]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:32.961 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:32.961 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=25] [version=12] [2024/05/06 09:24:32.965 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=12] ["take time"=5.852227ms] [job="ID:25, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:24, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:32.943 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:32.971 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:32.943 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:32.975 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=25] [2024/05/06 09:24:32.976 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:32.977 +00:00] [INFO] [session.go:3945] ["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 09:24:32.984 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:32.981 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:32.984 +00:00] [INFO] [ddl.go:1182] ["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 09:24:32.981 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:32.994 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:32.981 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:32.998 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=12] [neededSchemaVersion=13] ["start time"=457.88µs] [gotSchemaVersion=13] [phyTblIDs="[26]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:33.000 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:33.000 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=27] [version=13] [2024/05/06 09:24:33.001 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=13] ["take time"=3.024976ms] [job="ID:27, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:26, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:32.981 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.007 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:32.981 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.011 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=27] [2024/05/06 09:24:33.011 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:33.012 +00:00] [INFO] [session.go:3945] ["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 09:24:33.016 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:33.014 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:33.016 +00:00] [INFO] [ddl.go:1182] ["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 09:24:33.014 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:33.023 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:33.014 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.026 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=13] [neededSchemaVersion=14] ["start time"=394.171µs] [gotSchemaVersion=14] [phyTblIDs="[28]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:33.027 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:33.027 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=29] [version=14] [2024/05/06 09:24:33.028 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=14] ["take time"=2.14625ms] [job="ID:29, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:28, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:33.014 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.038 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:33.014 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.041 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=29] [2024/05/06 09:24:33.042 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:33.042 +00:00] [INFO] [session.go:3945] ["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 09:24:33.045 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:33.043 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:33.045 +00:00] [INFO] [ddl.go:1182] ["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 09:24:33.043 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:33.054 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:33.043 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.060 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=14] [neededSchemaVersion=15] ["start time"=356.99µs] [gotSchemaVersion=15] [phyTblIDs="[30]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:33.061 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:33.061 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=31] [version=15] [2024/05/06 09:24:33.061 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=15] ["take time"=2.145938ms] [job="ID:31, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:30, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:33.043 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.074 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:33.043 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.078 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=31] [2024/05/06 09:24:33.078 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:33.078 +00:00] [INFO] [session.go:3945] ["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 09:24:33.081 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:33.079 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:33.081 +00:00] [INFO] [ddl.go:1182] ["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 09:24:33.079 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:33.093 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:33.079 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.097 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=15] [neededSchemaVersion=16] ["start time"=310.867µs] [gotSchemaVersion=16] [phyTblIDs="[32]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:33.118 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:33.118 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=33] [version=16] [2024/05/06 09:24:33.119 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=16] ["take time"=22.058239ms] [job="ID:33, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:32, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:33.079 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.138 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:33.079 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.141 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=33] [2024/05/06 09:24:33.141 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:33.143 +00:00] [INFO] [session.go:3945] ["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 09:24:33.146 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:33.145 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:33.146 +00:00] [INFO] [ddl.go:1182] ["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 09:24:33.145 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:33.159 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:33.145 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.163 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=16] [neededSchemaVersion=17] ["start time"=372.849µs] [gotSchemaVersion=17] [phyTblIDs="[34]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:33.165 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:33.165 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=35] [version=17] [2024/05/06 09:24:33.166 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=17] ["take time"=4.062033ms] [job="ID:35, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:34, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:33.145 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.176 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:33.145 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.193 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=35] [2024/05/06 09:24:33.194 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:33.194 +00:00] [INFO] [session.go:3945] ["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 09:24:33.197 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:33.196 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:33.197 +00:00] [INFO] [ddl.go:1182] ["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 09:24:33.196 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:33.209 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:33.196 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.212 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=17] [neededSchemaVersion=18] ["start time"=306.462µs] [gotSchemaVersion=18] [phyTblIDs="[36]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:33.213 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:33.213 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=37] [version=18] [2024/05/06 09:24:33.215 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=18] ["take time"=2.923084ms] [job="ID:37, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:36, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:33.196 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.225 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:33.196 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.252 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=37] [2024/05/06 09:24:33.253 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:33.253 +00:00] [INFO] [session.go:3945] ["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 09:24:33.259 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:33.256 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:33.259 +00:00] [INFO] [ddl.go:1182] ["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 09:24:33.256 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:33.269 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:33.256 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.271 +00:00] [WARN] [runaway.go:166] ["failed to start runaway manager loop, please check whether the bootstrap or update is finished"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [errorVerbose="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/planner/core.Preprocess\n\tpkg/planner/core/preprocess.go:141\ngithub.com/pingcap/tidb/pkg/executor.(*Compiler).Compile\n\tpkg/executor/compiler.go:67\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2089\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteInternalStmt\n\tpkg/session/session.go:1993\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecRestrictedSQL.func1\n\tpkg/session/session.go:1958\ngithub.com/pingcap/tidb/pkg/session.(*session).withRestrictedSQLExecutor\n\tpkg/session/session.go:1944\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecRestrictedSQL\n\tpkg/session/session.go:1948\ngithub.com/pingcap/tidb/pkg/domain.(*SystemTableReader).Read\n\tpkg/domain/runaway.go:655\ngithub.com/pingcap/tidb/pkg/domain.getRunawayWatchRecord\n\tpkg/domain/runaway.go:543\ngithub.com/pingcap/tidb/pkg/domain.(*runawaySyncer).getWatchRecord\n\tpkg/domain/runaway.go:526\ngithub.com/pingcap/tidb/pkg/domain.(*runawaySyncer).getNewWatchRecords\n\tpkg/domain/runaway.go:509\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).updateNewAndDoneWatch\n\tpkg/domain/runaway.go:177\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).runawayStartLoop\n\tpkg/domain/runaway.go:156\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:99\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [2024/05/06 09:24:33.274 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=18] [neededSchemaVersion=19] ["start time"=481.547µs] [gotSchemaVersion=19] [phyTblIDs="[38]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:33.276 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:33.276 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=39] [version=19] [2024/05/06 09:24:33.278 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=19] ["take time"=4.424386ms] [job="ID:39, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:38, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:33.256 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.290 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:33.256 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.294 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=39] [2024/05/06 09:24:33.294 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:33.296 +00:00] [INFO] [session.go:3945] ["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 09:24:33.299 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:33.298 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:33.299 +00:00] [INFO] [ddl.go:1182] ["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 09:24:33.298 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:33.323 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:33.298 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.330 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=19] [neededSchemaVersion=20] ["start time"=314.808µs] [gotSchemaVersion=20] [phyTblIDs="[40]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:33.332 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:33.332 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=41] [version=20] [2024/05/06 09:24:33.335 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=20] ["take time"=5.104895ms] [job="ID:41, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:40, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:33.298 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.345 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:33.298 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.349 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=41] [2024/05/06 09:24:33.349 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:33.349 +00:00] [INFO] [session.go:3945] ["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 09:24:33.352 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:33.35 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:33.352 +00:00] [INFO] [ddl.go:1182] ["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 09:24:33.35 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:33.364 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:33.35 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.367 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=20] [neededSchemaVersion=21] ["start time"=239.172µs] [gotSchemaVersion=21] [phyTblIDs="[42]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:33.373 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:33.373 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=43] [version=21] [2024/05/06 09:24:33.375 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=21] ["take time"=8.128129ms] [job="ID:43, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:42, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:33.35 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.385 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:33.35 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.389 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=43] [2024/05/06 09:24:33.389 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:33.389 +00:00] [INFO] [session.go:3945] ["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 09:24:33.392 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:33.391 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:33.392 +00:00] [INFO] [ddl.go:1182] ["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 09:24:33.391 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE TABLE IF NOT EXISTS mysql.opt_rule_blacklist (\n\t\tname \tCHAR(100) NOT NULL\n\t);"] [2024/05/06 09:24:33.405 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:33.391 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.408 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=21] [neededSchemaVersion=22] ["start time"=205.259µs] [gotSchemaVersion=22] [phyTblIDs="[44]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:33.409 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:33.409 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=45] [version=22] [2024/05/06 09:24:33.414 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=22] ["take time"=6.812756ms] [job="ID:45, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:44, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:33.391 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.424 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:33.391 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.427 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=45] [2024/05/06 09:24:33.427 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:33.428 +00:00] [INFO] [session.go:3945] ["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 09:24:33.431 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:33.429 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:33.431 +00:00] [INFO] [ddl.go:1182] ["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 09:24:33.429 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:33.461 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:33.429 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.465 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=22] [neededSchemaVersion=23] ["start time"=396.573µs] [gotSchemaVersion=23] [phyTblIDs="[46]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:33.466 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:33.466 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=47] [version=23] [2024/05/06 09:24:33.467 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=23] ["take time"=2.063496ms] [job="ID:47, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:46, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:33.429 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.483 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:33.429 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.488 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=47] [2024/05/06 09:24:33.488 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:33.489 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=23] [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 09:24:33.492 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:33.49 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:33.492 +00:00] [INFO] [ddl.go:1182] ["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 09:24:33.49 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:33.514 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:33.49 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.518 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=23] [neededSchemaVersion=24] ["start time"=288.813µs] [gotSchemaVersion=24] [phyTblIDs="[48]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:33.519 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:33.519 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=49] [version=24] [2024/05/06 09:24:33.519 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=24] ["take time"=2.043472ms] [job="ID:49, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:48, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:33.49 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.529 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:33.49 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.533 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=49] [2024/05/06 09:24:33.533 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:33.533 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=24] [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 09:24:33.536 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:33.535 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:33.537 +00:00] [INFO] [ddl.go:1182] ["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 09:24:33.535 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:33.549 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:33.535 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.552 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=24] [neededSchemaVersion=25] ["start time"=313.043µs] [gotSchemaVersion=25] [phyTblIDs="[50]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:33.553 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:33.553 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=51] [version=25] [2024/05/06 09:24:33.554 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=25] ["take time"=2.018917ms] [job="ID:51, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:50, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:33.535 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.562 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:33.535 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.566 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=51] [2024/05/06 09:24:33.566 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:33.566 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=25] [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 09:24:33.570 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:33.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:33.570 +00:00] [INFO] [ddl.go:1182] ["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 09:24:33.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:33.581 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:33.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.585 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=25] [neededSchemaVersion=26] ["start time"=268.424µs] [gotSchemaVersion=26] [phyTblIDs="[52]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:33.590 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:33.590 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=53] [version=26] [2024/05/06 09:24:33.592 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=26] ["take time"=7.376528ms] [job="ID:53, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:52, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:33.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.601 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:33.568 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.604 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=53] [2024/05/06 09:24:33.605 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:33.605 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=26] [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 09:24:33.608 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:33.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:33.608 +00:00] [INFO] [ddl.go:1182] ["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 09:24:33.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:33.619 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:33.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.624 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=26] [neededSchemaVersion=27] ["start time"=243.408µs] [gotSchemaVersion=27] [phyTblIDs="[54]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:33.625 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:33.625 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=55] [version=27] [2024/05/06 09:24:33.626 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=27] ["take time"=2.401524ms] [job="ID:55, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:54, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:33.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.642 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:33.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.647 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=55] [2024/05/06 09:24:33.647 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:33.647 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=27] [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 09:24:33.652 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:33.649 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:33.652 +00:00] [INFO] [ddl.go:1182] ["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 09:24:33.649 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:33.672 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:33.649 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.676 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=27] [neededSchemaVersion=28] ["start time"=603.367µs] [gotSchemaVersion=28] [phyTblIDs="[56]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:33.679 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:33.680 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=57] [version=28] [2024/05/06 09:24:33.680 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=28] ["take time"=4.53325ms] [job="ID:57, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:56, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:33.649 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.690 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:33.649 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.696 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=57] [2024/05/06 09:24:33.696 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:33.698 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=28] [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 09:24:33.699 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(19372) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:33.706 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:33.701 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:33.706 +00:00] [INFO] [ddl.go:1182] ["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 09:24:33.701 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:33.711 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:33.701 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.716 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=28] [neededSchemaVersion=29] ["start time"=358.12µs] [gotSchemaVersion=29] [phyTblIDs="[58]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:33.720 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:33.720 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=59] [version=29] [2024/05/06 09:24:33.720 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=29] ["take time"=4.856161ms] [job="ID:59, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:58, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:33.701 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.728 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:33.701 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.747 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=59] [2024/05/06 09:24:33.747 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:33.748 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=29] [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 09:24:33.751 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:33.749 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:33.751 +00:00] [INFO] [ddl.go:1182] ["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 09:24:33.749 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:33.766 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:33.749 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.772 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=29] [neededSchemaVersion=30] ["start time"=432.083µs] [gotSchemaVersion=30] [phyTblIDs="[60]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:33.790 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:33.790 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=61] [version=30] [2024/05/06 09:24:33.790 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=30] ["take time"=18.06954ms] [job="ID:61, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:60, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:33.749 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.825 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:33.749 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.835 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=61] [2024/05/06 09:24:33.835 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:33.836 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=30] [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 09:24:33.840 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:33.838 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:33.840 +00:00] [INFO] [ddl.go:1182] ["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 09:24:33.838 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:33.859 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:33.838 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.869 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=30] [neededSchemaVersion=31] ["start time"=376.872µs] [gotSchemaVersion=31] [phyTblIDs="[62]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:33.871 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:33.871 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=63] [version=31] [2024/05/06 09:24:33.874 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=31] ["take time"=5.669636ms] [job="ID:63, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:62, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:33.838 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.889 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:33.838 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.895 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=63] [2024/05/06 09:24:33.895 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:33.896 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=31] [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 09:24:33.900 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:33.897 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:33.900 +00:00] [INFO] [ddl.go:1182] ["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 09:24:33.897 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:33.910 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:33.897 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.915 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=31] [neededSchemaVersion=32] ["start time"=533.413µs] [gotSchemaVersion=32] [phyTblIDs="[64]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:33.916 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:33.916 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=65] [version=32] [2024/05/06 09:24:33.922 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=32] ["take time"=7.435208ms] [job="ID:65, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:64, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:33.897 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.934 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:33.897 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.939 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=65] [2024/05/06 09:24:33.939 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:33.940 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=32] [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 09:24:33.945 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:33.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:33.945 +00:00] [INFO] [ddl.go:1182] ["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 09:24:33.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE TABLE IF NOT EXISTS mysql.advisory_locks (\n\t\tlock_name VARCHAR(64) NOT NULL PRIMARY KEY\n\t);"] [2024/05/06 09:24:33.955 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:33.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.958 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=32] [neededSchemaVersion=33] ["start time"=213.558µs] [gotSchemaVersion=33] [phyTblIDs="[66]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:33.963 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:33.963 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=67] [version=33] [2024/05/06 09:24:33.964 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=33] ["take time"=7.262482ms] [job="ID:67, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:66, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:33.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.973 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:33.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.979 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=67] [2024/05/06 09:24:33.979 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:33.983 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:69, Type:create view, State:queueing, SchemaState:none, SchemaID:1, TableID:68, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:33.981 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:33.983 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:69, Type:create view, State:queueing, SchemaState:none, SchemaID:1, TableID:68, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:33.981 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE OR REPLACE VIEW mysql.tidb_mdl_view as (\n\t\tSELECT tidb_mdl_info.job_id,\n\t\t\tJSON_UNQUOTE(JSON_EXTRACT(cast(cast(job_meta as char) as json), \"$.schema_name\")) as db_name,\n\t\t\tJSON_UNQUOTE(JSON_EXTRACT(cast(cast(job_meta as char) as json), \"$.table_name\")) as table_name,\n\t\t\tJSON_UNQUOTE(JSON_EXTRACT(cast(cast(job_meta as char) as json), \"$.query\")) as query,\n\t\t\tsession_id,\n\t\t\tcluster_tidb_trx.start_time,\n\t\t\ttidb_decode_sql_digests(all_sql_digests, 4096) AS SQL_DIGESTS\n\t\tFROM mysql.tidb_ddl_job,\n\t\t\tmysql.tidb_mdl_info,\n\t\t\tinformation_schema.cluster_tidb_trx\n\t\tWHERE tidb_ddl_job.job_id=tidb_mdl_info.job_id\n\t\t\tAND CONCAT(',', tidb_mdl_info.table_ids, ',') REGEXP CONCAT(',', REPLACE(cluster_tidb_trx.related_table_ids, ',', '|'), ',') != 0\n\t);"] [2024/05/06 09:24:33.991 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, tp general"] [category=ddl] [jobID=69] [category=ddl] [job="ID:69, Type:create view, State:queueing, SchemaState:none, SchemaID:1, TableID:68, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:33.981 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:33.995 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=33] [neededSchemaVersion=34] ["start time"=316.601µs] [gotSchemaVersion=34] [phyTblIDs="[68]"] [actionTypes="[21]"] [diffTypes="[\"create view\"]"] [2024/05/06 09:24:33.997 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:33.997 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=69] [version=34] [2024/05/06 09:24:34.002 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=34] ["take time"=7.261108ms] [job="ID:69, Type:create view, State:done, SchemaState:public, SchemaID:1, TableID:68, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:33.981 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.014 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, tp general"] [category=ddl] [jobID=69] [job="ID:69, Type:create view, State:synced, SchemaState:public, SchemaID:1, TableID:68, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:33.981 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.019 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=69] [2024/05/06 09:24:34.019 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:34.019 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=34] [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 09:24:34.022 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:71, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:70, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:34.021 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:34.023 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:71, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:70, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:34.021 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:34.029 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, tp general"] [category=ddl] [jobID=71] [category=ddl] [job="ID:71, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:70, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:34.021 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.033 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=34] [neededSchemaVersion=35] ["start time"=328.73µs] [gotSchemaVersion=35] [phyTblIDs="[70]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:34.035 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:34.035 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=71] [version=35] [2024/05/06 09:24:34.037 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=35] ["take time"=4.01607ms] [job="ID:71, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:70, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:34.021 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.053 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, tp general"] [category=ddl] [jobID=71] [job="ID:71, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:70, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:34.021 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.057 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=71] [2024/05/06 09:24:34.057 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:34.058 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=35] [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 09:24:34.061 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:34.059 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:34.061 +00:00] [INFO] [ddl.go:1182] ["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 09:24:34.059 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:34.075 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:34.059 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.081 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=35] [neededSchemaVersion=36] ["start time"=306.049µs] [gotSchemaVersion=36] [phyTblIDs="[72]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:34.083 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:34.083 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=73] [version=36] [2024/05/06 09:24:34.084 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=36] ["take time"=4.061791ms] [job="ID:73, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:72, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:34.059 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.108 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:34.059 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.112 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=73] [2024/05/06 09:24:34.112 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:34.112 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=36] [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 09:24:34.116 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:34.114 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:34.116 +00:00] [INFO] [ddl.go:1182] ["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 09:24:34.114 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:34.123 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:34.114 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.131 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=36] [neededSchemaVersion=37] ["start time"=253.46µs] [gotSchemaVersion=37] [phyTblIDs="[74]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:34.133 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:34.133 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=75] [version=37] [2024/05/06 09:24:34.133 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=37] ["take time"=2.336102ms] [job="ID:75, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:74, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:34.114 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.144 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:34.114 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.148 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=75] [2024/05/06 09:24:34.148 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:34.149 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=37] [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 09:24:34.152 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:34.15 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:34.152 +00:00] [INFO] [ddl.go:1182] ["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 09:24:34.15 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:34.165 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:34.15 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.173 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=37] [neededSchemaVersion=38] ["start time"=733.001µs] [gotSchemaVersion=38] [phyTblIDs="[76]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:34.174 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:34.175 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=77] [version=38] [2024/05/06 09:24:34.177 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=38] ["take time"=4.866555ms] [job="ID:77, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:76, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:34.15 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.184 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:34.15 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.189 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=77] [2024/05/06 09:24:34.190 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:34.190 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=38] [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 09:24:34.194 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:34.192 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:34.194 +00:00] [INFO] [ddl.go:1182] ["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 09:24:34.192 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:34.205 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:34.192 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.215 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=38] [neededSchemaVersion=39] ["start time"=500.636µs] [gotSchemaVersion=39] [phyTblIDs="[78]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:34.217 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:34.217 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=79] [version=39] [2024/05/06 09:24:34.218 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=39] ["take time"=2.725891ms] [job="ID:79, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:78, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:34.192 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.224 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:34.192 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.229 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=79] [2024/05/06 09:24:34.229 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:34.230 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=39] [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 09:24:34.237 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:34.232 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:34.237 +00:00] [INFO] [ddl.go:1182] ["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 09:24:34.232 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:34.257 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:34.232 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.262 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=39] [neededSchemaVersion=40] ["start time"=575.491µs] [gotSchemaVersion=40] [phyTblIDs="[80]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:34.264 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:34.264 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=81] [version=40] [2024/05/06 09:24:34.266 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=40] ["take time"=4.101538ms] [job="ID:81, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:80, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:34.232 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.269 +00:00] [INFO] [info.go:1142] [SetTiFlashGroupConfig] [2024/05/06 09:24:34.271 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:34.232 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.279 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=81] [2024/05/06 09:24:34.279 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:34.280 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=40] [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(261),\n\t\tstate VARCHAR(64) NOT NULL,\n\t\tpriority INT DEFAULT 1,\n\t\tcreate_time TIMESTAMP,\n\t\tstart_time TIMESTAMP,\n\t\tstate_update_time TIMESTAMP,\n\t\tend_time TIMESTAMP,\n\t\tmeta LONGBLOB,\n\t\tconcurrency INT(11),\n\t\tstep INT(11),\n\t\ttarget_scope VARCHAR(256) DEFAULT \"\",\n\t\terror BLOB,\n\t\tkey(state),\n \tUNIQUE KEY task_key(task_key)\n\t);"] [user=] [2024/05/06 09:24:34.284 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:34.281 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:34.284 +00:00] [INFO] [ddl.go:1182] ["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 09:24:34.281 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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(261),\n\t\tstate VARCHAR(64) NOT NULL,\n\t\tpriority INT DEFAULT 1,\n\t\tcreate_time TIMESTAMP,\n\t\tstart_time TIMESTAMP,\n\t\tstate_update_time TIMESTAMP,\n\t\tend_time TIMESTAMP,\n\t\tmeta LONGBLOB,\n\t\tconcurrency INT(11),\n\t\tstep INT(11),\n\t\ttarget_scope VARCHAR(256) DEFAULT \"\",\n\t\terror BLOB,\n\t\tkey(state),\n \tUNIQUE KEY task_key(task_key)\n\t);"] [2024/05/06 09:24:34.294 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:34.281 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.298 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=40] [neededSchemaVersion=41] ["start time"=493.237µs] [gotSchemaVersion=41] [phyTblIDs="[82]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:34.300 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:34.301 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=83] [version=41] [2024/05/06 09:24:34.302 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=41] ["take time"=4.311891ms] [job="ID:83, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:34.281 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.311 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:34.281 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.315 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=83] [2024/05/06 09:24:34.315 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:34.316 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=41] [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(261),\n\t\tstate VARCHAR(64) NOT NULL,\n\t\tpriority INT DEFAULT 1,\n\t\tcreate_time TIMESTAMP,\n\t\tstart_time TIMESTAMP,\n\t\tstate_update_time TIMESTAMP,\n\t\tend_time TIMESTAMP,\n\t\tmeta LONGBLOB,\n\t\tconcurrency INT(11),\n\t\tstep INT(11),\n\t\ttarget_scope VARCHAR(256) DEFAULT \"\",\n\t\terror BLOB,\n\t\tkey(state),\n \tUNIQUE KEY task_key(task_key)\n\t);"] [user=] [2024/05/06 09:24:34.319 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:34.317 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:34.319 +00:00] [INFO] [ddl.go:1182] ["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 09:24:34.317 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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(261),\n\t\tstate VARCHAR(64) NOT NULL,\n\t\tpriority INT DEFAULT 1,\n\t\tcreate_time TIMESTAMP,\n\t\tstart_time TIMESTAMP,\n\t\tstate_update_time TIMESTAMP,\n\t\tend_time TIMESTAMP,\n\t\tmeta LONGBLOB,\n\t\tconcurrency INT(11),\n\t\tstep INT(11),\n\t\ttarget_scope VARCHAR(256) DEFAULT \"\",\n\t\terror BLOB,\n\t\tkey(state),\n \tUNIQUE KEY task_key(task_key)\n\t);"] [2024/05/06 09:24:34.327 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:34.317 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.336 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=41] [neededSchemaVersion=42] ["start time"=494.535µs] [gotSchemaVersion=42] [phyTblIDs="[84]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:34.337 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:34.337 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=85] [version=42] [2024/05/06 09:24:34.338 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=42] ["take time"=2.516558ms] [job="ID:85, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:84, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:34.317 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.343 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:34.317 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.361 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=85] [2024/05/06 09:24:34.361 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:34.361 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=42] [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 09:24:34.368 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:34.366 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:34.368 +00:00] [INFO] [ddl.go:1182] ["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 09:24:34.366 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:34.382 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:34.366 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.393 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=42] [neededSchemaVersion=43] ["start time"=616.152µs] [gotSchemaVersion=43] [phyTblIDs="[86]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:34.395 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:34.395 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=87] [version=43] [2024/05/06 09:24:34.397 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=43] ["take time"=5.012111ms] [job="ID:87, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:86, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:34.366 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.406 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:34.366 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.414 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=87] [2024/05/06 09:24:34.414 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:34.415 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=43] [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 09:24:34.418 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:34.416 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:34.418 +00:00] [INFO] [ddl.go:1182] ["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 09:24:34.416 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:34.427 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:34.416 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.447 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=43] [neededSchemaVersion=44] ["start time"=551.451µs] [gotSchemaVersion=44] [phyTblIDs="[88]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:34.449 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:34.449 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=89] [version=44] [2024/05/06 09:24:34.452 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=44] ["take time"=5.960656ms] [job="ID:89, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:88, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:34.416 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.458 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:34.416 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.462 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=89] [2024/05/06 09:24:34.462 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:34.463 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=44] [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 09:24:34.466 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:34.464 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:34.466 +00:00] [INFO] [ddl.go:1182] ["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 09:24:34.464 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:34.487 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:34.464 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.492 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=44] [neededSchemaVersion=45] ["start time"=350.89µs] [gotSchemaVersion=45] [phyTblIDs="[90]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:34.493 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:34.493 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=91] [version=45] [2024/05/06 09:24:34.493 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=45] ["take time"=2.044768ms] [job="ID:91, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:90, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:34.464 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.500 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:34.464 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.506 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=91] [2024/05/06 09:24:34.507 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:34.507 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=45] [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 09:24:34.511 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:34.509 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:34.511 +00:00] [INFO] [ddl.go:1182] ["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 09:24:34.509 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:34.524 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:34.509 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.539 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=45] [neededSchemaVersion=46] ["start time"=600.485µs] [gotSchemaVersion=46] [phyTblIDs="[92]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:34.540 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:34.540 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=93] [version=46] [2024/05/06 09:24:34.542 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=46] ["take time"=4.128279ms] [job="ID:93, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:92, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:34.509 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.575 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:34.509 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.581 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=93] [2024/05/06 09:24:34.581 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:34.582 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=46] [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 09:24:34.585 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:34.583 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:34.585 +00:00] [INFO] [ddl.go:1182] ["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 09:24:34.583 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:34.591 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:34.583 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.595 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=46] [neededSchemaVersion=47] ["start time"=351.058µs] [gotSchemaVersion=47] [phyTblIDs="[94]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:34.596 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:34.596 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=95] [version=47] [2024/05/06 09:24:34.597 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=47] ["take time"=2.434691ms] [job="ID:95, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:94, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:34.583 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.603 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:34.583 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.613 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=95] [2024/05/06 09:24:34.613 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:34.613 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=47] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.dist_framework_meta (\n host VARCHAR(261) NOT NULL PRIMARY KEY,\n role VARCHAR(64),\n cpu_count int default 0,\n keyspace_id bigint(8) NOT NULL DEFAULT -1\n );"] [user=] [2024/05/06 09:24:34.616 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:34.615 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:34.616 +00:00] [INFO] [ddl.go:1182] ["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 09:24:34.615 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE TABLE IF NOT EXISTS mysql.dist_framework_meta (\n host VARCHAR(261) NOT NULL PRIMARY KEY,\n role VARCHAR(64),\n cpu_count int default 0,\n keyspace_id bigint(8) NOT NULL DEFAULT -1\n );"] [2024/05/06 09:24:34.625 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:34.615 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.628 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=47] [neededSchemaVersion=48] ["start time"=289.743µs] [gotSchemaVersion=48] [phyTblIDs="[96]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:34.630 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:34.630 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=97] [version=48] [2024/05/06 09:24:34.630 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=48] ["take time"=2.101342ms] [job="ID:97, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:96, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:34.615 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.642 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:34.615 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.645 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=97] [2024/05/06 09:24:34.645 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:34.646 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=48] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.request_unit_by_group (\n\t\tstart_time TIMESTAMP(6) NOT NULL,\n\t\tend_time TIMESTAMP(6) NOT NULL,\n\t\tresource_group VARCHAR(32) NOT null,\n\t\ttotal_ru bigint(64) UNSIGNED NOT NULL,\n\t\tPRIMARY KEY (start_time, end_time, resource_group),\n\t\tKEY (resource_group)\n\t);"] [user=] [2024/05/06 09:24:34.649 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:34.647 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:34.649 +00:00] [INFO] [ddl.go:1182] ["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 09:24:34.647 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE TABLE IF NOT EXISTS mysql.request_unit_by_group (\n\t\tstart_time TIMESTAMP(6) NOT NULL,\n\t\tend_time TIMESTAMP(6) NOT NULL,\n\t\tresource_group VARCHAR(32) NOT null,\n\t\ttotal_ru bigint(64) UNSIGNED NOT NULL,\n\t\tPRIMARY KEY (start_time, end_time, resource_group),\n\t\tKEY (resource_group)\n\t);"] [2024/05/06 09:24:34.659 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, 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 09:24:34.647 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.664 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=48] [neededSchemaVersion=49] ["start time"=315.599µs] [gotSchemaVersion=49] [phyTblIDs="[98]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:34.666 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:34.666 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=99] [version=49] [2024/05/06 09:24:34.666 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=49] ["take time"=2.182854ms] [job="ID:99, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:98, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:34.647 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.677 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, 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 09:24:34.647 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.680 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=99] [2024/05/06 09:24:34.680 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:34.681 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=49] [cur_db=mysql] [sql="CREATE DATABASE IF NOT EXISTS sys;"] [user=] [2024/05/06 09:24:34.683 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:101, Type:create schema, State:queueing, SchemaState:none, SchemaID:100, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:34.682 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:34.683 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:101, Type:create schema, State:queueing, SchemaState:none, SchemaID:100, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:34.682 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE DATABASE IF NOT EXISTS sys;"] [2024/05/06 09:24:34.691 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, tp general"] [category=ddl] [jobID=101] [category=ddl] [job="ID:101, Type:create schema, State:queueing, SchemaState:none, SchemaID:100, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:34.682 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.693 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=49] [neededSchemaVersion=50] ["start time"=100.435µs] [gotSchemaVersion=50] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"create schema\"]"] [2024/05/06 09:24:34.695 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:34.696 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=101] [version=50] [2024/05/06 09:24:34.697 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=50] ["take time"=4.055274ms] [job="ID:101, Type:create schema, State:done, SchemaState:public, SchemaID:100, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:34.682 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.708 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, tp general"] [category=ddl] [jobID=101] [job="ID:101, Type:create schema, State:synced, SchemaState:public, SchemaID:100, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:34.682 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.711 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=101] [2024/05/06 09:24:34.711 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:34.715 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:103, Type:create view, State:queueing, SchemaState:none, SchemaID:100, TableID:102, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:34.714 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:34.715 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:103, Type:create view, State:queueing, SchemaState:none, SchemaID:100, TableID:102, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:34.714 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE OR REPLACE VIEW sys.schema_unused_indexes AS\n\t\tSELECT\n\t\t\ttable_schema as object_schema,\n\t\t\ttable_name as object_name,\n\t\t\tindex_name\n\t\tFROM information_schema.cluster_tidb_index_usage\n\t\tWHERE\n\t\t\ttable_schema not in ('sys', 'mysql', 'INFORMATION_SCHEMA', 'PERFORMANCE_SCHEMA') and\n\t\t\tindex_name != 'PRIMARY'\n\t\tGROUP BY table_schema, table_name, index_name\n\t\tHAVING\n\t\t\tsum(last_access_time) is null;"] [2024/05/06 09:24:34.727 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 11, tp general"] [category=ddl] [jobID=103] [category=ddl] [job="ID:103, Type:create view, State:queueing, SchemaState:none, SchemaID:100, TableID:102, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:34.714 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.734 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=50] [neededSchemaVersion=51] ["start time"=293.262µs] [gotSchemaVersion=51] [phyTblIDs="[102]"] [actionTypes="[21]"] [diffTypes="[\"create view\"]"] [2024/05/06 09:24:34.736 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:34.736 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=103] [version=51] [2024/05/06 09:24:34.738 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=51] ["take time"=5.05565ms] [job="ID:103, Type:create view, State:done, SchemaState:public, SchemaID:100, TableID:102, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:34.714 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.752 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 11, tp general"] [category=ddl] [jobID=103] [job="ID:103, Type:create view, State:synced, SchemaState:public, SchemaID:100, TableID:102, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:34.714 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:34.763 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=103] [2024/05/06 09:24:34.763 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:34.805 +00:00] [INFO] [bootstrap.go:745] ["bootstrap successful"] ["take time"=2.533611715s] [2024/05/06 09:24:34.807 +00:00] [INFO] [mock.go:106] ["owner manager is canceled"] [category=ddl] [ID=8be03db3-c054-4d22-a94f-88b3d5f054c3] [ownerKey=/tidb/ddl/fg/owner] [2024/05/06 09:24:34.807 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:34.807 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 12, tp add index"] [category=ddl] ["take time"=1.745µs] [2024/05/06 09:24:34.807 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 13, tp add index"] [category=ddl] ["take time"=1.001µs] [2024/05/06 09:24:34.807 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 14, tp add index"] [category=ddl] ["take time"=1.275µs] [2024/05/06 09:24:34.807 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 15, tp add index"] [category=ddl] ["take time"=1.029µs] [2024/05/06 09:24:34.807 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:34.807 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 11, tp general"] [category=ddl] ["take time"=1.07µs] [2024/05/06 09:24:34.807 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:34.807 +00:00] [INFO] [delete_range.go:162] ["closing delRange"] [category=ddl] [2024/05/06 09:24:34.807 +00:00] [INFO] [session_pool.go:99] ["closing session pool"] [category=ddl] [2024/05/06 09:24:34.810 +00:00] [INFO] [ddl.go:951] ["DDL closed"] [category=ddl] [ID=8be03db3-c054-4d22-a94f-88b3d5f054c3] ["take time"=5.364247ms] [2024/05/06 09:24:34.811 +00:00] [INFO] [ddl.go:769] ["stop DDL"] [category=ddl] [ID=8be03db3-c054-4d22-a94f-88b3d5f054c3] [2024/05/06 09:24:34.811 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=mdlCheckLoop] [2024/05/06 09:24:34.811 +00:00] [INFO] [domain.go:907] ["loadSchemaInLoop exited."] [2024/05/06 09:24:34.811 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=loadSchemaInLoop] [2024/05/06 09:24:34.811 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=runawayStartLoop] [2024/05/06 09:24:34.811 +00:00] [INFO] [domain.go:737] ["globalConfigSyncerKeeper exited."] [2024/05/06 09:24:34.811 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=globalConfigSyncerKeeper] [2024/05/06 09:24:34.811 +00:00] [INFO] [domain.go:683] ["topNSlowQueryLoop exited."] [2024/05/06 09:24:34.811 +00:00] [INFO] [domain.go:711] ["infoSyncerKeeper exited."] [2024/05/06 09:24:34.811 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=topNSlowQueryLoop] [2024/05/06 09:24:34.811 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=infoSyncerKeeper] [2024/05/06 09:24:34.811 +00:00] [INFO] [domain.go:1361] ["closestReplicaReadCheckLoop exited."] [2024/05/06 09:24:34.811 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=closestReplicaReadCheckLoop] [2024/05/06 09:24:34.811 +00:00] [INFO] [domain.go:761] ["topologySyncerKeeper exited."] [2024/05/06 09:24:34.811 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=topologySyncerKeeper] [2024/05/06 09:24:34.811 +00:00] [INFO] [domain.go:1074] ["domain closed"] ["take time"=6.240682ms] [2024/05/06 09:24:34.811 +00:00] [INFO] [tidb.go:80] ["new domain"] [store=2bba1bb7-2dc3-4a43-a5df-c96a1bef4c3d] ["ddl lease"=500ms] ["stats lease"=-1ns] [2024/05/06 09:24:34.820 +00:00] [WARN] [controller.go:198] ["[resource group controller] server does not save config, load config failed"] [2024/05/06 09:24:34.820 +00:00] [INFO] [controller.go:185] ["load resource controller config"] [config="{\"degraded-mode-wait-duration\":\"0s\",\"ltb-max-wait-duration\":\"30s\",\"wait-retry-interval\":\"50ms\",\"wait-retry-times\":10,\"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,\"WaitRetryInterval\":50000000,\"WaitRetryTimes\":10,\"DegradedModeWaitDuration\":0}"] [2024/05/06 09:24:34.857 +00:00] [INFO] [domain.go:315] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=51] ["start time"=36.195571ms] [2024/05/06 09:24:34.862 +00:00] [INFO] [domain.go:635] ["full load and reset schema validator"] [2024/05/06 09:24:34.862 +00:00] [INFO] [ddl.go:818] ["start DDL"] [category=ddl] [ID=5fdae65d-9148-43b9-9b65-c661c645f17f] [runWorker=true] [2024/05/06 09:24:34.863 +00:00] [INFO] [ddl.go:777] ["start delRangeManager OK"] [category=ddl] ["is a emulator"=true] [2024/05/06 09:24:34.863 +00:00] [WARN] [env.go:51] ["initialize environment failed"] [category=ddl-ingest] ["storage limitation"="only support TiKV storage"] ["current storage"=unistore] ["lightning is initialized"=false] [2024/05/06 09:24:34.863 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=loadSchemaInLoop] [2024/05/06 09:24:34.863 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=mdlCheckLoop] [2024/05/06 09:24:34.863 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=topNSlowQueryLoop] [2024/05/06 09:24:34.863 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=infoSyncerKeeper] [2024/05/06 09:24:34.863 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=globalConfigSyncerKeeper] [2024/05/06 09:24:34.863 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=runawayStartLoop] [2024/05/06 09:24:34.863 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=requestUnitsWriterLoop] [2024/05/06 09:24:34.863 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=topologySyncerKeeper] [2024/05/06 09:24:34.863 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=closestReplicaReadCheckLoop] [2024/05/06 09:24:34.863 +00:00] [WARN] [domain.go:1326] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 09:24:34.863 +00:00] [INFO] [delete_range.go:172] ["start delRange emulator"] [category=ddl] [2024/05/06 09:24:34.863 +00:00] [INFO] [job_table.go:334] ["get global state and global state change"] [category=ddl] [oldState=false] [currState=false] [2024/05/06 09:24:34.863 +00:00] [INFO] [runaway.go:149] ["try to start runaway manager loop"] [2024/05/06 09:24:34.863 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=requestUnitsWriterLoop] [2024/05/06 09:24:34.864 +00:00] [INFO] [controller.go:447] ["[resource group controller] create resource group cost controller"] [name=default] [2024/05/06 09:24:34.871 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=globalBindHandleWorkerLoop] [2024/05/06 09:24:34.872 +00:00] [WARN] [sysvar_cache.go:49] ["sysvar cache is empty, triggering rebuild"] [2024/05/06 09:24:34.887 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=loadPrivilegeInLoop] [2024/05/06 09:24:34.891 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=LoadSysVarCacheLoop] [2024/05/06 09:24:34.893 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=dumpFileGcChecker] [2024/05/06 09:24:34.893 +00:00] [INFO] [domain.go:2070] ["dumpFileGcChecker started"] [2024/05/06 09:24:34.894 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=indexUsageWorker] [2024/05/06 09:24:34.894 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=quitStatsOwner] [2024/05/06 09:24:34.896 +00:00] [INFO] [task_manager.go:217] ["scale ttl worker"] [ttl-worker=job-manager] [ttl-worker=task-manager] [originalCount=0] [newCount=4] [2024/05/06 09:24:34.896 +00:00] [INFO] [task_manager.go:217] ["scale ttl worker"] [ttl-worker=job-manager] [ttl-worker=task-manager] [originalCount=0] [newCount=4] [2024/05/06 09:24:34.909 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=loadSigningCertLoop] [2024/05/06 09:24:34.913 +00:00] [INFO] [job_table.go:334] ["get global state and global state change"] [category=ddl] [oldState=false] [currState=false] [2024/05/06 09:24:34.913 +00:00] [INFO] [job_table.go:349] ["the owner sets owner operator value"] [category=ddl] [ownerOp=none] [2024/05/06 09:24:35.132 +00:00] [INFO] [domain.go:315] ["full load InfoSchema success"] [currentSchemaVersion=51] [neededSchemaVersion=51] ["start time"=18.251297ms] [2024/05/06 09:24:35.133 +00:00] [INFO] [domain.go:635] ["full load and reset schema validator"] [2024/05/06 09:24:35.867 +00:00] [INFO] [runaway.go:158] ["preparations for the runaway manager are finished and start runaway manager loop"] [2024/05/06 09:24:35.867 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=runawayRecordFlushLoop] [2024/05/06 09:24:35.867 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=runawayWatchSyncLoop] [2024/05/06 09:24:35.867 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=runawayStartLoop] [2024/05/06 09:24:35.896 +00:00] [INFO] [runtime.go:160] ["TimerGroupRuntime loop started"] [groupID=ttl] [2024/05/06 09:24:35.896 +00:00] [INFO] [runtime.go:402] ["create watch chan if possible for timer runtime"] [groupID=ttl] [storeSupportWatch=true] [2024/05/06 09:24:36.276 +00:00] [INFO] [manager.go:113] ["build task executor manager"] [server-id=:4000] [total-cpu=16] [total-mem=342GiB] [2024/05/06 09:24:36.278 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=distTaskFrameworkLoop] [2024/05/06 09:24:36.278 +00:00] [INFO] [manager.go:146] ["task executor manager start"] [server-id=:4000] [2024/05/06 09:24:36.278 +00:00] [INFO] [domain.go:1525] ["dist task executor manager started"] [2024/05/06 09:24:36.287 +00:00] [INFO] [set.go:170] ["set global var"] [conn=4] [name=tidb_schema_cache_size] [val=1024] [2024/05/06 09:24:36.288 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=4] [schemaVersion=51] [cur_db=] [sql="create database test_db_state default charset utf8 default collate utf8_bin"] [user=] [2024/05/06 09:24:36.291 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:105, Type:create schema, State:queueing, SchemaState:none, SchemaID:104, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:36.29 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:36.291 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:105, Type:create schema, State:queueing, SchemaState:none, SchemaID:104, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:36.29 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create database test_db_state default charset utf8 default collate utf8_bin"] [2024/05/06 09:24:36.300 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 16, tp general"] [category=ddl] [jobID=105] [conn=4] [category=ddl] [job="ID:105, Type:create schema, State:queueing, SchemaState:none, SchemaID:104, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:36.29 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.306 +00:00] [ERROR] [domain.go:291] ["failed to load schema diff"] [error="builder's (v2=true) infoschema mismatch, return error to trigger full reload"] [errorVerbose="builder's (v2=true) infoschema mismatch, return error to trigger full reload\ngithub.com/pingcap/tidb/pkg/infoschema.(*Builder).InitWithOldInfoSchema\n\tpkg/infoschema/builder.go:798\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).tryLoadSchemaDiffs\n\tpkg/domain/domain.go:459\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).loadInfoSchema\n\tpkg/domain/domain.go:276\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).Reload\n\tpkg/domain/domain.go:606\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).loadSchemaInLoop\n\tpkg/domain/domain.go:919\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).Init.func2\n\tpkg/domain/domain.go:1287\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:99\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [stack="github.com/pingcap/tidb/pkg/domain.(*Domain).loadInfoSchema\n\tpkg/domain/domain.go:291\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).Reload\n\tpkg/domain/domain.go:606\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).loadSchemaInLoop\n\tpkg/domain/domain.go:919\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).Init.func2\n\tpkg/domain/domain.go:1287\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:99"] [2024/05/06 09:24:36.361 +00:00] [INFO] [domain.go:315] ["full load InfoSchema success"] [currentSchemaVersion=51] [neededSchemaVersion=52] ["start time"=55.45575ms] [2024/05/06 09:24:36.367 +00:00] [INFO] [domain.go:635] ["full load and reset schema validator"] [2024/05/06 09:24:36.368 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=105] [version=52] [2024/05/06 09:24:36.370 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=52] ["take time"=64.386909ms] [job="ID:105, Type:create schema, State:done, SchemaState:public, SchemaID:104, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:36.29 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.377 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 16, tp general"] [category=ddl] [jobID=105] [conn=4] [job="ID:105, Type:create schema, State:synced, SchemaState:public, SchemaID:104, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:36.29 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.380 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=105] [2024/05/06 09:24:36.380 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:36.381 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=4] [schemaVersion=52] [cur_db=test_db_state] [sql="drop table if exists t"] [user=] [2024/05/06 09:24:36.381 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=4] [schemaVersion=52] [cur_db=test_db_state] [sql="create table t (\n\t \tc1 varchar(64),\n\t \tc2 enum('N','Y') not null default 'N',\n\t \tc3 timestamp on update current_timestamp,\n\t \tc4 int primary key,\n\t \tunique key idx2 (c2))"] [user=] [2024/05/06 09:24:36.385 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:107, Type:create table, State:queueing, SchemaState:none, SchemaID:104, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:36.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:36.385 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:107, Type:create table, State:queueing, SchemaState:none, SchemaID:104, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:36.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create table t (\n\t \tc1 varchar(64),\n\t \tc2 enum('N','Y') not null default 'N',\n\t \tc3 timestamp on update current_timestamp,\n\t \tc4 int primary key,\n\t \tunique key idx2 (c2))"] [2024/05/06 09:24:36.409 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 16, tp general"] [category=ddl] [jobID=107] [conn=4] [category=ddl] [job="ID:107, Type:create table, State:queueing, SchemaState:none, SchemaID:104, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:36.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.412 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=52] [neededSchemaVersion=53] ["start time"=351.014µs] [gotSchemaVersion=53] [phyTblIDs="[106]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:36.414 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=107] [version=53] [2024/05/06 09:24:36.414 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=53] ["take time"=2.228886ms] [job="ID:107, Type:create table, State:done, SchemaState:public, SchemaID:104, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:36.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.423 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 16, tp general"] [category=ddl] [jobID=107] [conn=4] [job="ID:107, Type:create table, State:synced, SchemaState:public, SchemaID:104, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:36.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.430 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=107] [2024/05/06 09:24:36.430 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:36.492 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=4] [schemaVersion=53] [cur_db=test_db_state] [sql="alter table t add column c5 int not null default 1 after c4"] [user=] [2024/05/06 09:24:36.499 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:108, Type:add column, State:queueing, SchemaState:none, SchemaID:104, TableID:106, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:36.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:36.499 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:108, Type:add column, State:queueing, SchemaState:none, SchemaID:104, TableID:106, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:36.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c5 int not null default 1 after c4"] [2024/05/06 09:24:36.516 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:108, Type:add column, State:queueing, SchemaState:none, SchemaID:104, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:36.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.516 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 16, tp general"] [category=ddl] [jobID=108] [conn=4] [category=ddl] [job="ID:108, Type:add column, State:queueing, SchemaState:none, SchemaID:104, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:36.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.517 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:108, Type:add column, State:running, SchemaState:none, SchemaID:104, TableID:106, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:36.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [columnInfo="{\"id\":5,\"name\":{\"O\":\"c5\",\"L\":\"c5\"},\"offset\":4,\"origin_default\":\"1\",\"origin_default_bit\":null,\"default\":\"1\",\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{},\"state\":0,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2}"] [2024/05/06 09:24:36.517 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:108, Type:add column, State:running, SchemaState:delete only, SchemaID:104, TableID:106, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:36.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.519 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=53] [neededSchemaVersion=54] ["start time"=397.37µs] [gotSchemaVersion=54] [phyTblIDs="[106]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:36.521 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=108] [version=54] [2024/05/06 09:24:36.521 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=54] ["take time"=2.019175ms] [job="ID:108, Type:add column, State:running, SchemaState:delete only, SchemaID:104, TableID:106, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:36.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.522 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:108, Type:add column, State:running, SchemaState:delete only, SchemaID:104, TableID:106, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:36.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.528 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:108, Type:add column, State:running, SchemaState:delete only, SchemaID:104, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:36.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.529 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 16, tp general"] [category=ddl] [jobID=108] [conn=4] [category=ddl] [job="ID:108, Type:add column, State:running, SchemaState:delete only, SchemaID:104, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:36.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.529 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:108, Type:add column, State:running, SchemaState:write only, SchemaID:104, TableID:106, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:36.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.532 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=54] [neededSchemaVersion=55] ["start time"=459.166µs] [gotSchemaVersion=55] [phyTblIDs="[106]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:36.533 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=108] [version=55] [2024/05/06 09:24:36.534 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=55] ["take time"=2.161498ms] [job="ID:108, Type:add column, State:running, SchemaState:write only, SchemaID:104, TableID:106, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:36.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.535 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:108, Type:add column, State:running, SchemaState:write only, SchemaID:104, TableID:106, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:36.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.545 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:108, Type:add column, State:running, SchemaState:write only, SchemaID:104, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:36.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.546 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 16, tp general"] [category=ddl] [jobID=108] [conn=4] [category=ddl] [job="ID:108, Type:add column, State:running, SchemaState:write only, SchemaID:104, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:36.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.547 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:108, Type:add column, State:running, SchemaState:write reorganization, SchemaID:104, TableID:106, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:36.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.549 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=55] [neededSchemaVersion=56] ["start time"=385.18µs] [gotSchemaVersion=56] [phyTblIDs="[106]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:36.551 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=108] [version=56] [2024/05/06 09:24:36.553 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=56] ["take time"=4.898962ms] [job="ID:108, Type:add column, State:running, SchemaState:write reorganization, SchemaID:104, TableID:106, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:36.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.555 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:108, Type:add column, State:running, SchemaState:write reorganization, SchemaID:104, TableID:106, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:36.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.560 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:108, Type:add column, State:running, SchemaState:write reorganization, SchemaID:104, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:36.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.560 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 16, tp general"] [category=ddl] [jobID=108] [conn=4] [category=ddl] [job="ID:108, Type:add column, State:running, SchemaState:write reorganization, SchemaID:104, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:36.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.561 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:108, Type:add column, State:done, SchemaState:public, SchemaID:104, TableID:106, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:36.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.563 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=56] [neededSchemaVersion=57] ["start time"=419.489µs] [gotSchemaVersion=57] [phyTblIDs="[106]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:36.565 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=108] [version=57] [2024/05/06 09:24:36.565 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=57] ["take time"=2.127985ms] [job="ID:108, Type:add column, State:done, SchemaState:public, SchemaID:104, TableID:106, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:36.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.566 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:108, Type:add column, State:done, SchemaState:public, SchemaID:104, TableID:106, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:36.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.576 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 16, tp general"] [category=ddl] [jobID=108] [conn=4] [job="ID:108, Type:add column, State:synced, SchemaState:public, SchemaID:104, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:36.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.579 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=108] [2024/05/06 09:24:36.579 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:36.591 +00:00] [INFO] [mock.go:106] ["owner manager is canceled"] [category=ddl] [ID=5fdae65d-9148-43b9-9b65-c661c645f17f] [ownerKey=/tidb/ddl/fg/owner] [2024/05/06 09:24:36.591 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:36.591 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 18, tp add index"] [category=ddl] ["take time"=7.001µs] [2024/05/06 09:24:36.591 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 19, tp add index"] [category=ddl] ["take time"=4.521µs] [2024/05/06 09:24:36.591 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 20, tp add index"] [category=ddl] ["take time"=3.34µs] [2024/05/06 09:24:36.591 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 17, tp add index"] [category=ddl] ["take time"=4.229µs] [2024/05/06 09:24:36.591 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:36.591 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 16, tp general"] [category=ddl] ["take time"=1.154µs] [2024/05/06 09:24:36.591 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:36.591 +00:00] [INFO] [delete_range.go:162] ["closing delRange"] [category=ddl] [2024/05/06 09:24:36.592 +00:00] [INFO] [session_pool.go:99] ["closing session pool"] [category=ddl] [2024/05/06 09:24:36.592 +00:00] [INFO] [ddl.go:951] ["DDL closed"] [category=ddl] [ID=5fdae65d-9148-43b9-9b65-c661c645f17f] ["take time"=10.837345ms] [2024/05/06 09:24:36.592 +00:00] [INFO] [ddl.go:769] ["stop DDL"] [category=ddl] [ID=5fdae65d-9148-43b9-9b65-c661c645f17f] [2024/05/06 09:24:36.592 +00:00] [INFO] [domain.go:1026] ["stopping ttlJobManager"] [2024/05/06 09:24:36.592 +00:00] [INFO] [runtime.go:190] ["TimerGroupRuntime loop exit"] [groupID=ttl] [2024/05/06 09:24:36.592 +00:00] [INFO] [task_manager.go:194] ["shrink ttl worker"] [ttl-worker=job-manager] [ttl-worker=task-manager] [originalCount=4] [newCount=0] [2024/05/06 09:24:36.593 +00:00] [INFO] [scan.go:309] ["ttlScanWorker loop exited."] [2024/05/06 09:24:36.593 +00:00] [INFO] [scan.go:309] ["ttlScanWorker loop exited."] [2024/05/06 09:24:36.593 +00:00] [INFO] [scan.go:309] ["ttlScanWorker loop exited."] [2024/05/06 09:24:36.593 +00:00] [INFO] [scan.go:309] ["ttlScanWorker loop exited."] [2024/05/06 09:24:36.593 +00:00] [INFO] [task_manager.go:194] ["shrink ttl worker"] [ttl-worker=job-manager] [ttl-worker=task-manager] [originalCount=4] [newCount=0] [2024/05/06 09:24:36.593 +00:00] [INFO] [del.go:261] ["ttlDeleteWorker loop exited."] [2024/05/06 09:24:36.593 +00:00] [INFO] [del.go:261] ["ttlDeleteWorker loop exited."] [2024/05/06 09:24:36.593 +00:00] [INFO] [del.go:261] ["ttlDeleteWorker loop exited."] [2024/05/06 09:24:36.593 +00:00] [INFO] [del.go:261] ["ttlDeleteWorker loop exited."] [2024/05/06 09:24:36.594 +00:00] [INFO] [job_manager.go:174] ["ttlJobManager loop exited."] [ttl-worker=job-manager] [2024/05/06 09:24:36.594 +00:00] [INFO] [domain.go:1037] ["ttlJobManager exited."] [2024/05/06 09:24:36.594 +00:00] [INFO] [manager.go:280] ["recoverMetaLoop done"] [server-id=:4000] [2024/05/06 09:24:36.594 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=mdlCheckLoop] [2024/05/06 09:24:36.594 +00:00] [INFO] [domain.go:2352] ["indexUsageWorker exited."] [2024/05/06 09:24:36.595 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=indexUsageWorker] [2024/05/06 09:24:36.594 +00:00] [INFO] [domain.go:907] ["loadSchemaInLoop exited."] [2024/05/06 09:24:36.595 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=loadSchemaInLoop] [2024/05/06 09:24:36.594 +00:00] [INFO] [domain.go:1527] ["stopping dist task executor manager"] [2024/05/06 09:24:36.594 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=runawayRecordFlushLoop] [2024/05/06 09:24:36.594 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=runawayWatchSyncLoop] [2024/05/06 09:24:36.594 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=loadSigningCertLoop] [2024/05/06 09:24:36.594 +00:00] [INFO] [stats_syncload.go:202] ["SubLoadWorker exited."] [2024/05/06 09:24:36.594 +00:00] [INFO] [stats_syncload.go:202] ["SubLoadWorker exited."] [2024/05/06 09:24:36.594 +00:00] [INFO] [stats_syncload.go:202] ["SubLoadWorker exited."] [2024/05/06 09:24:36.594 +00:00] [INFO] [stats_syncload.go:202] ["SubLoadWorker exited."] [2024/05/06 09:24:36.594 +00:00] [INFO] [mock.go:106] ["owner manager is canceled"] [category=ddl] [ID=5fdae65d-9148-43b9-9b65-c661c645f17f] [ownerKey=/tidb/stats/owner] [2024/05/06 09:24:36.595 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=quitStatsOwner] [2024/05/06 09:24:36.594 +00:00] [INFO] [stats_syncload.go:202] ["SubLoadWorker exited."] [2024/05/06 09:24:36.594 +00:00] [INFO] [domain.go:737] ["globalConfigSyncerKeeper exited."] [2024/05/06 09:24:36.595 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=globalConfigSyncerKeeper] [2024/05/06 09:24:36.594 +00:00] [INFO] [domain.go:2074] ["dumpFileGcChecker exited."] [2024/05/06 09:24:36.595 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=dumpFileGcChecker] [2024/05/06 09:24:36.594 +00:00] [INFO] [domain.go:1750] ["LoadSysVarCacheLoop exited."] [2024/05/06 09:24:36.595 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=LoadSysVarCacheLoop] [2024/05/06 09:24:36.594 +00:00] [INFO] [domain.go:1700] ["loadPrivilegeInLoop exited."] [2024/05/06 09:24:36.595 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=loadPrivilegeInLoop] [2024/05/06 09:24:36.594 +00:00] [INFO] [mock.go:106] ["owner manager is canceled"] [category=ddl] [ID=5fdae65d-9148-43b9-9b65-c661c645f17f] [ownerKey=/tidb/bindinfo/owner] [2024/05/06 09:24:36.595 +00:00] [INFO] [domain.go:1889] ["globalBindHandleWorkerLoop exited."] [2024/05/06 09:24:36.595 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=globalBindHandleWorkerLoop] [2024/05/06 09:24:36.594 +00:00] [INFO] [domain.go:761] ["topologySyncerKeeper exited."] [2024/05/06 09:24:36.594 +00:00] [INFO] [domain.go:683] ["topNSlowQueryLoop exited."] [2024/05/06 09:24:36.594 +00:00] [INFO] [domain.go:711] ["infoSyncerKeeper exited."] [2024/05/06 09:24:36.594 +00:00] [INFO] [domain.go:1361] ["closestReplicaReadCheckLoop exited."] [2024/05/06 09:24:36.594 +00:00] [INFO] [manager.go:179] ["handle tasks loop done"] [server-id=:4000] [2024/05/06 09:24:36.596 +00:00] [INFO] [domain.go:1529] ["dist task executor manager stopped"] [2024/05/06 09:24:36.596 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=distTaskFrameworkLoop] [2024/05/06 09:24:36.596 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=topologySyncerKeeper] [2024/05/06 09:24:36.596 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=topNSlowQueryLoop] [2024/05/06 09:24:36.596 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=infoSyncerKeeper] [2024/05/06 09:24:36.596 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=closestReplicaReadCheckLoop] [2024/05/06 09:24:36.596 +00:00] [INFO] [domain.go:1074] ["domain closed"] ["take time"=15.164895ms] [2024/05/06 09:24:36.597 +00:00] [INFO] [db.go:567] ["Closing database"] [2024/05/06 09:24:36.597 +00:00] [INFO] [db.go:592] ["Memtable flushed"] [2024/05/06 09:24:36.597 +00:00] [INFO] [db.go:596] ["Compaction finished"] [2024/05/06 09:24:36.597 +00:00] [INFO] [db.go:615] ["BlobManager finished"] [2024/05/06 09:24:36.597 +00:00] [INFO] [db.go:619] ["ResourceManager finished"] [2024/05/06 09:24:36.597 +00:00] [INFO] [db.go:625] ["Waiting for closer"] --- PASS: TestWriteOnlyWriteNULL (4.42s) === RUN TestCreateUniqueExpressionIndex [2024/05/06 09:24:36.605 +00:00] [INFO] [store_cache.go:510] ["change store resolve state"] [store=1] [addr=store1] [from=unresolved] [to=resolved] [liveness-state=reachable] [2024/05/06 09:24:36.605 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:36.605 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:36.606 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:36.606 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:36.607 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:36.608 +00:00] [INFO] [tidb.go:80] ["new domain"] [store=31725c4e-5630-413d-a4fa-3d635b8b06e4] ["ddl lease"=500ms] ["stats lease"=-1ns] [2024/05/06 09:24:36.616 +00:00] [WARN] [controller.go:198] ["[resource group controller] server does not save config, load config failed"] [2024/05/06 09:24:36.616 +00:00] [INFO] [controller.go:185] ["load resource controller config"] [config="{\"degraded-mode-wait-duration\":\"0s\",\"ltb-max-wait-duration\":\"30s\",\"wait-retry-interval\":\"50ms\",\"wait-retry-times\":10,\"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,\"WaitRetryInterval\":50000000,\"WaitRetryTimes\":10,\"DegradedModeWaitDuration\":0}"] [2024/05/06 09:24:36.616 +00:00] [WARN] [domain.go:245] ["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:335\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).loadInfoSchema\n\tpkg/domain/domain.go:242\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).Reload\n\tpkg/domain/domain.go:606\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).Init\n\tpkg/domain/domain.go:1260\ngithub.com/pingcap/tidb/pkg/session.(*domainMap).Get.func1\n\tpkg/session/tidb.go:92\ngithub.com/pingcap/tidb/pkg/util.RunWithRetry\n\tpkg/util/misc.go:70\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:3620\ngithub.com/pingcap/tidb/pkg/session.createSession\n\tpkg/session/session.go:3612\ngithub.com/pingcap/tidb/pkg/session.runInBootstrapSession\n\tpkg/session/session.go:3562\ngithub.com/pingcap/tidb/pkg/session.bootstrapSessionImpl\n\tpkg/session/session.go:3346\ngithub.com/pingcap/tidb/pkg/session.BootstrapSession\n\tpkg/session/session.go:3312\ngithub.com/pingcap/tidb/pkg/testkit.bootstrap\n\tpkg/testkit/mockstore.go:294\ngithub.com/pingcap/tidb/pkg/testkit.CreateMockStoreAndDomain\n\tpkg/testkit/mockstore.go:265\ngithub.com/pingcap/tidb/pkg/ddl_test.TestCreateUniqueExpressionIndex\n\tpkg/ddl/db_change_test.go:1715\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [version=0] [2024/05/06 09:24:36.639 +00:00] [INFO] [domain.go:315] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=0] ["start time"=23.011572ms] [2024/05/06 09:24:36.640 +00:00] [INFO] [domain.go:635] ["full load and reset schema validator"] [2024/05/06 09:24:36.640 +00:00] [INFO] [ddl.go:818] ["start DDL"] [category=ddl] [ID=a34ed2b0-690a-4a4a-8f2e-7418392e7834] [runWorker=true] [2024/05/06 09:24:36.640 +00:00] [INFO] [ddl.go:777] ["start delRangeManager OK"] [category=ddl] ["is a emulator"=true] [2024/05/06 09:24:36.640 +00:00] [WARN] [env.go:51] ["initialize environment failed"] [category=ddl-ingest] ["storage limitation"="only support TiKV storage"] ["current storage"=unistore] ["lightning is initialized"=false] [2024/05/06 09:24:36.641 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=loadSchemaInLoop] [2024/05/06 09:24:36.641 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=mdlCheckLoop] [2024/05/06 09:24:36.641 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=topNSlowQueryLoop] [2024/05/06 09:24:36.641 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=infoSyncerKeeper] [2024/05/06 09:24:36.641 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=globalConfigSyncerKeeper] [2024/05/06 09:24:36.641 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=runawayStartLoop] [2024/05/06 09:24:36.641 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=requestUnitsWriterLoop] [2024/05/06 09:24:36.641 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=topologySyncerKeeper] [2024/05/06 09:24:36.641 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=requestUnitsWriterLoop] [2024/05/06 09:24:36.641 +00:00] [INFO] [delete_range.go:172] ["start delRange emulator"] [category=ddl] [2024/05/06 09:24:36.641 +00:00] [INFO] [job_table.go:334] ["get global state and global state change"] [category=ddl] [oldState=false] [currState=false] [2024/05/06 09:24:36.641 +00:00] [INFO] [job_table.go:349] ["the owner sets owner operator value"] [category=ddl] [ownerOp=none] [2024/05/06 09:24:36.641 +00:00] [INFO] [runaway.go:149] ["try to start runaway manager loop"] [2024/05/06 09:24:36.641 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=closestReplicaReadCheckLoop] [2024/05/06 09:24:36.641 +00:00] [WARN] [domain.go:1326] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 09:24:36.642 +00:00] [INFO] [controller.go:447] ["[resource group controller] create resource group cost controller"] [name=default] [2024/05/06 09:24:36.643 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=0] [cur_db=mysql] [sql="CREATE DATABASE IF NOT EXISTS test"] [user=] [2024/05/06 09:24:36.645 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:36.644 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:36.645 +00:00] [INFO] [ddl.go:1182] ["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 09:24:36.644 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE DATABASE IF NOT EXISTS test"] [2024/05/06 09:24:36.654 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:36.644 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.675 +00:00] [INFO] [domain.go:315] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=1] ["start time"=18.983854ms] [2024/05/06 09:24:36.677 +00:00] [INFO] [domain.go:635] ["full load and reset schema validator"] [2024/05/06 09:24:36.679 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:36.679 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=3] [version=1] [2024/05/06 09:24:36.681 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=1] ["take time"=24.824335ms] [job="ID:3, Type:create schema, State:done, SchemaState:public, SchemaID:2, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:36.644 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.689 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:36.644 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.693 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=3] [2024/05/06 09:24:36.693 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:36.694 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=1] [cur_db=mysql] [sql="CREATE DATABASE IF NOT EXISTS `mysql`"] [user=] [2024/05/06 09:24:36.695 +00:00] [INFO] [session.go:3945] ["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 09:24:36.701 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:36.697 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:36.701 +00:00] [INFO] [ddl.go:1182] ["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 09:24:36.697 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:36.715 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:36.697 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.725 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=1] [neededSchemaVersion=2] ["start time"=1.336024ms] [gotSchemaVersion=2] [phyTblIDs="[4]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:36.726 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:36.727 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=5] [version=2] [2024/05/06 09:24:36.730 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=2] ["take time"=7.157712ms] [job="ID:5, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:4, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:36.697 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.738 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:36.697 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.750 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=5] [2024/05/06 09:24:36.750 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:36.751 +00:00] [INFO] [session.go:3945] ["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 09:24:36.754 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:36.753 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:36.754 +00:00] [INFO] [ddl.go:1182] ["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 09:24:36.753 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:36.769 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:36.753 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.774 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=2] [neededSchemaVersion=3] ["start time"=308.658µs] [gotSchemaVersion=3] [phyTblIDs="[6]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:36.775 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:36.775 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=7] [version=3] [2024/05/06 09:24:36.775 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=3] ["take time"=2.175316ms] [job="ID:7, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:6, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:36.753 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.787 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:36.753 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.791 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=7] [2024/05/06 09:24:36.791 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:36.792 +00:00] [INFO] [session.go:3945] ["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 09:24:36.795 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:36.794 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:36.795 +00:00] [INFO] [ddl.go:1182] ["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 09:24:36.794 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:36.801 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:36.794 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.804 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=3] [neededSchemaVersion=4] ["start time"=293.757µs] [gotSchemaVersion=4] [phyTblIDs="[8]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:36.806 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:36.806 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=9] [version=4] [2024/05/06 09:24:36.806 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=4] ["take time"=2.14158ms] [job="ID:9, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:8, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:36.794 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.827 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:36.794 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.830 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=9] [2024/05/06 09:24:36.830 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:36.831 +00:00] [INFO] [session.go:3945] ["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 09:24:36.835 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:36.832 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:36.835 +00:00] [INFO] [ddl.go:1182] ["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 09:24:36.832 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:36.867 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:36.832 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.879 +00:00] [INFO] [mvcc.go:1246] ["trying to commit with smaller commitTs than minCommitTs"] ["commit ts"=449573677137133568] ["min commit ts"=449573677138444289] [key=bURCOjEAAAAA+wAAAAAAAABoVGFibGU6MTD/AAAAAAAAAAD3] [2024/05/06 09:24:36.879 +00:00] [INFO] [commit.go:160] ["2PC commitTS rejected by TiKV, retry with a newer commitTS"] [txnStartTS=449573677135822848] [info="{StartTs:449573677135822848 AttemptedCommitTs:449573677137133568 Key:6d44423a3100000000fb00000000000000685461626c653a3130ff0000000000000000f7 MinCommitTs:449573677138444289}"] [2024/05/06 09:24:36.881 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=4] [neededSchemaVersion=5] ["start time"=671.035µs] [gotSchemaVersion=5] [phyTblIDs="[10]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:36.882 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:36.882 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=11] [version=5] [2024/05/06 09:24:36.885 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=5] ["take time"=4.950822ms] [job="ID:11, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:10, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:36.832 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.892 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:36.832 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.897 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=11] [2024/05/06 09:24:36.897 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:36.898 +00:00] [INFO] [session.go:3945] ["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 09:24:36.901 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:36.899 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:36.901 +00:00] [INFO] [ddl.go:1182] ["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 09:24:36.899 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:36.912 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:36.899 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.916 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=5] [neededSchemaVersion=6] ["start time"=429.144µs] [gotSchemaVersion=6] [phyTblIDs="[12]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:36.918 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:36.918 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=13] [version=6] [2024/05/06 09:24:36.920 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=6] ["take time"=5.013091ms] [job="ID:13, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:12, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:36.899 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.936 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:36.899 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.941 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=13] [2024/05/06 09:24:36.941 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:36.941 +00:00] [INFO] [session.go:3945] ["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 09:24:36.945 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:36.943 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:36.945 +00:00] [INFO] [ddl.go:1182] ["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 09:24:36.943 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:36.964 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:36.943 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.972 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=6] [neededSchemaVersion=7] ["start time"=316.358µs] [gotSchemaVersion=7] [phyTblIDs="[14]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:36.973 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:36.973 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=15] [version=7] [2024/05/06 09:24:36.974 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=7] ["take time"=2.364709ms] [job="ID:15, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:14, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:36.943 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.982 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:36.943 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:36.992 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=15] [2024/05/06 09:24:36.992 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:36.993 +00:00] [INFO] [session.go:3945] ["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 09:24:36.998 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:36.997 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:36.998 +00:00] [INFO] [ddl.go:1182] ["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 09:24:36.997 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:37.010 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:36.997 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.014 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=7] [neededSchemaVersion=8] ["start time"=235.323µs] [gotSchemaVersion=8] [phyTblIDs="[16]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:37.015 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:37.015 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=17] [version=8] [2024/05/06 09:24:37.017 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=8] ["take time"=3.703639ms] [job="ID:17, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:16, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:36.997 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.057 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:36.997 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.066 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=17] [2024/05/06 09:24:37.066 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:37.066 +00:00] [INFO] [session.go:3945] ["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 09:24:37.069 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:37.068 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:37.069 +00:00] [INFO] [ddl.go:1182] ["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 09:24:37.068 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:37.082 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:37.068 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.086 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=8] [neededSchemaVersion=9] ["start time"=271.599µs] [gotSchemaVersion=9] [phyTblIDs="[18]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:37.088 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:37.088 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=19] [version=9] [2024/05/06 09:24:37.088 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=9] ["take time"=2.14185ms] [job="ID:19, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:18, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:37.068 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.094 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:37.068 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.099 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=19] [2024/05/06 09:24:37.099 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:37.100 +00:00] [INFO] [session.go:3945] ["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 09:24:37.103 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:37.102 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:37.103 +00:00] [INFO] [ddl.go:1182] ["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 09:24:37.102 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:37.112 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:37.102 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.117 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=9] [neededSchemaVersion=10] ["start time"=310.622µs] [gotSchemaVersion=10] [phyTblIDs="[20]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:37.119 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:37.119 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=21] [version=10] [2024/05/06 09:24:37.121 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=10] ["take time"=4.324474ms] [job="ID:21, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:20, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:37.102 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.133 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:37.102 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.137 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=21] [2024/05/06 09:24:37.137 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:37.138 +00:00] [INFO] [session.go:3945] ["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 09:24:37.141 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:37.14 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:37.141 +00:00] [INFO] [ddl.go:1182] ["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 09:24:37.14 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:37.156 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:37.14 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.165 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=10] [neededSchemaVersion=11] ["start time"=361.136µs] [gotSchemaVersion=11] [phyTblIDs="[22]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:37.173 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:37.173 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=23] [version=11] [2024/05/06 09:24:37.175 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=11] ["take time"=10.464663ms] [job="ID:23, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:22, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:37.14 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.183 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:37.14 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.187 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=23] [2024/05/06 09:24:37.187 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:37.188 +00:00] [INFO] [session.go:3945] ["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 09:24:37.188 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(6291456) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:37.191 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:37.189 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:37.192 +00:00] [INFO] [ddl.go:1182] ["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 09:24:37.189 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:37.206 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:37.189 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.215 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=11] [neededSchemaVersion=12] ["start time"=517.4µs] [gotSchemaVersion=12] [phyTblIDs="[24]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:37.219 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:37.219 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=25] [version=12] [2024/05/06 09:24:37.221 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=12] ["take time"=6.786506ms] [job="ID:25, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:24, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:37.189 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.234 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:37.189 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.239 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=25] [2024/05/06 09:24:37.239 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:37.239 +00:00] [INFO] [session.go:3945] ["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 09:24:37.243 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:37.241 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:37.243 +00:00] [INFO] [ddl.go:1182] ["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 09:24:37.241 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:37.254 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:37.241 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.258 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=12] [neededSchemaVersion=13] ["start time"=409.385µs] [gotSchemaVersion=13] [phyTblIDs="[26]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:37.259 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:37.259 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=27] [version=13] [2024/05/06 09:24:37.259 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=13] ["take time"=2.076085ms] [job="ID:27, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:26, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:37.241 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.281 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:37.241 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.286 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=27] [2024/05/06 09:24:37.286 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:37.286 +00:00] [INFO] [session.go:3945] ["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 09:24:37.289 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:37.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:37.289 +00:00] [INFO] [ddl.go:1182] ["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 09:24:37.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:37.298 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:37.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.301 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=13] [neededSchemaVersion=14] ["start time"=306.461µs] [gotSchemaVersion=14] [phyTblIDs="[28]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:37.302 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:37.302 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=29] [version=14] [2024/05/06 09:24:37.303 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=14] ["take time"=2.109563ms] [job="ID:29, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:28, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:37.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.312 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:37.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.316 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=29] [2024/05/06 09:24:37.317 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:37.317 +00:00] [INFO] [session.go:3945] ["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 09:24:37.323 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:37.321 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:37.323 +00:00] [INFO] [ddl.go:1182] ["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 09:24:37.321 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:37.347 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:37.321 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.351 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=14] [neededSchemaVersion=15] ["start time"=336.982µs] [gotSchemaVersion=15] [phyTblIDs="[30]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:37.352 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:37.352 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=31] [version=15] [2024/05/06 09:24:37.353 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=15] ["take time"=2.024432ms] [job="ID:31, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:30, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:37.321 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.365 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:37.321 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.370 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=31] [2024/05/06 09:24:37.370 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:37.370 +00:00] [INFO] [session.go:3945] ["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 09:24:37.374 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:37.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:37.374 +00:00] [INFO] [ddl.go:1182] ["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 09:24:37.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:37.386 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:37.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.389 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=15] [neededSchemaVersion=16] ["start time"=280.083µs] [gotSchemaVersion=16] [phyTblIDs="[32]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:37.390 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:37.390 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=33] [version=16] [2024/05/06 09:24:37.395 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=16] ["take time"=6.728448ms] [job="ID:33, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:32, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:37.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.411 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:37.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.416 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=33] [2024/05/06 09:24:37.416 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:37.417 +00:00] [INFO] [session.go:3945] ["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 09:24:37.420 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:37.419 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:37.420 +00:00] [INFO] [ddl.go:1182] ["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 09:24:37.419 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:37.435 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:37.419 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.447 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=16] [neededSchemaVersion=17] ["start time"=357.423µs] [gotSchemaVersion=17] [phyTblIDs="[34]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:37.450 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:37.450 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=35] [version=17] [2024/05/06 09:24:37.450 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=17] ["take time"=10.010917ms] [job="ID:35, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:34, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:37.419 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.462 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:37.419 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.467 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=35] [2024/05/06 09:24:37.467 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:37.467 +00:00] [INFO] [session.go:3945] ["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 09:24:37.471 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:37.469 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:37.471 +00:00] [INFO] [ddl.go:1182] ["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 09:24:37.469 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:37.498 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:37.469 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.501 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=17] [neededSchemaVersion=18] ["start time"=294.437µs] [gotSchemaVersion=18] [phyTblIDs="[36]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:37.503 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:37.503 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=37] [version=18] [2024/05/06 09:24:37.503 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=18] ["take time"=2.012332ms] [job="ID:37, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:36, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:37.469 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.515 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:37.469 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.520 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=37] [2024/05/06 09:24:37.520 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:37.521 +00:00] [INFO] [session.go:3945] ["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 09:24:37.524 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:37.522 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:37.524 +00:00] [INFO] [ddl.go:1182] ["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 09:24:37.522 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:37.533 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:37.522 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.539 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=18] [neededSchemaVersion=19] ["start time"=478.231µs] [gotSchemaVersion=19] [phyTblIDs="[38]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:37.541 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:37.541 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=39] [version=19] [2024/05/06 09:24:37.544 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=19] ["take time"=5.284224ms] [job="ID:39, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:38, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:37.522 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.565 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:37.522 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.570 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=39] [2024/05/06 09:24:37.570 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:37.572 +00:00] [INFO] [session.go:3945] ["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 09:24:37.580 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:37.574 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:37.581 +00:00] [INFO] [ddl.go:1182] ["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 09:24:37.574 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:37.586 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:37.574 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.590 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=19] [neededSchemaVersion=20] ["start time"=325.931µs] [gotSchemaVersion=20] [phyTblIDs="[40]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:37.591 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:37.591 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=41] [version=20] [2024/05/06 09:24:37.591 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=20] ["take time"=2.073908ms] [job="ID:41, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:40, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:37.574 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.598 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:37.574 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.603 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=41] [2024/05/06 09:24:37.603 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:37.603 +00:00] [INFO] [session.go:3945] ["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 09:24:37.606 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:37.605 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:37.606 +00:00] [INFO] [ddl.go:1182] ["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 09:24:37.605 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:37.619 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:37.605 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.621 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=20] [neededSchemaVersion=21] ["start time"=223.074µs] [gotSchemaVersion=21] [phyTblIDs="[42]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:37.623 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:37.623 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=43] [version=21] [2024/05/06 09:24:37.624 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=21] ["take time"=2.677155ms] [job="ID:43, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:42, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:37.605 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.642 +00:00] [WARN] [runaway.go:166] ["failed to start runaway manager loop, please check whether the bootstrap or update is finished"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [errorVerbose="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/planner/core.Preprocess\n\tpkg/planner/core/preprocess.go:141\ngithub.com/pingcap/tidb/pkg/executor.(*Compiler).Compile\n\tpkg/executor/compiler.go:67\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2089\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteInternalStmt\n\tpkg/session/session.go:1993\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecRestrictedSQL.func1\n\tpkg/session/session.go:1958\ngithub.com/pingcap/tidb/pkg/session.(*session).withRestrictedSQLExecutor\n\tpkg/session/session.go:1944\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecRestrictedSQL\n\tpkg/session/session.go:1948\ngithub.com/pingcap/tidb/pkg/domain.(*SystemTableReader).Read\n\tpkg/domain/runaway.go:655\ngithub.com/pingcap/tidb/pkg/domain.getRunawayWatchRecord\n\tpkg/domain/runaway.go:543\ngithub.com/pingcap/tidb/pkg/domain.(*runawaySyncer).getWatchRecord\n\tpkg/domain/runaway.go:526\ngithub.com/pingcap/tidb/pkg/domain.(*runawaySyncer).getNewWatchRecords\n\tpkg/domain/runaway.go:509\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).updateNewAndDoneWatch\n\tpkg/domain/runaway.go:177\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).runawayStartLoop\n\tpkg/domain/runaway.go:156\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:99\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [2024/05/06 09:24:37.644 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:37.605 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.648 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=43] [2024/05/06 09:24:37.649 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:37.649 +00:00] [INFO] [session.go:3945] ["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 09:24:37.652 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:37.65 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:37.652 +00:00] [INFO] [ddl.go:1182] ["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 09:24:37.65 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE TABLE IF NOT EXISTS mysql.opt_rule_blacklist (\n\t\tname \tCHAR(100) NOT NULL\n\t);"] [2024/05/06 09:24:37.663 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:37.65 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.670 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=21] [neededSchemaVersion=22] ["start time"=254.106µs] [gotSchemaVersion=22] [phyTblIDs="[44]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:37.673 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:37.673 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=45] [version=22] [2024/05/06 09:24:37.674 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=22] ["take time"=4.484761ms] [job="ID:45, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:44, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:37.65 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.685 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:37.65 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.690 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=45] [2024/05/06 09:24:37.690 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:37.690 +00:00] [INFO] [session.go:3945] ["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 09:24:37.694 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:37.692 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:37.694 +00:00] [INFO] [ddl.go:1182] ["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 09:24:37.692 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:37.704 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:37.692 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.708 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=22] [neededSchemaVersion=23] ["start time"=419.772µs] [gotSchemaVersion=23] [phyTblIDs="[46]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:37.711 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:37.711 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=47] [version=23] [2024/05/06 09:24:37.714 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=23] ["take time"=6.192657ms] [job="ID:47, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:46, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:37.692 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.724 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:37.692 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.732 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=47] [2024/05/06 09:24:37.732 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:37.733 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=23] [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 09:24:37.735 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:37.734 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:37.735 +00:00] [INFO] [ddl.go:1182] ["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 09:24:37.734 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:37.748 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:37.734 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.752 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=23] [neededSchemaVersion=24] ["start time"=274.794µs] [gotSchemaVersion=24] [phyTblIDs="[48]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:37.753 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:37.753 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=49] [version=24] [2024/05/06 09:24:37.754 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=24] ["take time"=2.04187ms] [job="ID:49, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:48, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:37.734 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.766 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:37.734 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.770 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=49] [2024/05/06 09:24:37.770 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:37.770 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=24] [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 09:24:37.773 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:37.772 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:37.774 +00:00] [INFO] [ddl.go:1182] ["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 09:24:37.772 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:37.785 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:37.772 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.790 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=24] [neededSchemaVersion=25] ["start time"=341.88µs] [gotSchemaVersion=25] [phyTblIDs="[50]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:37.797 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:37.798 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=51] [version=25] [2024/05/06 09:24:37.799 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=25] ["take time"=10.025908ms] [job="ID:51, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:50, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:37.772 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.808 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:37.772 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.812 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=51] [2024/05/06 09:24:37.812 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:37.813 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=25] [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 09:24:37.816 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:37.814 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:37.816 +00:00] [INFO] [ddl.go:1182] ["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 09:24:37.814 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:37.825 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:37.814 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.828 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=25] [neededSchemaVersion=26] ["start time"=272.771µs] [gotSchemaVersion=26] [phyTblIDs="[52]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:37.829 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:37.829 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=53] [version=26] [2024/05/06 09:24:37.830 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=26] ["take time"=2.041706ms] [job="ID:53, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:52, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:37.814 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.839 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:37.814 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.842 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=53] [2024/05/06 09:24:37.843 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:37.843 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=26] [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 09:24:37.846 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:37.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:37.846 +00:00] [INFO] [ddl.go:1182] ["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 09:24:37.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:37.857 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:37.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.864 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=26] [neededSchemaVersion=27] ["start time"=339.761µs] [gotSchemaVersion=27] [phyTblIDs="[54]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:37.866 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:37.866 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=55] [version=27] [2024/05/06 09:24:37.870 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=27] ["take time"=6.02714ms] [job="ID:55, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:54, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:37.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.879 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:37.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.885 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=55] [2024/05/06 09:24:37.885 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:37.886 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=27] [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 09:24:37.889 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:37.888 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:37.889 +00:00] [INFO] [ddl.go:1182] ["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 09:24:37.888 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:37.898 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:37.888 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.901 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=27] [neededSchemaVersion=28] ["start time"=252.969µs] [gotSchemaVersion=28] [phyTblIDs="[56]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:37.903 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:37.903 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=57] [version=28] [2024/05/06 09:24:37.903 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=28] ["take time"=2.009583ms] [job="ID:57, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:56, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:37.888 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.921 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:37.888 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.926 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=57] [2024/05/06 09:24:37.926 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:37.927 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=28] [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 09:24:37.927 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(19372) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:37.930 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:37.928 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:37.930 +00:00] [INFO] [ddl.go:1182] ["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 09:24:37.928 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:37.945 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:37.928 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.948 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=28] [neededSchemaVersion=29] ["start time"=312.937µs] [gotSchemaVersion=29] [phyTblIDs="[58]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:37.950 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:37.950 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=59] [version=29] [2024/05/06 09:24:37.950 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=29] ["take time"=2.121859ms] [job="ID:59, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:58, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:37.928 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.969 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:37.928 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.973 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=59] [2024/05/06 09:24:37.973 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:37.973 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=29] [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 09:24:37.977 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:37.975 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:37.977 +00:00] [INFO] [ddl.go:1182] ["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 09:24:37.975 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:37.990 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:37.975 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:37.995 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=29] [neededSchemaVersion=30] ["start time"=392.378µs] [gotSchemaVersion=30] [phyTblIDs="[60]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:37.996 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:37.996 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=61] [version=30] [2024/05/06 09:24:37.998 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=30] ["take time"=4.277938ms] [job="ID:61, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:60, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:37.975 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.007 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:37.975 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.017 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=61] [2024/05/06 09:24:38.017 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:38.018 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=30] [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 09:24:38.021 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:38.019 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:38.021 +00:00] [INFO] [ddl.go:1182] ["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 09:24:38.019 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:38.030 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:38.019 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.034 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=30] [neededSchemaVersion=31] ["start time"=362.334µs] [gotSchemaVersion=31] [phyTblIDs="[62]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:38.036 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:38.036 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=63] [version=31] [2024/05/06 09:24:38.038 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=31] ["take time"=4.02193ms] [job="ID:63, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:62, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:38.019 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.061 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:38.019 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.067 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=63] [2024/05/06 09:24:38.067 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:38.068 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=31] [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 09:24:38.072 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:38.07 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:38.072 +00:00] [INFO] [ddl.go:1182] ["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 09:24:38.07 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:38.084 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:38.07 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.094 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=31] [neededSchemaVersion=32] ["start time"=479.274µs] [gotSchemaVersion=32] [phyTblIDs="[64]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:38.096 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:38.096 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=65] [version=32] [2024/05/06 09:24:38.098 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=32] ["take time"=4.018195ms] [job="ID:65, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:64, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:38.07 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.104 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:38.07 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.109 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=65] [2024/05/06 09:24:38.109 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:38.109 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=32] [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 09:24:38.112 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:38.111 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:38.112 +00:00] [INFO] [ddl.go:1182] ["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 09:24:38.111 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE TABLE IF NOT EXISTS mysql.advisory_locks (\n\t\tlock_name VARCHAR(64) NOT NULL PRIMARY KEY\n\t);"] [2024/05/06 09:24:38.127 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:38.111 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.132 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=32] [neededSchemaVersion=33] ["start time"=217.866µs] [gotSchemaVersion=33] [phyTblIDs="[66]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:38.133 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:38.133 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=67] [version=33] [2024/05/06 09:24:38.136 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=33] ["take time"=4.881873ms] [job="ID:67, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:66, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:38.111 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.163 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:38.111 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.166 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=67] [2024/05/06 09:24:38.166 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:38.170 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:69, Type:create view, State:queueing, SchemaState:none, SchemaID:1, TableID:68, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:38.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:38.170 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:69, Type:create view, State:queueing, SchemaState:none, SchemaID:1, TableID:68, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:38.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE OR REPLACE VIEW mysql.tidb_mdl_view as (\n\t\tSELECT tidb_mdl_info.job_id,\n\t\t\tJSON_UNQUOTE(JSON_EXTRACT(cast(cast(job_meta as char) as json), \"$.schema_name\")) as db_name,\n\t\t\tJSON_UNQUOTE(JSON_EXTRACT(cast(cast(job_meta as char) as json), \"$.table_name\")) as table_name,\n\t\t\tJSON_UNQUOTE(JSON_EXTRACT(cast(cast(job_meta as char) as json), \"$.query\")) as query,\n\t\t\tsession_id,\n\t\t\tcluster_tidb_trx.start_time,\n\t\t\ttidb_decode_sql_digests(all_sql_digests, 4096) AS SQL_DIGESTS\n\t\tFROM mysql.tidb_ddl_job,\n\t\t\tmysql.tidb_mdl_info,\n\t\t\tinformation_schema.cluster_tidb_trx\n\t\tWHERE tidb_ddl_job.job_id=tidb_mdl_info.job_id\n\t\t\tAND CONCAT(',', tidb_mdl_info.table_ids, ',') REGEXP CONCAT(',', REPLACE(cluster_tidb_trx.related_table_ids, ',', '|'), ',') != 0\n\t);"] [2024/05/06 09:24:38.189 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, tp general"] [category=ddl] [jobID=69] [category=ddl] [job="ID:69, Type:create view, State:queueing, SchemaState:none, SchemaID:1, TableID:68, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:38.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.195 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=33] [neededSchemaVersion=34] ["start time"=323.529µs] [gotSchemaVersion=34] [phyTblIDs="[68]"] [actionTypes="[21]"] [diffTypes="[\"create view\"]"] [2024/05/06 09:24:38.196 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:38.196 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=69] [version=34] [2024/05/06 09:24:38.196 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=34] ["take time"=2.154356ms] [job="ID:69, Type:create view, State:done, SchemaState:public, SchemaID:1, TableID:68, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:38.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.202 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, tp general"] [category=ddl] [jobID=69] [job="ID:69, Type:create view, State:synced, SchemaState:public, SchemaID:1, TableID:68, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:38.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.229 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=69] [2024/05/06 09:24:38.229 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:38.230 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=34] [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 09:24:38.233 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:71, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:70, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:38.231 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:38.233 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:71, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:70, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:38.231 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:38.242 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, tp general"] [category=ddl] [jobID=71] [category=ddl] [job="ID:71, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:70, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:38.231 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.249 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=34] [neededSchemaVersion=35] ["start time"=308.431µs] [gotSchemaVersion=35] [phyTblIDs="[70]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:38.251 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:38.251 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=71] [version=35] [2024/05/06 09:24:38.251 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=35] ["take time"=2.404308ms] [job="ID:71, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:70, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:38.231 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.264 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, tp general"] [category=ddl] [jobID=71] [job="ID:71, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:70, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:38.231 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.268 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=71] [2024/05/06 09:24:38.268 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:38.268 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=35] [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 09:24:38.271 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:38.27 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:38.271 +00:00] [INFO] [ddl.go:1182] ["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 09:24:38.27 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:38.287 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:38.27 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.291 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=35] [neededSchemaVersion=36] ["start time"=410.215µs] [gotSchemaVersion=36] [phyTblIDs="[72]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:38.293 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:38.293 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=73] [version=36] [2024/05/06 09:24:38.294 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=36] ["take time"=4.064956ms] [job="ID:73, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:72, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:38.27 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.304 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:38.27 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.311 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=73] [2024/05/06 09:24:38.311 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:38.312 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=36] [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 09:24:38.314 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:38.313 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:38.314 +00:00] [INFO] [ddl.go:1182] ["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 09:24:38.313 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:38.329 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:38.313 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.334 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=36] [neededSchemaVersion=37] ["start time"=249.798µs] [gotSchemaVersion=37] [phyTblIDs="[74]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:38.335 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:38.335 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=75] [version=37] [2024/05/06 09:24:38.335 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=37] ["take time"=2.135244ms] [job="ID:75, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:74, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:38.313 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.348 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:38.313 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.352 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=75] [2024/05/06 09:24:38.352 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:38.352 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=37] [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 09:24:38.356 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:38.354 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:38.356 +00:00] [INFO] [ddl.go:1182] ["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 09:24:38.354 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:38.370 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:38.354 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.374 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=37] [neededSchemaVersion=38] ["start time"=544.641µs] [gotSchemaVersion=38] [phyTblIDs="[76]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:38.376 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:38.377 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=77] [version=38] [2024/05/06 09:24:38.378 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=38] ["take time"=4.072428ms] [job="ID:77, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:76, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:38.354 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.392 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:38.354 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.396 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=77] [2024/05/06 09:24:38.397 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:38.397 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=38] [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 09:24:38.402 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:38.4 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:38.402 +00:00] [INFO] [ddl.go:1182] ["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 09:24:38.4 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:38.412 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:38.4 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.417 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=38] [neededSchemaVersion=39] ["start time"=551.487µs] [gotSchemaVersion=39] [phyTblIDs="[78]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:38.418 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:38.418 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=79] [version=39] [2024/05/06 09:24:38.418 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=39] ["take time"=2.029366ms] [job="ID:79, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:78, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:38.4 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.438 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:38.4 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.445 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=79] [2024/05/06 09:24:38.445 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:38.445 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=39] [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 09:24:38.451 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:38.447 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:38.451 +00:00] [INFO] [ddl.go:1182] ["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 09:24:38.447 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:38.465 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:38.447 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.470 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=39] [neededSchemaVersion=40] ["start time"=552.634µs] [gotSchemaVersion=40] [phyTblIDs="[80]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:38.472 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:38.472 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=81] [version=40] [2024/05/06 09:24:38.474 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=40] ["take time"=4.03113ms] [job="ID:81, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:80, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:38.447 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.482 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:38.447 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.490 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=81] [2024/05/06 09:24:38.498 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:38.499 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=40] [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(261),\n\t\tstate VARCHAR(64) NOT NULL,\n\t\tpriority INT DEFAULT 1,\n\t\tcreate_time TIMESTAMP,\n\t\tstart_time TIMESTAMP,\n\t\tstate_update_time TIMESTAMP,\n\t\tend_time TIMESTAMP,\n\t\tmeta LONGBLOB,\n\t\tconcurrency INT(11),\n\t\tstep INT(11),\n\t\ttarget_scope VARCHAR(256) DEFAULT \"\",\n\t\terror BLOB,\n\t\tkey(state),\n \tUNIQUE KEY task_key(task_key)\n\t);"] [user=] [2024/05/06 09:24:38.503 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:38.501 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:38.503 +00:00] [INFO] [ddl.go:1182] ["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 09:24:38.501 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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(261),\n\t\tstate VARCHAR(64) NOT NULL,\n\t\tpriority INT DEFAULT 1,\n\t\tcreate_time TIMESTAMP,\n\t\tstart_time TIMESTAMP,\n\t\tstate_update_time TIMESTAMP,\n\t\tend_time TIMESTAMP,\n\t\tmeta LONGBLOB,\n\t\tconcurrency INT(11),\n\t\tstep INT(11),\n\t\ttarget_scope VARCHAR(256) DEFAULT \"\",\n\t\terror BLOB,\n\t\tkey(state),\n \tUNIQUE KEY task_key(task_key)\n\t);"] [2024/05/06 09:24:38.510 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:38.501 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.521 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=40] [neededSchemaVersion=41] ["start time"=583.402µs] [gotSchemaVersion=41] [phyTblIDs="[82]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:38.524 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:38.524 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=83] [version=41] [2024/05/06 09:24:38.525 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=41] ["take time"=5.075561ms] [job="ID:83, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:38.501 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.532 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:38.501 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.540 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=83] [2024/05/06 09:24:38.540 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:38.540 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=41] [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(261),\n\t\tstate VARCHAR(64) NOT NULL,\n\t\tpriority INT DEFAULT 1,\n\t\tcreate_time TIMESTAMP,\n\t\tstart_time TIMESTAMP,\n\t\tstate_update_time TIMESTAMP,\n\t\tend_time TIMESTAMP,\n\t\tmeta LONGBLOB,\n\t\tconcurrency INT(11),\n\t\tstep INT(11),\n\t\ttarget_scope VARCHAR(256) DEFAULT \"\",\n\t\terror BLOB,\n\t\tkey(state),\n \tUNIQUE KEY task_key(task_key)\n\t);"] [user=] [2024/05/06 09:24:38.544 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:38.542 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:38.544 +00:00] [INFO] [ddl.go:1182] ["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 09:24:38.542 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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(261),\n\t\tstate VARCHAR(64) NOT NULL,\n\t\tpriority INT DEFAULT 1,\n\t\tcreate_time TIMESTAMP,\n\t\tstart_time TIMESTAMP,\n\t\tstate_update_time TIMESTAMP,\n\t\tend_time TIMESTAMP,\n\t\tmeta LONGBLOB,\n\t\tconcurrency INT(11),\n\t\tstep INT(11),\n\t\ttarget_scope VARCHAR(256) DEFAULT \"\",\n\t\terror BLOB,\n\t\tkey(state),\n \tUNIQUE KEY task_key(task_key)\n\t);"] [2024/05/06 09:24:38.558 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:38.542 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.564 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=41] [neededSchemaVersion=42] ["start time"=564.816µs] [gotSchemaVersion=42] [phyTblIDs="[84]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:38.565 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:38.565 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=85] [version=42] [2024/05/06 09:24:38.568 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=42] ["take time"=4.420379ms] [job="ID:85, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:84, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:38.542 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.576 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:38.542 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.582 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=85] [2024/05/06 09:24:38.582 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:38.584 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=42] [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 09:24:38.589 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:38.586 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:38.589 +00:00] [INFO] [ddl.go:1182] ["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 09:24:38.586 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:38.600 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:38.586 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.608 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=42] [neededSchemaVersion=43] ["start time"=558.485µs] [gotSchemaVersion=43] [phyTblIDs="[86]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:38.610 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:38.610 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=87] [version=43] [2024/05/06 09:24:38.612 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=43] ["take time"=4.226472ms] [job="ID:87, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:86, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:38.586 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.626 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:38.586 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.632 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=87] [2024/05/06 09:24:38.632 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:38.633 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=43] [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 09:24:38.637 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:38.634 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:38.637 +00:00] [INFO] [ddl.go:1182] ["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 09:24:38.634 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:38.641 +00:00] [INFO] [info.go:1142] [SetTiFlashGroupConfig] [2024/05/06 09:24:38.651 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:38.634 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.656 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=43] [neededSchemaVersion=44] ["start time"=530.183µs] [gotSchemaVersion=44] [phyTblIDs="[88]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:38.658 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:38.658 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=89] [version=44] [2024/05/06 09:24:38.659 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=44] ["take time"=4.05032ms] [job="ID:89, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:88, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:38.634 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.671 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:38.634 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.675 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=89] [2024/05/06 09:24:38.675 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:38.676 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=44] [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 09:24:38.679 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:38.677 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:38.679 +00:00] [INFO] [ddl.go:1182] ["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 09:24:38.677 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:38.686 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:38.677 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.693 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=44] [neededSchemaVersion=45] ["start time"=485.982µs] [gotSchemaVersion=45] [phyTblIDs="[90]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:38.694 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:38.694 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=91] [version=45] [2024/05/06 09:24:38.694 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=45] ["take time"=2.178075ms] [job="ID:91, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:90, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:38.677 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.704 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:38.677 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.711 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=91] [2024/05/06 09:24:38.711 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:38.712 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=45] [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 09:24:38.716 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:38.714 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:38.716 +00:00] [INFO] [ddl.go:1182] ["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 09:24:38.714 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:38.727 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:38.714 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.732 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=45] [neededSchemaVersion=46] ["start time"=657.79µs] [gotSchemaVersion=46] [phyTblIDs="[92]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:38.734 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:38.734 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=93] [version=46] [2024/05/06 09:24:38.736 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=46] ["take time"=4.277061ms] [job="ID:93, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:92, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:38.714 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.743 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:38.714 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.748 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=93] [2024/05/06 09:24:38.748 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:38.748 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=46] [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 09:24:38.752 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:38.75 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:38.752 +00:00] [INFO] [ddl.go:1182] ["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 09:24:38.75 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:38.760 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:38.75 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.764 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=46] [neededSchemaVersion=47] ["start time"=403.981µs] [gotSchemaVersion=47] [phyTblIDs="[94]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:38.767 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:38.767 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=95] [version=47] [2024/05/06 09:24:38.768 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=47] ["take time"=4.041258ms] [job="ID:95, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:94, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:38.75 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.783 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:38.75 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.790 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=95] [2024/05/06 09:24:38.790 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:38.791 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=47] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.dist_framework_meta (\n host VARCHAR(261) NOT NULL PRIMARY KEY,\n role VARCHAR(64),\n cpu_count int default 0,\n keyspace_id bigint(8) NOT NULL DEFAULT -1\n );"] [user=] [2024/05/06 09:24:38.794 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:38.792 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:38.794 +00:00] [INFO] [ddl.go:1182] ["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 09:24:38.792 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE TABLE IF NOT EXISTS mysql.dist_framework_meta (\n host VARCHAR(261) NOT NULL PRIMARY KEY,\n role VARCHAR(64),\n cpu_count int default 0,\n keyspace_id bigint(8) NOT NULL DEFAULT -1\n );"] [2024/05/06 09:24:38.802 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:38.792 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.808 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=47] [neededSchemaVersion=48] ["start time"=513.906µs] [gotSchemaVersion=48] [phyTblIDs="[96]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:38.809 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:38.809 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=97] [version=48] [2024/05/06 09:24:38.810 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=48] ["take time"=2.621557ms] [job="ID:97, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:96, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:38.792 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.882 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:38.792 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.892 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=97] [2024/05/06 09:24:38.892 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:38.893 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=48] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.request_unit_by_group (\n\t\tstart_time TIMESTAMP(6) NOT NULL,\n\t\tend_time TIMESTAMP(6) NOT NULL,\n\t\tresource_group VARCHAR(32) NOT null,\n\t\ttotal_ru bigint(64) UNSIGNED NOT NULL,\n\t\tPRIMARY KEY (start_time, end_time, resource_group),\n\t\tKEY (resource_group)\n\t);"] [user=] [2024/05/06 09:24:38.896 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:38.895 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:38.897 +00:00] [INFO] [ddl.go:1182] ["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 09:24:38.895 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE TABLE IF NOT EXISTS mysql.request_unit_by_group (\n\t\tstart_time TIMESTAMP(6) NOT NULL,\n\t\tend_time TIMESTAMP(6) NOT NULL,\n\t\tresource_group VARCHAR(32) NOT null,\n\t\ttotal_ru bigint(64) UNSIGNED NOT NULL,\n\t\tPRIMARY KEY (start_time, end_time, resource_group),\n\t\tKEY (resource_group)\n\t);"] [2024/05/06 09:24:38.905 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, 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 09:24:38.895 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.908 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=48] [neededSchemaVersion=49] ["start time"=320.02µs] [gotSchemaVersion=49] [phyTblIDs="[98]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:38.918 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:38.918 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=99] [version=49] [2024/05/06 09:24:38.922 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=49] ["take time"=14.532896ms] [job="ID:99, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:98, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:38.895 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.930 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, 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 09:24:38.895 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.934 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=99] [2024/05/06 09:24:38.934 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:38.935 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=49] [cur_db=mysql] [sql="CREATE DATABASE IF NOT EXISTS sys;"] [user=] [2024/05/06 09:24:38.937 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:101, Type:create schema, State:queueing, SchemaState:none, SchemaID:100, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:38.936 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:38.937 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:101, Type:create schema, State:queueing, SchemaState:none, SchemaID:100, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:38.936 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE DATABASE IF NOT EXISTS sys;"] [2024/05/06 09:24:38.947 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, tp general"] [category=ddl] [jobID=101] [category=ddl] [job="ID:101, Type:create schema, State:queueing, SchemaState:none, SchemaID:100, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:38.936 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.948 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=49] [neededSchemaVersion=50] ["start time"=83.307µs] [gotSchemaVersion=50] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"create schema\"]"] [2024/05/06 09:24:38.949 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:38.949 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=101] [version=50] [2024/05/06 09:24:38.951 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=50] ["take time"=2.864636ms] [job="ID:101, Type:create schema, State:done, SchemaState:public, SchemaID:100, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:38.936 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.963 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, tp general"] [category=ddl] [jobID=101] [job="ID:101, Type:create schema, State:synced, SchemaState:public, SchemaID:100, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:38.936 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.966 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=101] [2024/05/06 09:24:38.966 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:38.969 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:103, Type:create view, State:queueing, SchemaState:none, SchemaID:100, TableID:102, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:38.968 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:38.969 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:103, Type:create view, State:queueing, SchemaState:none, SchemaID:100, TableID:102, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:38.968 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE OR REPLACE VIEW sys.schema_unused_indexes AS\n\t\tSELECT\n\t\t\ttable_schema as object_schema,\n\t\t\ttable_name as object_name,\n\t\t\tindex_name\n\t\tFROM information_schema.cluster_tidb_index_usage\n\t\tWHERE\n\t\t\ttable_schema not in ('sys', 'mysql', 'INFORMATION_SCHEMA', 'PERFORMANCE_SCHEMA') and\n\t\t\tindex_name != 'PRIMARY'\n\t\tGROUP BY table_schema, table_name, index_name\n\t\tHAVING\n\t\t\tsum(last_access_time) is null;"] [2024/05/06 09:24:38.978 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 21, tp general"] [category=ddl] [jobID=103] [category=ddl] [job="ID:103, Type:create view, State:queueing, SchemaState:none, SchemaID:100, TableID:102, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:38.968 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.985 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=50] [neededSchemaVersion=51] ["start time"=233.241µs] [gotSchemaVersion=51] [phyTblIDs="[102]"] [actionTypes="[21]"] [diffTypes="[\"create view\"]"] [2024/05/06 09:24:38.987 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:38.987 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=103] [version=51] [2024/05/06 09:24:38.990 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=51] ["take time"=4.878671ms] [job="ID:103, Type:create view, State:done, SchemaState:public, SchemaID:100, TableID:102, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:38.968 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:38.997 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 21, tp general"] [category=ddl] [jobID=103] [job="ID:103, Type:create view, State:synced, SchemaState:public, SchemaID:100, TableID:102, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:38.968 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:39.002 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=103] [2024/05/06 09:24:39.002 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:39.039 +00:00] [INFO] [bootstrap.go:745] ["bootstrap successful"] ["take time"=2.397279834s] [2024/05/06 09:24:39.042 +00:00] [INFO] [mock.go:106] ["owner manager is canceled"] [category=ddl] [ID=a34ed2b0-690a-4a4a-8f2e-7418392e7834] [ownerKey=/tidb/ddl/fg/owner] [2024/05/06 09:24:39.042 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:39.042 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 25, tp add index"] [category=ddl] ["take time"=2.329µs] [2024/05/06 09:24:39.042 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 22, tp add index"] [category=ddl] ["take time"=875ns] [2024/05/06 09:24:39.042 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 23, tp add index"] [category=ddl] ["take time"=861ns] [2024/05/06 09:24:39.042 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 24, tp add index"] [category=ddl] ["take time"=919ns] [2024/05/06 09:24:39.042 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:39.042 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 21, tp general"] [category=ddl] ["take time"=647ns] [2024/05/06 09:24:39.042 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:39.042 +00:00] [INFO] [delete_range.go:162] ["closing delRange"] [category=ddl] [2024/05/06 09:24:39.042 +00:00] [INFO] [session_pool.go:99] ["closing session pool"] [category=ddl] [2024/05/06 09:24:39.045 +00:00] [INFO] [ddl.go:951] ["DDL closed"] [category=ddl] [ID=a34ed2b0-690a-4a4a-8f2e-7418392e7834] ["take time"=6.134951ms] [2024/05/06 09:24:39.045 +00:00] [INFO] [ddl.go:769] ["stop DDL"] [category=ddl] [ID=a34ed2b0-690a-4a4a-8f2e-7418392e7834] [2024/05/06 09:24:39.046 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=mdlCheckLoop] [2024/05/06 09:24:39.046 +00:00] [INFO] [domain.go:907] ["loadSchemaInLoop exited."] [2024/05/06 09:24:39.046 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=loadSchemaInLoop] [2024/05/06 09:24:39.046 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=runawayStartLoop] [2024/05/06 09:24:39.046 +00:00] [INFO] [domain.go:761] ["topologySyncerKeeper exited."] [2024/05/06 09:24:39.046 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=topologySyncerKeeper] [2024/05/06 09:24:39.046 +00:00] [INFO] [domain.go:737] ["globalConfigSyncerKeeper exited."] [2024/05/06 09:24:39.046 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=globalConfigSyncerKeeper] [2024/05/06 09:24:39.046 +00:00] [INFO] [domain.go:711] ["infoSyncerKeeper exited."] [2024/05/06 09:24:39.046 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=infoSyncerKeeper] [2024/05/06 09:24:39.046 +00:00] [INFO] [domain.go:683] ["topNSlowQueryLoop exited."] [2024/05/06 09:24:39.046 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=topNSlowQueryLoop] [2024/05/06 09:24:39.046 +00:00] [INFO] [domain.go:1361] ["closestReplicaReadCheckLoop exited."] [2024/05/06 09:24:39.046 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=closestReplicaReadCheckLoop] [2024/05/06 09:24:39.046 +00:00] [INFO] [domain.go:1074] ["domain closed"] ["take time"=6.671134ms] [2024/05/06 09:24:39.048 +00:00] [INFO] [tidb.go:80] ["new domain"] [store=31725c4e-5630-413d-a4fa-3d635b8b06e4] ["ddl lease"=500ms] ["stats lease"=-1ns] [2024/05/06 09:24:39.060 +00:00] [WARN] [controller.go:198] ["[resource group controller] server does not save config, load config failed"] [2024/05/06 09:24:39.060 +00:00] [INFO] [controller.go:185] ["load resource controller config"] [config="{\"degraded-mode-wait-duration\":\"0s\",\"ltb-max-wait-duration\":\"30s\",\"wait-retry-interval\":\"50ms\",\"wait-retry-times\":10,\"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,\"WaitRetryInterval\":50000000,\"WaitRetryTimes\":10,\"DegradedModeWaitDuration\":0}"] [2024/05/06 09:24:39.090 +00:00] [INFO] [domain.go:315] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=51] ["start time"=29.862785ms] [2024/05/06 09:24:39.096 +00:00] [INFO] [domain.go:635] ["full load and reset schema validator"] [2024/05/06 09:24:39.096 +00:00] [INFO] [ddl.go:818] ["start DDL"] [category=ddl] [ID=f96ff87b-186e-4b8f-aaf2-3041820c0806] [runWorker=true] [2024/05/06 09:24:39.100 +00:00] [INFO] [ddl.go:777] ["start delRangeManager OK"] [category=ddl] ["is a emulator"=true] [2024/05/06 09:24:39.100 +00:00] [INFO] [delete_range.go:172] ["start delRange emulator"] [category=ddl] [2024/05/06 09:24:39.100 +00:00] [INFO] [job_table.go:334] ["get global state and global state change"] [category=ddl] [oldState=false] [currState=false] [2024/05/06 09:24:39.100 +00:00] [WARN] [env.go:51] ["initialize environment failed"] [category=ddl-ingest] ["storage limitation"="only support TiKV storage"] ["current storage"=unistore] ["lightning is initialized"=false] [2024/05/06 09:24:39.101 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=loadSchemaInLoop] [2024/05/06 09:24:39.101 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=mdlCheckLoop] [2024/05/06 09:24:39.101 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=topNSlowQueryLoop] [2024/05/06 09:24:39.101 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=infoSyncerKeeper] [2024/05/06 09:24:39.101 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=globalConfigSyncerKeeper] [2024/05/06 09:24:39.101 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=runawayStartLoop] [2024/05/06 09:24:39.101 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=requestUnitsWriterLoop] [2024/05/06 09:24:39.101 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=topologySyncerKeeper] [2024/05/06 09:24:39.101 +00:00] [INFO] [runaway.go:149] ["try to start runaway manager loop"] [2024/05/06 09:24:39.102 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=requestUnitsWriterLoop] [2024/05/06 09:24:39.101 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=closestReplicaReadCheckLoop] [2024/05/06 09:24:39.102 +00:00] [WARN] [domain.go:1326] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 09:24:39.103 +00:00] [INFO] [controller.go:447] ["[resource group controller] create resource group cost controller"] [name=default] [2024/05/06 09:24:39.110 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=globalBindHandleWorkerLoop] [2024/05/06 09:24:39.110 +00:00] [WARN] [sysvar_cache.go:49] ["sysvar cache is empty, triggering rebuild"] [2024/05/06 09:24:39.127 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=loadPrivilegeInLoop] [2024/05/06 09:24:39.130 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=LoadSysVarCacheLoop] [2024/05/06 09:24:39.132 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=dumpFileGcChecker] [2024/05/06 09:24:39.132 +00:00] [INFO] [domain.go:2070] ["dumpFileGcChecker started"] [2024/05/06 09:24:39.134 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=indexUsageWorker] [2024/05/06 09:24:39.134 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=quitStatsOwner] [2024/05/06 09:24:39.135 +00:00] [INFO] [task_manager.go:217] ["scale ttl worker"] [ttl-worker=job-manager] [ttl-worker=task-manager] [originalCount=0] [newCount=4] [2024/05/06 09:24:39.135 +00:00] [INFO] [task_manager.go:217] ["scale ttl worker"] [ttl-worker=job-manager] [ttl-worker=task-manager] [originalCount=0] [newCount=4] [2024/05/06 09:24:39.141 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=loadSigningCertLoop] [2024/05/06 09:24:39.142 +00:00] [INFO] [manager.go:113] ["build task executor manager"] [server-id=:4000] [total-cpu=16] [total-mem=342GiB] [2024/05/06 09:24:39.144 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=distTaskFrameworkLoop] [2024/05/06 09:24:39.145 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=6] [schemaVersion=51] [cur_db=test] [sql="create table t(a int default 0, b int default 0)"] [user=] [2024/05/06 09:24:39.146 +00:00] [INFO] [manager.go:146] ["task executor manager start"] [server-id=:4000] [2024/05/06 09:24:39.146 +00:00] [INFO] [domain.go:1525] ["dist task executor manager started"] [2024/05/06 09:24:39.148 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:105, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:39.147 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:39.148 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:105, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:39.147 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create table t(a int default 0, b int default 0)"] [2024/05/06 09:24:39.153 +00:00] [INFO] [job_table.go:334] ["get global state and global state change"] [category=ddl] [oldState=false] [currState=false] [2024/05/06 09:24:39.153 +00:00] [INFO] [job_table.go:349] ["the owner sets owner operator value"] [category=ddl] [ownerOp=none] [2024/05/06 09:24:39.161 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 26, tp general"] [category=ddl] [jobID=105] [conn=6] [category=ddl] [job="ID:105, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:39.147 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:39.165 +00:00] [ERROR] [domain.go:291] ["failed to load schema diff"] [error="builder's (v2=false) infoschema mismatch, return error to trigger full reload"] [errorVerbose="builder's (v2=false) infoschema mismatch, return error to trigger full reload\ngithub.com/pingcap/tidb/pkg/infoschema.(*Builder).InitWithOldInfoSchema\n\tpkg/infoschema/builder.go:798\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).tryLoadSchemaDiffs\n\tpkg/domain/domain.go:459\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).loadInfoSchema\n\tpkg/domain/domain.go:276\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).Reload\n\tpkg/domain/domain.go:606\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).loadSchemaInLoop\n\tpkg/domain/domain.go:919\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).Init.func2\n\tpkg/domain/domain.go:1287\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:99\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [stack="github.com/pingcap/tidb/pkg/domain.(*Domain).loadInfoSchema\n\tpkg/domain/domain.go:291\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).Reload\n\tpkg/domain/domain.go:606\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).loadSchemaInLoop\n\tpkg/domain/domain.go:919\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).Init.func2\n\tpkg/domain/domain.go:1287\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:99"] [2024/05/06 09:24:39.193 +00:00] [INFO] [domain.go:315] ["full load InfoSchema success"] [currentSchemaVersion=51] [neededSchemaVersion=52] ["start time"=28.490044ms] [2024/05/06 09:24:39.193 +00:00] [INFO] [domain.go:635] ["full load and reset schema validator"] [2024/05/06 09:24:39.195 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=105] [version=52] [2024/05/06 09:24:39.197 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=52] ["take time"=32.485907ms] [job="ID:105, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:39.147 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:39.203 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 26, tp general"] [category=ddl] [jobID=105] [conn=6] [job="ID:105, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:39.147 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:39.207 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=105] [2024/05/06 09:24:39.207 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:39.214 +00:00] [INFO] [set.go:170] ["set global var"] [conn=7] [name=tidb_schema_cache_size] [val=1024] [2024/05/06 09:24:39.215 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=6] [schemaVersion=52] [cur_db=test] [sql="alter table t add unique index idx((a*b+1))"] [user=] [2024/05/06 09:24:39.217 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:106, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:39.217 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:106, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add unique index idx((a*b+1))"] [2024/05/06 09:24:39.241 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:106, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:39.241 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 27, tp add index"] [category=ddl] [jobID=106] [conn=6] [category=ddl] [job="ID:106, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:39.242 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:106, Type:add index, State:running, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":1,\"idx_name\":{\"O\":\"idx\",\"L\":\"idx\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"_V$_idx_0\",\"L\":\"_v$_idx_0\"},\"offset\":2,\"length\":-1}],\"state\":0,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":true,\"is_primary\":false,\"is_invisible\":false,\"is_global\":false,\"mv_index\":false}"] [2024/05/06 09:24:39.242 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:24:39.242 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:106, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:39.244 +00:00] [ERROR] [domain.go:291] ["failed to load schema diff"] [error="builder's (v2=true) infoschema mismatch, return error to trigger full reload"] [errorVerbose="builder's (v2=true) infoschema mismatch, return error to trigger full reload\ngithub.com/pingcap/tidb/pkg/infoschema.(*Builder).InitWithOldInfoSchema\n\tpkg/infoschema/builder.go:798\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).tryLoadSchemaDiffs\n\tpkg/domain/domain.go:459\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).loadInfoSchema\n\tpkg/domain/domain.go:276\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).Reload\n\tpkg/domain/domain.go:606\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).loadSchemaInLoop\n\tpkg/domain/domain.go:919\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).Init.func2\n\tpkg/domain/domain.go:1287\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:99\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [stack="github.com/pingcap/tidb/pkg/domain.(*Domain).loadInfoSchema\n\tpkg/domain/domain.go:291\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).Reload\n\tpkg/domain/domain.go:606\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).loadSchemaInLoop\n\tpkg/domain/domain.go:919\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).Init.func2\n\tpkg/domain/domain.go:1287\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:99"] [2024/05/06 09:24:39.321 +00:00] [INFO] [domain.go:315] ["full load InfoSchema success"] [currentSchemaVersion=52] [neededSchemaVersion=53] ["start time"=77.120144ms] [2024/05/06 09:24:39.326 +00:00] [INFO] [domain.go:635] ["full load and reset schema validator"] [2024/05/06 09:24:39.328 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=106] [version=53] [2024/05/06 09:24:39.330 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=53] ["take time"=86.388676ms] [job="ID:106, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:39.331 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:106, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:39.346 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:106, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:39.346 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 27, tp add index"] [category=ddl] [jobID=106] [conn=6] [category=ddl] [job="ID:106, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:39.347 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:106, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:39.349 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=53] [neededSchemaVersion=54] ["start time"=394.602µs] [gotSchemaVersion=54] [phyTblIDs="[104]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:39.350 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=106] [version=54] [2024/05/06 09:24:39.352 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=54] ["take time"=4.023852ms] [job="ID:106, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:39.356 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:106, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:39.372 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:106, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:39.372 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 29, tp add index"] [category=ddl] [jobID=106] [conn=6] [category=ddl] [job="ID:106, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:39.373 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:106, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:39.376 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=54] [neededSchemaVersion=55] ["start time"=406.262µs] [gotSchemaVersion=55] [phyTblIDs="[104]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:39.380 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=106] [version=55] [2024/05/06 09:24:39.381 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=55] ["take time"=6.251161ms] [job="ID:106, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:39.382 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:106, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:39.396 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:106, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:39.396 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 30, tp add index"] [category=ddl] [jobID=106] [conn=6] [category=ddl] [job="ID:106, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:39.397 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=106] [table=t] ["ingest mode"=false] [index=idx] [2024/05/06 09:24:39.399 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=106] [physicalTableID=104] [startKey=7480000000000000685f728000000000000001] [endKey=7480000000000000685f72800000000000139800] [2024/05/06 09:24:39.409 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:106, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573677799047168, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:39.410 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=106] [2024/05/06 09:24:39.410 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:106, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573677799047168, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:39.422 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:106, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573677799047168, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:39.424 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 28, tp add index"] [category=ddl] [jobID=106] [conn=6] [category=ddl] [job="ID:106, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573677799047168, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:39.424 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=106] [table=t] ["ingest mode"=false] [index=idx] [2024/05/06 09:24:39.426 +00:00] [INFO] [index.go:1931] ["start to add table index"] [category=ddl] [job="ID:106, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:6, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573677799047168, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:1,StartKey:7480000000000000685f728000000000000001,EndKey:7480000000000000685f72800000000000139800,First:false,PhysicalTableID:104,Ingest mode:false"] [2024/05/06 09:24:39.432 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=104] ["start key"=7480000000000000685f728000000000000001] ["end key"=7480000000000000685f72800000000000139800] [2024/05/06 09:24:39.432 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="add index"] [workerCnt=4] [regionCnt=1] [startKey=7480000000000000685f728000000000000001] [endKey=7480000000000000685f72800000000000139800] [2024/05/06 09:24:39.433 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=104] ["end key"=7480000000000000685f72800000000000139800] ["current end key"=7480000000000000685f72800000000000139800] [2024/05/06 09:24:39.433 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 3, tp add index"] [jobID=106] [2024/05/06 09:24:39.433 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 2, tp add index"] [jobID=106] [2024/05/06 09:24:39.434 +00:00] [INFO] [backfilling.go:330] ["backfill worker finish task"] [category=ddl] [worker="backfill-worker 0, tp add index"] [task="taskID: 1, physicalTableID: 104, range: [7480000000000000685f728000000000000001, 7480000000000000685f72800000000000139800), jobID: 106"] ["added count"=6] ["scan count"=6] ["next key"=7480000000000000685f72800000000000139800] ["take time"=930.883µs] [2024/05/06 09:24:39.435 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=106] [2024/05/06 09:24:39.433 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 1, tp add index"] [jobID=106] [2024/05/06 09:24:39.435 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:1,TypeKey:_idx_] ["total added count"=6] ["start key"=7480000000000000685f728000000000000001] [2024/05/06 09:24:39.435 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=6] [2024/05/06 09:24:39.500 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:106, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:6, ArgLen:6, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573677799047168, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:39.502 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=55] [neededSchemaVersion=56] ["start time"=404.593µs] [gotSchemaVersion=56] [phyTblIDs="[104]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:39.503 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=106] [version=56] [2024/05/06 09:24:39.506 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=56] ["take time"=4.280696ms] [job="ID:106, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:6, ArgLen:6, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573677799047168, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:39.506 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:106, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:6, ArgLen:6, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573677799047168, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:39.514 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:106, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:6, ArgLen:0, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573677799047168, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:39.514 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 27, tp add index"] [category=ddl] [jobID=106] [conn=6] [category=ddl] [job="ID:106, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:6, ArgLen:0, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573677799047168, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:39.514 +00:00] [INFO] [index.go:880] ["index backfill state ready to merge"] [category=ddl] ["job ID"=106] [table=t] [index=idx] [2024/05/06 09:24:39.515 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:106, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:6, ArgLen:6, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:39.517 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=56] [neededSchemaVersion=57] ["start time"=370.566µs] [gotSchemaVersion=57] [phyTblIDs="[104]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:39.519 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=106] [version=57] [2024/05/06 09:24:39.521 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=57] ["take time"=5.09581ms] [job="ID:106, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:6, ArgLen:6, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:39.524 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:106, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:6, ArgLen:6, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:39.530 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:106, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:6, ArgLen:0, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:39.530 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 29, tp add index"] [category=ddl] [jobID=106] [conn=6] [category=ddl] [job="ID:106, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:6, ArgLen:0, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:39.531 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=106] [physicalTableID=104] [startKey=7480000000000000685f69ffff000000000001] [endKey=7480000000000000685f69ffff000000000001ff] [2024/05/06 09:24:39.533 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:106, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:6, ArgLen:6, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573677834174464, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:39.535 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=106] [2024/05/06 09:24:39.535 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:106, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:6, ArgLen:6, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573677834174464, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:39.544 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:106, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:6, ArgLen:0, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573677834174464, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:39.544 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 28, tp add index"] [category=ddl] [jobID=106] [conn=6] [category=ddl] [job="ID:106, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:6, ArgLen:0, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573677834174464, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:39.551 +00:00] [INFO] [index.go:1928] ["start to merge temp index"] [category=ddl] [job="ID:106, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:6, ArgLen:6, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573677834174464, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:1,StartKey:7480000000000000685f69ffff000000000001,EndKey:7480000000000000685f69ffff000000000001ff,First:false,PhysicalTableID:104,Ingest mode:false"] [2024/05/06 09:24:39.552 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=104] ["start key"=7480000000000000685f69ffff000000000001] ["end key"=7480000000000000685f69ffff000000000001ff] [2024/05/06 09:24:39.553 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="merge temporary index"] [workerCnt=4] [regionCnt=1] [startKey=7480000000000000685f69ffff000000000001] [endKey=7480000000000000685f69ffff000000000001ff] [2024/05/06 09:24:39.553 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=104] ["end key"=7480000000000000685f69ffff000000000001ff] ["current end key"=7480000000000000685f69ffff00000000000103800000000000007600] [2024/05/06 09:24:39.554 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 2, tp merge temporary index"] [jobID=106] [2024/05/06 09:24:39.554 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 1, tp merge temporary index"] [jobID=106] [2024/05/06 09:24:39.554 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 3, tp merge temporary index"] [jobID=106] [2024/05/06 09:24:39.556 +00:00] [INFO] [backfilling.go:330] ["backfill worker finish task"] [category=ddl] [worker="backfill-worker 0, tp merge temporary index"] [task="taskID: 1, physicalTableID: 104, range: [7480000000000000685f69ffff000000000001, 7480000000000000685f69ffff00000000000103800000000000007600), jobID: 106"] ["added count"=7] ["scan count"=12] ["next key"=7480000000000000685f69ffff0000000000010380000000000000760000] ["take time"=2.665223ms] [2024/05/06 09:24:39.556 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp merge temporary index"] [jobID=106] [2024/05/06 09:24:39.556 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:1,TypeKey:_idx_] ["total added count"=13] ["start key"=7480000000000000685f69ffff000000000001] [2024/05/06 09:24:39.556 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=13] [2024/05/06 09:24:39.626 +00:00] [INFO] [index.go:781] ["run add index job done"] [category=ddl] [charset=utf8mb4] [collation=utf8mb4_bin] [2024/05/06 09:24:39.626 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:106, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:104, RowCount:13, ArgLen:3, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573677834174464, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:39.628 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=57] [neededSchemaVersion=58] ["start time"=423.631µs] [gotSchemaVersion=58] [phyTblIDs="[104]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:24:39.629 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=106] [version=58] [2024/05/06 09:24:39.630 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=58] ["take time"=2.045143ms] [job="ID:106, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:104, RowCount:13, ArgLen:3, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573677834174464, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:39.630 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:106, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:104, RowCount:13, ArgLen:3, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573677834174464, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:39.638 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=106] [tableID=104] [indexIDs="[9223090561878065153]"] [comment="add index: physical table ID(s)"] [2024/05/06 09:24:39.639 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=106] [jobType="add index"] [2024/05/06 09:24:39.640 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 29, tp add index"] [category=ddl] [jobID=106] [conn=6] [job="ID:106, Type:add index, State:synced, SchemaState:public, SchemaID:2, TableID:104, RowCount:13, ArgLen:3, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573677834174464, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:39.658 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=106] [elementID=1] [startKey=7480000000000000685f69ffff000000000001] [endKey=7480000000000000685f69ffff000000000002] [2024/05/06 09:24:39.659 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:106, Type:add index, State:synced, SchemaState:public, SchemaID:2, TableID:104, RowCount:13, ArgLen:3, start time: 2024-05-06 09:24:39.216 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449573677834174464, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:39.660 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=106] [2024/05/06 09:24:39.660 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:39.661 +00:00] [INFO] [executor.go:2527] ["fast check table by group"] ["table name"=t] ["index name"=idx] [times=1] ["current offset"=0] ["current mod"=1] ["table sql"="select /*+ read_from_storage(tikv[`test`.`t`]) */ bit_xor(crc32(md5(concat_ws(0x2, `_tidb_rowid`, `a` * `b` + 1)))), ((cast(crc32(md5(concat_ws(0x2, `_tidb_rowid`))) as signed) - 0) div 1 % 1024), count(*) from `test`.`t` use index() where 0 = 0 group by ((cast(crc32(md5(concat_ws(0x2, `_tidb_rowid`))) as signed) - 0) div 1 % 1024)"] ["index sql"="select bit_xor(crc32(md5(concat_ws(0x2, `_tidb_rowid`, `a` * `b` + 1)))), ((cast(crc32(md5(concat_ws(0x2, `_tidb_rowid`))) as signed) - 0) div 1 % 1024), count(*) from `test`.`t` use index(`idx`) where 0 = 0 group by ((cast(crc32(md5(concat_ws(0x2, `_tidb_rowid`))) as signed) - 0) div 1 % 1024)"] [2024/05/06 09:24:39.670 +00:00] [INFO] [mock.go:106] ["owner manager is canceled"] [category=ddl] [ID=f96ff87b-186e-4b8f-aaf2-3041820c0806] [ownerKey=/tidb/ddl/fg/owner] [2024/05/06 09:24:39.670 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:39.670 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 28, tp add index"] [category=ddl] ["take time"=2.529µs] [2024/05/06 09:24:39.670 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 29, tp add index"] [category=ddl] ["take time"=1.095µs] [2024/05/06 09:24:39.670 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 27, tp add index"] [category=ddl] ["take time"=1.308µs] [2024/05/06 09:24:39.670 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 30, tp add index"] [category=ddl] ["take time"=1.162µs] [2024/05/06 09:24:39.671 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:39.671 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 26, tp general"] [category=ddl] ["take time"=2.918µs] [2024/05/06 09:24:39.671 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:39.671 +00:00] [INFO] [delete_range.go:162] ["closing delRange"] [category=ddl] [2024/05/06 09:24:39.671 +00:00] [INFO] [session_pool.go:99] ["closing session pool"] [category=ddl] [2024/05/06 09:24:39.671 +00:00] [INFO] [ddl.go:951] ["DDL closed"] [category=ddl] [ID=f96ff87b-186e-4b8f-aaf2-3041820c0806] ["take time"=1.746674ms] [2024/05/06 09:24:39.671 +00:00] [INFO] [ddl.go:769] ["stop DDL"] [category=ddl] [ID=f96ff87b-186e-4b8f-aaf2-3041820c0806] [2024/05/06 09:24:39.671 +00:00] [INFO] [domain.go:1026] ["stopping ttlJobManager"] [2024/05/06 09:24:39.672 +00:00] [INFO] [task_manager.go:194] ["shrink ttl worker"] [ttl-worker=job-manager] [ttl-worker=task-manager] [originalCount=4] [newCount=0] [2024/05/06 09:24:39.672 +00:00] [INFO] [scan.go:309] ["ttlScanWorker loop exited."] [2024/05/06 09:24:39.672 +00:00] [INFO] [scan.go:309] ["ttlScanWorker loop exited."] [2024/05/06 09:24:39.672 +00:00] [INFO] [scan.go:309] ["ttlScanWorker loop exited."] [2024/05/06 09:24:39.672 +00:00] [INFO] [scan.go:309] ["ttlScanWorker loop exited."] [2024/05/06 09:24:39.672 +00:00] [INFO] [task_manager.go:194] ["shrink ttl worker"] [ttl-worker=job-manager] [ttl-worker=task-manager] [originalCount=4] [newCount=0] [2024/05/06 09:24:39.672 +00:00] [INFO] [del.go:261] ["ttlDeleteWorker loop exited."] [2024/05/06 09:24:39.672 +00:00] [INFO] [del.go:261] ["ttlDeleteWorker loop exited."] [2024/05/06 09:24:39.672 +00:00] [INFO] [del.go:261] ["ttlDeleteWorker loop exited."] [2024/05/06 09:24:39.672 +00:00] [INFO] [del.go:261] ["ttlDeleteWorker loop exited."] [2024/05/06 09:24:39.672 +00:00] [INFO] [job_manager.go:174] ["ttlJobManager loop exited."] [ttl-worker=job-manager] [2024/05/06 09:24:39.672 +00:00] [INFO] [domain.go:1037] ["ttlJobManager exited."] [2024/05/06 09:24:39.672 +00:00] [INFO] [manager.go:280] ["recoverMetaLoop done"] [server-id=:4000] [2024/05/06 09:24:39.672 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=mdlCheckLoop] [2024/05/06 09:24:39.672 +00:00] [INFO] [domain.go:907] ["loadSchemaInLoop exited."] [2024/05/06 09:24:39.672 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=loadSchemaInLoop] [2024/05/06 09:24:39.672 +00:00] [INFO] [domain.go:1700] ["loadPrivilegeInLoop exited."] [2024/05/06 09:24:39.672 +00:00] [INFO] [domain.go:1750] ["LoadSysVarCacheLoop exited."] [2024/05/06 09:24:39.673 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=loadPrivilegeInLoop] [2024/05/06 09:24:39.673 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=LoadSysVarCacheLoop] [2024/05/06 09:24:39.673 +00:00] [INFO] [domain.go:1527] ["stopping dist task executor manager"] [2024/05/06 09:24:39.673 +00:00] [INFO] [mock.go:106] ["owner manager is canceled"] [category=ddl] [ID=f96ff87b-186e-4b8f-aaf2-3041820c0806] [ownerKey=/tidb/bindinfo/owner] [2024/05/06 09:24:39.673 +00:00] [INFO] [domain.go:1889] ["globalBindHandleWorkerLoop exited."] [2024/05/06 09:24:39.673 +00:00] [INFO] [stats_syncload.go:202] ["SubLoadWorker exited."] [2024/05/06 09:24:39.673 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=globalBindHandleWorkerLoop] [2024/05/06 09:24:39.673 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=loadSigningCertLoop] [2024/05/06 09:24:39.673 +00:00] [INFO] [stats_syncload.go:202] ["SubLoadWorker exited."] [2024/05/06 09:24:39.673 +00:00] [INFO] [stats_syncload.go:202] ["SubLoadWorker exited."] [2024/05/06 09:24:39.673 +00:00] [INFO] [domain.go:761] ["topologySyncerKeeper exited."] [2024/05/06 09:24:39.673 +00:00] [INFO] [stats_syncload.go:202] ["SubLoadWorker exited."] [2024/05/06 09:24:39.673 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=topologySyncerKeeper] [2024/05/06 09:24:39.673 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=runawayStartLoop] [2024/05/06 09:24:39.673 +00:00] [INFO] [mock.go:106] ["owner manager is canceled"] [category=ddl] [ID=f96ff87b-186e-4b8f-aaf2-3041820c0806] [ownerKey=/tidb/stats/owner] [2024/05/06 09:24:39.673 +00:00] [INFO] [domain.go:737] ["globalConfigSyncerKeeper exited."] [2024/05/06 09:24:39.673 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=quitStatsOwner] [2024/05/06 09:24:39.673 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=globalConfigSyncerKeeper] [2024/05/06 09:24:39.673 +00:00] [INFO] [stats_syncload.go:202] ["SubLoadWorker exited."] [2024/05/06 09:24:39.673 +00:00] [INFO] [domain.go:711] ["infoSyncerKeeper exited."] [2024/05/06 09:24:39.673 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=infoSyncerKeeper] [2024/05/06 09:24:39.673 +00:00] [INFO] [domain.go:2352] ["indexUsageWorker exited."] [2024/05/06 09:24:39.673 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=indexUsageWorker] [2024/05/06 09:24:39.673 +00:00] [INFO] [domain.go:2074] ["dumpFileGcChecker exited."] [2024/05/06 09:24:39.673 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=dumpFileGcChecker] [2024/05/06 09:24:39.673 +00:00] [INFO] [domain.go:683] ["topNSlowQueryLoop exited."] [2024/05/06 09:24:39.673 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=topNSlowQueryLoop] [2024/05/06 09:24:39.673 +00:00] [INFO] [domain.go:1361] ["closestReplicaReadCheckLoop exited."] [2024/05/06 09:24:39.673 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=closestReplicaReadCheckLoop] [2024/05/06 09:24:39.673 +00:00] [INFO] [manager.go:179] ["handle tasks loop done"] [server-id=:4000] [2024/05/06 09:24:39.673 +00:00] [INFO] [domain.go:1529] ["dist task executor manager stopped"] [2024/05/06 09:24:39.673 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=distTaskFrameworkLoop] [2024/05/06 09:24:39.673 +00:00] [INFO] [domain.go:1074] ["domain closed"] ["take time"=3.462819ms] [2024/05/06 09:24:39.677 +00:00] [INFO] [db.go:567] ["Closing database"] [2024/05/06 09:24:39.677 +00:00] [INFO] [db.go:592] ["Memtable flushed"] [2024/05/06 09:24:39.677 +00:00] [INFO] [db.go:596] ["Compaction finished"] [2024/05/06 09:24:39.677 +00:00] [INFO] [db.go:615] ["BlobManager finished"] [2024/05/06 09:24:39.677 +00:00] [INFO] [db.go:619] ["ResourceManager finished"] [2024/05/06 09:24:39.677 +00:00] [INFO] [db.go:625] ["Waiting for closer"] --- PASS: TestCreateUniqueExpressionIndex (3.08s) === RUN TestAutoIncrementTableOption [2024/05/06 09:24:39.686 +00:00] [INFO] [store_cache.go:510] ["change store resolve state"] [store=1] [addr=store1] [from=unresolved] [to=resolved] [liveness-state=reachable] [2024/05/06 09:24:39.687 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:39.687 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:39.687 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:39.687 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:39.688 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:39.690 +00:00] [INFO] [tidb.go:80] ["new domain"] [store=c4aeb35c-395e-4917-a0d2-bb9f80bcc175] ["ddl lease"=500ms] ["stats lease"=-1ns] [2024/05/06 09:24:39.704 +00:00] [WARN] [runaway.go:462] ["cannot setup up resource controller, not using tikv storage"] [2024/05/06 09:24:39.704 +00:00] [WARN] [domain.go:245] ["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:335\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).loadInfoSchema\n\tpkg/domain/domain.go:242\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).Reload\n\tpkg/domain/domain.go:606\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).Init\n\tpkg/domain/domain.go:1260\ngithub.com/pingcap/tidb/pkg/session.(*domainMap).Get.func1\n\tpkg/session/tidb.go:92\ngithub.com/pingcap/tidb/pkg/util.RunWithRetry\n\tpkg/util/misc.go:70\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:3620\ngithub.com/pingcap/tidb/pkg/session.createSession\n\tpkg/session/session.go:3612\ngithub.com/pingcap/tidb/pkg/session.runInBootstrapSession\n\tpkg/session/session.go:3562\ngithub.com/pingcap/tidb/pkg/session.bootstrapSessionImpl\n\tpkg/session/session.go:3346\ngithub.com/pingcap/tidb/pkg/session.BootstrapSession\n\tpkg/session/session.go:3312\ngithub.com/pingcap/tidb/pkg/testkit.bootstrap\n\tpkg/testkit/mockstore.go:294\ngithub.com/pingcap/tidb/pkg/testkit.CreateMockStoreAndDomain\n\tpkg/testkit/mockstore.go:265\ngithub.com/pingcap/tidb/pkg/testkit.CreateMockStore\n\tpkg/testkit/mockstore.go:72\ngithub.com/pingcap/tidb/pkg/ddl_test.TestAutoIncrementTableOption\n\tpkg/ddl/db_integration_test.go:2041\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [version=0] [2024/05/06 09:24:39.765 +00:00] [INFO] [domain.go:315] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=0] ["start time"=60.15205ms] [2024/05/06 09:24:39.765 +00:00] [INFO] [domain.go:635] ["full load and reset schema validator"] [2024/05/06 09:24:39.766 +00:00] [INFO] [ddl.go:818] ["start DDL"] [category=ddl] [ID=70dcd1ae-6ef7-4fb1-98a4-d01b846e40c1] [runWorker=true] [2024/05/06 09:24:39.766 +00:00] [INFO] [ddl.go:777] ["start delRangeManager OK"] [category=ddl] ["is a emulator"=true] [2024/05/06 09:24:39.766 +00:00] [WARN] [env.go:51] ["initialize environment failed"] [category=ddl-ingest] ["storage limitation"="only support TiKV storage"] ["current storage"=unistore] ["lightning is initialized"=false] [2024/05/06 09:24:39.766 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=loadSchemaInLoop] [2024/05/06 09:24:39.766 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=mdlCheckLoop] [2024/05/06 09:24:39.766 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=topNSlowQueryLoop] [2024/05/06 09:24:39.766 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=infoSyncerKeeper] [2024/05/06 09:24:39.766 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=globalConfigSyncerKeeper] [2024/05/06 09:24:39.766 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=runawayStartLoop] [2024/05/06 09:24:39.766 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=requestUnitsWriterLoop] [2024/05/06 09:24:39.766 +00:00] [INFO] [runaway.go:149] ["try to start runaway manager loop"] [2024/05/06 09:24:39.766 +00:00] [INFO] [delete_range.go:172] ["start delRange emulator"] [category=ddl] [2024/05/06 09:24:39.766 +00:00] [INFO] [job_table.go:334] ["get global state and global state change"] [category=ddl] [oldState=false] [currState=false] [2024/05/06 09:24:39.766 +00:00] [INFO] [job_table.go:349] ["the owner sets owner operator value"] [category=ddl] [ownerOp=none] [2024/05/06 09:24:39.766 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=topologySyncerKeeper] [2024/05/06 09:24:39.766 +00:00] [WARN] [domain.go:1326] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 09:24:39.766 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=requestUnitsWriterLoop] [2024/05/06 09:24:39.767 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=0] [cur_db=mysql] [sql="CREATE DATABASE IF NOT EXISTS test"] [user=] [2024/05/06 09:24:39.770 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:39.769 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:39.770 +00:00] [INFO] [ddl.go:1182] ["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 09:24:39.769 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE DATABASE IF NOT EXISTS test"] [2024/05/06 09:24:39.778 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:39.769 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:39.805 +00:00] [INFO] [domain.go:315] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=1] ["start time"=25.100742ms] [2024/05/06 09:24:39.815 +00:00] [INFO] [domain.go:635] ["full load and reset schema validator"] [2024/05/06 09:24:39.816 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:39.816 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=3] [version=1] [2024/05/06 09:24:39.816 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=1] ["take time"=36.555658ms] [job="ID:3, Type:create schema, State:done, SchemaState:public, SchemaID:2, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:39.769 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:39.829 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:39.769 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:39.832 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=3] [2024/05/06 09:24:39.832 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:39.832 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=1] [cur_db=mysql] [sql="CREATE DATABASE IF NOT EXISTS `mysql`"] [user=] [2024/05/06 09:24:39.833 +00:00] [INFO] [session.go:3945] ["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 09:24:39.839 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:39.835 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:39.839 +00:00] [INFO] [ddl.go:1182] ["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 09:24:39.835 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:39.849 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:39.835 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:39.860 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=1] [neededSchemaVersion=2] ["start time"=1.256806ms] [gotSchemaVersion=2] [phyTblIDs="[4]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:39.862 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:39.862 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=5] [version=2] [2024/05/06 09:24:39.863 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=2] ["take time"=4.044089ms] [job="ID:5, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:4, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:39.835 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:39.872 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:39.835 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:39.883 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=5] [2024/05/06 09:24:39.883 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:39.883 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:39.885 +00:00] [INFO] [session.go:3945] ["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 09:24:39.893 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:39.886 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:39.893 +00:00] [INFO] [ddl.go:1182] ["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 09:24:39.886 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:39.918 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:39.886 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:39.921 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=2] [neededSchemaVersion=3] ["start time"=301.807µs] [gotSchemaVersion=3] [phyTblIDs="[6]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:39.923 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:39.923 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=7] [version=3] [2024/05/06 09:24:39.923 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=3] ["take time"=2.008866ms] [job="ID:7, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:6, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:39.886 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:39.932 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:39.886 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:39.936 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=7] [2024/05/06 09:24:39.936 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:39.937 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:39.937 +00:00] [INFO] [session.go:3945] ["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 09:24:39.941 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:39.94 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:39.941 +00:00] [INFO] [ddl.go:1182] ["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 09:24:39.94 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:39.970 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:39.94 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:39.977 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=3] [neededSchemaVersion=4] ["start time"=282.011µs] [gotSchemaVersion=4] [phyTblIDs="[8]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:39.978 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:39.979 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=9] [version=4] [2024/05/06 09:24:39.982 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=4] ["take time"=5.560172ms] [job="ID:9, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:8, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:39.94 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:39.994 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:39.94 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:39.998 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=9] [2024/05/06 09:24:39.998 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:39.999 +00:00] [INFO] [session.go:3945] ["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 09:24:40.003 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:40.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:40.003 +00:00] [INFO] [ddl.go:1182] ["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 09:24:40.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:40.018 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:40.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.024 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=4] [neededSchemaVersion=5] ["start time"=716.549µs] [gotSchemaVersion=5] [phyTblIDs="[10]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:40.025 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:40.025 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=11] [version=5] [2024/05/06 09:24:40.028 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=5] ["take time"=4.932735ms] [job="ID:11, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:10, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:40.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.038 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:40.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.044 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=11] [2024/05/06 09:24:40.044 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:40.045 +00:00] [INFO] [session.go:3945] ["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 09:24:40.048 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:40.046 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:40.048 +00:00] [INFO] [ddl.go:1182] ["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 09:24:40.046 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:40.061 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:40.046 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.065 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=5] [neededSchemaVersion=6] ["start time"=391.75µs] [gotSchemaVersion=6] [phyTblIDs="[12]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:40.068 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:40.070 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=13] [version=6] [2024/05/06 09:24:40.071 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=6] ["take time"=6.100401ms] [job="ID:13, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:12, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:40.046 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.085 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:40.046 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.089 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=13] [2024/05/06 09:24:40.089 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:40.090 +00:00] [INFO] [session.go:3945] ["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 09:24:40.093 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:40.092 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:40.093 +00:00] [INFO] [ddl.go:1182] ["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 09:24:40.092 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:40.109 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:40.092 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.118 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=6] [neededSchemaVersion=7] ["start time"=380.043µs] [gotSchemaVersion=7] [phyTblIDs="[14]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:40.120 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:40.120 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=15] [version=7] [2024/05/06 09:24:40.122 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=7] ["take time"=4.56531ms] [job="ID:15, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:14, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:40.092 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.129 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:40.092 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.133 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=15] [2024/05/06 09:24:40.133 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:40.134 +00:00] [INFO] [session.go:3945] ["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 09:24:40.138 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:40.135 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:40.138 +00:00] [INFO] [ddl.go:1182] ["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 09:24:40.135 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:40.152 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:40.135 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.159 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=7] [neededSchemaVersion=8] ["start time"=248.748µs] [gotSchemaVersion=8] [phyTblIDs="[16]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:40.162 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:40.162 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=17] [version=8] [2024/05/06 09:24:40.164 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=8] ["take time"=5.425287ms] [job="ID:17, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:16, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:40.135 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.177 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:40.135 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.181 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=17] [2024/05/06 09:24:40.181 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:40.182 +00:00] [INFO] [session.go:3945] ["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 09:24:40.185 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:40.184 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:40.186 +00:00] [INFO] [ddl.go:1182] ["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 09:24:40.184 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:40.197 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:40.184 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.202 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=8] [neededSchemaVersion=9] ["start time"=268.063µs] [gotSchemaVersion=9] [phyTblIDs="[18]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:40.204 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:40.204 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=19] [version=9] [2024/05/06 09:24:40.207 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=9] ["take time"=4.904791ms] [job="ID:19, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:18, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:40.184 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.219 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:40.184 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.222 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=19] [2024/05/06 09:24:40.222 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:40.223 +00:00] [INFO] [session.go:3945] ["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 09:24:40.228 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:40.225 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:40.228 +00:00] [INFO] [ddl.go:1182] ["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 09:24:40.225 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:40.240 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:40.225 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.248 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=9] [neededSchemaVersion=10] ["start time"=342.518µs] [gotSchemaVersion=10] [phyTblIDs="[20]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:40.249 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:40.249 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=21] [version=10] [2024/05/06 09:24:40.249 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=10] ["take time"=2.016854ms] [job="ID:21, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:20, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:40.225 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.258 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:40.225 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.261 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=21] [2024/05/06 09:24:40.263 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:40.263 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:40.263 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:40.263 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:40.267 +00:00] [INFO] [session.go:3945] ["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 09:24:40.270 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:40.268 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:40.270 +00:00] [INFO] [ddl.go:1182] ["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 09:24:40.268 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:40.286 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:40.268 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.291 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=10] [neededSchemaVersion=11] ["start time"=334.754µs] [gotSchemaVersion=11] [phyTblIDs="[22]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:40.292 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:40.292 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=23] [version=11] [2024/05/06 09:24:40.292 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=11] ["take time"=2.04933ms] [job="ID:23, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:22, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:40.268 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.304 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:40.268 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.307 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=23] [2024/05/06 09:24:40.307 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:40.308 +00:00] [INFO] [session.go:3945] ["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 09:24:40.308 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(6291456) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:40.311 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:40.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:40.311 +00:00] [INFO] [ddl.go:1182] ["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 09:24:40.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:40.319 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:40.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.329 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=11] [neededSchemaVersion=12] ["start time"=470.29µs] [gotSchemaVersion=12] [phyTblIDs="[24]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:40.333 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:40.333 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=25] [version=12] [2024/05/06 09:24:40.340 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=12] ["take time"=12.060388ms] [job="ID:25, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:24, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:40.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.354 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:40.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.358 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=25] [2024/05/06 09:24:40.358 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:40.359 +00:00] [INFO] [session.go:3945] ["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 09:24:40.362 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:40.36 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:40.362 +00:00] [INFO] [ddl.go:1182] ["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 09:24:40.36 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:40.375 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:40.36 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.386 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=12] [neededSchemaVersion=13] ["start time"=371.687µs] [gotSchemaVersion=13] [phyTblIDs="[26]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:40.389 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:40.389 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=27] [version=13] [2024/05/06 09:24:40.389 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=13] ["take time"=4.007826ms] [job="ID:27, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:26, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:40.36 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.400 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:40.36 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.403 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=27] [2024/05/06 09:24:40.403 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:40.404 +00:00] [INFO] [session.go:3945] ["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 09:24:40.407 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:40.405 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:40.407 +00:00] [INFO] [ddl.go:1182] ["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 09:24:40.405 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:40.426 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:40.405 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.431 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=13] [neededSchemaVersion=14] ["start time"=315.803µs] [gotSchemaVersion=14] [phyTblIDs="[28]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:40.434 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:40.435 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=29] [version=14] [2024/05/06 09:24:40.435 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=14] ["take time"=4.006642ms] [job="ID:29, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:28, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:40.405 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.446 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:40.405 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.449 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=29] [2024/05/06 09:24:40.449 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:40.450 +00:00] [INFO] [session.go:3945] ["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 09:24:40.453 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:40.451 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:40.453 +00:00] [INFO] [ddl.go:1182] ["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 09:24:40.451 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:40.463 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:40.451 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.468 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=14] [neededSchemaVersion=15] ["start time"=288.77µs] [gotSchemaVersion=15] [phyTblIDs="[30]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:40.472 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:40.472 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=31] [version=15] [2024/05/06 09:24:40.472 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=15] ["take time"=4.022683ms] [job="ID:31, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:30, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:40.451 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.479 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:40.451 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.483 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=31] [2024/05/06 09:24:40.483 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:40.484 +00:00] [INFO] [session.go:3945] ["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 09:24:40.488 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:40.486 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:40.488 +00:00] [INFO] [ddl.go:1182] ["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 09:24:40.486 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:40.498 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:40.486 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.501 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=15] [neededSchemaVersion=16] ["start time"=291.484µs] [gotSchemaVersion=16] [phyTblIDs="[32]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:40.502 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:40.502 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=33] [version=16] [2024/05/06 09:24:40.503 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=16] ["take time"=2.054861ms] [job="ID:33, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:32, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:40.486 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.515 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:40.486 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.520 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=33] [2024/05/06 09:24:40.520 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:40.521 +00:00] [INFO] [session.go:3945] ["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 09:24:40.524 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:40.522 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:40.524 +00:00] [INFO] [ddl.go:1182] ["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 09:24:40.522 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:40.535 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:40.522 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.540 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=16] [neededSchemaVersion=17] ["start time"=334.219µs] [gotSchemaVersion=17] [phyTblIDs="[34]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:40.541 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:40.541 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=35] [version=17] [2024/05/06 09:24:40.542 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=17] ["take time"=2.120618ms] [job="ID:35, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:34, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:40.522 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.551 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:40.522 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.555 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=35] [2024/05/06 09:24:40.555 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:40.555 +00:00] [INFO] [session.go:3945] ["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 09:24:40.561 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:40.557 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:40.561 +00:00] [INFO] [ddl.go:1182] ["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 09:24:40.557 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:40.573 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:40.557 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.576 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=17] [neededSchemaVersion=18] ["start time"=283.559µs] [gotSchemaVersion=18] [phyTblIDs="[36]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:40.577 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:40.577 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=37] [version=18] [2024/05/06 09:24:40.579 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=18] ["take time"=3.308798ms] [job="ID:37, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:36, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:40.557 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.594 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:40.557 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.598 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=37] [2024/05/06 09:24:40.598 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:40.598 +00:00] [INFO] [session.go:3945] ["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 09:24:40.604 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:40.6 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:40.604 +00:00] [INFO] [ddl.go:1182] ["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 09:24:40.6 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:40.620 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:40.6 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.625 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=18] [neededSchemaVersion=19] ["start time"=466.171µs] [gotSchemaVersion=19] [phyTblIDs="[38]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:40.626 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:40.626 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=39] [version=19] [2024/05/06 09:24:40.627 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=19] ["take time"=3.062432ms] [job="ID:39, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:38, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:40.6 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.640 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:40.6 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.644 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=39] [2024/05/06 09:24:40.644 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:40.644 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:40.644 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:40.644 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:40.644 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:40.644 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:40.644 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:40.646 +00:00] [INFO] [session.go:3945] ["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 09:24:40.651 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:40.649 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:40.651 +00:00] [INFO] [ddl.go:1182] ["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 09:24:40.649 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:40.678 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:40.649 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.687 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=19] [neededSchemaVersion=20] ["start time"=311.48µs] [gotSchemaVersion=20] [phyTblIDs="[40]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:40.688 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:40.688 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=41] [version=20] [2024/05/06 09:24:40.690 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=20] ["take time"=2.941102ms] [job="ID:41, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:40, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:40.649 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.699 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:40.649 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.703 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=41] [2024/05/06 09:24:40.703 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:40.703 +00:00] [INFO] [session.go:3945] ["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 09:24:40.706 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:40.705 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:40.706 +00:00] [INFO] [ddl.go:1182] ["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 09:24:40.705 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:40.719 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:40.705 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.721 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=20] [neededSchemaVersion=21] ["start time"=224.939µs] [gotSchemaVersion=21] [phyTblIDs="[42]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:40.723 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:40.723 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=43] [version=21] [2024/05/06 09:24:40.723 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=21] ["take time"=2.09902ms] [job="ID:43, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:42, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:40.705 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.736 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:40.705 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.739 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=43] [2024/05/06 09:24:40.739 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:40.739 +00:00] [INFO] [session.go:3945] ["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 09:24:40.742 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:40.741 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:40.742 +00:00] [INFO] [ddl.go:1182] ["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 09:24:40.741 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE TABLE IF NOT EXISTS mysql.opt_rule_blacklist (\n\t\tname \tCHAR(100) NOT NULL\n\t);"] [2024/05/06 09:24:40.755 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:40.741 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.765 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=21] [neededSchemaVersion=22] ["start time"=170.862µs] [gotSchemaVersion=22] [phyTblIDs="[44]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:40.766 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:40.767 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=45] [version=22] [2024/05/06 09:24:40.767 +00:00] [ERROR] [misc.go:114] ["panic in the recoverable goroutine"] [label=domain] [funcInfo=runawayStartLoop] [r="runtime error: invalid memory address or nil pointer dereference"] [stack="github.com/pingcap/tidb/pkg/util.Recover\n\tpkg/util/misc.go:118\nruntime.gopanic\n\tGOROOT/src/runtime/panic.go:914\nruntime.panicmem\n\tGOROOT/src/runtime/panic.go:261\nruntime.sigpanic\n\tGOROOT/src/runtime/signal_unix.go:861\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).updateNewAndDoneWatch\n\tpkg/domain/runaway.go:175\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).runawayStartLoop\n\tpkg/domain/runaway.go:156\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:99"] [stack="github.com/pingcap/tidb/pkg/util.Recover\n\tpkg/util/misc.go:114\nruntime.gopanic\n\tGOROOT/src/runtime/panic.go:914\nruntime.panicmem\n\tGOROOT/src/runtime/panic.go:261\nruntime.sigpanic\n\tGOROOT/src/runtime/signal_unix.go:861\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).updateNewAndDoneWatch\n\tpkg/domain/runaway.go:175\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).runawayStartLoop\n\tpkg/domain/runaway.go:156\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:99"] [2024/05/06 09:24:40.767 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=runawayStartLoop] [2024/05/06 09:24:40.767 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=22] ["take time"=2.014766ms] [job="ID:45, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:44, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:40.741 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.777 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:40.741 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.780 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=45] [2024/05/06 09:24:40.780 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:40.781 +00:00] [INFO] [session.go:3945] ["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 09:24:40.784 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:40.783 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:40.784 +00:00] [INFO] [ddl.go:1182] ["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 09:24:40.783 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:40.797 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:40.783 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.807 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=22] [neededSchemaVersion=23] ["start time"=394.173µs] [gotSchemaVersion=23] [phyTblIDs="[46]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:40.809 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:40.809 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=47] [version=23] [2024/05/06 09:24:40.809 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=23] ["take time"=2.110038ms] [job="ID:47, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:46, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:40.783 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.817 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:40.783 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.821 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=47] [2024/05/06 09:24:40.822 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:40.822 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=23] [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 09:24:40.825 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:40.824 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:40.825 +00:00] [INFO] [ddl.go:1182] ["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 09:24:40.824 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:40.835 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:40.824 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.838 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=23] [neededSchemaVersion=24] ["start time"=283.773µs] [gotSchemaVersion=24] [phyTblIDs="[48]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:40.840 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:40.843 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=49] [version=24] [2024/05/06 09:24:40.844 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=24] ["take time"=6.627916ms] [job="ID:49, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:48, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:40.824 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.856 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:40.824 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.860 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=49] [2024/05/06 09:24:40.860 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:40.860 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=24] [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 09:24:40.863 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:40.862 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:40.863 +00:00] [INFO] [ddl.go:1182] ["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 09:24:40.862 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:40.876 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:40.862 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.879 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=24] [neededSchemaVersion=25] ["start time"=266.746µs] [gotSchemaVersion=25] [phyTblIDs="[50]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:40.881 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:40.881 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=51] [version=25] [2024/05/06 09:24:40.883 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=25] ["take time"=5.096704ms] [job="ID:51, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:50, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:40.862 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.893 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:40.862 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.897 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=51] [2024/05/06 09:24:40.897 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:40.897 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=25] [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 09:24:40.900 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:40.899 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:40.900 +00:00] [INFO] [ddl.go:1182] ["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 09:24:40.899 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:40.911 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:40.899 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.914 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=25] [neededSchemaVersion=26] ["start time"=251.798µs] [gotSchemaVersion=26] [phyTblIDs="[52]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:40.915 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:40.915 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=53] [version=26] [2024/05/06 09:24:40.916 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=26] ["take time"=2.426043ms] [job="ID:53, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:52, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:40.899 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.926 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:40.899 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.930 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=53] [2024/05/06 09:24:40.930 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:40.930 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=26] [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 09:24:40.933 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:40.931 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:40.933 +00:00] [INFO] [ddl.go:1182] ["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 09:24:40.931 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:40.944 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:40.931 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.950 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=26] [neededSchemaVersion=27] ["start time"=293.236µs] [gotSchemaVersion=27] [phyTblIDs="[54]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:40.958 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:40.958 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=55] [version=27] [2024/05/06 09:24:40.960 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=27] ["take time"=10.026521ms] [job="ID:55, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:54, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:40.931 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.969 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:40.931 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.973 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=55] [2024/05/06 09:24:40.973 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:40.973 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=27] [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 09:24:40.976 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:40.975 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:40.976 +00:00] [INFO] [ddl.go:1182] ["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 09:24:40.975 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:40.986 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:40.975 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.989 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=27] [neededSchemaVersion=28] ["start time"=246.46µs] [gotSchemaVersion=28] [phyTblIDs="[56]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:40.991 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:40.991 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=57] [version=28] [2024/05/06 09:24:40.994 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=28] ["take time"=5.000412ms] [job="ID:57, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:56, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:40.975 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:40.999 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:40.975 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.002 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=57] [2024/05/06 09:24:41.002 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:41.003 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=28] [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 09:24:41.003 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(19372) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:41.006 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:41.004 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:41.006 +00:00] [INFO] [ddl.go:1182] ["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 09:24:41.004 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:41.035 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:41.004 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.041 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=28] [neededSchemaVersion=29] ["start time"=339.002µs] [gotSchemaVersion=29] [phyTblIDs="[58]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:41.042 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:41.042 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=59] [version=29] [2024/05/06 09:24:41.043 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=29] ["take time"=2.102997ms] [job="ID:59, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:58, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:41.004 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.050 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:41.004 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.069 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=59] [2024/05/06 09:24:41.069 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:41.070 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=29] [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 09:24:41.073 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:41.071 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:41.073 +00:00] [INFO] [ddl.go:1182] ["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 09:24:41.071 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:41.093 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:41.071 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.099 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=29] [neededSchemaVersion=30] ["start time"=346.158µs] [gotSchemaVersion=30] [phyTblIDs="[60]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:41.100 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:41.100 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=61] [version=30] [2024/05/06 09:24:41.102 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=30] ["take time"=3.462862ms] [job="ID:61, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:60, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:41.071 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.108 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:41.071 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.112 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=61] [2024/05/06 09:24:41.112 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:41.113 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=30] [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 09:24:41.116 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:41.114 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:41.116 +00:00] [INFO] [ddl.go:1182] ["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 09:24:41.114 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:41.131 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:41.114 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.141 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=30] [neededSchemaVersion=31] ["start time"=403.116µs] [gotSchemaVersion=31] [phyTblIDs="[62]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:41.144 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:41.144 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=63] [version=31] [2024/05/06 09:24:41.145 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=31] ["take time"=4.83431ms] [job="ID:63, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:62, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:41.114 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.152 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:41.114 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.156 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=63] [2024/05/06 09:24:41.157 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:41.159 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=31] [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 09:24:41.162 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:41.16 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:41.162 +00:00] [INFO] [ddl.go:1182] ["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 09:24:41.16 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:41.170 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:41.16 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.182 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=31] [neededSchemaVersion=32] ["start time"=491.695µs] [gotSchemaVersion=32] [phyTblIDs="[64]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:41.184 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:41.184 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=65] [version=32] [2024/05/06 09:24:41.186 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=32] ["take time"=4.903825ms] [job="ID:65, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:64, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:41.16 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.195 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:41.16 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.201 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=65] [2024/05/06 09:24:41.201 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:41.201 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:41.201 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:41.202 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=32] [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 09:24:41.205 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:41.203 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:41.205 +00:00] [INFO] [ddl.go:1182] ["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 09:24:41.203 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE TABLE IF NOT EXISTS mysql.advisory_locks (\n\t\tlock_name VARCHAR(64) NOT NULL PRIMARY KEY\n\t);"] [2024/05/06 09:24:41.216 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:41.203 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.219 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=32] [neededSchemaVersion=33] ["start time"=195.825µs] [gotSchemaVersion=33] [phyTblIDs="[66]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:41.220 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:41.220 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=67] [version=33] [2024/05/06 09:24:41.221 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=33] ["take time"=2.043202ms] [job="ID:67, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:66, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:41.203 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.228 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:41.203 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.232 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=67] [2024/05/06 09:24:41.232 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:41.236 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:69, Type:create view, State:queueing, SchemaState:none, SchemaID:1, TableID:68, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:41.234 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:41.236 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:69, Type:create view, State:queueing, SchemaState:none, SchemaID:1, TableID:68, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:41.234 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE OR REPLACE VIEW mysql.tidb_mdl_view as (\n\t\tSELECT tidb_mdl_info.job_id,\n\t\t\tJSON_UNQUOTE(JSON_EXTRACT(cast(cast(job_meta as char) as json), \"$.schema_name\")) as db_name,\n\t\t\tJSON_UNQUOTE(JSON_EXTRACT(cast(cast(job_meta as char) as json), \"$.table_name\")) as table_name,\n\t\t\tJSON_UNQUOTE(JSON_EXTRACT(cast(cast(job_meta as char) as json), \"$.query\")) as query,\n\t\t\tsession_id,\n\t\t\tcluster_tidb_trx.start_time,\n\t\t\ttidb_decode_sql_digests(all_sql_digests, 4096) AS SQL_DIGESTS\n\t\tFROM mysql.tidb_ddl_job,\n\t\t\tmysql.tidb_mdl_info,\n\t\t\tinformation_schema.cluster_tidb_trx\n\t\tWHERE tidb_ddl_job.job_id=tidb_mdl_info.job_id\n\t\t\tAND CONCAT(',', tidb_mdl_info.table_ids, ',') REGEXP CONCAT(',', REPLACE(cluster_tidb_trx.related_table_ids, ',', '|'), ',') != 0\n\t);"] [2024/05/06 09:24:41.249 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, tp general"] [category=ddl] [jobID=69] [category=ddl] [job="ID:69, Type:create view, State:queueing, SchemaState:none, SchemaID:1, TableID:68, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:41.234 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.252 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=33] [neededSchemaVersion=34] ["start time"=313.192µs] [gotSchemaVersion=34] [phyTblIDs="[68]"] [actionTypes="[21]"] [diffTypes="[\"create view\"]"] [2024/05/06 09:24:41.254 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:41.254 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=69] [version=34] [2024/05/06 09:24:41.254 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=34] ["take time"=2.253896ms] [job="ID:69, Type:create view, State:done, SchemaState:public, SchemaID:1, TableID:68, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:41.234 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.260 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, tp general"] [category=ddl] [jobID=69] [job="ID:69, Type:create view, State:synced, SchemaState:public, SchemaID:1, TableID:68, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:41.234 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.263 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=69] [2024/05/06 09:24:41.263 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:41.265 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=34] [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 09:24:41.269 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:71, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:70, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:41.266 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:41.269 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:71, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:70, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:41.266 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:41.291 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, tp general"] [category=ddl] [jobID=71] [category=ddl] [job="ID:71, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:70, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:41.266 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.299 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=34] [neededSchemaVersion=35] ["start time"=306.776µs] [gotSchemaVersion=35] [phyTblIDs="[70]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:41.300 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:41.300 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=71] [version=35] [2024/05/06 09:24:41.301 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=35] ["take time"=2.832609ms] [job="ID:71, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:70, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:41.266 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.309 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, tp general"] [category=ddl] [jobID=71] [job="ID:71, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:70, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:41.266 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.314 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=71] [2024/05/06 09:24:41.314 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:41.314 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:41.314 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:41.314 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=35] [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 09:24:41.317 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:41.316 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:41.317 +00:00] [INFO] [ddl.go:1182] ["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 09:24:41.316 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:41.327 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:41.316 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.330 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=35] [neededSchemaVersion=36] ["start time"=247.985µs] [gotSchemaVersion=36] [phyTblIDs="[72]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:41.332 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:41.332 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=73] [version=36] [2024/05/06 09:24:41.333 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=36] ["take time"=2.834506ms] [job="ID:73, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:72, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:41.316 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.361 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:41.316 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.364 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=73] [2024/05/06 09:24:41.365 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:41.368 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=36] [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 09:24:41.379 +00:00] [INFO] [mvcc.go:1246] ["trying to commit with smaller commitTs than minCommitTs"] ["commit ts"=449573678317830144] ["min commit ts"=449573678318092289] [key="dIAA///////+X3KAAAAAAAAASw=="] [2024/05/06 09:24:41.379 +00:00] [INFO] [commit.go:160] ["2PC commitTS rejected by TiKV, retry with a newer commitTS"] [txnStartTS=449573678317043712] [info="{StartTs:449573678317043712 AttemptedCommitTs:449573678317830144 Key:748000fffffffffffe5f72800000000000004b MinCommitTs:449573678318092289}"] [2024/05/06 09:24:41.379 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:41.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:41.379 +00:00] [INFO] [ddl.go:1182] ["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 09:24:41.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:41.386 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:41.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.389 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=36] [neededSchemaVersion=37] ["start time"=242.955µs] [gotSchemaVersion=37] [phyTblIDs="[74]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:41.390 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:41.390 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=75] [version=37] [2024/05/06 09:24:41.391 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=37] ["take time"=3.02387ms] [job="ID:75, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:74, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:41.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.425 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:41.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.430 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=75] [2024/05/06 09:24:41.430 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:41.437 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=37] [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 09:24:41.441 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:41.439 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:41.441 +00:00] [INFO] [ddl.go:1182] ["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 09:24:41.439 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:41.454 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:41.439 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.459 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=37] [neededSchemaVersion=38] ["start time"=482.044µs] [gotSchemaVersion=38] [phyTblIDs="[76]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:41.460 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:41.460 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=77] [version=38] [2024/05/06 09:24:41.460 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=38] ["take time"=2.010001ms] [job="ID:77, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:76, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:41.439 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.466 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:41.439 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.470 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=77] [2024/05/06 09:24:41.470 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:41.471 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:41.471 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:41.471 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:41.471 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=38] [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 09:24:41.475 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:41.473 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:41.475 +00:00] [INFO] [ddl.go:1182] ["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 09:24:41.473 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:41.489 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:41.473 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.493 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=38] [neededSchemaVersion=39] ["start time"=539.588µs] [gotSchemaVersion=39] [phyTblIDs="[78]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:41.494 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:41.494 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=79] [version=39] [2024/05/06 09:24:41.495 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=39] ["take time"=2.432901ms] [job="ID:79, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:78, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:41.473 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.505 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:41.473 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.508 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=79] [2024/05/06 09:24:41.509 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:41.509 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:41.509 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=39] [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 09:24:41.513 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:41.511 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:41.513 +00:00] [INFO] [ddl.go:1182] ["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 09:24:41.511 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:41.521 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:41.511 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.529 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=39] [neededSchemaVersion=40] ["start time"=1.793695ms] [gotSchemaVersion=40] [phyTblIDs="[80]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:41.530 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:41.531 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=81] [version=40] [2024/05/06 09:24:41.532 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=40] ["take time"=4.556893ms] [job="ID:81, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:80, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:41.511 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.553 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:41.511 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.557 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=81] [2024/05/06 09:24:41.557 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:41.557 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:41.561 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=40] [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(261),\n\t\tstate VARCHAR(64) NOT NULL,\n\t\tpriority INT DEFAULT 1,\n\t\tcreate_time TIMESTAMP,\n\t\tstart_time TIMESTAMP,\n\t\tstate_update_time TIMESTAMP,\n\t\tend_time TIMESTAMP,\n\t\tmeta LONGBLOB,\n\t\tconcurrency INT(11),\n\t\tstep INT(11),\n\t\ttarget_scope VARCHAR(256) DEFAULT \"\",\n\t\terror BLOB,\n\t\tkey(state),\n \tUNIQUE KEY task_key(task_key)\n\t);"] [user=] [2024/05/06 09:24:41.565 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:41.563 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:41.565 +00:00] [INFO] [ddl.go:1182] ["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 09:24:41.563 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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(261),\n\t\tstate VARCHAR(64) NOT NULL,\n\t\tpriority INT DEFAULT 1,\n\t\tcreate_time TIMESTAMP,\n\t\tstart_time TIMESTAMP,\n\t\tstate_update_time TIMESTAMP,\n\t\tend_time TIMESTAMP,\n\t\tmeta LONGBLOB,\n\t\tconcurrency INT(11),\n\t\tstep INT(11),\n\t\ttarget_scope VARCHAR(256) DEFAULT \"\",\n\t\terror BLOB,\n\t\tkey(state),\n \tUNIQUE KEY task_key(task_key)\n\t);"] [2024/05/06 09:24:41.573 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:41.563 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.578 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=40] [neededSchemaVersion=41] ["start time"=568.408µs] [gotSchemaVersion=41] [phyTblIDs="[82]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:41.579 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:41.579 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=83] [version=41] [2024/05/06 09:24:41.579 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=41] ["take time"=2.057266ms] [job="ID:83, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:41.563 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.588 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:41.563 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.593 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=83] [2024/05/06 09:24:41.593 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:41.594 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=41] [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(261),\n\t\tstate VARCHAR(64) NOT NULL,\n\t\tpriority INT DEFAULT 1,\n\t\tcreate_time TIMESTAMP,\n\t\tstart_time TIMESTAMP,\n\t\tstate_update_time TIMESTAMP,\n\t\tend_time TIMESTAMP,\n\t\tmeta LONGBLOB,\n\t\tconcurrency INT(11),\n\t\tstep INT(11),\n\t\ttarget_scope VARCHAR(256) DEFAULT \"\",\n\t\terror BLOB,\n\t\tkey(state),\n \tUNIQUE KEY task_key(task_key)\n\t);"] [user=] [2024/05/06 09:24:41.598 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:41.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:41.598 +00:00] [INFO] [ddl.go:1182] ["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 09:24:41.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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(261),\n\t\tstate VARCHAR(64) NOT NULL,\n\t\tpriority INT DEFAULT 1,\n\t\tcreate_time TIMESTAMP,\n\t\tstart_time TIMESTAMP,\n\t\tstate_update_time TIMESTAMP,\n\t\tend_time TIMESTAMP,\n\t\tmeta LONGBLOB,\n\t\tconcurrency INT(11),\n\t\tstep INT(11),\n\t\ttarget_scope VARCHAR(256) DEFAULT \"\",\n\t\terror BLOB,\n\t\tkey(state),\n \tUNIQUE KEY task_key(task_key)\n\t);"] [2024/05/06 09:24:41.612 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:41.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.617 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=41] [neededSchemaVersion=42] ["start time"=533.881µs] [gotSchemaVersion=42] [phyTblIDs="[84]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:41.623 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:41.625 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=85] [version=42] [2024/05/06 09:24:41.626 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=42] ["take time"=10.269302ms] [job="ID:85, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:84, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:41.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.636 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:41.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.651 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=85] [2024/05/06 09:24:41.655 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:41.656 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=42] [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 09:24:41.659 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:41.657 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:41.659 +00:00] [INFO] [ddl.go:1182] ["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 09:24:41.657 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:41.675 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:41.657 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.684 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=42] [neededSchemaVersion=43] ["start time"=533.529µs] [gotSchemaVersion=43] [phyTblIDs="[86]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:41.685 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:41.685 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=87] [version=43] [2024/05/06 09:24:41.686 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=43] ["take time"=2.788693ms] [job="ID:87, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:86, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:41.657 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.692 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:41.657 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.697 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=87] [2024/05/06 09:24:41.697 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:41.697 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:41.697 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:41.697 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:41.698 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=43] [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 09:24:41.704 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:41.702 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:41.704 +00:00] [INFO] [ddl.go:1182] ["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 09:24:41.702 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:41.713 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:41.702 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.718 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=43] [neededSchemaVersion=44] ["start time"=438.221µs] [gotSchemaVersion=44] [phyTblIDs="[88]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:41.719 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:41.720 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=89] [version=44] [2024/05/06 09:24:41.722 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=44] ["take time"=4.533535ms] [job="ID:89, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:88, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:41.702 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.727 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:41.702 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.731 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=89] [2024/05/06 09:24:41.732 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:41.732 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:41.732 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=44] [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 09:24:41.743 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:41.741 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:41.743 +00:00] [INFO] [ddl.go:1182] ["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 09:24:41.741 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:41.751 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:41.741 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.756 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=44] [neededSchemaVersion=45] ["start time"=272.616µs] [gotSchemaVersion=45] [phyTblIDs="[90]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:41.757 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:41.757 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=91] [version=45] [2024/05/06 09:24:41.757 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=45] ["take time"=2.144973ms] [job="ID:91, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:90, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:41.741 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.763 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:41.741 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.769 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=91] [2024/05/06 09:24:41.769 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:41.769 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:41.769 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:41.770 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=45] [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 09:24:41.773 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:41.771 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:41.773 +00:00] [INFO] [ddl.go:1182] ["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 09:24:41.771 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:41.774 +00:00] [INFO] [info.go:1142] [SetTiFlashGroupConfig] [2024/05/06 09:24:41.780 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:41.771 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.785 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=45] [neededSchemaVersion=46] ["start time"=589.138µs] [gotSchemaVersion=46] [phyTblIDs="[92]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:41.786 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:41.786 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=93] [version=46] [2024/05/06 09:24:41.788 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=46] ["take time"=4.549157ms] [job="ID:93, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:92, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:41.771 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.800 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:41.771 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.805 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=93] [2024/05/06 09:24:41.805 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:41.807 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=46] [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 09:24:41.810 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:41.809 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:41.810 +00:00] [INFO] [ddl.go:1182] ["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 09:24:41.809 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:41.821 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:41.809 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.824 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=46] [neededSchemaVersion=47] ["start time"=333.69µs] [gotSchemaVersion=47] [phyTblIDs="[94]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:41.825 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:41.825 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=95] [version=47] [2024/05/06 09:24:41.830 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=47] ["take time"=5.789311ms] [job="ID:95, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:94, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:41.809 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.837 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:41.809 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.841 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=95] [2024/05/06 09:24:41.841 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:41.841 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:41.842 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=47] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.dist_framework_meta (\n host VARCHAR(261) NOT NULL PRIMARY KEY,\n role VARCHAR(64),\n cpu_count int default 0,\n keyspace_id bigint(8) NOT NULL DEFAULT -1\n );"] [user=] [2024/05/06 09:24:41.844 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:41.843 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:41.844 +00:00] [INFO] [ddl.go:1182] ["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 09:24:41.843 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE TABLE IF NOT EXISTS mysql.dist_framework_meta (\n host VARCHAR(261) NOT NULL PRIMARY KEY,\n role VARCHAR(64),\n cpu_count int default 0,\n keyspace_id bigint(8) NOT NULL DEFAULT -1\n );"] [2024/05/06 09:24:41.854 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:41.843 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.860 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=47] [neededSchemaVersion=48] ["start time"=363.625µs] [gotSchemaVersion=48] [phyTblIDs="[96]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:41.862 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:41.864 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=97] [version=48] [2024/05/06 09:24:41.865 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=48] ["take time"=4.772331ms] [job="ID:97, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:96, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:41.843 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.874 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:41.843 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.886 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=97] [2024/05/06 09:24:41.886 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:41.887 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=48] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.request_unit_by_group (\n\t\tstart_time TIMESTAMP(6) NOT NULL,\n\t\tend_time TIMESTAMP(6) NOT NULL,\n\t\tresource_group VARCHAR(32) NOT null,\n\t\ttotal_ru bigint(64) UNSIGNED NOT NULL,\n\t\tPRIMARY KEY (start_time, end_time, resource_group),\n\t\tKEY (resource_group)\n\t);"] [user=] [2024/05/06 09:24:41.890 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:41.889 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:41.890 +00:00] [INFO] [ddl.go:1182] ["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 09:24:41.889 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE TABLE IF NOT EXISTS mysql.request_unit_by_group (\n\t\tstart_time TIMESTAMP(6) NOT NULL,\n\t\tend_time TIMESTAMP(6) NOT NULL,\n\t\tresource_group VARCHAR(32) NOT null,\n\t\ttotal_ru bigint(64) UNSIGNED NOT NULL,\n\t\tPRIMARY KEY (start_time, end_time, resource_group),\n\t\tKEY (resource_group)\n\t);"] [2024/05/06 09:24:41.913 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, 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 09:24:41.889 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.919 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=48] [neededSchemaVersion=49] ["start time"=313.551µs] [gotSchemaVersion=49] [phyTblIDs="[98]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:41.921 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:41.921 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=99] [version=49] [2024/05/06 09:24:41.921 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=49] ["take time"=2.075058ms] [job="ID:99, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:98, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:41.889 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.931 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, 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 09:24:41.889 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.935 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=99] [2024/05/06 09:24:41.935 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:41.935 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=49] [cur_db=mysql] [sql="CREATE DATABASE IF NOT EXISTS sys;"] [user=] [2024/05/06 09:24:41.938 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:101, Type:create schema, State:queueing, SchemaState:none, SchemaID:100, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:41.937 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:41.938 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:101, Type:create schema, State:queueing, SchemaState:none, SchemaID:100, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:41.937 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE DATABASE IF NOT EXISTS sys;"] [2024/05/06 09:24:41.948 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, tp general"] [category=ddl] [jobID=101] [category=ddl] [job="ID:101, Type:create schema, State:queueing, SchemaState:none, SchemaID:100, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:41.937 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.957 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=49] [neededSchemaVersion=50] ["start time"=73.165µs] [gotSchemaVersion=50] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"create schema\"]"] [2024/05/06 09:24:41.958 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:41.958 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=101] [version=50] [2024/05/06 09:24:41.959 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=50] ["take time"=2.047351ms] [job="ID:101, Type:create schema, State:done, SchemaState:public, SchemaID:100, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:41.937 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.967 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, tp general"] [category=ddl] [jobID=101] [job="ID:101, Type:create schema, State:synced, SchemaState:public, SchemaID:100, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:41.937 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.970 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=101] [2024/05/06 09:24:41.970 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:41.974 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:103, Type:create view, State:queueing, SchemaState:none, SchemaID:100, TableID:102, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:41.972 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:41.974 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:103, Type:create view, State:queueing, SchemaState:none, SchemaID:100, TableID:102, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:41.972 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE OR REPLACE VIEW sys.schema_unused_indexes AS\n\t\tSELECT\n\t\t\ttable_schema as object_schema,\n\t\t\ttable_name as object_name,\n\t\t\tindex_name\n\t\tFROM information_schema.cluster_tidb_index_usage\n\t\tWHERE\n\t\t\ttable_schema not in ('sys', 'mysql', 'INFORMATION_SCHEMA', 'PERFORMANCE_SCHEMA') and\n\t\t\tindex_name != 'PRIMARY'\n\t\tGROUP BY table_schema, table_name, index_name\n\t\tHAVING\n\t\t\tsum(last_access_time) is null;"] [2024/05/06 09:24:41.986 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 31, tp general"] [category=ddl] [jobID=103] [category=ddl] [job="ID:103, Type:create view, State:queueing, SchemaState:none, SchemaID:100, TableID:102, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:41.972 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:41.993 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=50] [neededSchemaVersion=51] ["start time"=236.235µs] [gotSchemaVersion=51] [phyTblIDs="[102]"] [actionTypes="[21]"] [diffTypes="[\"create view\"]"] [2024/05/06 09:24:41.994 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:41.994 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=103] [version=51] [2024/05/06 09:24:41.994 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=51] ["take time"=2.014493ms] [job="ID:103, Type:create view, State:done, SchemaState:public, SchemaID:100, TableID:102, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:41.972 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.002 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 31, tp general"] [category=ddl] [jobID=103] [job="ID:103, Type:create view, State:synced, SchemaState:public, SchemaID:100, TableID:102, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:41.972 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.006 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=103] [2024/05/06 09:24:42.006 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:42.066 +00:00] [INFO] [bootstrap.go:745] ["bootstrap successful"] ["take time"=2.299382284s] [2024/05/06 09:24:42.073 +00:00] [INFO] [mock.go:106] ["owner manager is canceled"] [category=ddl] [ID=70dcd1ae-6ef7-4fb1-98a4-d01b846e40c1] [ownerKey=/tidb/ddl/fg/owner] [2024/05/06 09:24:42.073 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:42.074 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 33, tp add index"] [category=ddl] ["take time"=4.356µs] [2024/05/06 09:24:42.074 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 34, tp add index"] [category=ddl] ["take time"=4.275µs] [2024/05/06 09:24:42.074 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 35, tp add index"] [category=ddl] ["take time"=4.138µs] [2024/05/06 09:24:42.074 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 32, tp add index"] [category=ddl] ["take time"=4.25µs] [2024/05/06 09:24:42.074 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:42.074 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 31, tp general"] [category=ddl] ["take time"=1.879µs] [2024/05/06 09:24:42.074 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:42.074 +00:00] [INFO] [delete_range.go:162] ["closing delRange"] [category=ddl] [2024/05/06 09:24:42.074 +00:00] [INFO] [session_pool.go:99] ["closing session pool"] [category=ddl] [2024/05/06 09:24:42.078 +00:00] [INFO] [ddl.go:951] ["DDL closed"] [category=ddl] [ID=70dcd1ae-6ef7-4fb1-98a4-d01b846e40c1] ["take time"=9.237165ms] [2024/05/06 09:24:42.081 +00:00] [INFO] [ddl.go:769] ["stop DDL"] [category=ddl] [ID=70dcd1ae-6ef7-4fb1-98a4-d01b846e40c1] [2024/05/06 09:24:42.081 +00:00] [INFO] [domain.go:907] ["loadSchemaInLoop exited."] [2024/05/06 09:24:42.081 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=loadSchemaInLoop] [2024/05/06 09:24:42.081 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=mdlCheckLoop] [2024/05/06 09:24:42.081 +00:00] [INFO] [domain.go:737] ["globalConfigSyncerKeeper exited."] [2024/05/06 09:24:42.082 +00:00] [INFO] [domain.go:711] ["infoSyncerKeeper exited."] [2024/05/06 09:24:42.082 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=globalConfigSyncerKeeper] [2024/05/06 09:24:42.082 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=infoSyncerKeeper] [2024/05/06 09:24:42.082 +00:00] [INFO] [domain.go:761] ["topologySyncerKeeper exited."] [2024/05/06 09:24:42.081 +00:00] [INFO] [domain.go:683] ["topNSlowQueryLoop exited."] [2024/05/06 09:24:42.082 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=topologySyncerKeeper] [2024/05/06 09:24:42.082 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=topNSlowQueryLoop] [2024/05/06 09:24:42.082 +00:00] [INFO] [domain.go:1074] ["domain closed"] ["take time"=13.006086ms] [2024/05/06 09:24:42.082 +00:00] [INFO] [tidb.go:80] ["new domain"] [store=c4aeb35c-395e-4917-a0d2-bb9f80bcc175] ["ddl lease"=500ms] ["stats lease"=-1ns] [2024/05/06 09:24:42.090 +00:00] [WARN] [runaway.go:462] ["cannot setup up resource controller, not using tikv storage"] [2024/05/06 09:24:42.146 +00:00] [INFO] [domain.go:315] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=51] ["start time"=55.99577ms] [2024/05/06 09:24:42.168 +00:00] [INFO] [domain.go:635] ["full load and reset schema validator"] [2024/05/06 09:24:42.169 +00:00] [INFO] [ddl.go:818] ["start DDL"] [category=ddl] [ID=6785b897-9478-4fbd-90e2-284b1ec80935] [runWorker=true] [2024/05/06 09:24:42.169 +00:00] [INFO] [ddl.go:777] ["start delRangeManager OK"] [category=ddl] ["is a emulator"=true] [2024/05/06 09:24:42.169 +00:00] [INFO] [delete_range.go:172] ["start delRange emulator"] [category=ddl] [2024/05/06 09:24:42.169 +00:00] [INFO] [job_table.go:334] ["get global state and global state change"] [category=ddl] [oldState=false] [currState=false] [2024/05/06 09:24:42.169 +00:00] [WARN] [env.go:51] ["initialize environment failed"] [category=ddl-ingest] ["storage limitation"="only support TiKV storage"] ["current storage"=unistore] ["lightning is initialized"=false] [2024/05/06 09:24:42.170 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=loadSchemaInLoop] [2024/05/06 09:24:42.170 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=mdlCheckLoop] [2024/05/06 09:24:42.170 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=topNSlowQueryLoop] [2024/05/06 09:24:42.170 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=infoSyncerKeeper] [2024/05/06 09:24:42.170 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=globalConfigSyncerKeeper] [2024/05/06 09:24:42.170 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=runawayStartLoop] [2024/05/06 09:24:42.170 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=requestUnitsWriterLoop] [2024/05/06 09:24:42.170 +00:00] [INFO] [runaway.go:149] ["try to start runaway manager loop"] [2024/05/06 09:24:42.170 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=topologySyncerKeeper] [2024/05/06 09:24:42.171 +00:00] [WARN] [domain.go:1326] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 09:24:42.170 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=requestUnitsWriterLoop] [2024/05/06 09:24:42.220 +00:00] [INFO] [job_table.go:334] ["get global state and global state change"] [category=ddl] [oldState=false] [currState=false] [2024/05/06 09:24:42.220 +00:00] [INFO] [job_table.go:349] ["the owner sets owner operator value"] [category=ddl] [ownerOp=none] [2024/05/06 09:24:42.228 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=globalBindHandleWorkerLoop] [2024/05/06 09:24:42.230 +00:00] [WARN] [sysvar_cache.go:49] ["sysvar cache is empty, triggering rebuild"] [2024/05/06 09:24:42.279 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=loadPrivilegeInLoop] [2024/05/06 09:24:42.282 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=LoadSysVarCacheLoop] [2024/05/06 09:24:42.284 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=dumpFileGcChecker] [2024/05/06 09:24:42.284 +00:00] [INFO] [domain.go:2070] ["dumpFileGcChecker started"] [2024/05/06 09:24:42.285 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=indexUsageWorker] [2024/05/06 09:24:42.285 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=quitStatsOwner] [2024/05/06 09:24:42.287 +00:00] [INFO] [task_manager.go:217] ["scale ttl worker"] [ttl-worker=job-manager] [ttl-worker=task-manager] [originalCount=0] [newCount=4] [2024/05/06 09:24:42.287 +00:00] [INFO] [task_manager.go:217] ["scale ttl worker"] [ttl-worker=job-manager] [ttl-worker=task-manager] [originalCount=0] [newCount=4] [2024/05/06 09:24:42.305 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=loadSigningCertLoop] [2024/05/06 09:24:42.308 +00:00] [INFO] [manager.go:113] ["build task executor manager"] [server-id=:4000] [total-cpu=16] [total-mem=342GiB] [2024/05/06 09:24:42.313 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=distTaskFrameworkLoop] [2024/05/06 09:24:42.313 +00:00] [INFO] [manager.go:146] ["task executor manager start"] [server-id=:4000] [2024/05/06 09:24:42.313 +00:00] [INFO] [domain.go:1525] ["dist task executor manager started"] [2024/05/06 09:24:42.314 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=8] [schemaVersion=51] [cur_db=] [sql="drop database if exists test_auto_inc_table_opt;"] [user=] [2024/05/06 09:24:42.314 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=8] [schemaVersion=51] [cur_db=] [sql="create database test_auto_inc_table_opt;"] [user=] [2024/05/06 09:24:42.317 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:105, Type:create schema, State:queueing, SchemaState:none, SchemaID:104, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:42.316 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:42.317 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:105, Type:create schema, State:queueing, SchemaState:none, SchemaID:104, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:42.316 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create database test_auto_inc_table_opt;"] [2024/05/06 09:24:42.331 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 36, tp general"] [category=ddl] [jobID=105] [conn=8] [category=ddl] [job="ID:105, Type:create schema, State:queueing, SchemaState:none, SchemaID:104, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:42.316 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.338 +00:00] [ERROR] [domain.go:291] ["failed to load schema diff"] [error="builder's (v2=false) infoschema mismatch, return error to trigger full reload"] [errorVerbose="builder's (v2=false) infoschema mismatch, return error to trigger full reload\ngithub.com/pingcap/tidb/pkg/infoschema.(*Builder).InitWithOldInfoSchema\n\tpkg/infoschema/builder.go:798\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).tryLoadSchemaDiffs\n\tpkg/domain/domain.go:459\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).loadInfoSchema\n\tpkg/domain/domain.go:276\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).Reload\n\tpkg/domain/domain.go:606\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).loadSchemaInLoop\n\tpkg/domain/domain.go:919\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).Init.func2\n\tpkg/domain/domain.go:1287\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:99\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [stack="github.com/pingcap/tidb/pkg/domain.(*Domain).loadInfoSchema\n\tpkg/domain/domain.go:291\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).Reload\n\tpkg/domain/domain.go:606\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).loadSchemaInLoop\n\tpkg/domain/domain.go:919\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).Init.func2\n\tpkg/domain/domain.go:1287\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:99"] [2024/05/06 09:24:42.353 +00:00] [INFO] [domain.go:315] ["full load InfoSchema success"] [currentSchemaVersion=51] [neededSchemaVersion=52] ["start time"=15.191423ms] [2024/05/06 09:24:42.354 +00:00] [INFO] [domain.go:635] ["full load and reset schema validator"] [2024/05/06 09:24:42.355 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=105] [version=52] [2024/05/06 09:24:42.359 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=52] ["take time"=21.30858ms] [job="ID:105, Type:create schema, State:done, SchemaState:public, SchemaID:104, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:42.316 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.365 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 36, tp general"] [category=ddl] [jobID=105] [conn=8] [job="ID:105, Type:create schema, State:synced, SchemaState:public, SchemaID:104, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:42.316 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.369 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=105] [2024/05/06 09:24:42.370 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:42.370 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=8] [schemaVersion=52] [cur_db=test_auto_inc_table_opt] [sql="create table t (a bigint primary key clustered) auto_increment = 10"] [user=] [2024/05/06 09:24:42.373 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:107, Type:create table, State:queueing, SchemaState:none, SchemaID:104, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:42.373 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:107, Type:create table, State:queueing, SchemaState:none, SchemaID:104, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create table t (a bigint primary key clustered) auto_increment = 10"] [2024/05/06 09:24:42.380 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 36, tp general"] [category=ddl] [jobID=107] [conn=8] [category=ddl] [job="ID:107, Type:create table, State:queueing, SchemaState:none, SchemaID:104, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:42.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.383 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=52] [neededSchemaVersion=53] ["start time"=149.161µs] [gotSchemaVersion=53] [phyTblIDs="[106]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:42.385 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=107] [version=53] [2024/05/06 09:24:42.387 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=53] ["take time"=4.086482ms] [job="ID:107, Type:create table, State:done, SchemaState:public, SchemaID:104, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.397 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 36, tp general"] [category=ddl] [jobID=107] [conn=8] [job="ID:107, Type:create table, State:synced, SchemaState:public, SchemaID:104, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:42.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.400 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=107] [2024/05/06 09:24:42.400 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:42.401 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=8] [schemaVersion=53] [cur_db=test_auto_inc_table_opt] [sql="alter table t auto_increment = 10;"] [user=] [2024/05/06 09:24:42.403 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:108, Type:rebase auto_increment ID, State:queueing, SchemaState:none, SchemaID:104, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.402 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:42.403 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:108, Type:rebase auto_increment ID, State:queueing, SchemaState:none, SchemaID:104, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.402 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t auto_increment = 10;"] [2024/05/06 09:24:42.415 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 36, tp general"] [category=ddl] [jobID=108] [conn=8] [category=ddl] [job="ID:108, Type:rebase auto_increment ID, State:queueing, SchemaState:none, SchemaID:104, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:42.402 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.421 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=53] [neededSchemaVersion=54] ["start time"=164.235µs] [gotSchemaVersion=54] [phyTblIDs="[106]"] [actionTypes="[13]"] [diffTypes="[\"rebase auto_increment ID\"]"] [2024/05/06 09:24:42.422 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=108] [version=54] [2024/05/06 09:24:42.423 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=54] ["take time"=2.27145ms] [job="ID:108, Type:rebase auto_increment ID, State:done, SchemaState:public, SchemaID:104, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.402 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.430 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 36, tp general"] [category=ddl] [jobID=108] [conn=8] [job="ID:108, Type:rebase auto_increment ID, State:synced, SchemaState:public, SchemaID:104, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:42.402 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.437 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=108] [2024/05/06 09:24:42.438 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:42.439 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=8] [schemaVersion=54] [cur_db=test_auto_inc_table_opt] [sql="alter table t auto_increment = 12345678901234567890;"] [user=] [2024/05/06 09:24:42.441 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:109, Type:rebase auto_increment ID, State:queueing, SchemaState:none, SchemaID:104, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.44 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:42.441 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:109, Type:rebase auto_increment ID, State:queueing, SchemaState:none, SchemaID:104, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.44 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t auto_increment = 12345678901234567890;"] [2024/05/06 09:24:42.455 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 36, tp general"] [category=ddl] [jobID=109] [conn=8] [category=ddl] [job="ID:109, Type:rebase auto_increment ID, State:queueing, SchemaState:none, SchemaID:104, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:42.44 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.458 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=54] [neededSchemaVersion=55] ["start time"=193.798µs] [gotSchemaVersion=55] [phyTblIDs="[106]"] [actionTypes="[13]"] [diffTypes="[\"rebase auto_increment ID\"]"] [2024/05/06 09:24:42.460 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=109] [version=55] [2024/05/06 09:24:42.461 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=55] ["take time"=2.856163ms] [job="ID:109, Type:rebase auto_increment ID, State:done, SchemaState:public, SchemaID:104, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.44 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.466 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 36, tp general"] [category=ddl] [jobID=109] [conn=8] [job="ID:109, Type:rebase auto_increment ID, State:synced, SchemaState:public, SchemaID:104, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:42.44 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.469 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=109] [2024/05/06 09:24:42.469 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:42.469 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=8] [schemaVersion=55] [cur_db=test_auto_inc_table_opt] [sql="drop table t;"] [user=] [2024/05/06 09:24:42.472 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:110, Type:drop table, State:queueing, SchemaState:public, SchemaID:104, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.47 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:42.473 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:110, Type:drop table, State:queueing, SchemaState:public, SchemaID:104, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.47 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="drop table t;"] [2024/05/06 09:24:42.490 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 36, tp general"] [category=ddl] [jobID=110] [conn=8] [category=ddl] [job="ID:110, Type:drop table, State:queueing, SchemaState:public, SchemaID:104, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:42.47 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.493 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=55] [neededSchemaVersion=56] ["start time"=55.355µs] [gotSchemaVersion=56] [phyTblIDs="[106]"] [actionTypes="[4]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:42.494 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=110] [version=56] [2024/05/06 09:24:42.495 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=56] ["take time"=2.535463ms] [job="ID:110, Type:drop table, State:running, SchemaState:write only, SchemaID:104, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.47 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.504 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 36, tp general"] [category=ddl] [jobID=110] [conn=8] [category=ddl] [job="ID:110, Type:drop table, State:running, SchemaState:write only, SchemaID:104, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:42.47 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.506 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=56] [neededSchemaVersion=57] ["start time"=39.86µs] [gotSchemaVersion=57] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:42.507 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=110] [version=57] [2024/05/06 09:24:42.508 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=57] ["take time"=2.583949ms] [job="ID:110, Type:drop table, State:running, SchemaState:delete only, SchemaID:104, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:42.47 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.512 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 36, tp general"] [category=ddl] [jobID=110] [conn=8] [category=ddl] [job="ID:110, Type:drop table, State:running, SchemaState:delete only, SchemaID:104, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:42.47 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.515 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=57] [neededSchemaVersion=58] ["start time"=35.262µs] [gotSchemaVersion=58] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:42.516 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=110] [version=58] [2024/05/06 09:24:42.517 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=58] ["take time"=2.632722ms] [job="ID:110, Type:drop table, State:done, SchemaState:none, SchemaID:104, TableID:106, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:42.47 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.522 +00:00] [INFO] [delete_range.go:447] ["insert into delete-range table"] [category=ddl] [jobID=110] [tableIDs="[106]"] [comment="drop table: table ID"] [2024/05/06 09:24:42.523 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=110] [jobType="drop table"] [2024/05/06 09:24:42.523 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 36, tp general"] [category=ddl] [jobID=110] [conn=8] [job="ID:110, Type:drop table, State:synced, SchemaState:none, SchemaID:104, TableID:106, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:42.47 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.527 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=110] [elementID=1] [startKey=74800000000000006a] [endKey=74800000000000006b] [2024/05/06 09:24:42.531 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=110] [2024/05/06 09:24:42.531 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:42.532 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=8] [schemaVersion=58] [cur_db=test_auto_inc_table_opt] [sql="create table t (a bigint unsigned auto_increment, unique key idx(a))"] [user=] [2024/05/06 09:24:42.535 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:112, Type:create table, State:queueing, SchemaState:none, SchemaID:104, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.534 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:42.535 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:112, Type:create table, State:queueing, SchemaState:none, SchemaID:104, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.534 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create table t (a bigint unsigned auto_increment, unique key idx(a))"] [2024/05/06 09:24:42.543 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 36, tp general"] [category=ddl] [jobID=112] [conn=8] [category=ddl] [job="ID:112, Type:create table, State:queueing, SchemaState:none, SchemaID:104, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:42.534 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.550 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=58] [neededSchemaVersion=59] ["start time"=211.26µs] [gotSchemaVersion=59] [phyTblIDs="[111]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:42.551 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=112] [version=59] [2024/05/06 09:24:42.552 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=59] ["take time"=2.846504ms] [job="ID:112, Type:create table, State:done, SchemaState:public, SchemaID:104, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.534 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.557 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 36, tp general"] [category=ddl] [jobID=112] [conn=8] [job="ID:112, Type:create table, State:synced, SchemaState:public, SchemaID:104, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:42.534 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.567 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=112] [2024/05/06 09:24:42.567 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:42.567 +00:00] [WARN] [session.go:1572] ["parse SQL failed"] [error="[parser:1064]You have an error in your SQL syntax; check the manual that corresponds to your TiDB version for the right syntax to use line 1 column 32 near \"-1;\" "] [errorVerbose="[parser:1064]You have an error in your SQL syntax; check the manual that corresponds to your TiDB version for the right syntax to use line 1 column 32 near \"-1;\" \ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.(*Error).GenWithStackByArgs\n\texternal/com_github_pingcap_errors/normalize.go:175\ngithub.com/pingcap/tidb/pkg/util.SyntaxError\n\tpkg/util/misc.go:161\ngithub.com/pingcap/tidb/pkg/session.(*session).Parse\n\tpkg/session/session.go:1567\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:375\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecToErr\n\tpkg/testkit/testkit.go:436\ngithub.com/pingcap/tidb/pkg/ddl_test.TestAutoIncrementTableOption\n\tpkg/ddl/db_integration_test.go:2058\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [SQL="alter table t auto_increment = -1;"] [2024/05/06 09:24:42.568 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=8] [schemaVersion=59] [cur_db=test_auto_inc_table_opt] [sql="alter table t auto_increment = 12345678901234567890;"] [user=] [2024/05/06 09:24:42.570 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:113, Type:rebase auto_increment ID, State:queueing, SchemaState:none, SchemaID:104, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.569 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:42.570 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:113, Type:rebase auto_increment ID, State:queueing, SchemaState:none, SchemaID:104, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.569 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t auto_increment = 12345678901234567890;"] [2024/05/06 09:24:42.577 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 36, tp general"] [category=ddl] [jobID=113] [conn=8] [category=ddl] [job="ID:113, Type:rebase auto_increment ID, State:queueing, SchemaState:none, SchemaID:104, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:42.569 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.580 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=59] [neededSchemaVersion=60] ["start time"=207.471µs] [gotSchemaVersion=60] [phyTblIDs="[111]"] [actionTypes="[13]"] [diffTypes="[\"rebase auto_increment ID\"]"] [2024/05/06 09:24:42.581 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=113] [version=60] [2024/05/06 09:24:42.584 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=60] ["take time"=4.605885ms] [job="ID:113, Type:rebase auto_increment ID, State:done, SchemaState:public, SchemaID:104, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.569 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.591 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 36, tp general"] [category=ddl] [jobID=113] [conn=8] [job="ID:113, Type:rebase auto_increment ID, State:synced, SchemaState:public, SchemaID:104, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:42.569 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.594 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=113] [2024/05/06 09:24:42.594 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:42.596 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=8] [schemaVersion=60] [cur_db=test_auto_inc_table_opt] [sql="drop table t;"] [user=] [2024/05/06 09:24:42.598 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:114, Type:drop table, State:queueing, SchemaState:public, SchemaID:104, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.597 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:42.598 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:114, Type:drop table, State:queueing, SchemaState:public, SchemaID:104, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.597 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="drop table t;"] [2024/05/06 09:24:42.610 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 36, tp general"] [category=ddl] [jobID=114] [conn=8] [category=ddl] [job="ID:114, Type:drop table, State:queueing, SchemaState:public, SchemaID:104, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:42.597 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.612 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=60] [neededSchemaVersion=61] ["start time"=40.856µs] [gotSchemaVersion=61] [phyTblIDs="[111]"] [actionTypes="[4]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:42.613 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=114] [version=61] [2024/05/06 09:24:42.617 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=61] ["take time"=5.237169ms] [job="ID:114, Type:drop table, State:running, SchemaState:write only, SchemaID:104, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.597 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.624 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 36, tp general"] [category=ddl] [jobID=114] [conn=8] [category=ddl] [job="ID:114, Type:drop table, State:running, SchemaState:write only, SchemaID:104, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:42.597 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.626 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=61] [neededSchemaVersion=62] ["start time"=37.831µs] [gotSchemaVersion=62] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:42.628 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=114] [version=62] [2024/05/06 09:24:42.629 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=62] ["take time"=2.772288ms] [job="ID:114, Type:drop table, State:running, SchemaState:delete only, SchemaID:104, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:42.597 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.642 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 36, tp general"] [category=ddl] [jobID=114] [conn=8] [category=ddl] [job="ID:114, Type:drop table, State:running, SchemaState:delete only, SchemaID:104, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:42.597 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.654 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=62] [neededSchemaVersion=63] ["start time"=41.093µs] [gotSchemaVersion=63] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:42.655 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=114] [version=63] [2024/05/06 09:24:42.656 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=63] ["take time"=2.115822ms] [job="ID:114, Type:drop table, State:done, SchemaState:none, SchemaID:104, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:42.597 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.673 +00:00] [INFO] [delete_range.go:447] ["insert into delete-range table"] [category=ddl] [jobID=114] [tableIDs="[111]"] [comment="drop table: table ID"] [2024/05/06 09:24:42.674 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=114] [jobType="drop table"] [2024/05/06 09:24:42.674 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 36, tp general"] [category=ddl] [jobID=114] [conn=8] [job="ID:114, Type:drop table, State:synced, SchemaState:none, SchemaID:104, TableID:111, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:42.597 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.681 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=114] [2024/05/06 09:24:42.684 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:42.684 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=114] [elementID=1] [startKey=74800000000000006f] [endKey=748000000000000070] [2024/05/06 09:24:42.685 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=8] [schemaVersion=63] [cur_db=test_auto_inc_table_opt] [sql="create table t (a bigint primary key clustered) auto_increment = 10 AUTO_ID_CACHE 1"] [user=] [2024/05/06 09:24:42.687 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:116, Type:create table, State:queueing, SchemaState:none, SchemaID:104, TableID:115, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.686 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:42.687 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:116, Type:create table, State:queueing, SchemaState:none, SchemaID:104, TableID:115, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.686 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create table t (a bigint primary key clustered) auto_increment = 10 AUTO_ID_CACHE 1"] [2024/05/06 09:24:42.700 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 36, tp general"] [category=ddl] [jobID=116] [conn=8] [category=ddl] [job="ID:116, Type:create table, State:queueing, SchemaState:none, SchemaID:104, TableID:115, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:42.686 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.707 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=63] [neededSchemaVersion=64] ["start time"=167.576µs] [gotSchemaVersion=64] [phyTblIDs="[115]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:42.708 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=116] [version=64] [2024/05/06 09:24:42.710 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=64] ["take time"=2.768216ms] [job="ID:116, Type:create table, State:done, SchemaState:public, SchemaID:104, TableID:115, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.686 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.721 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 36, tp general"] [category=ddl] [jobID=116] [conn=8] [job="ID:116, Type:create table, State:synced, SchemaState:public, SchemaID:104, TableID:115, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:42.686 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.725 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=116] [2024/05/06 09:24:42.725 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:42.725 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=8] [schemaVersion=64] [cur_db=test_auto_inc_table_opt] [sql="alter table t auto_increment = 10;"] [user=] [2024/05/06 09:24:42.727 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:117, Type:rebase auto_increment ID, State:queueing, SchemaState:none, SchemaID:104, TableID:115, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.726 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:42.727 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:117, Type:rebase auto_increment ID, State:queueing, SchemaState:none, SchemaID:104, TableID:115, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.726 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t auto_increment = 10;"] [2024/05/06 09:24:42.740 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 36, tp general"] [category=ddl] [jobID=117] [conn=8] [category=ddl] [job="ID:117, Type:rebase auto_increment ID, State:queueing, SchemaState:none, SchemaID:104, TableID:115, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:42.726 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.744 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=64] [neededSchemaVersion=65] ["start time"=200.149µs] [gotSchemaVersion=65] [phyTblIDs="[115]"] [actionTypes="[13]"] [diffTypes="[\"rebase auto_increment ID\"]"] [2024/05/06 09:24:42.746 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=117] [version=65] [2024/05/06 09:24:42.750 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=65] ["take time"=6.829837ms] [job="ID:117, Type:rebase auto_increment ID, State:done, SchemaState:public, SchemaID:104, TableID:115, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.726 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.762 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 36, tp general"] [category=ddl] [jobID=117] [conn=8] [job="ID:117, Type:rebase auto_increment ID, State:synced, SchemaState:public, SchemaID:104, TableID:115, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:42.726 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.766 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=117] [2024/05/06 09:24:42.766 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:42.767 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=8] [schemaVersion=65] [cur_db=test_auto_inc_table_opt] [sql="alter table t auto_increment = 12345678901234567890;"] [user=] [2024/05/06 09:24:42.769 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:118, Type:rebase auto_increment ID, State:queueing, SchemaState:none, SchemaID:104, TableID:115, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.768 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:42.769 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:118, Type:rebase auto_increment ID, State:queueing, SchemaState:none, SchemaID:104, TableID:115, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.768 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t auto_increment = 12345678901234567890;"] [2024/05/06 09:24:42.780 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 36, tp general"] [category=ddl] [jobID=118] [conn=8] [category=ddl] [job="ID:118, Type:rebase auto_increment ID, State:queueing, SchemaState:none, SchemaID:104, TableID:115, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:42.768 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.788 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=65] [neededSchemaVersion=66] ["start time"=149.402µs] [gotSchemaVersion=66] [phyTblIDs="[115]"] [actionTypes="[13]"] [diffTypes="[\"rebase auto_increment ID\"]"] [2024/05/06 09:24:42.789 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=118] [version=66] [2024/05/06 09:24:42.790 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=66] ["take time"=2.063258ms] [job="ID:118, Type:rebase auto_increment ID, State:done, SchemaState:public, SchemaID:104, TableID:115, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.768 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.797 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 36, tp general"] [category=ddl] [jobID=118] [conn=8] [job="ID:118, Type:rebase auto_increment ID, State:synced, SchemaState:public, SchemaID:104, TableID:115, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:42.768 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.801 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=118] [2024/05/06 09:24:42.801 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:42.801 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=8] [schemaVersion=66] [cur_db=test_auto_inc_table_opt] [sql="drop table t;"] [user=] [2024/05/06 09:24:42.804 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:119, Type:drop table, State:queueing, SchemaState:public, SchemaID:104, TableID:115, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.803 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:42.804 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:119, Type:drop table, State:queueing, SchemaState:public, SchemaID:104, TableID:115, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.803 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="drop table t;"] [2024/05/06 09:24:42.813 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 36, tp general"] [category=ddl] [jobID=119] [conn=8] [category=ddl] [job="ID:119, Type:drop table, State:queueing, SchemaState:public, SchemaID:104, TableID:115, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:42.803 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.815 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=66] [neededSchemaVersion=67] ["start time"=56.659µs] [gotSchemaVersion=67] [phyTblIDs="[115]"] [actionTypes="[4]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:42.817 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=119] [version=67] [2024/05/06 09:24:42.818 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=67] ["take time"=2.963973ms] [job="ID:119, Type:drop table, State:running, SchemaState:write only, SchemaID:104, TableID:115, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.803 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.826 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 36, tp general"] [category=ddl] [jobID=119] [conn=8] [category=ddl] [job="ID:119, Type:drop table, State:running, SchemaState:write only, SchemaID:104, TableID:115, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:42.803 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.828 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=67] [neededSchemaVersion=68] ["start time"=40.369µs] [gotSchemaVersion=68] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:42.830 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=119] [version=68] [2024/05/06 09:24:42.832 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=68] ["take time"=4.035379ms] [job="ID:119, Type:drop table, State:running, SchemaState:delete only, SchemaID:104, TableID:115, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:42.803 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.839 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 36, tp general"] [category=ddl] [jobID=119] [conn=8] [category=ddl] [job="ID:119, Type:drop table, State:running, SchemaState:delete only, SchemaID:104, TableID:115, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:42.803 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.841 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=68] [neededSchemaVersion=69] ["start time"=38.837µs] [gotSchemaVersion=69] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:42.843 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=119] [version=69] [2024/05/06 09:24:42.843 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=69] ["take time"=2.066273ms] [job="ID:119, Type:drop table, State:done, SchemaState:none, SchemaID:104, TableID:115, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:42.803 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.852 +00:00] [INFO] [delete_range.go:447] ["insert into delete-range table"] [category=ddl] [jobID=119] [tableIDs="[115]"] [comment="drop table: table ID"] [2024/05/06 09:24:42.853 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=119] [jobType="drop table"] [2024/05/06 09:24:42.853 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 36, tp general"] [category=ddl] [jobID=119] [conn=8] [job="ID:119, Type:drop table, State:synced, SchemaState:none, SchemaID:104, TableID:115, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:42.803 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.857 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=119] [elementID=1] [startKey=748000000000000073] [endKey=748000000000000074] [2024/05/06 09:24:42.861 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=119] [2024/05/06 09:24:42.861 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:42.862 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=8] [schemaVersion=69] [cur_db=test_auto_inc_table_opt] [sql="create table t (a bigint unsigned auto_increment, unique key idx(a)) AUTO_ID_CACHE 1"] [user=] [2024/05/06 09:24:42.864 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:121, Type:create table, State:queueing, SchemaState:none, SchemaID:104, TableID:120, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:42.864 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:121, Type:create table, State:queueing, SchemaState:none, SchemaID:104, TableID:120, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create table t (a bigint unsigned auto_increment, unique key idx(a)) AUTO_ID_CACHE 1"] [2024/05/06 09:24:42.877 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 36, tp general"] [category=ddl] [jobID=121] [conn=8] [category=ddl] [job="ID:121, Type:create table, State:queueing, SchemaState:none, SchemaID:104, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:42.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.883 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=69] [neededSchemaVersion=70] ["start time"=199.499µs] [gotSchemaVersion=70] [phyTblIDs="[120]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:42.885 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=121] [version=70] [2024/05/06 09:24:42.885 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=70] ["take time"=2.02662ms] [job="ID:121, Type:create table, State:done, SchemaState:public, SchemaID:104, TableID:120, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.895 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 36, tp general"] [category=ddl] [jobID=121] [conn=8] [job="ID:121, Type:create table, State:synced, SchemaState:public, SchemaID:104, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:42.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.899 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=121] [2024/05/06 09:24:42.899 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:42.899 +00:00] [WARN] [session.go:1572] ["parse SQL failed"] [error="[parser:1064]You have an error in your SQL syntax; check the manual that corresponds to your TiDB version for the right syntax to use line 1 column 32 near \"-1;\" "] [errorVerbose="[parser:1064]You have an error in your SQL syntax; check the manual that corresponds to your TiDB version for the right syntax to use line 1 column 32 near \"-1;\" \ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.(*Error).GenWithStackByArgs\n\texternal/com_github_pingcap_errors/normalize.go:175\ngithub.com/pingcap/tidb/pkg/util.SyntaxError\n\tpkg/util/misc.go:161\ngithub.com/pingcap/tidb/pkg/session.(*session).Parse\n\tpkg/session/session.go:1567\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:375\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecToErr\n\tpkg/testkit/testkit.go:436\ngithub.com/pingcap/tidb/pkg/ddl_test.TestAutoIncrementTableOption\n\tpkg/ddl/db_integration_test.go:2058\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [SQL="alter table t auto_increment = -1;"] [2024/05/06 09:24:42.899 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=8] [schemaVersion=70] [cur_db=test_auto_inc_table_opt] [sql="alter table t auto_increment = 12345678901234567890;"] [user=] [2024/05/06 09:24:42.902 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:122, Type:rebase auto_increment ID, State:queueing, SchemaState:none, SchemaID:104, TableID:120, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.901 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:42.902 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:122, Type:rebase auto_increment ID, State:queueing, SchemaState:none, SchemaID:104, TableID:120, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.901 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t auto_increment = 12345678901234567890;"] [2024/05/06 09:24:42.916 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 36, tp general"] [category=ddl] [jobID=122] [conn=8] [category=ddl] [job="ID:122, Type:rebase auto_increment ID, State:queueing, SchemaState:none, SchemaID:104, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:42.901 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.917 +00:00] [INFO] [autoid.go:242] ["rebase4Unsigned from"] [category="autoid service"] [dbID=104] [tblID=120] [from=0] [to=12345678901234571889] [2024/05/06 09:24:42.930 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=70] [neededSchemaVersion=71] ["start time"=193.576µs] [gotSchemaVersion=71] [phyTblIDs="[120]"] [actionTypes="[13]"] [diffTypes="[\"rebase auto_increment ID\"]"] [2024/05/06 09:24:42.931 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=122] [version=71] [2024/05/06 09:24:42.933 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=71] ["take time"=4.088985ms] [job="ID:122, Type:rebase auto_increment ID, State:done, SchemaState:public, SchemaID:104, TableID:120, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.901 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.940 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 36, tp general"] [category=ddl] [jobID=122] [conn=8] [job="ID:122, Type:rebase auto_increment ID, State:synced, SchemaState:public, SchemaID:104, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:42.901 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.952 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=122] [2024/05/06 09:24:42.953 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:42.955 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=8] [schemaVersion=71] [cur_db=test_auto_inc_table_opt] [sql="drop table t;"] [user=] [2024/05/06 09:24:42.957 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:123, Type:drop table, State:queueing, SchemaState:public, SchemaID:104, TableID:120, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.956 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:42.957 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:123, Type:drop table, State:queueing, SchemaState:public, SchemaID:104, TableID:120, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.956 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="drop table t;"] [2024/05/06 09:24:42.969 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 36, tp general"] [category=ddl] [jobID=123] [conn=8] [category=ddl] [job="ID:123, Type:drop table, State:queueing, SchemaState:public, SchemaID:104, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:42.956 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.972 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=71] [neededSchemaVersion=72] ["start time"=46.653µs] [gotSchemaVersion=72] [phyTblIDs="[120]"] [actionTypes="[4]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:42.973 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=123] [version=72] [2024/05/06 09:24:42.974 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=72] ["take time"=2.956202ms] [job="ID:123, Type:drop table, State:running, SchemaState:write only, SchemaID:104, TableID:120, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:42.956 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.980 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 36, tp general"] [category=ddl] [jobID=123] [conn=8] [category=ddl] [job="ID:123, Type:drop table, State:running, SchemaState:write only, SchemaID:104, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:42.956 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.984 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=72] [neededSchemaVersion=73] ["start time"=51.449µs] [gotSchemaVersion=73] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:42.985 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=123] [version=73] [2024/05/06 09:24:42.989 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=73] ["take time"=4.858658ms] [job="ID:123, Type:drop table, State:running, SchemaState:delete only, SchemaID:104, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:42.956 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.995 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 36, tp general"] [category=ddl] [jobID=123] [conn=8] [category=ddl] [job="ID:123, Type:drop table, State:running, SchemaState:delete only, SchemaID:104, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:42.956 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:42.999 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=73] [neededSchemaVersion=74] ["start time"=42.456µs] [gotSchemaVersion=74] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:43.000 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=123] [version=74] [2024/05/06 09:24:43.002 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=74] ["take time"=2.803838ms] [job="ID:123, Type:drop table, State:done, SchemaState:none, SchemaID:104, TableID:120, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:42.956 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.008 +00:00] [INFO] [delete_range.go:447] ["insert into delete-range table"] [category=ddl] [jobID=123] [tableIDs="[120]"] [comment="drop table: table ID"] [2024/05/06 09:24:43.009 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=123] [jobType="drop table"] [2024/05/06 09:24:43.009 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 36, tp general"] [category=ddl] [jobID=123] [conn=8] [job="ID:123, Type:drop table, State:synced, SchemaState:none, SchemaID:104, TableID:120, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:42.956 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.017 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=123] [elementID=1] [startKey=748000000000000078] [endKey=748000000000000079] [2024/05/06 09:24:43.019 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=123] [2024/05/06 09:24:43.020 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:43.026 +00:00] [INFO] [mock.go:106] ["owner manager is canceled"] [category=ddl] [ID=6785b897-9478-4fbd-90e2-284b1ec80935] [ownerKey=/tidb/ddl/fg/owner] [2024/05/06 09:24:43.026 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:43.026 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 39, tp add index"] [category=ddl] ["take time"=3.495µs] [2024/05/06 09:24:43.026 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 40, tp add index"] [category=ddl] ["take time"=2.421µs] [2024/05/06 09:24:43.026 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 37, tp add index"] [category=ddl] ["take time"=1.61µs] [2024/05/06 09:24:43.026 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 38, tp add index"] [category=ddl] ["take time"=1.996µs] [2024/05/06 09:24:43.026 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:43.027 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 36, tp general"] [category=ddl] ["take time"=1.948µs] [2024/05/06 09:24:43.027 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:43.027 +00:00] [INFO] [delete_range.go:162] ["closing delRange"] [category=ddl] [2024/05/06 09:24:43.027 +00:00] [INFO] [session_pool.go:99] ["closing session pool"] [category=ddl] [2024/05/06 09:24:43.028 +00:00] [INFO] [ddl.go:951] ["DDL closed"] [category=ddl] [ID=6785b897-9478-4fbd-90e2-284b1ec80935] ["take time"=7.507544ms] [2024/05/06 09:24:43.028 +00:00] [INFO] [ddl.go:769] ["stop DDL"] [category=ddl] [ID=6785b897-9478-4fbd-90e2-284b1ec80935] [2024/05/06 09:24:43.028 +00:00] [INFO] [domain.go:1026] ["stopping ttlJobManager"] [2024/05/06 09:24:43.028 +00:00] [INFO] [task_manager.go:194] ["shrink ttl worker"] [ttl-worker=job-manager] [ttl-worker=task-manager] [originalCount=4] [newCount=0] [2024/05/06 09:24:43.028 +00:00] [INFO] [scan.go:309] ["ttlScanWorker loop exited."] [2024/05/06 09:24:43.028 +00:00] [INFO] [scan.go:309] ["ttlScanWorker loop exited."] [2024/05/06 09:24:43.028 +00:00] [INFO] [scan.go:309] ["ttlScanWorker loop exited."] [2024/05/06 09:24:43.029 +00:00] [INFO] [scan.go:309] ["ttlScanWorker loop exited."] [2024/05/06 09:24:43.029 +00:00] [INFO] [task_manager.go:194] ["shrink ttl worker"] [ttl-worker=job-manager] [ttl-worker=task-manager] [originalCount=4] [newCount=0] [2024/05/06 09:24:43.029 +00:00] [INFO] [del.go:261] ["ttlDeleteWorker loop exited."] [2024/05/06 09:24:43.029 +00:00] [INFO] [del.go:261] ["ttlDeleteWorker loop exited."] [2024/05/06 09:24:43.029 +00:00] [INFO] [del.go:261] ["ttlDeleteWorker loop exited."] [2024/05/06 09:24:43.029 +00:00] [INFO] [del.go:261] ["ttlDeleteWorker loop exited."] [2024/05/06 09:24:43.030 +00:00] [INFO] [job_manager.go:174] ["ttlJobManager loop exited."] [ttl-worker=job-manager] [2024/05/06 09:24:43.030 +00:00] [INFO] [domain.go:1037] ["ttlJobManager exited."] [2024/05/06 09:24:43.030 +00:00] [INFO] [manager.go:280] ["recoverMetaLoop done"] [server-id=:4000] [2024/05/06 09:24:43.030 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=mdlCheckLoop] [2024/05/06 09:24:43.030 +00:00] [INFO] [domain.go:907] ["loadSchemaInLoop exited."] [2024/05/06 09:24:43.030 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=loadSchemaInLoop] [2024/05/06 09:24:43.030 +00:00] [INFO] [domain.go:1527] ["stopping dist task executor manager"] [2024/05/06 09:24:43.030 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=loadSigningCertLoop] [2024/05/06 09:24:43.030 +00:00] [INFO] [stats_syncload.go:202] ["SubLoadWorker exited."] [2024/05/06 09:24:43.030 +00:00] [INFO] [domain.go:1750] ["LoadSysVarCacheLoop exited."] [2024/05/06 09:24:43.030 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=LoadSysVarCacheLoop] [2024/05/06 09:24:43.030 +00:00] [INFO] [domain.go:1700] ["loadPrivilegeInLoop exited."] [2024/05/06 09:24:43.030 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=loadPrivilegeInLoop] [2024/05/06 09:24:43.030 +00:00] [INFO] [stats_syncload.go:202] ["SubLoadWorker exited."] [2024/05/06 09:24:43.030 +00:00] [INFO] [stats_syncload.go:202] ["SubLoadWorker exited."] [2024/05/06 09:24:43.030 +00:00] [INFO] [mock.go:106] ["owner manager is canceled"] [category=ddl] [ID=6785b897-9478-4fbd-90e2-284b1ec80935] [ownerKey=/tidb/stats/owner] [2024/05/06 09:24:43.030 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=quitStatsOwner] [2024/05/06 09:24:43.030 +00:00] [INFO] [stats_syncload.go:202] ["SubLoadWorker exited."] [2024/05/06 09:24:43.030 +00:00] [INFO] [stats_syncload.go:202] ["SubLoadWorker exited."] [2024/05/06 09:24:43.030 +00:00] [INFO] [domain.go:2352] ["indexUsageWorker exited."] [2024/05/06 09:24:43.030 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=indexUsageWorker] [2024/05/06 09:24:43.030 +00:00] [INFO] [domain.go:2074] ["dumpFileGcChecker exited."] [2024/05/06 09:24:43.030 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=dumpFileGcChecker] [2024/05/06 09:24:43.030 +00:00] [INFO] [domain.go:737] ["globalConfigSyncerKeeper exited."] [2024/05/06 09:24:43.030 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=globalConfigSyncerKeeper] [2024/05/06 09:24:43.030 +00:00] [INFO] [domain.go:761] ["topologySyncerKeeper exited."] [2024/05/06 09:24:43.030 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=topologySyncerKeeper] [2024/05/06 09:24:43.030 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=runawayStartLoop] [2024/05/06 09:24:43.030 +00:00] [INFO] [domain.go:683] ["topNSlowQueryLoop exited."] [2024/05/06 09:24:43.030 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=topNSlowQueryLoop] [2024/05/06 09:24:43.030 +00:00] [INFO] [domain.go:711] ["infoSyncerKeeper exited."] [2024/05/06 09:24:43.030 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=infoSyncerKeeper] [2024/05/06 09:24:43.030 +00:00] [INFO] [manager.go:179] ["handle tasks loop done"] [server-id=:4000] [2024/05/06 09:24:43.030 +00:00] [INFO] [domain.go:1529] ["dist task executor manager stopped"] [2024/05/06 09:24:43.030 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=distTaskFrameworkLoop] [2024/05/06 09:24:43.030 +00:00] [INFO] [mock.go:106] ["owner manager is canceled"] [category=ddl] [ID=6785b897-9478-4fbd-90e2-284b1ec80935] [ownerKey=/tidb/bindinfo/owner] [2024/05/06 09:24:43.031 +00:00] [INFO] [domain.go:1889] ["globalBindHandleWorkerLoop exited."] [2024/05/06 09:24:43.037 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=globalBindHandleWorkerLoop] [2024/05/06 09:24:43.038 +00:00] [INFO] [domain.go:1074] ["domain closed"] ["take time"=17.246003ms] [2024/05/06 09:24:43.039 +00:00] [INFO] [db.go:567] ["Closing database"] [2024/05/06 09:24:43.039 +00:00] [INFO] [db.go:592] ["Memtable flushed"] [2024/05/06 09:24:43.039 +00:00] [INFO] [db.go:596] ["Compaction finished"] [2024/05/06 09:24:43.039 +00:00] [INFO] [db.go:615] ["BlobManager finished"] [2024/05/06 09:24:43.039 +00:00] [INFO] [db.go:619] ["ResourceManager finished"] [2024/05/06 09:24:43.039 +00:00] [INFO] [db.go:625] ["Waiting for closer"] --- PASS: TestAutoIncrementTableOption (3.36s) === RUN TestDDLJobErrorCount [2024/05/06 09:24:43.044 +00:00] [INFO] [store_cache.go:510] ["change store resolve state"] [store=1] [addr=store1] [from=unresolved] [to=resolved] [liveness-state=reachable] [2024/05/06 09:24:43.044 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:43.044 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:43.045 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:43.045 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:43.046 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:43.048 +00:00] [INFO] [tidb.go:80] ["new domain"] [store=f7ce3519-b18a-4659-bb92-19d5653f4f99] ["ddl lease"=600ms] ["stats lease"=-1ns] [2024/05/06 09:24:43.055 +00:00] [WARN] [controller.go:198] ["[resource group controller] server does not save config, load config failed"] [2024/05/06 09:24:43.055 +00:00] [INFO] [controller.go:185] ["load resource controller config"] [config="{\"degraded-mode-wait-duration\":\"0s\",\"ltb-max-wait-duration\":\"30s\",\"wait-retry-interval\":\"50ms\",\"wait-retry-times\":10,\"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,\"WaitRetryInterval\":50000000,\"WaitRetryTimes\":10,\"DegradedModeWaitDuration\":0}"] [2024/05/06 09:24:43.056 +00:00] [WARN] [domain.go:245] ["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:335\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).loadInfoSchema\n\tpkg/domain/domain.go:242\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).Reload\n\tpkg/domain/domain.go:606\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).Init\n\tpkg/domain/domain.go:1260\ngithub.com/pingcap/tidb/pkg/session.(*domainMap).Get.func1\n\tpkg/session/tidb.go:92\ngithub.com/pingcap/tidb/pkg/util.RunWithRetry\n\tpkg/util/misc.go:70\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:3620\ngithub.com/pingcap/tidb/pkg/session.createSession\n\tpkg/session/session.go:3612\ngithub.com/pingcap/tidb/pkg/session.runInBootstrapSession\n\tpkg/session/session.go:3562\ngithub.com/pingcap/tidb/pkg/session.bootstrapSessionImpl\n\tpkg/session/session.go:3346\ngithub.com/pingcap/tidb/pkg/session.BootstrapSession\n\tpkg/session/session.go:3312\ngithub.com/pingcap/tidb/pkg/testkit.bootstrap\n\tpkg/testkit/mockstore.go:294\ngithub.com/pingcap/tidb/pkg/testkit.CreateMockStoreAndDomainWithSchemaLease\n\tpkg/testkit/mockstore.go:319\ngithub.com/pingcap/tidb/pkg/ddl_test.TestDDLJobErrorCount\n\tpkg/ddl/db_test.go:382\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [version=0] [2024/05/06 09:24:43.060 +00:00] [INFO] [domain.go:315] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=0] ["start time"=3.689078ms] [2024/05/06 09:24:43.060 +00:00] [INFO] [domain.go:635] ["full load and reset schema validator"] [2024/05/06 09:24:43.060 +00:00] [INFO] [ddl.go:818] ["start DDL"] [category=ddl] [ID=01a0e1d5-772b-4c7d-84d5-f883bb42191c] [runWorker=true] [2024/05/06 09:24:43.061 +00:00] [INFO] [ddl.go:777] ["start delRangeManager OK"] [category=ddl] ["is a emulator"=true] [2024/05/06 09:24:43.061 +00:00] [WARN] [env.go:51] ["initialize environment failed"] [category=ddl-ingest] ["storage limitation"="only support TiKV storage"] ["current storage"=unistore] ["lightning is initialized"=false] [2024/05/06 09:24:43.061 +00:00] [INFO] [delete_range.go:172] ["start delRange emulator"] [category=ddl] [2024/05/06 09:24:43.061 +00:00] [INFO] [job_table.go:334] ["get global state and global state change"] [category=ddl] [oldState=false] [currState=false] [2024/05/06 09:24:43.061 +00:00] [INFO] [job_table.go:349] ["the owner sets owner operator value"] [category=ddl] [ownerOp=none] [2024/05/06 09:24:43.061 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=loadSchemaInLoop] [2024/05/06 09:24:43.061 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=mdlCheckLoop] [2024/05/06 09:24:43.061 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=topNSlowQueryLoop] [2024/05/06 09:24:43.061 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=infoSyncerKeeper] [2024/05/06 09:24:43.062 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=globalConfigSyncerKeeper] [2024/05/06 09:24:43.062 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=runawayStartLoop] [2024/05/06 09:24:43.062 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=requestUnitsWriterLoop] [2024/05/06 09:24:43.062 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=topologySyncerKeeper] [2024/05/06 09:24:43.062 +00:00] [INFO] [runaway.go:149] ["try to start runaway manager loop"] [2024/05/06 09:24:43.062 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=requestUnitsWriterLoop] [2024/05/06 09:24:43.062 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=closestReplicaReadCheckLoop] [2024/05/06 09:24:43.062 +00:00] [WARN] [domain.go:1326] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 09:24:43.063 +00:00] [INFO] [controller.go:447] ["[resource group controller] create resource group cost controller"] [name=default] [2024/05/06 09:24:43.063 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=0] [cur_db=mysql] [sql="CREATE DATABASE IF NOT EXISTS test"] [user=] [2024/05/06 09:24:43.066 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:43.065 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:43.066 +00:00] [INFO] [ddl.go:1182] ["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 09:24:43.065 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE DATABASE IF NOT EXISTS test"] [2024/05/06 09:24:43.074 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:43.065 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.082 +00:00] [INFO] [domain.go:315] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=1] ["start time"=3.475426ms] [2024/05/06 09:24:43.082 +00:00] [INFO] [domain.go:635] ["full load and reset schema validator"] [2024/05/06 09:24:43.084 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:43.084 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=3] [version=1] [2024/05/06 09:24:43.086 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=1] ["take time"=8.200125ms] [job="ID:3, Type:create schema, State:done, SchemaState:public, SchemaID:2, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:43.065 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.091 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:43.065 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.094 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=3] [2024/05/06 09:24:43.094 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:43.094 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=1] [cur_db=mysql] [sql="CREATE DATABASE IF NOT EXISTS `mysql`"] [user=] [2024/05/06 09:24:43.096 +00:00] [INFO] [session.go:3945] ["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 09:24:43.102 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:43.098 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:43.102 +00:00] [INFO] [ddl.go:1182] ["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 09:24:43.098 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:43.136 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:43.098 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.153 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=1] [neededSchemaVersion=2] ["start time"=975.982µs] [gotSchemaVersion=2] [phyTblIDs="[4]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:43.154 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:43.154 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=5] [version=2] [2024/05/06 09:24:43.159 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=2] ["take time"=7.625054ms] [job="ID:5, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:4, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:43.098 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.166 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:43.098 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.184 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=5] [2024/05/06 09:24:43.184 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:43.185 +00:00] [INFO] [session.go:3945] ["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 09:24:43.188 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:43.187 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:43.188 +00:00] [INFO] [ddl.go:1182] ["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 09:24:43.187 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:43.202 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:43.187 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.205 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=2] [neededSchemaVersion=3] ["start time"=292.974µs] [gotSchemaVersion=3] [phyTblIDs="[6]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:43.207 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:43.207 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=7] [version=3] [2024/05/06 09:24:43.209 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=3] ["take time"=4.304448ms] [job="ID:7, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:6, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:43.187 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.255 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:43.187 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.261 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=7] [2024/05/06 09:24:43.261 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:43.262 +00:00] [INFO] [session.go:3945] ["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 09:24:43.265 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:43.263 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:43.265 +00:00] [INFO] [ddl.go:1182] ["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 09:24:43.263 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:43.286 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:43.263 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.294 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=3] [neededSchemaVersion=4] ["start time"=237.408µs] [gotSchemaVersion=4] [phyTblIDs="[8]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:43.295 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:43.295 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=9] [version=4] [2024/05/06 09:24:43.298 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=4] ["take time"=4.705328ms] [job="ID:9, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:8, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:43.263 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.305 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:43.263 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.314 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=9] [2024/05/06 09:24:43.314 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:43.315 +00:00] [INFO] [session.go:3945] ["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 09:24:43.327 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:43.317 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:43.327 +00:00] [INFO] [ddl.go:1182] ["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 09:24:43.317 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:43.348 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:43.317 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.358 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=4] [neededSchemaVersion=5] ["start time"=5.002483ms] [gotSchemaVersion=5] [phyTblIDs="[10]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:43.359 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:43.360 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=11] [version=5] [2024/05/06 09:24:43.361 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=5] ["take time"=8.035973ms] [job="ID:11, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:10, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:43.317 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.374 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:43.317 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.383 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=11] [2024/05/06 09:24:43.383 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:43.383 +00:00] [INFO] [session.go:3945] ["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 09:24:43.393 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:43.391 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:43.393 +00:00] [INFO] [ddl.go:1182] ["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 09:24:43.391 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:43.401 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:43.391 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.409 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=5] [neededSchemaVersion=6] ["start time"=331.011µs] [gotSchemaVersion=6] [phyTblIDs="[12]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:43.410 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:43.410 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=13] [version=6] [2024/05/06 09:24:43.411 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=6] ["take time"=2.972857ms] [job="ID:13, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:12, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:43.391 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.417 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:43.391 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.421 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=13] [2024/05/06 09:24:43.421 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:43.423 +00:00] [INFO] [session.go:3945] ["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 09:24:43.427 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:43.425 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:43.427 +00:00] [INFO] [ddl.go:1182] ["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 09:24:43.425 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:43.433 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:43.425 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.437 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=6] [neededSchemaVersion=7] ["start time"=335.112µs] [gotSchemaVersion=7] [phyTblIDs="[14]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:43.438 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:43.438 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=15] [version=7] [2024/05/06 09:24:43.439 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=7] ["take time"=2.223004ms] [job="ID:15, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:14, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:43.425 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.447 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:43.425 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.454 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=15] [2024/05/06 09:24:43.455 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:43.455 +00:00] [INFO] [session.go:3945] ["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 09:24:43.458 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:43.457 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:43.458 +00:00] [INFO] [ddl.go:1182] ["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 09:24:43.457 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:43.466 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:43.457 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.469 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=7] [neededSchemaVersion=8] ["start time"=226.916µs] [gotSchemaVersion=8] [phyTblIDs="[16]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:43.470 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:43.471 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=17] [version=8] [2024/05/06 09:24:43.471 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=8] ["take time"=2.08995ms] [job="ID:17, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:16, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:43.457 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.481 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:43.457 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.484 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=17] [2024/05/06 09:24:43.484 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:43.484 +00:00] [INFO] [session.go:3945] ["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 09:24:43.489 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:43.487 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:43.489 +00:00] [INFO] [ddl.go:1182] ["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 09:24:43.487 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:43.498 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:43.487 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.501 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=8] [neededSchemaVersion=9] ["start time"=234.826µs] [gotSchemaVersion=9] [phyTblIDs="[18]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:43.502 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:43.502 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=19] [version=9] [2024/05/06 09:24:43.506 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=9] ["take time"=5.549801ms] [job="ID:19, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:18, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:43.487 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.519 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:43.487 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.525 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=19] [2024/05/06 09:24:43.525 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:43.526 +00:00] [INFO] [session.go:3945] ["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 09:24:43.529 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:43.527 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:43.529 +00:00] [INFO] [ddl.go:1182] ["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 09:24:43.527 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:43.542 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:43.527 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.545 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=9] [neededSchemaVersion=10] ["start time"=281.503µs] [gotSchemaVersion=10] [phyTblIDs="[20]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:43.547 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:43.547 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=21] [version=10] [2024/05/06 09:24:43.547 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=10] ["take time"=2.159691ms] [job="ID:21, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:20, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:43.527 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.552 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:43.527 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.557 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=21] [2024/05/06 09:24:43.557 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:43.557 +00:00] [INFO] [session.go:3945] ["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 09:24:43.560 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:43.559 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:43.560 +00:00] [INFO] [ddl.go:1182] ["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 09:24:43.559 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:43.586 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:43.559 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.589 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=10] [neededSchemaVersion=11] ["start time"=309.997µs] [gotSchemaVersion=11] [phyTblIDs="[22]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:43.591 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:43.591 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=23] [version=11] [2024/05/06 09:24:43.591 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=11] ["take time"=2.021013ms] [job="ID:23, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:22, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:43.559 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.604 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:43.559 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.608 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=23] [2024/05/06 09:24:43.608 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:43.609 +00:00] [INFO] [session.go:3945] ["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 09:24:43.609 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(6291456) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:43.613 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:43.61 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:43.613 +00:00] [INFO] [ddl.go:1182] ["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 09:24:43.61 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:43.626 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:43.61 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.633 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=11] [neededSchemaVersion=12] ["start time"=425.278µs] [gotSchemaVersion=12] [phyTblIDs="[24]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:43.634 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:43.634 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=25] [version=12] [2024/05/06 09:24:43.638 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=12] ["take time"=5.939791ms] [job="ID:25, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:24, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:43.61 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.648 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:43.61 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.653 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=25] [2024/05/06 09:24:43.653 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:43.653 +00:00] [INFO] [session.go:3945] ["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 09:24:43.657 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:43.655 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:43.657 +00:00] [INFO] [ddl.go:1182] ["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 09:24:43.655 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:43.667 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:43.655 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.674 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=12] [neededSchemaVersion=13] ["start time"=393.538µs] [gotSchemaVersion=13] [phyTblIDs="[26]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:43.675 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:43.675 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=27] [version=13] [2024/05/06 09:24:43.677 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=13] ["take time"=3.683309ms] [job="ID:27, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:26, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:43.655 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.696 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:43.655 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.700 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=27] [2024/05/06 09:24:43.700 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:43.701 +00:00] [INFO] [session.go:3945] ["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 09:24:43.704 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:43.702 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:43.704 +00:00] [INFO] [ddl.go:1182] ["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 09:24:43.702 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:43.715 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:43.702 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.718 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=13] [neededSchemaVersion=14] ["start time"=286.485µs] [gotSchemaVersion=14] [phyTblIDs="[28]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:43.720 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:43.720 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=29] [version=14] [2024/05/06 09:24:43.721 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=14] ["take time"=2.717817ms] [job="ID:29, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:28, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:43.702 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.730 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:43.702 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.742 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=29] [2024/05/06 09:24:43.742 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:43.743 +00:00] [INFO] [session.go:3945] ["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 09:24:43.746 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:43.744 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:43.746 +00:00] [INFO] [ddl.go:1182] ["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 09:24:43.744 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:43.754 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:43.744 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.757 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=14] [neededSchemaVersion=15] ["start time"=274.146µs] [gotSchemaVersion=15] [phyTblIDs="[30]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:43.758 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:43.759 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=31] [version=15] [2024/05/06 09:24:43.760 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=15] ["take time"=2.85792ms] [job="ID:31, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:30, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:43.744 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.767 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:43.744 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.771 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=31] [2024/05/06 09:24:43.771 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:43.772 +00:00] [INFO] [session.go:3945] ["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 09:24:43.775 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:43.773 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:43.775 +00:00] [INFO] [ddl.go:1182] ["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 09:24:43.773 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:43.783 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:43.773 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.786 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=15] [neededSchemaVersion=16] ["start time"=263.892µs] [gotSchemaVersion=16] [phyTblIDs="[32]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:43.788 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:43.788 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=33] [version=16] [2024/05/06 09:24:43.788 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=16] ["take time"=2.058199ms] [job="ID:33, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:32, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:43.773 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.807 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:43.773 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.811 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=33] [2024/05/06 09:24:43.811 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:43.812 +00:00] [INFO] [session.go:3945] ["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 09:24:43.815 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:43.813 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:43.815 +00:00] [INFO] [ddl.go:1182] ["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 09:24:43.813 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:43.826 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:43.813 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.832 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=16] [neededSchemaVersion=17] ["start time"=311.14µs] [gotSchemaVersion=17] [phyTblIDs="[34]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:43.833 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:43.833 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=35] [version=17] [2024/05/06 09:24:43.839 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=17] ["take time"=6.939577ms] [job="ID:35, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:34, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:43.813 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.848 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:43.813 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.852 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=35] [2024/05/06 09:24:43.852 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:43.852 +00:00] [INFO] [session.go:3945] ["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 09:24:43.857 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:43.854 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:43.857 +00:00] [INFO] [ddl.go:1182] ["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 09:24:43.854 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:43.867 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:43.854 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.870 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=17] [neededSchemaVersion=18] ["start time"=286.19µs] [gotSchemaVersion=18] [phyTblIDs="[36]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:43.871 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:43.872 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=37] [version=18] [2024/05/06 09:24:43.872 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=18] ["take time"=2.117657ms] [job="ID:37, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:36, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:43.854 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.897 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:43.854 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.907 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=37] [2024/05/06 09:24:43.908 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:43.908 +00:00] [INFO] [session.go:3945] ["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 09:24:43.913 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:43.911 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:43.913 +00:00] [INFO] [ddl.go:1182] ["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 09:24:43.911 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:43.956 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:43.911 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.965 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=18] [neededSchemaVersion=19] ["start time"=517.033µs] [gotSchemaVersion=19] [phyTblIDs="[38]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:43.967 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:43.967 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=39] [version=19] [2024/05/06 09:24:43.967 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=19] ["take time"=2.354916ms] [job="ID:39, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:38, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:43.911 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.977 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:43.911 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:43.982 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=39] [2024/05/06 09:24:43.983 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:43.985 +00:00] [INFO] [session.go:3945] ["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 09:24:43.991 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:43.989 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:43.991 +00:00] [INFO] [ddl.go:1182] ["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 09:24:43.989 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:43.998 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:43.989 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.002 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=19] [neededSchemaVersion=20] ["start time"=348.181µs] [gotSchemaVersion=20] [phyTblIDs="[40]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:44.007 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:44.007 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=41] [version=20] [2024/05/06 09:24:44.008 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=20] ["take time"=6.122703ms] [job="ID:41, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:40, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:43.989 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.015 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:43.989 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.019 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=41] [2024/05/06 09:24:44.019 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:44.019 +00:00] [INFO] [session.go:3945] ["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 09:24:44.023 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:44.021 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:44.023 +00:00] [INFO] [ddl.go:1182] ["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 09:24:44.021 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:44.033 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:44.021 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.037 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=20] [neededSchemaVersion=21] ["start time"=246.856µs] [gotSchemaVersion=21] [phyTblIDs="[42]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:44.039 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:44.039 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=43] [version=21] [2024/05/06 09:24:44.039 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=21] ["take time"=2.071512ms] [job="ID:43, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:42, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:44.021 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.045 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:44.021 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.056 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=43] [2024/05/06 09:24:44.057 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:44.057 +00:00] [INFO] [session.go:3945] ["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 09:24:44.061 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:44.059 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:44.061 +00:00] [INFO] [ddl.go:1182] ["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 09:24:44.059 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE TABLE IF NOT EXISTS mysql.opt_rule_blacklist (\n\t\tname \tCHAR(100) NOT NULL\n\t);"] [2024/05/06 09:24:44.062 +00:00] [WARN] [runaway.go:166] ["failed to start runaway manager loop, please check whether the bootstrap or update is finished"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [errorVerbose="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/planner/core.Preprocess\n\tpkg/planner/core/preprocess.go:141\ngithub.com/pingcap/tidb/pkg/executor.(*Compiler).Compile\n\tpkg/executor/compiler.go:67\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2089\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteInternalStmt\n\tpkg/session/session.go:1993\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecRestrictedSQL.func1\n\tpkg/session/session.go:1958\ngithub.com/pingcap/tidb/pkg/session.(*session).withRestrictedSQLExecutor\n\tpkg/session/session.go:1944\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecRestrictedSQL\n\tpkg/session/session.go:1948\ngithub.com/pingcap/tidb/pkg/domain.(*SystemTableReader).Read\n\tpkg/domain/runaway.go:655\ngithub.com/pingcap/tidb/pkg/domain.getRunawayWatchRecord\n\tpkg/domain/runaway.go:543\ngithub.com/pingcap/tidb/pkg/domain.(*runawaySyncer).getWatchRecord\n\tpkg/domain/runaway.go:526\ngithub.com/pingcap/tidb/pkg/domain.(*runawaySyncer).getNewWatchRecords\n\tpkg/domain/runaway.go:509\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).updateNewAndDoneWatch\n\tpkg/domain/runaway.go:177\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).runawayStartLoop\n\tpkg/domain/runaway.go:156\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:99\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [2024/05/06 09:24:44.070 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:44.059 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.077 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=21] [neededSchemaVersion=22] ["start time"=272.961µs] [gotSchemaVersion=22] [phyTblIDs="[44]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:44.080 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:44.080 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=45] [version=22] [2024/05/06 09:24:44.090 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=22] ["take time"=13.882574ms] [job="ID:45, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:44, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:44.059 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.097 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:44.059 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.101 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=45] [2024/05/06 09:24:44.101 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:44.101 +00:00] [INFO] [session.go:3945] ["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 09:24:44.105 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:44.103 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:44.105 +00:00] [INFO] [ddl.go:1182] ["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 09:24:44.103 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:44.112 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:44.103 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.116 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=22] [neededSchemaVersion=23] ["start time"=376.844µs] [gotSchemaVersion=23] [phyTblIDs="[46]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:44.117 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:44.117 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=47] [version=23] [2024/05/06 09:24:44.118 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=23] ["take time"=2.013025ms] [job="ID:47, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:46, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:44.103 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.130 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:44.103 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.134 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=47] [2024/05/06 09:24:44.134 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:44.134 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=23] [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 09:24:44.137 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:44.136 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:44.137 +00:00] [INFO] [ddl.go:1182] ["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 09:24:44.136 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:44.145 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:44.136 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.149 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=23] [neededSchemaVersion=24] ["start time"=307.895µs] [gotSchemaVersion=24] [phyTblIDs="[48]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:44.150 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:44.150 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=49] [version=24] [2024/05/06 09:24:44.154 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=24] ["take time"=5.810921ms] [job="ID:49, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:48, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:44.136 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.161 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:44.136 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.164 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=49] [2024/05/06 09:24:44.164 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:44.165 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=24] [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 09:24:44.168 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:44.166 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:44.168 +00:00] [INFO] [ddl.go:1182] ["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 09:24:44.166 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:44.177 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:44.166 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.188 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=24] [neededSchemaVersion=25] ["start time"=284.369µs] [gotSchemaVersion=25] [phyTblIDs="[50]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:44.189 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:44.190 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=51] [version=25] [2024/05/06 09:24:44.192 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=25] ["take time"=4.223502ms] [job="ID:51, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:50, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:44.166 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.197 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:44.166 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.200 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=51] [2024/05/06 09:24:44.200 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:44.201 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=25] [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 09:24:44.204 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:44.202 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:44.204 +00:00] [INFO] [ddl.go:1182] ["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 09:24:44.202 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:44.212 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:44.202 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.219 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=25] [neededSchemaVersion=26] ["start time"=269.685µs] [gotSchemaVersion=26] [phyTblIDs="[52]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:44.220 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:44.220 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=53] [version=26] [2024/05/06 09:24:44.221 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=26] ["take time"=2.812828ms] [job="ID:53, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:52, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:44.202 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.228 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:44.202 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.231 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=53] [2024/05/06 09:24:44.232 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:44.232 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=26] [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 09:24:44.235 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:44.234 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:44.235 +00:00] [INFO] [ddl.go:1182] ["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 09:24:44.234 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:44.245 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:44.234 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.259 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=26] [neededSchemaVersion=27] ["start time"=379.215µs] [gotSchemaVersion=27] [phyTblIDs="[54]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:44.260 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:44.260 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=55] [version=27] [2024/05/06 09:24:44.261 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=27] ["take time"=3.17071ms] [job="ID:55, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:54, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:44.234 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.267 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:44.234 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.272 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=55] [2024/05/06 09:24:44.272 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:44.273 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=27] [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 09:24:44.276 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:44.275 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:44.276 +00:00] [INFO] [ddl.go:1182] ["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 09:24:44.275 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:44.287 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:44.275 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.304 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=27] [neededSchemaVersion=28] ["start time"=364µs] [gotSchemaVersion=28] [phyTblIDs="[56]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:44.306 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:44.306 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=57] [version=28] [2024/05/06 09:24:44.309 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=28] ["take time"=5.16987ms] [job="ID:57, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:56, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:44.275 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.340 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:44.275 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.366 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=57] [2024/05/06 09:24:44.366 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:44.367 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=28] [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 09:24:44.367 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(19372) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:44.370 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:44.368 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:44.370 +00:00] [INFO] [ddl.go:1182] ["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 09:24:44.368 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:44.380 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:44.368 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.389 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=28] [neededSchemaVersion=29] ["start time"=300.192µs] [gotSchemaVersion=29] [phyTblIDs="[58]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:44.391 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:44.392 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=59] [version=29] [2024/05/06 09:24:44.394 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=29] ["take time"=4.634733ms] [job="ID:59, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:58, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:44.368 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.400 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:44.368 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.404 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=59] [2024/05/06 09:24:44.404 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:44.404 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=29] [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 09:24:44.407 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:44.406 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:44.407 +00:00] [INFO] [ddl.go:1182] ["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 09:24:44.406 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:44.414 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:44.406 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.417 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=29] [neededSchemaVersion=30] ["start time"=365.623µs] [gotSchemaVersion=30] [phyTblIDs="[60]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:44.418 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:44.418 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=61] [version=30] [2024/05/06 09:24:44.419 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=30] ["take time"=2.044061ms] [job="ID:61, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:60, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:44.406 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.426 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:44.406 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.429 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=61] [2024/05/06 09:24:44.430 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:44.431 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=30] [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 09:24:44.435 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:44.433 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:44.435 +00:00] [INFO] [ddl.go:1182] ["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 09:24:44.433 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:44.453 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:44.433 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.456 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=30] [neededSchemaVersion=31] ["start time"=417.369µs] [gotSchemaVersion=31] [phyTblIDs="[62]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:44.458 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:44.458 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=63] [version=31] [2024/05/06 09:24:44.458 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=31] ["take time"=2.071986ms] [job="ID:63, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:62, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:44.433 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.468 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:44.433 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.472 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=63] [2024/05/06 09:24:44.472 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:44.472 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=31] [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 09:24:44.476 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:44.474 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:44.476 +00:00] [INFO] [ddl.go:1182] ["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 09:24:44.474 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:44.497 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:44.474 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.502 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=31] [neededSchemaVersion=32] ["start time"=447.616µs] [gotSchemaVersion=32] [phyTblIDs="[64]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:44.503 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:44.503 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=65] [version=32] [2024/05/06 09:24:44.503 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=32] ["take time"=2.030257ms] [job="ID:65, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:64, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:44.474 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.516 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:44.474 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.521 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=65] [2024/05/06 09:24:44.521 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:44.522 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=32] [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 09:24:44.526 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:44.524 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:44.526 +00:00] [INFO] [ddl.go:1182] ["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 09:24:44.524 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE TABLE IF NOT EXISTS mysql.advisory_locks (\n\t\tlock_name VARCHAR(64) NOT NULL PRIMARY KEY\n\t);"] [2024/05/06 09:24:44.538 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:44.524 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.541 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=32] [neededSchemaVersion=33] ["start time"=253.988µs] [gotSchemaVersion=33] [phyTblIDs="[66]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:44.543 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:44.543 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=67] [version=33] [2024/05/06 09:24:44.543 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=33] ["take time"=2.106221ms] [job="ID:67, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:66, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:44.524 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.554 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:44.524 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.557 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=67] [2024/05/06 09:24:44.557 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:44.561 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:69, Type:create view, State:queueing, SchemaState:none, SchemaID:1, TableID:68, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:44.559 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:44.561 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:69, Type:create view, State:queueing, SchemaState:none, SchemaID:1, TableID:68, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:44.559 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE OR REPLACE VIEW mysql.tidb_mdl_view as (\n\t\tSELECT tidb_mdl_info.job_id,\n\t\t\tJSON_UNQUOTE(JSON_EXTRACT(cast(cast(job_meta as char) as json), \"$.schema_name\")) as db_name,\n\t\t\tJSON_UNQUOTE(JSON_EXTRACT(cast(cast(job_meta as char) as json), \"$.table_name\")) as table_name,\n\t\t\tJSON_UNQUOTE(JSON_EXTRACT(cast(cast(job_meta as char) as json), \"$.query\")) as query,\n\t\t\tsession_id,\n\t\t\tcluster_tidb_trx.start_time,\n\t\t\ttidb_decode_sql_digests(all_sql_digests, 4096) AS SQL_DIGESTS\n\t\tFROM mysql.tidb_ddl_job,\n\t\t\tmysql.tidb_mdl_info,\n\t\t\tinformation_schema.cluster_tidb_trx\n\t\tWHERE tidb_ddl_job.job_id=tidb_mdl_info.job_id\n\t\t\tAND CONCAT(',', tidb_mdl_info.table_ids, ',') REGEXP CONCAT(',', REPLACE(cluster_tidb_trx.related_table_ids, ',', '|'), ',') != 0\n\t);"] [2024/05/06 09:24:44.573 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, tp general"] [category=ddl] [jobID=69] [category=ddl] [job="ID:69, Type:create view, State:queueing, SchemaState:none, SchemaID:1, TableID:68, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:44.559 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.585 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=33] [neededSchemaVersion=34] ["start time"=329.53µs] [gotSchemaVersion=34] [phyTblIDs="[68]"] [actionTypes="[21]"] [diffTypes="[\"create view\"]"] [2024/05/06 09:24:44.586 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:44.586 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=69] [version=34] [2024/05/06 09:24:44.587 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=34] ["take time"=2.545332ms] [job="ID:69, Type:create view, State:done, SchemaState:public, SchemaID:1, TableID:68, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:44.559 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.594 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, tp general"] [category=ddl] [jobID=69] [job="ID:69, Type:create view, State:synced, SchemaState:public, SchemaID:1, TableID:68, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:44.559 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.599 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=69] [2024/05/06 09:24:44.599 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:44.600 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=34] [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 09:24:44.603 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:71, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:70, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:44.602 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:44.603 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:71, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:70, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:44.602 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:44.616 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, tp general"] [category=ddl] [jobID=71] [category=ddl] [job="ID:71, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:70, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:44.602 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.621 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=34] [neededSchemaVersion=35] ["start time"=475.27µs] [gotSchemaVersion=35] [phyTblIDs="[70]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:44.622 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:44.622 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=71] [version=35] [2024/05/06 09:24:44.622 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=35] ["take time"=2.01719ms] [job="ID:71, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:70, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:44.602 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.633 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, tp general"] [category=ddl] [jobID=71] [job="ID:71, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:70, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:44.602 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.637 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=71] [2024/05/06 09:24:44.637 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:44.638 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=35] [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 09:24:44.640 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:44.639 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:44.640 +00:00] [INFO] [ddl.go:1182] ["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 09:24:44.639 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:44.649 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:44.639 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.652 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=35] [neededSchemaVersion=36] ["start time"=257.297µs] [gotSchemaVersion=36] [phyTblIDs="[72]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:44.653 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:44.653 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=73] [version=36] [2024/05/06 09:24:44.654 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=36] ["take time"=2.32304ms] [job="ID:73, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:72, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:44.639 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.676 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:44.639 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.680 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=73] [2024/05/06 09:24:44.680 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:44.680 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=36] [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 09:24:44.683 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:44.682 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:44.683 +00:00] [INFO] [ddl.go:1182] ["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 09:24:44.682 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:44.691 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:44.682 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.696 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=36] [neededSchemaVersion=37] ["start time"=269.31µs] [gotSchemaVersion=37] [phyTblIDs="[74]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:44.698 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:44.698 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=75] [version=37] [2024/05/06 09:24:44.700 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=37] ["take time"=3.943745ms] [job="ID:75, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:74, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:44.682 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.710 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:44.682 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.714 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=75] [2024/05/06 09:24:44.714 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:44.715 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=37] [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 09:24:44.720 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:44.717 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:44.720 +00:00] [INFO] [ddl.go:1182] ["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 09:24:44.717 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:44.730 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:44.717 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.742 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=37] [neededSchemaVersion=38] ["start time"=549.922µs] [gotSchemaVersion=38] [phyTblIDs="[76]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:44.743 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:44.744 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=77] [version=38] [2024/05/06 09:24:44.746 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=38] ["take time"=4.667417ms] [job="ID:77, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:76, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:44.717 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.754 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:44.717 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.761 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=77] [2024/05/06 09:24:44.761 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:44.761 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=38] [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 09:24:44.766 +00:00] [INFO] [ddl.go:1182] ["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 09:24:44.763 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:44.766 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:44.763 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:44.776 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:44.763 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.780 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=38] [neededSchemaVersion=39] ["start time"=465.545µs] [gotSchemaVersion=39] [phyTblIDs="[78]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:44.782 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:44.783 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=79] [version=39] [2024/05/06 09:24:44.788 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=39] ["take time"=8.446807ms] [job="ID:79, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:78, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:44.763 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.797 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:44.763 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.802 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=79] [2024/05/06 09:24:44.802 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:44.803 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=39] [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 09:24:44.807 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:44.805 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:44.807 +00:00] [INFO] [ddl.go:1182] ["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 09:24:44.805 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:44.822 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:44.805 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.829 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=39] [neededSchemaVersion=40] ["start time"=506.17µs] [gotSchemaVersion=40] [phyTblIDs="[80]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:44.830 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:44.830 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=81] [version=40] [2024/05/06 09:24:44.830 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=40] ["take time"=2.055699ms] [job="ID:81, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:80, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:44.805 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.842 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:44.805 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.846 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=81] [2024/05/06 09:24:44.846 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:44.847 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=40] [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(261),\n\t\tstate VARCHAR(64) NOT NULL,\n\t\tpriority INT DEFAULT 1,\n\t\tcreate_time TIMESTAMP,\n\t\tstart_time TIMESTAMP,\n\t\tstate_update_time TIMESTAMP,\n\t\tend_time TIMESTAMP,\n\t\tmeta LONGBLOB,\n\t\tconcurrency INT(11),\n\t\tstep INT(11),\n\t\ttarget_scope VARCHAR(256) DEFAULT \"\",\n\t\terror BLOB,\n\t\tkey(state),\n \tUNIQUE KEY task_key(task_key)\n\t);"] [user=] [2024/05/06 09:24:44.850 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:44.849 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:44.851 +00:00] [INFO] [ddl.go:1182] ["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 09:24:44.849 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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(261),\n\t\tstate VARCHAR(64) NOT NULL,\n\t\tpriority INT DEFAULT 1,\n\t\tcreate_time TIMESTAMP,\n\t\tstart_time TIMESTAMP,\n\t\tstate_update_time TIMESTAMP,\n\t\tend_time TIMESTAMP,\n\t\tmeta LONGBLOB,\n\t\tconcurrency INT(11),\n\t\tstep INT(11),\n\t\ttarget_scope VARCHAR(256) DEFAULT \"\",\n\t\terror BLOB,\n\t\tkey(state),\n \tUNIQUE KEY task_key(task_key)\n\t);"] [2024/05/06 09:24:44.866 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:44.849 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.871 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=40] [neededSchemaVersion=41] ["start time"=486.761µs] [gotSchemaVersion=41] [phyTblIDs="[82]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:44.872 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:44.872 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=83] [version=41] [2024/05/06 09:24:44.873 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=41] ["take time"=2.433487ms] [job="ID:83, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:44.849 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.895 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:44.849 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.902 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=83] [2024/05/06 09:24:44.902 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:44.903 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=41] [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(261),\n\t\tstate VARCHAR(64) NOT NULL,\n\t\tpriority INT DEFAULT 1,\n\t\tcreate_time TIMESTAMP,\n\t\tstart_time TIMESTAMP,\n\t\tstate_update_time TIMESTAMP,\n\t\tend_time TIMESTAMP,\n\t\tmeta LONGBLOB,\n\t\tconcurrency INT(11),\n\t\tstep INT(11),\n\t\ttarget_scope VARCHAR(256) DEFAULT \"\",\n\t\terror BLOB,\n\t\tkey(state),\n \tUNIQUE KEY task_key(task_key)\n\t);"] [user=] [2024/05/06 09:24:44.907 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:44.905 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:44.907 +00:00] [INFO] [ddl.go:1182] ["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 09:24:44.905 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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(261),\n\t\tstate VARCHAR(64) NOT NULL,\n\t\tpriority INT DEFAULT 1,\n\t\tcreate_time TIMESTAMP,\n\t\tstart_time TIMESTAMP,\n\t\tstate_update_time TIMESTAMP,\n\t\tend_time TIMESTAMP,\n\t\tmeta LONGBLOB,\n\t\tconcurrency INT(11),\n\t\tstep INT(11),\n\t\ttarget_scope VARCHAR(256) DEFAULT \"\",\n\t\terror BLOB,\n\t\tkey(state),\n \tUNIQUE KEY task_key(task_key)\n\t);"] [2024/05/06 09:24:44.925 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:44.905 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.930 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=41] [neededSchemaVersion=42] ["start time"=509.495µs] [gotSchemaVersion=42] [phyTblIDs="[84]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:44.932 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:44.932 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=85] [version=42] [2024/05/06 09:24:44.934 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=42] ["take time"=4.060471ms] [job="ID:85, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:84, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:44.905 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.945 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:44.905 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.950 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=85] [2024/05/06 09:24:44.950 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:44.950 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=42] [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 09:24:44.954 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:44.952 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:44.954 +00:00] [INFO] [ddl.go:1182] ["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 09:24:44.952 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:44.970 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:44.952 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.975 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=42] [neededSchemaVersion=43] ["start time"=464.697µs] [gotSchemaVersion=43] [phyTblIDs="[86]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:44.976 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:44.976 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=87] [version=43] [2024/05/06 09:24:44.979 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=43] ["take time"=5.044344ms] [job="ID:87, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:86, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:44.952 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:44.998 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:44.952 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:45.004 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=87] [2024/05/06 09:24:45.004 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:45.004 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=43] [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 09:24:45.008 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:45.006 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:45.008 +00:00] [INFO] [ddl.go:1182] ["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 09:24:45.006 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:45.016 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:45.006 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:45.026 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=43] [neededSchemaVersion=44] ["start time"=372.67µs] [gotSchemaVersion=44] [phyTblIDs="[88]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:45.027 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:45.027 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=89] [version=44] [2024/05/06 09:24:45.028 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=44] ["take time"=2.884023ms] [job="ID:89, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:88, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:45.006 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:45.043 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:45.006 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:45.048 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=89] [2024/05/06 09:24:45.048 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:45.049 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=44] [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 09:24:45.052 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:45.05 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:45.052 +00:00] [INFO] [ddl.go:1182] ["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 09:24:45.05 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:45.061 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:45.05 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:45.065 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=44] [neededSchemaVersion=45] ["start time"=344.245µs] [gotSchemaVersion=45] [phyTblIDs="[90]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:45.067 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:45.067 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=91] [version=45] [2024/05/06 09:24:45.068 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=45] ["take time"=2.934999ms] [job="ID:91, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:90, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:45.05 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:45.069 +00:00] [INFO] [info.go:1142] [SetTiFlashGroupConfig] [2024/05/06 09:24:45.081 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:45.05 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:45.085 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=91] [2024/05/06 09:24:45.085 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:45.086 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=45] [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 09:24:45.090 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:45.088 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:45.090 +00:00] [INFO] [ddl.go:1182] ["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 09:24:45.088 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:45.104 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:45.088 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:45.116 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=45] [neededSchemaVersion=46] ["start time"=572.979µs] [gotSchemaVersion=46] [phyTblIDs="[92]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:45.117 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:45.117 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=93] [version=46] [2024/05/06 09:24:45.120 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=46] ["take time"=5.053111ms] [job="ID:93, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:92, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:45.088 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:45.129 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:45.088 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:45.135 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=93] [2024/05/06 09:24:45.135 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:45.135 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=46] [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 09:24:45.162 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:45.16 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:45.162 +00:00] [INFO] [ddl.go:1182] ["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 09:24:45.16 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:45.170 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:45.16 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:45.174 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=46] [neededSchemaVersion=47] ["start time"=384.092µs] [gotSchemaVersion=47] [phyTblIDs="[94]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:45.176 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:45.176 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=95] [version=47] [2024/05/06 09:24:45.176 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=47] ["take time"=2.176739ms] [job="ID:95, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:94, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:45.16 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:45.182 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:45.16 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:45.187 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=95] [2024/05/06 09:24:45.187 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:45.187 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=47] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.dist_framework_meta (\n host VARCHAR(261) NOT NULL PRIMARY KEY,\n role VARCHAR(64),\n cpu_count int default 0,\n keyspace_id bigint(8) NOT NULL DEFAULT -1\n );"] [user=] [2024/05/06 09:24:45.190 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:45.189 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:45.191 +00:00] [INFO] [ddl.go:1182] ["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 09:24:45.189 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE TABLE IF NOT EXISTS mysql.dist_framework_meta (\n host VARCHAR(261) NOT NULL PRIMARY KEY,\n role VARCHAR(64),\n cpu_count int default 0,\n keyspace_id bigint(8) NOT NULL DEFAULT -1\n );"] [2024/05/06 09:24:45.203 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:45.189 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:45.209 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=47] [neededSchemaVersion=48] ["start time"=273.488µs] [gotSchemaVersion=48] [phyTblIDs="[96]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:45.211 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:45.211 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=97] [version=48] [2024/05/06 09:24:45.212 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=48] ["take time"=2.720449ms] [job="ID:97, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:96, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:45.189 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:45.224 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:45.189 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:45.228 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=97] [2024/05/06 09:24:45.228 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:45.228 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=48] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.request_unit_by_group (\n\t\tstart_time TIMESTAMP(6) NOT NULL,\n\t\tend_time TIMESTAMP(6) NOT NULL,\n\t\tresource_group VARCHAR(32) NOT null,\n\t\ttotal_ru bigint(64) UNSIGNED NOT NULL,\n\t\tPRIMARY KEY (start_time, end_time, resource_group),\n\t\tKEY (resource_group)\n\t);"] [user=] [2024/05/06 09:24:45.233 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:45.231 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:45.233 +00:00] [INFO] [ddl.go:1182] ["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 09:24:45.231 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE TABLE IF NOT EXISTS mysql.request_unit_by_group (\n\t\tstart_time TIMESTAMP(6) NOT NULL,\n\t\tend_time TIMESTAMP(6) NOT NULL,\n\t\tresource_group VARCHAR(32) NOT null,\n\t\ttotal_ru bigint(64) UNSIGNED NOT NULL,\n\t\tPRIMARY KEY (start_time, end_time, resource_group),\n\t\tKEY (resource_group)\n\t);"] [2024/05/06 09:24:45.248 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, 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 09:24:45.231 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:45.257 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=48] [neededSchemaVersion=49] ["start time"=370.639µs] [gotSchemaVersion=49] [phyTblIDs="[98]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:45.259 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:45.259 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=99] [version=49] [2024/05/06 09:24:45.262 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=49] ["take time"=5.20054ms] [job="ID:99, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:98, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:45.231 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:45.275 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, 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 09:24:45.231 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:45.278 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=99] [2024/05/06 09:24:45.278 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:45.279 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=49] [cur_db=mysql] [sql="CREATE DATABASE IF NOT EXISTS sys;"] [user=] [2024/05/06 09:24:45.281 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:101, Type:create schema, State:queueing, SchemaState:none, SchemaID:100, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:45.28 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:45.281 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:101, Type:create schema, State:queueing, SchemaState:none, SchemaID:100, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:45.28 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE DATABASE IF NOT EXISTS sys;"] [2024/05/06 09:24:45.306 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, tp general"] [category=ddl] [jobID=101] [category=ddl] [job="ID:101, Type:create schema, State:queueing, SchemaState:none, SchemaID:100, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:45.28 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:45.309 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=49] [neededSchemaVersion=50] ["start time"=82.117µs] [gotSchemaVersion=50] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"create schema\"]"] [2024/05/06 09:24:45.310 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:45.310 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=101] [version=50] [2024/05/06 09:24:45.311 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=50] ["take time"=2.494438ms] [job="ID:101, Type:create schema, State:done, SchemaState:public, SchemaID:100, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:45.28 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:45.317 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, tp general"] [category=ddl] [jobID=101] [job="ID:101, Type:create schema, State:synced, SchemaState:public, SchemaID:100, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:45.28 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:45.323 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=101] [2024/05/06 09:24:45.323 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:45.328 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:103, Type:create view, State:queueing, SchemaState:none, SchemaID:100, TableID:102, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:45.327 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:45.328 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:103, Type:create view, State:queueing, SchemaState:none, SchemaID:100, TableID:102, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:45.327 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE OR REPLACE VIEW sys.schema_unused_indexes AS\n\t\tSELECT\n\t\t\ttable_schema as object_schema,\n\t\t\ttable_name as object_name,\n\t\t\tindex_name\n\t\tFROM information_schema.cluster_tidb_index_usage\n\t\tWHERE\n\t\t\ttable_schema not in ('sys', 'mysql', 'INFORMATION_SCHEMA', 'PERFORMANCE_SCHEMA') and\n\t\t\tindex_name != 'PRIMARY'\n\t\tGROUP BY table_schema, table_name, index_name\n\t\tHAVING\n\t\t\tsum(last_access_time) is null;"] [2024/05/06 09:24:45.340 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 41, tp general"] [category=ddl] [jobID=103] [category=ddl] [job="ID:103, Type:create view, State:queueing, SchemaState:none, SchemaID:100, TableID:102, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:45.327 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:45.343 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=50] [neededSchemaVersion=51] ["start time"=207.355µs] [gotSchemaVersion=51] [phyTblIDs="[102]"] [actionTypes="[21]"] [diffTypes="[\"create view\"]"] [2024/05/06 09:24:45.344 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:45.344 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=103] [version=51] [2024/05/06 09:24:45.345 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=51] ["take time"=2.209045ms] [job="ID:103, Type:create view, State:done, SchemaState:public, SchemaID:100, TableID:102, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:45.327 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:45.355 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 41, tp general"] [category=ddl] [jobID=103] [job="ID:103, Type:create view, State:synced, SchemaState:public, SchemaID:100, TableID:102, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:45.327 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:45.360 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=103] [2024/05/06 09:24:45.360 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:45.423 +00:00] [INFO] [bootstrap.go:745] ["bootstrap successful"] ["take time"=2.360302432s] [2024/05/06 09:24:45.423 +00:00] [INFO] [mock.go:106] ["owner manager is canceled"] [category=ddl] [ID=01a0e1d5-772b-4c7d-84d5-f883bb42191c] [ownerKey=/tidb/ddl/fg/owner] [2024/05/06 09:24:45.423 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:45.423 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 44, tp add index"] [category=ddl] ["take time"=1.521µs] [2024/05/06 09:24:45.423 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 45, tp add index"] [category=ddl] ["take time"=939ns] [2024/05/06 09:24:45.423 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 42, tp add index"] [category=ddl] ["take time"=1.023µs] [2024/05/06 09:24:45.423 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 43, tp add index"] [category=ddl] ["take time"=1.361µs] [2024/05/06 09:24:45.423 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:45.423 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 41, tp general"] [category=ddl] ["take time"=1.208µs] [2024/05/06 09:24:45.423 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:45.423 +00:00] [INFO] [delete_range.go:162] ["closing delRange"] [category=ddl] [2024/05/06 09:24:45.423 +00:00] [INFO] [session_pool.go:99] ["closing session pool"] [category=ddl] [2024/05/06 09:24:45.427 +00:00] [INFO] [ddl.go:951] ["DDL closed"] [category=ddl] [ID=01a0e1d5-772b-4c7d-84d5-f883bb42191c] ["take time"=4.458584ms] [2024/05/06 09:24:45.428 +00:00] [INFO] [ddl.go:769] ["stop DDL"] [category=ddl] [ID=01a0e1d5-772b-4c7d-84d5-f883bb42191c] [2024/05/06 09:24:45.428 +00:00] [INFO] [domain.go:737] ["globalConfigSyncerKeeper exited."] [2024/05/06 09:24:45.428 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=globalConfigSyncerKeeper] [2024/05/06 09:24:45.428 +00:00] [INFO] [domain.go:907] ["loadSchemaInLoop exited."] [2024/05/06 09:24:45.428 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=loadSchemaInLoop] [2024/05/06 09:24:45.428 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=runawayStartLoop] [2024/05/06 09:24:45.428 +00:00] [INFO] [domain.go:761] ["topologySyncerKeeper exited."] [2024/05/06 09:24:45.428 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=topologySyncerKeeper] [2024/05/06 09:24:45.428 +00:00] [INFO] [domain.go:711] ["infoSyncerKeeper exited."] [2024/05/06 09:24:45.428 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=infoSyncerKeeper] [2024/05/06 09:24:45.428 +00:00] [INFO] [domain.go:1361] ["closestReplicaReadCheckLoop exited."] [2024/05/06 09:24:45.428 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=closestReplicaReadCheckLoop] [2024/05/06 09:24:45.428 +00:00] [INFO] [domain.go:683] ["topNSlowQueryLoop exited."] [2024/05/06 09:24:45.428 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=topNSlowQueryLoop] [2024/05/06 09:24:45.428 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=mdlCheckLoop] [2024/05/06 09:24:45.428 +00:00] [INFO] [domain.go:1074] ["domain closed"] ["take time"=5.203041ms] [2024/05/06 09:24:45.428 +00:00] [INFO] [tidb.go:80] ["new domain"] [store=f7ce3519-b18a-4659-bb92-19d5653f4f99] ["ddl lease"=600ms] ["stats lease"=-1ns] [2024/05/06 09:24:45.440 +00:00] [WARN] [controller.go:198] ["[resource group controller] server does not save config, load config failed"] [2024/05/06 09:24:45.440 +00:00] [INFO] [controller.go:185] ["load resource controller config"] [config="{\"degraded-mode-wait-duration\":\"0s\",\"ltb-max-wait-duration\":\"30s\",\"wait-retry-interval\":\"50ms\",\"wait-retry-times\":10,\"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,\"WaitRetryInterval\":50000000,\"WaitRetryTimes\":10,\"DegradedModeWaitDuration\":0}"] [2024/05/06 09:24:45.456 +00:00] [INFO] [domain.go:315] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=51] ["start time"=15.331591ms] [2024/05/06 09:24:45.456 +00:00] [INFO] [domain.go:635] ["full load and reset schema validator"] [2024/05/06 09:24:45.457 +00:00] [INFO] [ddl.go:818] ["start DDL"] [category=ddl] [ID=5a31922f-b810-44c0-84f8-26e6400d7c69] [runWorker=true] [2024/05/06 09:24:45.458 +00:00] [INFO] [ddl.go:777] ["start delRangeManager OK"] [category=ddl] ["is a emulator"=true] [2024/05/06 09:24:45.458 +00:00] [INFO] [delete_range.go:172] ["start delRange emulator"] [category=ddl] [2024/05/06 09:24:45.458 +00:00] [INFO] [job_table.go:334] ["get global state and global state change"] [category=ddl] [oldState=false] [currState=false] [2024/05/06 09:24:45.458 +00:00] [WARN] [env.go:51] ["initialize environment failed"] [category=ddl-ingest] ["storage limitation"="only support TiKV storage"] ["current storage"=unistore] ["lightning is initialized"=false] [2024/05/06 09:24:45.459 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=loadSchemaInLoop] [2024/05/06 09:24:45.459 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=mdlCheckLoop] [2024/05/06 09:24:45.459 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=topNSlowQueryLoop] [2024/05/06 09:24:45.459 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=infoSyncerKeeper] [2024/05/06 09:24:45.459 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=globalConfigSyncerKeeper] [2024/05/06 09:24:45.459 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=runawayStartLoop] [2024/05/06 09:24:45.460 +00:00] [INFO] [runaway.go:149] ["try to start runaway manager loop"] [2024/05/06 09:24:45.460 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=requestUnitsWriterLoop] [2024/05/06 09:24:45.460 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=topologySyncerKeeper] [2024/05/06 09:24:45.460 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=closestReplicaReadCheckLoop] [2024/05/06 09:24:45.460 +00:00] [WARN] [domain.go:1326] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 09:24:45.460 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=requestUnitsWriterLoop] [2024/05/06 09:24:45.461 +00:00] [INFO] [controller.go:447] ["[resource group controller] create resource group cost controller"] [name=default] [2024/05/06 09:24:45.464 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=globalBindHandleWorkerLoop] [2024/05/06 09:24:45.464 +00:00] [WARN] [sysvar_cache.go:49] ["sysvar cache is empty, triggering rebuild"] [2024/05/06 09:24:45.480 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=loadPrivilegeInLoop] [2024/05/06 09:24:45.483 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=LoadSysVarCacheLoop] [2024/05/06 09:24:45.485 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=dumpFileGcChecker] [2024/05/06 09:24:45.486 +00:00] [INFO] [domain.go:2070] ["dumpFileGcChecker started"] [2024/05/06 09:24:45.486 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=indexUsageWorker] [2024/05/06 09:24:45.487 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=quitStatsOwner] [2024/05/06 09:24:45.488 +00:00] [INFO] [task_manager.go:217] ["scale ttl worker"] [ttl-worker=job-manager] [ttl-worker=task-manager] [originalCount=0] [newCount=4] [2024/05/06 09:24:45.488 +00:00] [INFO] [task_manager.go:217] ["scale ttl worker"] [ttl-worker=job-manager] [ttl-worker=task-manager] [originalCount=0] [newCount=4] [2024/05/06 09:24:45.492 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=loadSigningCertLoop] [2024/05/06 09:24:45.493 +00:00] [INFO] [manager.go:113] ["build task executor manager"] [server-id=:4000] [total-cpu=16] [total-mem=342GiB] [2024/05/06 09:24:45.495 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=distTaskFrameworkLoop] [2024/05/06 09:24:45.495 +00:00] [INFO] [manager.go:146] ["task executor manager start"] [server-id=:4000] [2024/05/06 09:24:45.495 +00:00] [INFO] [domain.go:1525] ["dist task executor manager started"] [2024/05/06 09:24:45.496 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=9] [schemaVersion=51] [cur_db=test] [sql="drop table if exists ddl_error_table, new_ddl_error_table"] [user=] [2024/05/06 09:24:45.496 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=9] [schemaVersion=51] [cur_db=test] [sql="create table ddl_error_table(a int)"] [user=] [2024/05/06 09:24:45.501 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:105, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:45.499 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:45.501 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:105, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:45.499 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create table ddl_error_table(a int)"] [2024/05/06 09:24:45.509 +00:00] [INFO] [job_table.go:334] ["get global state and global state change"] [category=ddl] [oldState=false] [currState=false] [2024/05/06 09:24:45.509 +00:00] [INFO] [job_table.go:349] ["the owner sets owner operator value"] [category=ddl] [ownerOp=none] [2024/05/06 09:24:45.518 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 46, tp general"] [category=ddl] [jobID=105] [conn=9] [category=ddl] [job="ID:105, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:45.499 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:45.521 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=51] [neededSchemaVersion=52] ["start time"=152.404µs] [gotSchemaVersion=52] [phyTblIDs="[104]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:45.522 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=105] [version=52] [2024/05/06 09:24:45.523 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=52] ["take time"=2.835134ms] [job="ID:105, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:45.499 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:45.533 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 46, tp general"] [category=ddl] [jobID=105] [conn=9] [job="ID:105, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:45.499 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:45.539 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=105] [2024/05/06 09:24:45.539 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:45.540 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=9] [schemaVersion=52] [cur_db=test] [sql="rename table ddl_error_table to new_ddl_error_table"] [user=] [2024/05/06 09:24:45.542 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:106, Type:rename table, State:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:45.541 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:45.542 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:106, Type:rename table, State:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:45.541 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="rename table ddl_error_table to new_ddl_error_table"] [2024/05/06 09:24:45.552 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:106, Type:rename table, State:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:45.541 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:45.552 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 46, tp general"] [category=ddl] [jobID=106] [conn=9] [category=ddl] [job="ID:106, Type:rename table, State:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:45.541 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:45.557 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:106, Type:rename table, State:running, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:45.541 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:45.558 +00:00] [WARN] [ddl_worker.go:560] ["update DDL job failed"] [worker="worker 46, tp general"] [category=ddl] [jobID=106] [conn=9] [job="ID:106, Type:rename table, State:running, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:45.541 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [error="[kv:8025]entry too large, the max entry size is %d, the size of data is %d"] [2024/05/06 09:24:45.558 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 46, tp general"] [category=ddl] [jobID=106] [conn=9] [job="ID:106, Type:rename table, State:cancelled, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:45.541 +0000 UTC, Err:[kv:8025]entry too large, the max entry size is %d, the size of data is %d, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:45.562 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:106, Type:rename table, State:cancelled, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:45.541 +0000 UTC, Err:[kv:8025]entry too large, the max entry size is %d, the size of data is %d, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.043 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=106] [2024/05/06 09:24:46.043 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:46.043 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=52] [error="[kv:8025]entry too large, the max entry size is %d, the size of data is %d"] [errorVerbose="[kv:8025]entry too large, the max entry size is %d, the size of data is %d\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).renameTable\n\tpkg/ddl/ddl_api.go:7209\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).RenameTable\n\tpkg/ddl/ddl_api.go:7159\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeRenameTable\n\tpkg/executor/ddl.go:254\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:189\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestDDLJobErrorCount\n\tpkg/ddl/db_test.go:403\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 9,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:46.045 +00:00] [INFO] [mock.go:106] ["owner manager is canceled"] [category=ddl] [ID=5a31922f-b810-44c0-84f8-26e6400d7c69] [ownerKey=/tidb/ddl/fg/owner] [2024/05/06 09:24:46.045 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:46.045 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 47, tp add index"] [category=ddl] ["take time"=3.066µs] [2024/05/06 09:24:46.045 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 48, tp add index"] [category=ddl] ["take time"=2.755µs] [2024/05/06 09:24:46.045 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 49, tp add index"] [category=ddl] ["take time"=1.14µs] [2024/05/06 09:24:46.045 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 50, tp add index"] [category=ddl] ["take time"=1.472µs] [2024/05/06 09:24:46.045 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:46.045 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 46, tp general"] [category=ddl] ["take time"=1.098µs] [2024/05/06 09:24:46.045 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:46.045 +00:00] [INFO] [delete_range.go:162] ["closing delRange"] [category=ddl] [2024/05/06 09:24:46.045 +00:00] [INFO] [session_pool.go:99] ["closing session pool"] [category=ddl] [2024/05/06 09:24:46.045 +00:00] [INFO] [ddl.go:951] ["DDL closed"] [category=ddl] [ID=5a31922f-b810-44c0-84f8-26e6400d7c69] ["take time"=435.096µs] [2024/05/06 09:24:46.045 +00:00] [INFO] [ddl.go:769] ["stop DDL"] [category=ddl] [ID=5a31922f-b810-44c0-84f8-26e6400d7c69] [2024/05/06 09:24:46.045 +00:00] [INFO] [domain.go:1026] ["stopping ttlJobManager"] [2024/05/06 09:24:46.045 +00:00] [INFO] [task_manager.go:194] ["shrink ttl worker"] [ttl-worker=job-manager] [ttl-worker=task-manager] [originalCount=4] [newCount=0] [2024/05/06 09:24:46.045 +00:00] [INFO] [scan.go:309] ["ttlScanWorker loop exited."] [2024/05/06 09:24:46.045 +00:00] [INFO] [scan.go:309] ["ttlScanWorker loop exited."] [2024/05/06 09:24:46.045 +00:00] [INFO] [scan.go:309] ["ttlScanWorker loop exited."] [2024/05/06 09:24:46.045 +00:00] [INFO] [scan.go:309] ["ttlScanWorker loop exited."] [2024/05/06 09:24:46.045 +00:00] [INFO] [task_manager.go:194] ["shrink ttl worker"] [ttl-worker=job-manager] [ttl-worker=task-manager] [originalCount=4] [newCount=0] [2024/05/06 09:24:46.045 +00:00] [INFO] [del.go:261] ["ttlDeleteWorker loop exited."] [2024/05/06 09:24:46.046 +00:00] [INFO] [del.go:261] ["ttlDeleteWorker loop exited."] [2024/05/06 09:24:46.046 +00:00] [INFO] [del.go:261] ["ttlDeleteWorker loop exited."] [2024/05/06 09:24:46.046 +00:00] [INFO] [del.go:261] ["ttlDeleteWorker loop exited."] [2024/05/06 09:24:46.048 +00:00] [INFO] [job_manager.go:174] ["ttlJobManager loop exited."] [ttl-worker=job-manager] [2024/05/06 09:24:46.048 +00:00] [INFO] [domain.go:1037] ["ttlJobManager exited."] [2024/05/06 09:24:46.049 +00:00] [INFO] [manager.go:280] ["recoverMetaLoop done"] [server-id=:4000] [2024/05/06 09:24:46.049 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=mdlCheckLoop] [2024/05/06 09:24:46.049 +00:00] [INFO] [domain.go:907] ["loadSchemaInLoop exited."] [2024/05/06 09:24:46.049 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=loadSchemaInLoop] [2024/05/06 09:24:46.049 +00:00] [INFO] [domain.go:1527] ["stopping dist task executor manager"] [2024/05/06 09:24:46.049 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=loadSigningCertLoop] [2024/05/06 09:24:46.049 +00:00] [INFO] [stats_syncload.go:202] ["SubLoadWorker exited."] [2024/05/06 09:24:46.049 +00:00] [INFO] [stats_syncload.go:202] ["SubLoadWorker exited."] [2024/05/06 09:24:46.049 +00:00] [INFO] [mock.go:106] ["owner manager is canceled"] [category=ddl] [ID=5a31922f-b810-44c0-84f8-26e6400d7c69] [ownerKey=/tidb/stats/owner] [2024/05/06 09:24:46.049 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=quitStatsOwner] [2024/05/06 09:24:46.049 +00:00] [INFO] [stats_syncload.go:202] ["SubLoadWorker exited."] [2024/05/06 09:24:46.049 +00:00] [INFO] [stats_syncload.go:202] ["SubLoadWorker exited."] [2024/05/06 09:24:46.049 +00:00] [INFO] [stats_syncload.go:202] ["SubLoadWorker exited."] [2024/05/06 09:24:46.049 +00:00] [INFO] [domain.go:2352] ["indexUsageWorker exited."] [2024/05/06 09:24:46.049 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=indexUsageWorker] [2024/05/06 09:24:46.049 +00:00] [INFO] [domain.go:2074] ["dumpFileGcChecker exited."] [2024/05/06 09:24:46.049 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=dumpFileGcChecker] [2024/05/06 09:24:46.049 +00:00] [INFO] [domain.go:1750] ["LoadSysVarCacheLoop exited."] [2024/05/06 09:24:46.049 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=LoadSysVarCacheLoop] [2024/05/06 09:24:46.049 +00:00] [INFO] [domain.go:1700] ["loadPrivilegeInLoop exited."] [2024/05/06 09:24:46.049 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=loadPrivilegeInLoop] [2024/05/06 09:24:46.049 +00:00] [INFO] [mock.go:106] ["owner manager is canceled"] [category=ddl] [ID=5a31922f-b810-44c0-84f8-26e6400d7c69] [ownerKey=/tidb/bindinfo/owner] [2024/05/06 09:24:46.049 +00:00] [INFO] [domain.go:1889] ["globalBindHandleWorkerLoop exited."] [2024/05/06 09:24:46.049 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=globalBindHandleWorkerLoop] [2024/05/06 09:24:46.049 +00:00] [INFO] [domain.go:761] ["topologySyncerKeeper exited."] [2024/05/06 09:24:46.049 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=topologySyncerKeeper] [2024/05/06 09:24:46.049 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=runawayStartLoop] [2024/05/06 09:24:46.049 +00:00] [INFO] [domain.go:737] ["globalConfigSyncerKeeper exited."] [2024/05/06 09:24:46.049 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=globalConfigSyncerKeeper] [2024/05/06 09:24:46.049 +00:00] [INFO] [domain.go:711] ["infoSyncerKeeper exited."] [2024/05/06 09:24:46.049 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=infoSyncerKeeper] [2024/05/06 09:24:46.049 +00:00] [INFO] [domain.go:683] ["topNSlowQueryLoop exited."] [2024/05/06 09:24:46.049 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=topNSlowQueryLoop] [2024/05/06 09:24:46.049 +00:00] [INFO] [domain.go:1361] ["closestReplicaReadCheckLoop exited."] [2024/05/06 09:24:46.049 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=closestReplicaReadCheckLoop] [2024/05/06 09:24:46.049 +00:00] [INFO] [manager.go:179] ["handle tasks loop done"] [server-id=:4000] [2024/05/06 09:24:46.049 +00:00] [INFO] [domain.go:1529] ["dist task executor manager stopped"] [2024/05/06 09:24:46.049 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=distTaskFrameworkLoop] [2024/05/06 09:24:46.050 +00:00] [INFO] [domain.go:1074] ["domain closed"] ["take time"=4.905979ms] [2024/05/06 09:24:46.050 +00:00] [INFO] [db.go:567] ["Closing database"] [2024/05/06 09:24:46.051 +00:00] [INFO] [db.go:592] ["Memtable flushed"] [2024/05/06 09:24:46.051 +00:00] [INFO] [db.go:596] ["Compaction finished"] [2024/05/06 09:24:46.051 +00:00] [INFO] [db.go:615] ["BlobManager finished"] [2024/05/06 09:24:46.051 +00:00] [INFO] [db.go:619] ["ResourceManager finished"] [2024/05/06 09:24:46.051 +00:00] [INFO] [db.go:625] ["Waiting for closer"] --- PASS: TestDDLJobErrorCount (3.01s) === RUN TestDropIndexNeededInForeignKey2 [2024/05/06 09:24:46.066 +00:00] [INFO] [store_cache.go:510] ["change store resolve state"] [store=1] [addr=store1] [from=unresolved] [to=resolved] [liveness-state=reachable] [2024/05/06 09:24:46.067 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:46.067 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:46.067 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:46.067 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:46.068 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:46.070 +00:00] [INFO] [tidb.go:80] ["new domain"] [store=1e68edb0-1c03-4756-be57-8a760e434fc9] ["ddl lease"=5s] ["stats lease"=-1ns] [2024/05/06 09:24:46.077 +00:00] [WARN] [controller.go:198] ["[resource group controller] server does not save config, load config failed"] [2024/05/06 09:24:46.077 +00:00] [INFO] [controller.go:185] ["load resource controller config"] [config="{\"degraded-mode-wait-duration\":\"0s\",\"ltb-max-wait-duration\":\"30s\",\"wait-retry-interval\":\"50ms\",\"wait-retry-times\":10,\"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,\"WaitRetryInterval\":50000000,\"WaitRetryTimes\":10,\"DegradedModeWaitDuration\":0}"] [2024/05/06 09:24:46.077 +00:00] [WARN] [domain.go:245] ["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:335\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).loadInfoSchema\n\tpkg/domain/domain.go:242\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).Reload\n\tpkg/domain/domain.go:606\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).Init\n\tpkg/domain/domain.go:1260\ngithub.com/pingcap/tidb/pkg/session.(*domainMap).Get.func1\n\tpkg/session/tidb.go:92\ngithub.com/pingcap/tidb/pkg/util.RunWithRetry\n\tpkg/util/misc.go:70\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:3620\ngithub.com/pingcap/tidb/pkg/session.createSession\n\tpkg/session/session.go:3612\ngithub.com/pingcap/tidb/pkg/session.runInBootstrapSession\n\tpkg/session/session.go:3562\ngithub.com/pingcap/tidb/pkg/session.bootstrapSessionImpl\n\tpkg/session/session.go:3346\ngithub.com/pingcap/tidb/pkg/session.BootstrapSession\n\tpkg/session/session.go:3312\ngithub.com/pingcap/tidb/pkg/testkit.bootstrap\n\tpkg/testkit/mockstore.go:294\ngithub.com/pingcap/tidb/pkg/testkit.CreateMockStoreAndDomainWithSchemaLease\n\tpkg/testkit/mockstore.go:319\ngithub.com/pingcap/tidb/pkg/ddl_test.TestDropIndexNeededInForeignKey2\n\tpkg/ddl/foreign_key_test.go:269\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [version=0] [2024/05/06 09:24:46.081 +00:00] [INFO] [domain.go:315] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=0] ["start time"=3.692367ms] [2024/05/06 09:24:46.082 +00:00] [INFO] [domain.go:635] ["full load and reset schema validator"] [2024/05/06 09:24:46.082 +00:00] [INFO] [ddl.go:818] ["start DDL"] [category=ddl] [ID=fba38984-578b-4a76-879e-34fa9741791f] [runWorker=true] [2024/05/06 09:24:46.083 +00:00] [INFO] [ddl.go:777] ["start delRangeManager OK"] [category=ddl] ["is a emulator"=true] [2024/05/06 09:24:46.083 +00:00] [INFO] [delete_range.go:172] ["start delRange emulator"] [category=ddl] [2024/05/06 09:24:46.083 +00:00] [INFO] [job_table.go:334] ["get global state and global state change"] [category=ddl] [oldState=false] [currState=false] [2024/05/06 09:24:46.084 +00:00] [INFO] [job_table.go:349] ["the owner sets owner operator value"] [category=ddl] [ownerOp=none] [2024/05/06 09:24:46.084 +00:00] [WARN] [env.go:51] ["initialize environment failed"] [category=ddl-ingest] ["storage limitation"="only support TiKV storage"] ["current storage"=unistore] ["lightning is initialized"=false] [2024/05/06 09:24:46.084 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=loadSchemaInLoop] [2024/05/06 09:24:46.084 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=mdlCheckLoop] [2024/05/06 09:24:46.084 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=topNSlowQueryLoop] [2024/05/06 09:24:46.084 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=infoSyncerKeeper] [2024/05/06 09:24:46.084 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=globalConfigSyncerKeeper] [2024/05/06 09:24:46.084 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=runawayStartLoop] [2024/05/06 09:24:46.084 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=requestUnitsWriterLoop] [2024/05/06 09:24:46.084 +00:00] [INFO] [runaway.go:149] ["try to start runaway manager loop"] [2024/05/06 09:24:46.084 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=topologySyncerKeeper] [2024/05/06 09:24:46.084 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=closestReplicaReadCheckLoop] [2024/05/06 09:24:46.085 +00:00] [WARN] [domain.go:1326] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 09:24:46.084 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=requestUnitsWriterLoop] [2024/05/06 09:24:46.085 +00:00] [INFO] [controller.go:447] ["[resource group controller] create resource group cost controller"] [name=default] [2024/05/06 09:24:46.085 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=0] [cur_db=mysql] [sql="CREATE DATABASE IF NOT EXISTS test"] [user=] [2024/05/06 09:24:46.088 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:46.087 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:46.088 +00:00] [INFO] [ddl.go:1182] ["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 09:24:46.087 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE DATABASE IF NOT EXISTS test"] [2024/05/06 09:24:46.094 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:46.087 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.100 +00:00] [INFO] [domain.go:315] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=1] ["start time"=3.62047ms] [2024/05/06 09:24:46.100 +00:00] [INFO] [domain.go:635] ["full load and reset schema validator"] [2024/05/06 09:24:46.102 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:46.102 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=3] [version=1] [2024/05/06 09:24:46.102 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=1] ["take time"=6.008925ms] [job="ID:3, Type:create schema, State:done, SchemaState:public, SchemaID:2, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:46.087 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.109 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:46.087 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.114 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=3] [2024/05/06 09:24:46.114 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:46.114 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=1] [cur_db=mysql] [sql="CREATE DATABASE IF NOT EXISTS `mysql`"] [user=] [2024/05/06 09:24:46.115 +00:00] [INFO] [session.go:3945] ["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 09:24:46.121 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:46.117 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:46.121 +00:00] [INFO] [ddl.go:1182] ["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 09:24:46.117 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:46.134 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:46.117 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.146 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=1] [neededSchemaVersion=2] ["start time"=1.07565ms] [gotSchemaVersion=2] [phyTblIDs="[4]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:46.148 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:46.148 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=5] [version=2] [2024/05/06 09:24:46.150 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=2] ["take time"=4.99607ms] [job="ID:5, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:4, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:46.117 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.157 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:46.117 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.172 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=5] [2024/05/06 09:24:46.173 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:46.173 +00:00] [INFO] [session.go:3945] ["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 09:24:46.176 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:46.175 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:46.176 +00:00] [INFO] [ddl.go:1182] ["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 09:24:46.175 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:46.184 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:46.175 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.187 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=2] [neededSchemaVersion=3] ["start time"=260.745µs] [gotSchemaVersion=3] [phyTblIDs="[6]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:46.188 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:46.188 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=7] [version=3] [2024/05/06 09:24:46.190 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=3] ["take time"=2.960877ms] [job="ID:7, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:6, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:46.175 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.199 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:46.175 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.203 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=7] [2024/05/06 09:24:46.203 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:46.203 +00:00] [INFO] [session.go:3945] ["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 09:24:46.206 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:46.205 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:46.206 +00:00] [INFO] [ddl.go:1182] ["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 09:24:46.205 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:46.217 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:46.205 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.220 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=3] [neededSchemaVersion=4] ["start time"=263.482µs] [gotSchemaVersion=4] [phyTblIDs="[8]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:46.221 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:46.221 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=9] [version=4] [2024/05/06 09:24:46.222 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=4] ["take time"=2.342465ms] [job="ID:9, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:8, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:46.205 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.235 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:46.205 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.240 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=9] [2024/05/06 09:24:46.240 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:46.241 +00:00] [INFO] [session.go:3945] ["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 09:24:46.247 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:46.245 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:46.247 +00:00] [INFO] [ddl.go:1182] ["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 09:24:46.245 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:46.258 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:46.245 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.265 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=4] [neededSchemaVersion=5] ["start time"=588.304µs] [gotSchemaVersion=5] [phyTblIDs="[10]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:46.267 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:46.267 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=11] [version=5] [2024/05/06 09:24:46.269 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=5] ["take time"=5.010709ms] [job="ID:11, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:10, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:46.245 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.277 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:46.245 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.282 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=11] [2024/05/06 09:24:46.282 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:46.282 +00:00] [INFO] [session.go:3945] ["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 09:24:46.286 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:46.285 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:46.286 +00:00] [INFO] [ddl.go:1182] ["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 09:24:46.285 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:46.299 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:46.285 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.304 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=5] [neededSchemaVersion=6] ["start time"=379.285µs] [gotSchemaVersion=6] [phyTblIDs="[12]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:46.307 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:46.307 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=13] [version=6] [2024/05/06 09:24:46.307 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=6] ["take time"=4.350622ms] [job="ID:13, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:12, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:46.285 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.321 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:46.285 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.326 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=13] [2024/05/06 09:24:46.326 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:46.327 +00:00] [INFO] [session.go:3945] ["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 09:24:46.331 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:46.329 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:46.331 +00:00] [INFO] [ddl.go:1182] ["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 09:24:46.329 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:46.338 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:46.329 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.341 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=6] [neededSchemaVersion=7] ["start time"=291.759µs] [gotSchemaVersion=7] [phyTblIDs="[14]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:46.343 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:46.343 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=15] [version=7] [2024/05/06 09:24:46.343 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=7] ["take time"=2.012023ms] [job="ID:15, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:14, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:46.329 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.349 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:46.329 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.353 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=15] [2024/05/06 09:24:46.353 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:46.353 +00:00] [INFO] [session.go:3945] ["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 09:24:46.356 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:46.355 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:46.356 +00:00] [INFO] [ddl.go:1182] ["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 09:24:46.355 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:46.366 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:46.355 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.369 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=7] [neededSchemaVersion=8] ["start time"=215.379µs] [gotSchemaVersion=8] [phyTblIDs="[16]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:46.370 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:46.370 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=17] [version=8] [2024/05/06 09:24:46.370 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=8] ["take time"=2.20187ms] [job="ID:17, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:16, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:46.355 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.377 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:46.355 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.381 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=17] [2024/05/06 09:24:46.381 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:46.381 +00:00] [INFO] [session.go:3945] ["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 09:24:46.384 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:46.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:46.385 +00:00] [INFO] [ddl.go:1182] ["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 09:24:46.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:46.390 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:46.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.393 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=8] [neededSchemaVersion=9] ["start time"=238.863µs] [gotSchemaVersion=9] [phyTblIDs="[18]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:46.394 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:46.394 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=19] [version=9] [2024/05/06 09:24:46.395 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=9] ["take time"=2.060466ms] [job="ID:19, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:18, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:46.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.410 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:46.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.417 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=19] [2024/05/06 09:24:46.417 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:46.418 +00:00] [INFO] [session.go:3945] ["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 09:24:46.421 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:46.419 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:46.421 +00:00] [INFO] [ddl.go:1182] ["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 09:24:46.419 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:46.438 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:46.419 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.441 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=9] [neededSchemaVersion=10] ["start time"=286.567µs] [gotSchemaVersion=10] [phyTblIDs="[20]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:46.443 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:46.443 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=21] [version=10] [2024/05/06 09:24:46.445 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=10] ["take time"=3.868775ms] [job="ID:21, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:20, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:46.419 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.453 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:46.419 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.457 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=21] [2024/05/06 09:24:46.457 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:46.457 +00:00] [INFO] [session.go:3945] ["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 09:24:46.460 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:46.459 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:46.460 +00:00] [INFO] [ddl.go:1182] ["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 09:24:46.459 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:46.477 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:46.459 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.481 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=10] [neededSchemaVersion=11] ["start time"=281.718µs] [gotSchemaVersion=11] [phyTblIDs="[22]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:46.482 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:46.482 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=23] [version=11] [2024/05/06 09:24:46.484 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=11] ["take time"=3.405561ms] [job="ID:23, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:22, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:46.459 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.496 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:46.459 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.499 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=23] [2024/05/06 09:24:46.499 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:46.500 +00:00] [INFO] [session.go:3945] ["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 09:24:46.500 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(6291456) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:46.503 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:46.502 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:46.503 +00:00] [INFO] [ddl.go:1182] ["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 09:24:46.502 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:46.515 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:46.502 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.519 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=11] [neededSchemaVersion=12] ["start time"=381.955µs] [gotSchemaVersion=12] [phyTblIDs="[24]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:46.520 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:46.520 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=25] [version=12] [2024/05/06 09:24:46.521 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=12] ["take time"=2.409404ms] [job="ID:25, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:24, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:46.502 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.532 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:46.502 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.536 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=25] [2024/05/06 09:24:46.537 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:46.537 +00:00] [INFO] [session.go:3945] ["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 09:24:46.541 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:46.539 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:46.541 +00:00] [INFO] [ddl.go:1182] ["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 09:24:46.539 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:46.551 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:46.539 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.564 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=12] [neededSchemaVersion=13] ["start time"=398.257µs] [gotSchemaVersion=13] [phyTblIDs="[26]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:46.565 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:46.565 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=27] [version=13] [2024/05/06 09:24:46.566 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=13] ["take time"=2.68358ms] [job="ID:27, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:26, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:46.539 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.572 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:46.539 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.576 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=27] [2024/05/06 09:24:46.576 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:46.577 +00:00] [INFO] [session.go:3945] ["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 09:24:46.580 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:46.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:46.581 +00:00] [INFO] [ddl.go:1182] ["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 09:24:46.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:46.597 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:46.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.602 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=13] [neededSchemaVersion=14] ["start time"=265.215µs] [gotSchemaVersion=14] [phyTblIDs="[28]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:46.604 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:46.604 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=29] [version=14] [2024/05/06 09:24:46.605 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=14] ["take time"=3.009536ms] [job="ID:29, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:28, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:46.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.610 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:46.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.615 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=29] [2024/05/06 09:24:46.616 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:46.616 +00:00] [INFO] [session.go:3945] ["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 09:24:46.619 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:46.617 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:46.619 +00:00] [INFO] [ddl.go:1182] ["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 09:24:46.617 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:46.631 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:46.617 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.634 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=14] [neededSchemaVersion=15] ["start time"=295.401µs] [gotSchemaVersion=15] [phyTblIDs="[30]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:46.635 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:46.635 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=31] [version=15] [2024/05/06 09:24:46.636 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=15] ["take time"=2.097603ms] [job="ID:31, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:30, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:46.617 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.644 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:46.617 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.648 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=31] [2024/05/06 09:24:46.648 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:46.649 +00:00] [INFO] [session.go:3945] ["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 09:24:46.652 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:46.65 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:46.652 +00:00] [INFO] [ddl.go:1182] ["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 09:24:46.65 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:46.661 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:46.65 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.664 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=15] [neededSchemaVersion=16] ["start time"=266.902µs] [gotSchemaVersion=16] [phyTblIDs="[32]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:46.666 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:46.666 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=33] [version=16] [2024/05/06 09:24:46.667 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=16] ["take time"=2.928088ms] [job="ID:33, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:32, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:46.65 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.673 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:46.65 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.676 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=33] [2024/05/06 09:24:46.676 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:46.677 +00:00] [INFO] [session.go:3945] ["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 09:24:46.679 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:46.678 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:46.680 +00:00] [INFO] [ddl.go:1182] ["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 09:24:46.678 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:46.709 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:46.678 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.713 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=16] [neededSchemaVersion=17] ["start time"=312.634µs] [gotSchemaVersion=17] [phyTblIDs="[34]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:46.714 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:46.714 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=35] [version=17] [2024/05/06 09:24:46.715 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=17] ["take time"=3.032373ms] [job="ID:35, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:34, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:46.678 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.743 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:46.678 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.747 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=35] [2024/05/06 09:24:46.747 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:46.747 +00:00] [INFO] [session.go:3945] ["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 09:24:46.750 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:46.749 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:46.750 +00:00] [INFO] [ddl.go:1182] ["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 09:24:46.749 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:46.771 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:46.749 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.775 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=17] [neededSchemaVersion=18] ["start time"=273.434µs] [gotSchemaVersion=18] [phyTblIDs="[36]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:46.776 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:46.776 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=37] [version=18] [2024/05/06 09:24:46.777 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=18] ["take time"=2.842824ms] [job="ID:37, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:36, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:46.749 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.785 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:46.749 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.789 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=37] [2024/05/06 09:24:46.789 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:46.789 +00:00] [INFO] [session.go:3945] ["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 09:24:46.793 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:46.791 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:46.793 +00:00] [INFO] [ddl.go:1182] ["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 09:24:46.791 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:46.803 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:46.791 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.807 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=18] [neededSchemaVersion=19] ["start time"=420.364µs] [gotSchemaVersion=19] [phyTblIDs="[38]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:46.809 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:46.809 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=39] [version=19] [2024/05/06 09:24:46.812 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=19] ["take time"=5.185305ms] [job="ID:39, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:38, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:46.791 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.829 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:46.791 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.833 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=39] [2024/05/06 09:24:46.833 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:46.835 +00:00] [INFO] [session.go:3945] ["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 09:24:46.838 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:46.836 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:46.838 +00:00] [INFO] [ddl.go:1182] ["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 09:24:46.836 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:46.860 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:46.836 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.863 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=19] [neededSchemaVersion=20] ["start time"=276.033µs] [gotSchemaVersion=20] [phyTblIDs="[40]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:46.865 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:46.865 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=41] [version=20] [2024/05/06 09:24:46.865 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=20] ["take time"=2.420345ms] [job="ID:41, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:40, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:46.836 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.874 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:46.836 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.878 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=41] [2024/05/06 09:24:46.878 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:46.878 +00:00] [INFO] [session.go:3945] ["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 09:24:46.881 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:46.88 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:46.881 +00:00] [INFO] [ddl.go:1182] ["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 09:24:46.88 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:46.889 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:46.88 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.892 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=20] [neededSchemaVersion=21] ["start time"=219.64µs] [gotSchemaVersion=21] [phyTblIDs="[42]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:46.893 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:46.893 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=43] [version=21] [2024/05/06 09:24:46.894 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=21] ["take time"=2.348637ms] [job="ID:43, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:42, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:46.88 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.902 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:46.88 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.905 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=43] [2024/05/06 09:24:46.905 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:46.906 +00:00] [INFO] [session.go:3945] ["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 09:24:46.908 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:46.907 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:46.908 +00:00] [INFO] [ddl.go:1182] ["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 09:24:46.907 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE TABLE IF NOT EXISTS mysql.opt_rule_blacklist (\n\t\tname \tCHAR(100) NOT NULL\n\t);"] [2024/05/06 09:24:46.922 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:46.907 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.926 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=21] [neededSchemaVersion=22] ["start time"=220.949µs] [gotSchemaVersion=22] [phyTblIDs="[44]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:46.927 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:46.927 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=45] [version=22] [2024/05/06 09:24:46.931 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=22] ["take time"=5.769564ms] [job="ID:45, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:44, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:46.907 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.940 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:46.907 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.943 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=45] [2024/05/06 09:24:46.944 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:46.944 +00:00] [INFO] [session.go:3945] ["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 09:24:46.947 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:46.946 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:46.947 +00:00] [INFO] [ddl.go:1182] ["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 09:24:46.946 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:46.962 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:46.946 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.967 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=22] [neededSchemaVersion=23] ["start time"=342.815µs] [gotSchemaVersion=23] [phyTblIDs="[46]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:46.968 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:46.968 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=47] [version=23] [2024/05/06 09:24:46.969 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=23] ["take time"=2.292895ms] [job="ID:47, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:46, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:46.946 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.981 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:46.946 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:46.985 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=47] [2024/05/06 09:24:46.985 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:46.986 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=23] [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 09:24:46.988 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:46.987 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:46.989 +00:00] [INFO] [ddl.go:1182] ["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 09:24:46.987 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:47.010 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:46.987 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.013 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=23] [neededSchemaVersion=24] ["start time"=300.111µs] [gotSchemaVersion=24] [phyTblIDs="[48]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:47.014 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:47.014 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=49] [version=24] [2024/05/06 09:24:47.016 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=24] ["take time"=3.073451ms] [job="ID:49, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:48, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:46.987 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.023 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:46.987 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.027 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=49] [2024/05/06 09:24:47.027 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:47.027 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=24] [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 09:24:47.030 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:47.029 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:47.030 +00:00] [INFO] [ddl.go:1182] ["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 09:24:47.029 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:47.044 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:47.029 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.052 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=24] [neededSchemaVersion=25] ["start time"=262.122µs] [gotSchemaVersion=25] [phyTblIDs="[50]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:47.053 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:47.053 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=51] [version=25] [2024/05/06 09:24:47.055 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=25] ["take time"=3.228835ms] [job="ID:51, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:50, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:47.029 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.062 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:47.029 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.065 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=51] [2024/05/06 09:24:47.065 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:47.066 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=25] [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 09:24:47.069 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:47.067 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:47.069 +00:00] [INFO] [ddl.go:1182] ["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 09:24:47.067 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:47.081 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:47.067 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.084 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=25] [neededSchemaVersion=26] ["start time"=255.143µs] [gotSchemaVersion=26] [phyTblIDs="[52]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:47.085 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:47.085 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=53] [version=26] [2024/05/06 09:24:47.086 +00:00] [WARN] [runaway.go:166] ["failed to start runaway manager loop, please check whether the bootstrap or update is finished"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [errorVerbose="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/planner/core.Preprocess\n\tpkg/planner/core/preprocess.go:141\ngithub.com/pingcap/tidb/pkg/executor.(*Compiler).Compile\n\tpkg/executor/compiler.go:67\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2089\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteInternalStmt\n\tpkg/session/session.go:1993\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecRestrictedSQL.func1\n\tpkg/session/session.go:1958\ngithub.com/pingcap/tidb/pkg/session.(*session).withRestrictedSQLExecutor\n\tpkg/session/session.go:1944\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecRestrictedSQL\n\tpkg/session/session.go:1948\ngithub.com/pingcap/tidb/pkg/domain.(*SystemTableReader).Read\n\tpkg/domain/runaway.go:655\ngithub.com/pingcap/tidb/pkg/domain.getRunawayWatchRecord\n\tpkg/domain/runaway.go:543\ngithub.com/pingcap/tidb/pkg/domain.(*runawaySyncer).getWatchRecord\n\tpkg/domain/runaway.go:526\ngithub.com/pingcap/tidb/pkg/domain.(*runawaySyncer).getNewWatchRecords\n\tpkg/domain/runaway.go:509\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).updateNewAndDoneWatch\n\tpkg/domain/runaway.go:177\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).runawayStartLoop\n\tpkg/domain/runaway.go:156\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:99\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [2024/05/06 09:24:47.086 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=26] ["take time"=2.379947ms] [job="ID:53, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:52, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:47.067 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.094 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:47.067 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.098 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=53] [2024/05/06 09:24:47.098 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:47.098 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=26] [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 09:24:47.101 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:47.099 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:47.101 +00:00] [INFO] [ddl.go:1182] ["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 09:24:47.099 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:47.116 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:47.099 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.120 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=26] [neededSchemaVersion=27] ["start time"=318.545µs] [gotSchemaVersion=27] [phyTblIDs="[54]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:47.121 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:47.121 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=55] [version=27] [2024/05/06 09:24:47.126 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=27] ["take time"=6.491424ms] [job="ID:55, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:54, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:47.099 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.150 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:47.099 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.153 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=55] [2024/05/06 09:24:47.153 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:47.154 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=27] [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 09:24:47.157 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:47.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:47.157 +00:00] [INFO] [ddl.go:1182] ["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 09:24:47.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:47.168 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:47.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.172 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=27] [neededSchemaVersion=28] ["start time"=236.8µs] [gotSchemaVersion=28] [phyTblIDs="[56]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:47.173 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:47.173 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=57] [version=28] [2024/05/06 09:24:47.174 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=28] ["take time"=2.90827ms] [job="ID:57, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:56, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:47.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.180 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:47.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.184 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=57] [2024/05/06 09:24:47.184 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:47.184 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=28] [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 09:24:47.184 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(19372) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:47.187 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:47.186 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:47.187 +00:00] [INFO] [ddl.go:1182] ["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 09:24:47.186 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:47.200 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:47.186 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.203 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=28] [neededSchemaVersion=29] ["start time"=298.065µs] [gotSchemaVersion=29] [phyTblIDs="[58]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:47.205 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:47.205 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=59] [version=29] [2024/05/06 09:24:47.206 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=29] ["take time"=2.749135ms] [job="ID:59, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:58, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:47.186 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.220 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:47.186 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.224 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=59] [2024/05/06 09:24:47.225 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:47.225 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=29] [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 09:24:47.228 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:47.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:47.228 +00:00] [INFO] [ddl.go:1182] ["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 09:24:47.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:47.238 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:47.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.242 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=29] [neededSchemaVersion=30] ["start time"=343.518µs] [gotSchemaVersion=30] [phyTblIDs="[60]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:47.243 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:47.243 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=61] [version=30] [2024/05/06 09:24:47.243 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=30] ["take time"=2.231477ms] [job="ID:61, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:60, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:47.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.263 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:47.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.267 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=61] [2024/05/06 09:24:47.267 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:47.268 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=30] [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 09:24:47.271 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:47.27 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:47.271 +00:00] [INFO] [ddl.go:1182] ["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 09:24:47.27 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:47.283 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:47.27 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.290 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=30] [neededSchemaVersion=31] ["start time"=334.637µs] [gotSchemaVersion=31] [phyTblIDs="[62]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:47.291 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:47.291 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=63] [version=31] [2024/05/06 09:24:47.291 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=31] ["take time"=2.009462ms] [job="ID:63, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:62, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:47.27 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.314 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:47.27 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.319 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=63] [2024/05/06 09:24:47.319 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:47.319 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=31] [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 09:24:47.323 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:47.321 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:47.323 +00:00] [INFO] [ddl.go:1182] ["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 09:24:47.321 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:47.338 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:47.321 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.342 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=31] [neededSchemaVersion=32] ["start time"=432.712µs] [gotSchemaVersion=32] [phyTblIDs="[64]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:47.346 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:47.346 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=65] [version=32] [2024/05/06 09:24:47.348 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=32] ["take time"=6.743351ms] [job="ID:65, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:64, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:47.321 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.354 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:47.321 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.358 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=65] [2024/05/06 09:24:47.358 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:47.359 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=32] [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 09:24:47.361 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:47.36 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:47.361 +00:00] [INFO] [ddl.go:1182] ["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 09:24:47.36 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE TABLE IF NOT EXISTS mysql.advisory_locks (\n\t\tlock_name VARCHAR(64) NOT NULL PRIMARY KEY\n\t);"] [2024/05/06 09:24:47.379 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:47.36 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.386 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=32] [neededSchemaVersion=33] ["start time"=238.5µs] [gotSchemaVersion=33] [phyTblIDs="[66]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:47.387 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:47.387 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=67] [version=33] [2024/05/06 09:24:47.392 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=33] ["take time"=6.765209ms] [job="ID:67, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:66, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:47.36 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.411 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:47.36 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.415 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=67] [2024/05/06 09:24:47.415 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:47.419 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:69, Type:create view, State:queueing, SchemaState:none, SchemaID:1, TableID:68, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:47.418 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:47.419 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:69, Type:create view, State:queueing, SchemaState:none, SchemaID:1, TableID:68, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:47.418 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE OR REPLACE VIEW mysql.tidb_mdl_view as (\n\t\tSELECT tidb_mdl_info.job_id,\n\t\t\tJSON_UNQUOTE(JSON_EXTRACT(cast(cast(job_meta as char) as json), \"$.schema_name\")) as db_name,\n\t\t\tJSON_UNQUOTE(JSON_EXTRACT(cast(cast(job_meta as char) as json), \"$.table_name\")) as table_name,\n\t\t\tJSON_UNQUOTE(JSON_EXTRACT(cast(cast(job_meta as char) as json), \"$.query\")) as query,\n\t\t\tsession_id,\n\t\t\tcluster_tidb_trx.start_time,\n\t\t\ttidb_decode_sql_digests(all_sql_digests, 4096) AS SQL_DIGESTS\n\t\tFROM mysql.tidb_ddl_job,\n\t\t\tmysql.tidb_mdl_info,\n\t\t\tinformation_schema.cluster_tidb_trx\n\t\tWHERE tidb_ddl_job.job_id=tidb_mdl_info.job_id\n\t\t\tAND CONCAT(',', tidb_mdl_info.table_ids, ',') REGEXP CONCAT(',', REPLACE(cluster_tidb_trx.related_table_ids, ',', '|'), ',') != 0\n\t);"] [2024/05/06 09:24:47.444 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, tp general"] [category=ddl] [jobID=69] [category=ddl] [job="ID:69, Type:create view, State:queueing, SchemaState:none, SchemaID:1, TableID:68, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:47.418 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.453 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=33] [neededSchemaVersion=34] ["start time"=294.212µs] [gotSchemaVersion=34] [phyTblIDs="[68]"] [actionTypes="[21]"] [diffTypes="[\"create view\"]"] [2024/05/06 09:24:47.454 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:47.455 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=69] [version=34] [2024/05/06 09:24:47.455 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=34] ["take time"=2.008157ms] [job="ID:69, Type:create view, State:done, SchemaState:public, SchemaID:1, TableID:68, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:47.418 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.461 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, tp general"] [category=ddl] [jobID=69] [job="ID:69, Type:create view, State:synced, SchemaState:public, SchemaID:1, TableID:68, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:47.418 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.465 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=69] [2024/05/06 09:24:47.465 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:47.465 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=34] [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 09:24:47.468 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:71, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:70, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:47.467 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:47.468 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:71, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:70, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:47.467 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:47.485 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, tp general"] [category=ddl] [jobID=71] [category=ddl] [job="ID:71, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:70, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:47.467 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.488 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=34] [neededSchemaVersion=35] ["start time"=283.005µs] [gotSchemaVersion=35] [phyTblIDs="[70]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:47.489 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:47.489 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=71] [version=35] [2024/05/06 09:24:47.490 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=35] ["take time"=3.032945ms] [job="ID:71, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:70, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:47.467 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.501 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, tp general"] [category=ddl] [jobID=71] [job="ID:71, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:70, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:47.467 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.504 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=71] [2024/05/06 09:24:47.504 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:47.505 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=35] [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 09:24:47.508 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:47.506 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:47.508 +00:00] [INFO] [ddl.go:1182] ["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 09:24:47.506 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:47.527 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:47.506 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.533 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=35] [neededSchemaVersion=36] ["start time"=269.294µs] [gotSchemaVersion=36] [phyTblIDs="[72]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:47.537 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:47.537 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=73] [version=36] [2024/05/06 09:24:47.540 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=36] ["take time"=6.997431ms] [job="ID:73, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:72, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:47.506 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.552 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:47.506 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.558 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=73] [2024/05/06 09:24:47.561 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:47.562 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=36] [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 09:24:47.565 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:47.564 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:47.565 +00:00] [INFO] [ddl.go:1182] ["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 09:24:47.564 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:47.571 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:47.564 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.574 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=36] [neededSchemaVersion=37] ["start time"=248.363µs] [gotSchemaVersion=37] [phyTblIDs="[74]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:47.576 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:47.576 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=75] [version=37] [2024/05/06 09:24:47.577 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=37] ["take time"=3.215766ms] [job="ID:75, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:74, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:47.564 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.584 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:47.564 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.588 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=75] [2024/05/06 09:24:47.588 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:47.588 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=37] [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 09:24:47.592 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:47.59 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:47.592 +00:00] [INFO] [ddl.go:1182] ["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 09:24:47.59 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:47.602 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:47.59 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.607 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=37] [neededSchemaVersion=38] ["start time"=468.339µs] [gotSchemaVersion=38] [phyTblIDs="[76]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:47.608 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:47.608 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=77] [version=38] [2024/05/06 09:24:47.610 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=38] ["take time"=3.661937ms] [job="ID:77, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:76, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:47.59 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.625 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:47.59 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.630 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=77] [2024/05/06 09:24:47.630 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:47.631 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=38] [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 09:24:47.634 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:47.632 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:47.634 +00:00] [INFO] [ddl.go:1182] ["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 09:24:47.632 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:47.640 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:47.632 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.645 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=38] [neededSchemaVersion=39] ["start time"=460.313µs] [gotSchemaVersion=39] [phyTblIDs="[78]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:47.648 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:47.648 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=79] [version=39] [2024/05/06 09:24:47.649 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=39] ["take time"=4.151675ms] [job="ID:79, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:78, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:47.632 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.664 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:47.632 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.669 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=79] [2024/05/06 09:24:47.669 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:47.670 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=39] [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 09:24:47.674 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:47.672 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:47.674 +00:00] [INFO] [ddl.go:1182] ["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 09:24:47.672 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:47.681 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:47.672 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.687 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=39] [neededSchemaVersion=40] ["start time"=531.431µs] [gotSchemaVersion=40] [phyTblIDs="[80]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:47.689 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:47.690 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=81] [version=40] [2024/05/06 09:24:47.692 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=40] ["take time"=5.561974ms] [job="ID:81, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:80, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:47.672 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.701 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:47.672 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.705 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=81] [2024/05/06 09:24:47.705 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:47.706 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=40] [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(261),\n\t\tstate VARCHAR(64) NOT NULL,\n\t\tpriority INT DEFAULT 1,\n\t\tcreate_time TIMESTAMP,\n\t\tstart_time TIMESTAMP,\n\t\tstate_update_time TIMESTAMP,\n\t\tend_time TIMESTAMP,\n\t\tmeta LONGBLOB,\n\t\tconcurrency INT(11),\n\t\tstep INT(11),\n\t\ttarget_scope VARCHAR(256) DEFAULT \"\",\n\t\terror BLOB,\n\t\tkey(state),\n \tUNIQUE KEY task_key(task_key)\n\t);"] [user=] [2024/05/06 09:24:47.713 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:47.71 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:47.713 +00:00] [INFO] [ddl.go:1182] ["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 09:24:47.71 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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(261),\n\t\tstate VARCHAR(64) NOT NULL,\n\t\tpriority INT DEFAULT 1,\n\t\tcreate_time TIMESTAMP,\n\t\tstart_time TIMESTAMP,\n\t\tstate_update_time TIMESTAMP,\n\t\tend_time TIMESTAMP,\n\t\tmeta LONGBLOB,\n\t\tconcurrency INT(11),\n\t\tstep INT(11),\n\t\ttarget_scope VARCHAR(256) DEFAULT \"\",\n\t\terror BLOB,\n\t\tkey(state),\n \tUNIQUE KEY task_key(task_key)\n\t);"] [2024/05/06 09:24:47.719 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:47.71 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.726 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=40] [neededSchemaVersion=41] ["start time"=531.966µs] [gotSchemaVersion=41] [phyTblIDs="[82]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:47.728 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:47.728 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=83] [version=41] [2024/05/06 09:24:47.729 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=41] ["take time"=4.309475ms] [job="ID:83, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:47.71 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.738 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:47.71 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.744 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=83] [2024/05/06 09:24:47.744 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:47.745 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=41] [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(261),\n\t\tstate VARCHAR(64) NOT NULL,\n\t\tpriority INT DEFAULT 1,\n\t\tcreate_time TIMESTAMP,\n\t\tstart_time TIMESTAMP,\n\t\tstate_update_time TIMESTAMP,\n\t\tend_time TIMESTAMP,\n\t\tmeta LONGBLOB,\n\t\tconcurrency INT(11),\n\t\tstep INT(11),\n\t\ttarget_scope VARCHAR(256) DEFAULT \"\",\n\t\terror BLOB,\n\t\tkey(state),\n \tUNIQUE KEY task_key(task_key)\n\t);"] [user=] [2024/05/06 09:24:47.749 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:47.747 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:47.749 +00:00] [INFO] [ddl.go:1182] ["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 09:24:47.747 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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(261),\n\t\tstate VARCHAR(64) NOT NULL,\n\t\tpriority INT DEFAULT 1,\n\t\tcreate_time TIMESTAMP,\n\t\tstart_time TIMESTAMP,\n\t\tstate_update_time TIMESTAMP,\n\t\tend_time TIMESTAMP,\n\t\tmeta LONGBLOB,\n\t\tconcurrency INT(11),\n\t\tstep INT(11),\n\t\ttarget_scope VARCHAR(256) DEFAULT \"\",\n\t\terror BLOB,\n\t\tkey(state),\n \tUNIQUE KEY task_key(task_key)\n\t);"] [2024/05/06 09:24:47.758 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:47.747 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.764 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=41] [neededSchemaVersion=42] ["start time"=454.091µs] [gotSchemaVersion=42] [phyTblIDs="[84]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:47.765 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:47.765 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=85] [version=42] [2024/05/06 09:24:47.768 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=42] ["take time"=4.757352ms] [job="ID:85, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:84, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:47.747 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.779 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:47.747 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.784 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=85] [2024/05/06 09:24:47.784 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:47.784 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=42] [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 09:24:47.789 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:47.786 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:47.789 +00:00] [INFO] [ddl.go:1182] ["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 09:24:47.786 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:47.801 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:47.786 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.814 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=42] [neededSchemaVersion=43] ["start time"=460.135µs] [gotSchemaVersion=43] [phyTblIDs="[86]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:47.815 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:47.815 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=87] [version=43] [2024/05/06 09:24:47.815 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=43] ["take time"=2.142558ms] [job="ID:87, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:86, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:47.786 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.824 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:47.786 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.828 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=87] [2024/05/06 09:24:47.828 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:47.829 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=43] [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 09:24:47.832 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:47.831 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:47.832 +00:00] [INFO] [ddl.go:1182] ["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 09:24:47.831 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:47.839 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:47.831 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.845 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=43] [neededSchemaVersion=44] ["start time"=413.584µs] [gotSchemaVersion=44] [phyTblIDs="[88]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:47.847 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:47.847 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=89] [version=44] [2024/05/06 09:24:47.847 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=44] ["take time"=2.009836ms] [job="ID:89, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:88, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:47.831 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.863 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:47.831 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.868 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=89] [2024/05/06 09:24:47.868 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:47.869 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=44] [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 09:24:47.873 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:47.872 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:47.873 +00:00] [INFO] [ddl.go:1182] ["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 09:24:47.872 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:47.884 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:47.872 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.895 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=44] [neededSchemaVersion=45] ["start time"=811.486µs] [gotSchemaVersion=45] [phyTblIDs="[90]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:47.896 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:47.896 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=91] [version=45] [2024/05/06 09:24:47.899 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=45] ["take time"=4.8816ms] [job="ID:91, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:90, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:47.872 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.917 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:47.872 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.921 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=91] [2024/05/06 09:24:47.922 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:47.925 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=45] [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 09:24:47.933 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:47.931 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:47.933 +00:00] [INFO] [ddl.go:1182] ["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 09:24:47.931 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:47.941 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:47.931 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.950 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=45] [neededSchemaVersion=46] ["start time"=601.619µs] [gotSchemaVersion=46] [phyTblIDs="[92]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:47.951 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:47.951 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=93] [version=46] [2024/05/06 09:24:47.953 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=46] ["take time"=4.254998ms] [job="ID:93, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:92, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:47.931 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.965 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:47.931 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.971 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=93] [2024/05/06 09:24:47.971 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:47.972 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=46] [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 09:24:47.975 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:47.973 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:47.975 +00:00] [INFO] [ddl.go:1182] ["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 09:24:47.973 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:47.982 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:47.973 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.990 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=46] [neededSchemaVersion=47] ["start time"=375.367µs] [gotSchemaVersion=47] [phyTblIDs="[94]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:47.991 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:47.991 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=95] [version=47] [2024/05/06 09:24:47.991 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=47] ["take time"=2.067997ms] [job="ID:95, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:94, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:47.973 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:47.999 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:47.973 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.004 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=95] [2024/05/06 09:24:48.004 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:48.004 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=47] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.dist_framework_meta (\n host VARCHAR(261) NOT NULL PRIMARY KEY,\n role VARCHAR(64),\n cpu_count int default 0,\n keyspace_id bigint(8) NOT NULL DEFAULT -1\n );"] [user=] [2024/05/06 09:24:48.008 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:48.006 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:48.008 +00:00] [INFO] [ddl.go:1182] ["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 09:24:48.006 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE TABLE IF NOT EXISTS mysql.dist_framework_meta (\n host VARCHAR(261) NOT NULL PRIMARY KEY,\n role VARCHAR(64),\n cpu_count int default 0,\n keyspace_id bigint(8) NOT NULL DEFAULT -1\n );"] [2024/05/06 09:24:48.023 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:48.006 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.026 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=47] [neededSchemaVersion=48] ["start time"=263.374µs] [gotSchemaVersion=48] [phyTblIDs="[96]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:48.028 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:48.028 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=97] [version=48] [2024/05/06 09:24:48.028 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=48] ["take time"=2.459839ms] [job="ID:97, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:96, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:48.006 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.039 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:48.006 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.043 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=97] [2024/05/06 09:24:48.043 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:48.043 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=48] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.request_unit_by_group (\n\t\tstart_time TIMESTAMP(6) NOT NULL,\n\t\tend_time TIMESTAMP(6) NOT NULL,\n\t\tresource_group VARCHAR(32) NOT null,\n\t\ttotal_ru bigint(64) UNSIGNED NOT NULL,\n\t\tPRIMARY KEY (start_time, end_time, resource_group),\n\t\tKEY (resource_group)\n\t);"] [user=] [2024/05/06 09:24:48.046 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:48.045 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:48.046 +00:00] [INFO] [ddl.go:1182] ["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 09:24:48.045 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE TABLE IF NOT EXISTS mysql.request_unit_by_group (\n\t\tstart_time TIMESTAMP(6) NOT NULL,\n\t\tend_time TIMESTAMP(6) NOT NULL,\n\t\tresource_group VARCHAR(32) NOT null,\n\t\ttotal_ru bigint(64) UNSIGNED NOT NULL,\n\t\tPRIMARY KEY (start_time, end_time, resource_group),\n\t\tKEY (resource_group)\n\t);"] [2024/05/06 09:24:48.066 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, 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 09:24:48.045 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.074 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=48] [neededSchemaVersion=49] ["start time"=309.829µs] [gotSchemaVersion=49] [phyTblIDs="[98]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:48.075 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:48.075 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=99] [version=49] [2024/05/06 09:24:48.076 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=49] ["take time"=2.565852ms] [job="ID:99, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:98, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:48.045 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.084 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, 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 09:24:48.045 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.087 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=99] [2024/05/06 09:24:48.087 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:48.088 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=49] [cur_db=mysql] [sql="CREATE DATABASE IF NOT EXISTS sys;"] [user=] [2024/05/06 09:24:48.088 +00:00] [INFO] [runaway.go:158] ["preparations for the runaway manager are finished and start runaway manager loop"] [2024/05/06 09:24:48.088 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=runawayRecordFlushLoop] [2024/05/06 09:24:48.088 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=runawayWatchSyncLoop] [2024/05/06 09:24:48.088 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=runawayStartLoop] [2024/05/06 09:24:48.088 +00:00] [INFO] [info.go:1142] [SetTiFlashGroupConfig] [2024/05/06 09:24:48.098 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:101, Type:create schema, State:queueing, SchemaState:none, SchemaID:100, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:48.096 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:48.098 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:101, Type:create schema, State:queueing, SchemaState:none, SchemaID:100, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:48.096 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE DATABASE IF NOT EXISTS sys;"] [2024/05/06 09:24:48.112 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, tp general"] [category=ddl] [jobID=101] [category=ddl] [job="ID:101, Type:create schema, State:queueing, SchemaState:none, SchemaID:100, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:48.096 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.119 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=49] [neededSchemaVersion=50] ["start time"=69.651µs] [gotSchemaVersion=50] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"create schema\"]"] [2024/05/06 09:24:48.120 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:48.120 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=101] [version=50] [2024/05/06 09:24:48.121 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=50] ["take time"=2.022733ms] [job="ID:101, Type:create schema, State:done, SchemaState:public, SchemaID:100, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:48.096 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.128 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, tp general"] [category=ddl] [jobID=101] [job="ID:101, Type:create schema, State:synced, SchemaState:public, SchemaID:100, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:48.096 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.131 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=101] [2024/05/06 09:24:48.132 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:48.135 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:103, Type:create view, State:queueing, SchemaState:none, SchemaID:100, TableID:102, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:48.134 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:48.135 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:103, Type:create view, State:queueing, SchemaState:none, SchemaID:100, TableID:102, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:48.134 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE OR REPLACE VIEW sys.schema_unused_indexes AS\n\t\tSELECT\n\t\t\ttable_schema as object_schema,\n\t\t\ttable_name as object_name,\n\t\t\tindex_name\n\t\tFROM information_schema.cluster_tidb_index_usage\n\t\tWHERE\n\t\t\ttable_schema not in ('sys', 'mysql', 'INFORMATION_SCHEMA', 'PERFORMANCE_SCHEMA') and\n\t\t\tindex_name != 'PRIMARY'\n\t\tGROUP BY table_schema, table_name, index_name\n\t\tHAVING\n\t\t\tsum(last_access_time) is null;"] [2024/05/06 09:24:48.147 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 51, tp general"] [category=ddl] [jobID=103] [category=ddl] [job="ID:103, Type:create view, State:queueing, SchemaState:none, SchemaID:100, TableID:102, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:48.134 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.152 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=50] [neededSchemaVersion=51] ["start time"=208.297µs] [gotSchemaVersion=51] [phyTblIDs="[102]"] [actionTypes="[21]"] [diffTypes="[\"create view\"]"] [2024/05/06 09:24:48.154 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:48.154 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=103] [version=51] [2024/05/06 09:24:48.155 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=51] ["take time"=2.941439ms] [job="ID:103, Type:create view, State:done, SchemaState:public, SchemaID:100, TableID:102, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:48.134 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.163 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 51, tp general"] [category=ddl] [jobID=103] [job="ID:103, Type:create view, State:synced, SchemaState:public, SchemaID:100, TableID:102, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:48.134 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.167 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=103] [2024/05/06 09:24:48.167 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:48.231 +00:00] [INFO] [bootstrap.go:745] ["bootstrap successful"] ["take time"=2.146414435s] [2024/05/06 09:24:48.242 +00:00] [INFO] [mock.go:106] ["owner manager is canceled"] [category=ddl] [ID=fba38984-578b-4a76-879e-34fa9741791f] [ownerKey=/tidb/ddl/fg/owner] [2024/05/06 09:24:48.242 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:48.242 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 55, tp add index"] [category=ddl] ["take time"=2.223µs] [2024/05/06 09:24:48.242 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 52, tp add index"] [category=ddl] ["take time"=1.09µs] [2024/05/06 09:24:48.242 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 53, tp add index"] [category=ddl] ["take time"=1.096µs] [2024/05/06 09:24:48.242 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 54, tp add index"] [category=ddl] ["take time"=1.961µs] [2024/05/06 09:24:48.242 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:48.242 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 51, tp general"] [category=ddl] ["take time"=940ns] [2024/05/06 09:24:48.242 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:48.242 +00:00] [INFO] [delete_range.go:162] ["closing delRange"] [category=ddl] [2024/05/06 09:24:48.242 +00:00] [INFO] [session_pool.go:99] ["closing session pool"] [category=ddl] [2024/05/06 09:24:48.246 +00:00] [INFO] [ddl.go:951] ["DDL closed"] [category=ddl] [ID=fba38984-578b-4a76-879e-34fa9741791f] ["take time"=8.499975ms] [2024/05/06 09:24:48.246 +00:00] [INFO] [ddl.go:769] ["stop DDL"] [category=ddl] [ID=fba38984-578b-4a76-879e-34fa9741791f] [2024/05/06 09:24:48.246 +00:00] [INFO] [domain.go:737] ["globalConfigSyncerKeeper exited."] [2024/05/06 09:24:48.246 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=globalConfigSyncerKeeper] [2024/05/06 09:24:48.246 +00:00] [INFO] [domain.go:907] ["loadSchemaInLoop exited."] [2024/05/06 09:24:48.246 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=loadSchemaInLoop] [2024/05/06 09:24:48.246 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=runawayRecordFlushLoop] [2024/05/06 09:24:48.246 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=runawayWatchSyncLoop] [2024/05/06 09:24:48.246 +00:00] [INFO] [domain.go:761] ["topologySyncerKeeper exited."] [2024/05/06 09:24:48.246 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=topologySyncerKeeper] [2024/05/06 09:24:48.246 +00:00] [INFO] [domain.go:711] ["infoSyncerKeeper exited."] [2024/05/06 09:24:48.246 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=infoSyncerKeeper] [2024/05/06 09:24:48.246 +00:00] [INFO] [domain.go:683] ["topNSlowQueryLoop exited."] [2024/05/06 09:24:48.246 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=topNSlowQueryLoop] [2024/05/06 09:24:48.246 +00:00] [INFO] [domain.go:1361] ["closestReplicaReadCheckLoop exited."] [2024/05/06 09:24:48.246 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=closestReplicaReadCheckLoop] [2024/05/06 09:24:48.246 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=mdlCheckLoop] [2024/05/06 09:24:48.247 +00:00] [INFO] [domain.go:1074] ["domain closed"] ["take time"=9.269318ms] [2024/05/06 09:24:48.247 +00:00] [INFO] [tidb.go:80] ["new domain"] [store=1e68edb0-1c03-4756-be57-8a760e434fc9] ["ddl lease"=5s] ["stats lease"=-1ns] [2024/05/06 09:24:48.254 +00:00] [WARN] [controller.go:198] ["[resource group controller] server does not save config, load config failed"] [2024/05/06 09:24:48.254 +00:00] [INFO] [controller.go:185] ["load resource controller config"] [config="{\"degraded-mode-wait-duration\":\"0s\",\"ltb-max-wait-duration\":\"30s\",\"wait-retry-interval\":\"50ms\",\"wait-retry-times\":10,\"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,\"WaitRetryInterval\":50000000,\"WaitRetryTimes\":10,\"DegradedModeWaitDuration\":0}"] [2024/05/06 09:24:48.271 +00:00] [INFO] [domain.go:315] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=51] ["start time"=16.240381ms] [2024/05/06 09:24:48.272 +00:00] [INFO] [domain.go:635] ["full load and reset schema validator"] [2024/05/06 09:24:48.272 +00:00] [INFO] [ddl.go:818] ["start DDL"] [category=ddl] [ID=28f53fb9-244d-437a-9aa1-407336287a3f] [runWorker=true] [2024/05/06 09:24:48.273 +00:00] [INFO] [ddl.go:777] ["start delRangeManager OK"] [category=ddl] ["is a emulator"=true] [2024/05/06 09:24:48.273 +00:00] [WARN] [env.go:51] ["initialize environment failed"] [category=ddl-ingest] ["storage limitation"="only support TiKV storage"] ["current storage"=unistore] ["lightning is initialized"=false] [2024/05/06 09:24:48.273 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=loadSchemaInLoop] [2024/05/06 09:24:48.273 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=mdlCheckLoop] [2024/05/06 09:24:48.273 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=topNSlowQueryLoop] [2024/05/06 09:24:48.273 +00:00] [INFO] [delete_range.go:172] ["start delRange emulator"] [category=ddl] [2024/05/06 09:24:48.273 +00:00] [INFO] [job_table.go:334] ["get global state and global state change"] [category=ddl] [oldState=false] [currState=false] [2024/05/06 09:24:48.274 +00:00] [INFO] [job_table.go:349] ["the owner sets owner operator value"] [category=ddl] [ownerOp=none] [2024/05/06 09:24:48.274 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=infoSyncerKeeper] [2024/05/06 09:24:48.274 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=globalConfigSyncerKeeper] [2024/05/06 09:24:48.274 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=runawayStartLoop] [2024/05/06 09:24:48.274 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=requestUnitsWriterLoop] [2024/05/06 09:24:48.274 +00:00] [INFO] [runaway.go:149] ["try to start runaway manager loop"] [2024/05/06 09:24:48.274 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=requestUnitsWriterLoop] [2024/05/06 09:24:48.274 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=topologySyncerKeeper] [2024/05/06 09:24:48.274 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=closestReplicaReadCheckLoop] [2024/05/06 09:24:48.274 +00:00] [WARN] [domain.go:1326] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 09:24:48.275 +00:00] [INFO] [controller.go:447] ["[resource group controller] create resource group cost controller"] [name=default] [2024/05/06 09:24:48.278 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=globalBindHandleWorkerLoop] [2024/05/06 09:24:48.278 +00:00] [WARN] [sysvar_cache.go:49] ["sysvar cache is empty, triggering rebuild"] [2024/05/06 09:24:48.296 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=loadPrivilegeInLoop] [2024/05/06 09:24:48.301 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=LoadSysVarCacheLoop] [2024/05/06 09:24:48.303 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=dumpFileGcChecker] [2024/05/06 09:24:48.307 +00:00] [INFO] [domain.go:2070] ["dumpFileGcChecker started"] [2024/05/06 09:24:48.308 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=indexUsageWorker] [2024/05/06 09:24:48.308 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=quitStatsOwner] [2024/05/06 09:24:48.309 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=loadSigningCertLoop] [2024/05/06 09:24:48.310 +00:00] [INFO] [task_manager.go:217] ["scale ttl worker"] [ttl-worker=job-manager] [ttl-worker=task-manager] [originalCount=0] [newCount=4] [2024/05/06 09:24:48.310 +00:00] [INFO] [task_manager.go:217] ["scale ttl worker"] [ttl-worker=job-manager] [ttl-worker=task-manager] [originalCount=0] [newCount=4] [2024/05/06 09:24:48.310 +00:00] [INFO] [manager.go:113] ["build task executor manager"] [server-id=:4000] [total-cpu=16] [total-mem=342GiB] [2024/05/06 09:24:48.316 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=distTaskFrameworkLoop] [2024/05/06 09:24:48.316 +00:00] [INFO] [manager.go:146] ["task executor manager start"] [server-id=:4000] [2024/05/06 09:24:48.316 +00:00] [INFO] [domain.go:1525] ["dist task executor manager started"] [2024/05/06 09:24:48.326 +00:00] [INFO] [set.go:170] ["set global var"] [conn=10] [name=tidb_schema_cache_size] [val=1024] [2024/05/06 09:24:48.331 +00:00] [INFO] [set.go:170] ["set global var"] [conn=10] [name=tidb_enable_foreign_key] [val=1] [2024/05/06 09:24:48.336 +00:00] [INFO] [set.go:170] ["set global var"] [conn=11] [name=tidb_enable_foreign_key] [val=1] [2024/05/06 09:24:48.336 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=10] [schemaVersion=51] [cur_db=test] [sql="create table t1 (id int key, b int)"] [user=] [2024/05/06 09:24:48.339 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:105, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:48.338 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:48.339 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:105, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:48.338 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create table t1 (id int key, b int)"] [2024/05/06 09:24:48.349 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 56, tp general"] [category=ddl] [jobID=105] [conn=10] [category=ddl] [job="ID:105, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:48.338 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.351 +00:00] [ERROR] [domain.go:291] ["failed to load schema diff"] [error="builder's (v2=true) infoschema mismatch, return error to trigger full reload"] [errorVerbose="builder's (v2=true) infoschema mismatch, return error to trigger full reload\ngithub.com/pingcap/tidb/pkg/infoschema.(*Builder).InitWithOldInfoSchema\n\tpkg/infoschema/builder.go:798\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).tryLoadSchemaDiffs\n\tpkg/domain/domain.go:459\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).loadInfoSchema\n\tpkg/domain/domain.go:276\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).Reload\n\tpkg/domain/domain.go:606\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).loadSchemaInLoop\n\tpkg/domain/domain.go:919\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).Init.func2\n\tpkg/domain/domain.go:1287\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:99\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [stack="github.com/pingcap/tidb/pkg/domain.(*Domain).loadInfoSchema\n\tpkg/domain/domain.go:291\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).Reload\n\tpkg/domain/domain.go:606\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).loadSchemaInLoop\n\tpkg/domain/domain.go:919\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).Init.func2\n\tpkg/domain/domain.go:1287\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:99"] [2024/05/06 09:24:48.394 +00:00] [INFO] [domain.go:315] ["full load InfoSchema success"] [currentSchemaVersion=51] [neededSchemaVersion=52] ["start time"=42.627796ms] [2024/05/06 09:24:48.400 +00:00] [INFO] [domain.go:635] ["full load and reset schema validator"] [2024/05/06 09:24:48.401 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=105] [version=52] [2024/05/06 09:24:48.404 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=52] ["take time"=52.509438ms] [job="ID:105, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:48.338 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.411 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 56, tp general"] [category=ddl] [jobID=105] [conn=10] [job="ID:105, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:48.338 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.415 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=105] [2024/05/06 09:24:48.415 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:48.415 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=10] [schemaVersion=52] [cur_db=test] [sql="create table t2 (a int, b int, index idx1 (b),index idx2 (b), foreign key (b) references t1(id));"] [user=] [2024/05/06 09:24:48.427 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:107, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:48.426 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:48.427 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:107, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:48.426 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create table t2 (a int, b int, index idx1 (b),index idx2 (b), foreign key (b) references t1(id));"] [2024/05/06 09:24:48.438 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 56, tp general"] [category=ddl] [jobID=107] [conn=10] [category=ddl] [job="ID:107, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:48.426 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.442 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=52] [neededSchemaVersion=53] ["start time"=310.035µs] [gotSchemaVersion=53] [phyTblIDs="[106]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:48.443 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=107] [version=53] [2024/05/06 09:24:48.444 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=53] ["take time"=2.514082ms] [job="ID:107, Type:create table, State:running, SchemaState:write only, SchemaID:2, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:48.426 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.458 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 56, tp general"] [category=ddl] [jobID=107] [conn=10] [category=ddl] [job="ID:107, Type:create table, State:running, SchemaState:write only, SchemaID:2, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:48.426 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.462 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=53] [neededSchemaVersion=54] ["start time"=338.471µs] [gotSchemaVersion=54] [phyTblIDs="[106]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:48.464 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=107] [version=54] [2024/05/06 09:24:48.467 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=54] ["take time"=5.297506ms] [job="ID:107, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:48.426 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.475 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 56, tp general"] [category=ddl] [jobID=107] [conn=10] [job="ID:107, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:48.426 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.480 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=107] [2024/05/06 09:24:48.480 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:48.487 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=10] [schemaVersion=54] [cur_db=test] [sql="alter table t2 drop index idx1"] [user=] [2024/05/06 09:24:48.500 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:108, Type:drop index, State:queueing, SchemaState:public, SchemaID:2, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:48.488 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:48.500 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:108, Type:drop index, State:queueing, SchemaState:public, SchemaID:2, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:48.488 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t2 drop index idx1"] [2024/05/06 09:24:48.513 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:108, Type:drop index, State:queueing, SchemaState:public, SchemaID:2, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:48.488 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.514 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=11] [schemaVersion=54] [cur_db=test] [sql="alter table t2 drop index idx2"] [user=] [2024/05/06 09:24:48.517 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:109, Type:drop index, State:queueing, SchemaState:public, SchemaID:2, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:48.516 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:48.517 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:109, Type:drop index, State:queueing, SchemaState:public, SchemaID:2, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:48.516 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t2 drop index idx2"] [2024/05/06 09:24:48.614 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 56, tp general"] [category=ddl] [jobID=108] [conn=10] [category=ddl] [job="ID:108, Type:drop index, State:queueing, SchemaState:public, SchemaID:2, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:48.488 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.615 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:108, Type:drop index, State:running, SchemaState:write only, SchemaID:2, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:48.488 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.622 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=54] [neededSchemaVersion=55] ["start time"=325.735µs] [gotSchemaVersion=55] [phyTblIDs="[106]"] [actionTypes="[8]"] [diffTypes="[\"drop index\"]"] [2024/05/06 09:24:48.623 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=108] [version=55] [2024/05/06 09:24:48.631 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=55] ["take time"=9.72015ms] [job="ID:108, Type:drop index, State:running, SchemaState:write only, SchemaID:2, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:48.488 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.633 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:108, Type:drop index, State:running, SchemaState:write only, SchemaID:2, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:48.488 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.638 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:108, Type:drop index, State:running, SchemaState:write only, SchemaID:2, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:48.488 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.638 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 56, tp general"] [category=ddl] [jobID=108] [conn=10] [category=ddl] [job="ID:108, Type:drop index, State:running, SchemaState:write only, SchemaID:2, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:48.488 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.639 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:108, Type:drop index, State:running, SchemaState:delete only, SchemaID:2, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:48.488 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.641 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=55] [neededSchemaVersion=56] ["start time"=448.331µs] [gotSchemaVersion=56] [phyTblIDs="[106]"] [actionTypes="[8]"] [diffTypes="[\"drop index\"]"] [2024/05/06 09:24:48.643 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=108] [version=56] [2024/05/06 09:24:48.643 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=56] ["take time"=2.075301ms] [job="ID:108, Type:drop index, State:running, SchemaState:delete only, SchemaID:2, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:48.488 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.644 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:108, Type:drop index, State:running, SchemaState:delete only, SchemaID:2, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:48.488 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.648 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:108, Type:drop index, State:running, SchemaState:delete only, SchemaID:2, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:48.488 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.649 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 56, tp general"] [category=ddl] [jobID=108] [conn=10] [category=ddl] [job="ID:108, Type:drop index, State:running, SchemaState:delete only, SchemaID:2, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:48.488 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.649 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:108, Type:drop index, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:48.488 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.651 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=56] [neededSchemaVersion=57] ["start time"=318.579µs] [gotSchemaVersion=57] [phyTblIDs="[106]"] [actionTypes="[8]"] [diffTypes="[\"drop index\"]"] [2024/05/06 09:24:48.653 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=108] [version=57] [2024/05/06 09:24:48.653 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=57] ["take time"=2.129353ms] [job="ID:108, Type:drop index, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:48.488 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.654 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:108, Type:drop index, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:48.488 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.665 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:108, Type:drop index, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:48.488 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.665 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 56, tp general"] [category=ddl] [jobID=108] [conn=10] [category=ddl] [job="ID:108, Type:drop index, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:48.488 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.666 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:108, Type:drop index, State:done, SchemaState:none, SchemaID:2, TableID:106, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:48.488 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.668 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=57] [neededSchemaVersion=58] ["start time"=344.891µs] [gotSchemaVersion=58] [phyTblIDs="[106]"] [actionTypes="[8]"] [diffTypes="[\"drop index\"]"] [2024/05/06 09:24:48.669 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=108] [version=58] [2024/05/06 09:24:48.670 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=58] ["take time"=2.813747ms] [job="ID:108, Type:drop index, State:done, SchemaState:none, SchemaID:2, TableID:106, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:48.488 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.671 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:108, Type:drop index, State:done, SchemaState:none, SchemaID:2, TableID:106, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:48.488 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.676 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=108] [tableID=106] [indexIDs="[1]"] [comment="drop index: table ID"] [2024/05/06 09:24:48.678 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=108] [jobType="drop index"] [2024/05/06 09:24:48.678 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 56, tp general"] [category=ddl] [jobID=108] [conn=10] [job="ID:108, Type:drop index, State:synced, SchemaState:none, SchemaID:2, TableID:106, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:48.488 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.681 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:108, Type:drop index, State:synced, SchemaState:none, SchemaID:2, TableID:106, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:48.488 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.682 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=108] [elementID=1] [startKey=74800000000000006a5f698000000000000001] [endKey=74800000000000006a5f698000000000000002] [2024/05/06 09:24:48.685 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=108] [2024/05/06 09:24:48.685 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:48.691 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:109, Type:drop index, State:queueing, SchemaState:public, SchemaID:2, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:48.516 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.691 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=11] [schemaVersion=54] [cur_db=test] [sql="alter table t2 drop index idx2"] [user=] [2024/05/06 09:24:48.691 +00:00] [INFO] [txn.go:55] ["Try to create a new txn inside a transaction auto commit"] [schemaVersion=54] [txnStartTS=449573680189014016] [txnScope=global] [2024/05/06 09:24:48.691 +00:00] [INFO] [schema_validator.go:255] ["the related physical table ID is empty"] [schemaVer=54] [latestSchemaVer=58] [2024/05/06 09:24:48.692 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:48.692 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=58] [error="[domain:8028]Information schema is changed during the execution of the statement(for example, table definition may be updated by other DDL ran in parallel). If you see this error often, try increasing `tidb_max_delta_schema_count`. [try again later]"] [errorVerbose="[domain:8028]Information schema is changed during the execution of the statement(for example, table definition may be updated by other DDL ran in parallel). If you see this error often, try increasing `tidb_max_delta_schema_count`. [try again later]\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).toErr\n\tpkg/executor/ddl.go:71\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:224\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecToErr\n\tpkg/testkit/testkit.go:436\ngithub.com/pingcap/tidb/pkg/ddl_test.TestDropIndexNeededInForeignKey2.func1.1\n\tpkg/ddl/foreign_key_test.go:292\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 11,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:48.791 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 56, tp general"] [category=ddl] [jobID=109] [conn=11] [category=ddl] [job="ID:109, Type:drop index, State:queueing, SchemaState:public, SchemaID:2, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:48.516 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.792 +00:00] [INFO] [ddl_worker.go:1144] ["DDL job is cancelled normally"] [worker="worker 56, tp general"] [category=ddl] [jobID=109] [conn=11] [error="[ddl:1553]Cannot drop index 'idx2': needed in a foreign key constraint"] [errorVerbose="[ddl:1553]Cannot drop index 'idx2': needed in a foreign key constraint\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.(*Error).GenWithStackByArgs\n\texternal/com_github_pingcap_errors/normalize.go:175\ngithub.com/pingcap/tidb/pkg/ddl.checkIndexNeededInForeignKey.func1\n\tpkg/ddl/foreign_key.go:484\ngithub.com/pingcap/tidb/pkg/ddl.checkIndexNeededInForeignKey\n\tpkg/ddl/foreign_key.go:490\ngithub.com/pingcap/tidb/pkg/ddl.checkIndexNeededInForeignKeyInOwner\n\tpkg/ddl/foreign_key.go:512\ngithub.com/pingcap/tidb/pkg/ddl.checkDropIndex\n\tpkg/ddl/index.go:1237\ngithub.com/pingcap/tidb/pkg/ddl.onDropIndex\n\tpkg/ddl/index.go:1075\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).runDDLJob\n\tpkg/ddl/ddl_worker.go:1260\ngithub.com/pingcap/tidb/pkg/ddl.(*worker).HandleDDLJobTable\n\tpkg/ddl/ddl_worker.go:946\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).delivery2Worker.func1\n\tpkg/ddl/job_table.go:461\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:157\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [2024/05/06 09:24:48.792 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:109, Type:drop index, State:cancelled, SchemaState:public, SchemaID:2, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:48.516 +0000 UTC, Err:[ddl:1553]Cannot drop index 'idx2': needed in a foreign key constraint, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.792 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 56, tp general"] [category=ddl] [jobID=109] [conn=11] [job="ID:109, Type:drop index, State:cancelled, SchemaState:public, SchemaID:2, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:48.516 +0000 UTC, Err:[ddl:1553]Cannot drop index 'idx2': needed in a foreign key constraint, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.795 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:109, Type:drop index, State:cancelled, SchemaState:public, SchemaID:2, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:48.516 +0000 UTC, Err:[ddl:1553]Cannot drop index 'idx2': needed in a foreign key constraint, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.797 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=109] [2024/05/06 09:24:48.797 +00:00] [ERROR] [ddl.go:66] ["active txn failed"] [error="[kv:8024]invalid transaction"] [errorVerbose="[kv:8024]invalid transaction\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/tidb/pkg/session.(*txnManager).ActivateTxn\n\tpkg/session/txnmanager.go:251\ngithub.com/pingcap/tidb/pkg/session.(*session).Txn\n\tpkg/session/session.go:2458\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).toErr\n\tpkg/executor/ddl.go:64\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:224\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecToErr\n\tpkg/testkit/testkit.go:436\ngithub.com/pingcap/tidb/pkg/ddl_test.TestDropIndexNeededInForeignKey2.func1.1\n\tpkg/ddl/foreign_key_test.go:292\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [stack="github.com/pingcap/tidb/pkg/executor.(*DDLExec).toErr\n\tpkg/executor/ddl.go:66\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:224\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecToErr\n\tpkg/testkit/testkit.go:436\ngithub.com/pingcap/tidb/pkg/ddl_test.TestDropIndexNeededInForeignKey2.func1.1\n\tpkg/ddl/foreign_key_test.go:292"] [2024/05/06 09:24:48.798 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:48.798 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=58] [error="[ddl:1553]Cannot drop index 'idx2': needed in a foreign key constraint"] [errorVerbose="[ddl:1553]Cannot drop index 'idx2': needed in a foreign key constraint\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).dropIndex\n\tpkg/ddl/ddl_api.go:8049\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:3902\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecToErr\n\tpkg/testkit/testkit.go:436\ngithub.com/pingcap/tidb/pkg/ddl_test.TestDropIndexNeededInForeignKey2.func1.1\n\tpkg/ddl/foreign_key_test.go:292\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 11,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:48.805 +00:00] [INFO] [mock.go:106] ["owner manager is canceled"] [category=ddl] [ID=28f53fb9-244d-437a-9aa1-407336287a3f] [ownerKey=/tidb/ddl/fg/owner] [2024/05/06 09:24:48.805 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:48.805 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 58, tp add index"] [category=ddl] ["take time"=2.156µs] [2024/05/06 09:24:48.805 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 59, tp add index"] [category=ddl] ["take time"=1.1µs] [2024/05/06 09:24:48.805 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 60, tp add index"] [category=ddl] ["take time"=1.1µs] [2024/05/06 09:24:48.805 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 57, tp add index"] [category=ddl] ["take time"=970ns] [2024/05/06 09:24:48.805 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:48.805 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 56, tp general"] [category=ddl] ["take time"=904ns] [2024/05/06 09:24:48.805 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:48.805 +00:00] [INFO] [delete_range.go:162] ["closing delRange"] [category=ddl] [2024/05/06 09:24:48.805 +00:00] [INFO] [session_pool.go:99] ["closing session pool"] [category=ddl] [2024/05/06 09:24:48.805 +00:00] [INFO] [ddl.go:951] ["DDL closed"] [category=ddl] [ID=28f53fb9-244d-437a-9aa1-407336287a3f] ["take time"=7.529114ms] [2024/05/06 09:24:48.805 +00:00] [INFO] [ddl.go:769] ["stop DDL"] [category=ddl] [ID=28f53fb9-244d-437a-9aa1-407336287a3f] [2024/05/06 09:24:48.805 +00:00] [INFO] [domain.go:1026] ["stopping ttlJobManager"] [2024/05/06 09:24:48.806 +00:00] [INFO] [task_manager.go:194] ["shrink ttl worker"] [ttl-worker=job-manager] [ttl-worker=task-manager] [originalCount=4] [newCount=0] [2024/05/06 09:24:48.806 +00:00] [INFO] [scan.go:309] ["ttlScanWorker loop exited."] [2024/05/06 09:24:48.806 +00:00] [INFO] [scan.go:309] ["ttlScanWorker loop exited."] [2024/05/06 09:24:48.806 +00:00] [INFO] [scan.go:309] ["ttlScanWorker loop exited."] [2024/05/06 09:24:48.806 +00:00] [INFO] [scan.go:309] ["ttlScanWorker loop exited."] [2024/05/06 09:24:48.806 +00:00] [INFO] [task_manager.go:194] ["shrink ttl worker"] [ttl-worker=job-manager] [ttl-worker=task-manager] [originalCount=4] [newCount=0] [2024/05/06 09:24:48.806 +00:00] [INFO] [del.go:261] ["ttlDeleteWorker loop exited."] [2024/05/06 09:24:48.806 +00:00] [INFO] [del.go:261] ["ttlDeleteWorker loop exited."] [2024/05/06 09:24:48.806 +00:00] [INFO] [del.go:261] ["ttlDeleteWorker loop exited."] [2024/05/06 09:24:48.806 +00:00] [INFO] [del.go:261] ["ttlDeleteWorker loop exited."] [2024/05/06 09:24:48.806 +00:00] [INFO] [job_manager.go:174] ["ttlJobManager loop exited."] [ttl-worker=job-manager] [2024/05/06 09:24:48.806 +00:00] [INFO] [domain.go:1037] ["ttlJobManager exited."] [2024/05/06 09:24:48.806 +00:00] [INFO] [manager.go:280] ["recoverMetaLoop done"] [server-id=:4000] [2024/05/06 09:24:48.806 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=mdlCheckLoop] [2024/05/06 09:24:48.806 +00:00] [INFO] [domain.go:907] ["loadSchemaInLoop exited."] [2024/05/06 09:24:48.806 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=loadSchemaInLoop] [2024/05/06 09:24:48.806 +00:00] [INFO] [domain.go:1527] ["stopping dist task executor manager"] [2024/05/06 09:24:48.807 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=loadSigningCertLoop] [2024/05/06 09:24:48.807 +00:00] [INFO] [stats_syncload.go:202] ["SubLoadWorker exited."] [2024/05/06 09:24:48.807 +00:00] [INFO] [stats_syncload.go:202] ["SubLoadWorker exited."] [2024/05/06 09:24:48.807 +00:00] [INFO] [stats_syncload.go:202] ["SubLoadWorker exited."] [2024/05/06 09:24:48.807 +00:00] [INFO] [stats_syncload.go:202] ["SubLoadWorker exited."] [2024/05/06 09:24:48.807 +00:00] [INFO] [stats_syncload.go:202] ["SubLoadWorker exited."] [2024/05/06 09:24:48.807 +00:00] [INFO] [mock.go:106] ["owner manager is canceled"] [category=ddl] [ID=28f53fb9-244d-437a-9aa1-407336287a3f] [ownerKey=/tidb/stats/owner] [2024/05/06 09:24:48.807 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=quitStatsOwner] [2024/05/06 09:24:48.807 +00:00] [INFO] [domain.go:2352] ["indexUsageWorker exited."] [2024/05/06 09:24:48.807 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=indexUsageWorker] [2024/05/06 09:24:48.807 +00:00] [INFO] [domain.go:2074] ["dumpFileGcChecker exited."] [2024/05/06 09:24:48.807 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=dumpFileGcChecker] [2024/05/06 09:24:48.807 +00:00] [INFO] [domain.go:1750] ["LoadSysVarCacheLoop exited."] [2024/05/06 09:24:48.807 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=LoadSysVarCacheLoop] [2024/05/06 09:24:48.807 +00:00] [INFO] [domain.go:1700] ["loadPrivilegeInLoop exited."] [2024/05/06 09:24:48.807 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=loadPrivilegeInLoop] [2024/05/06 09:24:48.807 +00:00] [INFO] [mock.go:106] ["owner manager is canceled"] [category=ddl] [ID=28f53fb9-244d-437a-9aa1-407336287a3f] [ownerKey=/tidb/bindinfo/owner] [2024/05/06 09:24:48.807 +00:00] [INFO] [domain.go:1889] ["globalBindHandleWorkerLoop exited."] [2024/05/06 09:24:48.807 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=globalBindHandleWorkerLoop] [2024/05/06 09:24:48.807 +00:00] [INFO] [domain.go:761] ["topologySyncerKeeper exited."] [2024/05/06 09:24:48.807 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=topologySyncerKeeper] [2024/05/06 09:24:48.807 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=runawayStartLoop] [2024/05/06 09:24:48.807 +00:00] [INFO] [domain.go:737] ["globalConfigSyncerKeeper exited."] [2024/05/06 09:24:48.807 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=globalConfigSyncerKeeper] [2024/05/06 09:24:48.807 +00:00] [INFO] [domain.go:711] ["infoSyncerKeeper exited."] [2024/05/06 09:24:48.807 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=infoSyncerKeeper] [2024/05/06 09:24:48.807 +00:00] [INFO] [domain.go:683] ["topNSlowQueryLoop exited."] [2024/05/06 09:24:48.807 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=topNSlowQueryLoop] [2024/05/06 09:24:48.807 +00:00] [INFO] [domain.go:1361] ["closestReplicaReadCheckLoop exited."] [2024/05/06 09:24:48.807 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=closestReplicaReadCheckLoop] [2024/05/06 09:24:48.807 +00:00] [INFO] [manager.go:179] ["handle tasks loop done"] [server-id=:4000] [2024/05/06 09:24:48.807 +00:00] [INFO] [domain.go:1529] ["dist task executor manager stopped"] [2024/05/06 09:24:48.807 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=distTaskFrameworkLoop] [2024/05/06 09:24:48.807 +00:00] [INFO] [domain.go:1074] ["domain closed"] ["take time"=9.39886ms] [2024/05/06 09:24:48.809 +00:00] [INFO] [db.go:567] ["Closing database"] [2024/05/06 09:24:48.809 +00:00] [INFO] [db.go:592] ["Memtable flushed"] [2024/05/06 09:24:48.809 +00:00] [INFO] [db.go:596] ["Compaction finished"] [2024/05/06 09:24:48.809 +00:00] [INFO] [db.go:615] ["BlobManager finished"] [2024/05/06 09:24:48.810 +00:00] [INFO] [db.go:619] ["ResourceManager finished"] [2024/05/06 09:24:48.810 +00:00] [INFO] [db.go:625] ["Waiting for closer"] --- PASS: TestDropIndexNeededInForeignKey2 (2.76s) === RUN TestMultiSchemaChangeRenameColumns [2024/05/06 09:24:48.819 +00:00] [INFO] [store_cache.go:510] ["change store resolve state"] [store=1] [addr=store1] [from=unresolved] [to=resolved] [liveness-state=reachable] [2024/05/06 09:24:48.819 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:48.819 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:48.820 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:48.820 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:48.821 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:48.822 +00:00] [INFO] [tidb.go:80] ["new domain"] [store=319af21f-a7ee-4561-b9e4-e482ca90d858] ["ddl lease"=500ms] ["stats lease"=-1ns] [2024/05/06 09:24:48.842 +00:00] [WARN] [controller.go:198] ["[resource group controller] server does not save config, load config failed"] [2024/05/06 09:24:48.842 +00:00] [INFO] [controller.go:185] ["load resource controller config"] [config="{\"degraded-mode-wait-duration\":\"0s\",\"ltb-max-wait-duration\":\"30s\",\"wait-retry-interval\":\"50ms\",\"wait-retry-times\":10,\"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,\"WaitRetryInterval\":50000000,\"WaitRetryTimes\":10,\"DegradedModeWaitDuration\":0}"] [2024/05/06 09:24:48.842 +00:00] [WARN] [domain.go:245] ["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:335\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).loadInfoSchema\n\tpkg/domain/domain.go:242\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).Reload\n\tpkg/domain/domain.go:606\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).Init\n\tpkg/domain/domain.go:1260\ngithub.com/pingcap/tidb/pkg/session.(*domainMap).Get.func1\n\tpkg/session/tidb.go:92\ngithub.com/pingcap/tidb/pkg/util.RunWithRetry\n\tpkg/util/misc.go:70\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:3620\ngithub.com/pingcap/tidb/pkg/session.createSession\n\tpkg/session/session.go:3612\ngithub.com/pingcap/tidb/pkg/session.runInBootstrapSession\n\tpkg/session/session.go:3562\ngithub.com/pingcap/tidb/pkg/session.bootstrapSessionImpl\n\tpkg/session/session.go:3346\ngithub.com/pingcap/tidb/pkg/session.BootstrapSession\n\tpkg/session/session.go:3312\ngithub.com/pingcap/tidb/pkg/testkit.bootstrap\n\tpkg/testkit/mockstore.go:294\ngithub.com/pingcap/tidb/pkg/testkit.CreateMockStoreAndDomain\n\tpkg/testkit/mockstore.go:265\ngithub.com/pingcap/tidb/pkg/ddl_test.TestMultiSchemaChangeRenameColumns\n\tpkg/ddl/multi_schema_change_test.go:167\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [version=0] [2024/05/06 09:24:48.891 +00:00] [INFO] [domain.go:315] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=0] ["start time"=48.207374ms] [2024/05/06 09:24:48.892 +00:00] [INFO] [domain.go:635] ["full load and reset schema validator"] [2024/05/06 09:24:48.892 +00:00] [INFO] [ddl.go:818] ["start DDL"] [category=ddl] [ID=68d94d8a-3942-4684-bfa1-a07786c0a99e] [runWorker=true] [2024/05/06 09:24:48.893 +00:00] [INFO] [ddl.go:777] ["start delRangeManager OK"] [category=ddl] ["is a emulator"=true] [2024/05/06 09:24:48.895 +00:00] [INFO] [delete_range.go:172] ["start delRange emulator"] [category=ddl] [2024/05/06 09:24:48.895 +00:00] [INFO] [job_table.go:334] ["get global state and global state change"] [category=ddl] [oldState=false] [currState=false] [2024/05/06 09:24:48.895 +00:00] [WARN] [env.go:51] ["initialize environment failed"] [category=ddl-ingest] ["storage limitation"="only support TiKV storage"] ["current storage"=unistore] ["lightning is initialized"=false] [2024/05/06 09:24:48.895 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=loadSchemaInLoop] [2024/05/06 09:24:48.895 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=mdlCheckLoop] [2024/05/06 09:24:48.895 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=topNSlowQueryLoop] [2024/05/06 09:24:48.895 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=infoSyncerKeeper] [2024/05/06 09:24:48.896 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=globalConfigSyncerKeeper] [2024/05/06 09:24:48.896 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=runawayStartLoop] [2024/05/06 09:24:48.896 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=requestUnitsWriterLoop] [2024/05/06 09:24:48.896 +00:00] [INFO] [runaway.go:149] ["try to start runaway manager loop"] [2024/05/06 09:24:48.896 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=requestUnitsWriterLoop] [2024/05/06 09:24:48.896 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=topologySyncerKeeper] [2024/05/06 09:24:48.896 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=closestReplicaReadCheckLoop] [2024/05/06 09:24:48.896 +00:00] [WARN] [domain.go:1326] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 09:24:48.897 +00:00] [INFO] [controller.go:447] ["[resource group controller] create resource group cost controller"] [name=default] [2024/05/06 09:24:48.897 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=0] [cur_db=mysql] [sql="CREATE DATABASE IF NOT EXISTS test"] [user=] [2024/05/06 09:24:48.900 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:48.899 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:48.900 +00:00] [INFO] [ddl.go:1182] ["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 09:24:48.899 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE DATABASE IF NOT EXISTS test"] [2024/05/06 09:24:48.946 +00:00] [INFO] [job_table.go:334] ["get global state and global state change"] [category=ddl] [oldState=false] [currState=false] [2024/05/06 09:24:48.946 +00:00] [INFO] [job_table.go:349] ["the owner sets owner operator value"] [category=ddl] [ownerOp=none] [2024/05/06 09:24:48.953 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:48.899 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:48.982 +00:00] [INFO] [domain.go:315] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=1] ["start time"=26.761062ms] [2024/05/06 09:24:48.992 +00:00] [INFO] [domain.go:635] ["full load and reset schema validator"] [2024/05/06 09:24:48.993 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:48.993 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=3] [version=1] [2024/05/06 09:24:48.994 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=1] ["take time"=38.230721ms] [job="ID:3, Type:create schema, State:done, SchemaState:public, SchemaID:2, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:48.899 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.010 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:48.899 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.019 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=3] [2024/05/06 09:24:49.019 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:49.019 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=1] [cur_db=mysql] [sql="CREATE DATABASE IF NOT EXISTS `mysql`"] [user=] [2024/05/06 09:24:49.021 +00:00] [INFO] [session.go:3945] ["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 09:24:49.029 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:49.026 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:49.029 +00:00] [INFO] [ddl.go:1182] ["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 09:24:49.026 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:49.039 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:49.026 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.049 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=1] [neededSchemaVersion=2] ["start time"=1.27136ms] [gotSchemaVersion=2] [phyTblIDs="[4]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:49.051 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:49.051 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=5] [version=2] [2024/05/06 09:24:49.053 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=2] ["take time"=4.891944ms] [job="ID:5, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:4, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:49.026 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.065 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:49.026 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.075 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=5] [2024/05/06 09:24:49.075 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:49.075 +00:00] [INFO] [session.go:3945] ["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 09:24:49.079 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:49.077 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:49.080 +00:00] [INFO] [ddl.go:1182] ["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 09:24:49.077 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:49.087 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:49.077 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.091 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=2] [neededSchemaVersion=3] ["start time"=294.81µs] [gotSchemaVersion=3] [phyTblIDs="[6]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:49.093 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:49.093 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=7] [version=3] [2024/05/06 09:24:49.102 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=3] ["take time"=11.411694ms] [job="ID:7, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:6, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:49.077 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.119 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:49.077 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.123 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=7] [2024/05/06 09:24:49.123 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:49.124 +00:00] [INFO] [session.go:3945] ["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 09:24:49.130 +00:00] [INFO] [ddl.go:1182] ["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 09:24:49.127 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:49.131 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:49.127 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:49.139 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:49.127 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.143 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=3] [neededSchemaVersion=4] ["start time"=287.639µs] [gotSchemaVersion=4] [phyTblIDs="[8]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:49.144 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:49.144 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=9] [version=4] [2024/05/06 09:24:49.146 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=4] ["take time"=2.926482ms] [job="ID:9, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:8, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:49.127 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.153 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:49.127 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.158 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=9] [2024/05/06 09:24:49.158 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:49.158 +00:00] [INFO] [session.go:3945] ["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 09:24:49.164 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:49.16 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:49.164 +00:00] [INFO] [ddl.go:1182] ["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 09:24:49.16 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:49.177 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:49.16 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.183 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=4] [neededSchemaVersion=5] ["start time"=674.131µs] [gotSchemaVersion=5] [phyTblIDs="[10]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:49.184 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:49.184 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=11] [version=5] [2024/05/06 09:24:49.186 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=5] ["take time"=4.046018ms] [job="ID:11, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:10, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:49.16 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.192 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:49.16 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.197 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=11] [2024/05/06 09:24:49.197 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:49.198 +00:00] [INFO] [session.go:3945] ["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 09:24:49.202 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:49.2 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:49.202 +00:00] [INFO] [ddl.go:1182] ["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 09:24:49.2 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:49.223 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:49.2 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.228 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=5] [neededSchemaVersion=6] ["start time"=456.268µs] [gotSchemaVersion=6] [phyTblIDs="[12]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:49.229 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:49.229 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=13] [version=6] [2024/05/06 09:24:49.232 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=6] ["take time"=4.570279ms] [job="ID:13, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:12, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:49.2 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.240 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:49.2 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.250 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=13] [2024/05/06 09:24:49.250 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:49.250 +00:00] [INFO] [session.go:3945] ["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 09:24:49.253 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:49.252 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:49.253 +00:00] [INFO] [ddl.go:1182] ["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 09:24:49.252 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:49.262 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:49.252 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.266 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=6] [neededSchemaVersion=7] ["start time"=394.931µs] [gotSchemaVersion=7] [phyTblIDs="[14]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:49.268 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:49.268 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=15] [version=7] [2024/05/06 09:24:49.268 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=7] ["take time"=2.025854ms] [job="ID:15, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:14, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:49.252 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.283 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:49.252 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.292 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=15] [2024/05/06 09:24:49.292 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:49.293 +00:00] [INFO] [session.go:3945] ["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 09:24:49.295 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:49.294 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:49.295 +00:00] [INFO] [ddl.go:1182] ["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 09:24:49.294 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:49.309 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:49.294 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.315 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=7] [neededSchemaVersion=8] ["start time"=262.39µs] [gotSchemaVersion=8] [phyTblIDs="[16]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:49.317 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:49.318 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=17] [version=8] [2024/05/06 09:24:49.318 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=8] ["take time"=2.976619ms] [job="ID:17, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:16, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:49.294 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.327 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:49.294 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.331 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=17] [2024/05/06 09:24:49.331 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:49.332 +00:00] [INFO] [session.go:3945] ["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 09:24:49.335 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:49.333 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:49.335 +00:00] [INFO] [ddl.go:1182] ["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 09:24:49.333 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:49.346 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:49.333 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.352 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=8] [neededSchemaVersion=9] ["start time"=270.957µs] [gotSchemaVersion=9] [phyTblIDs="[18]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:49.353 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:49.353 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=19] [version=9] [2024/05/06 09:24:49.353 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=9] ["take time"=2.17728ms] [job="ID:19, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:18, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:49.333 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.369 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:49.333 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.373 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=19] [2024/05/06 09:24:49.373 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:49.375 +00:00] [INFO] [session.go:3945] ["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 09:24:49.379 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:49.377 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:49.379 +00:00] [INFO] [ddl.go:1182] ["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 09:24:49.377 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:49.394 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:49.377 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.411 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=9] [neededSchemaVersion=10] ["start time"=343.364µs] [gotSchemaVersion=10] [phyTblIDs="[20]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:49.412 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:49.413 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=21] [version=10] [2024/05/06 09:24:49.416 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=10] ["take time"=5.535569ms] [job="ID:21, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:20, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:49.377 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.421 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:49.377 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.426 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=21] [2024/05/06 09:24:49.426 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:49.427 +00:00] [INFO] [session.go:3945] ["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 09:24:49.431 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:49.429 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:49.431 +00:00] [INFO] [ddl.go:1182] ["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 09:24:49.429 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:49.453 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:49.429 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.465 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=10] [neededSchemaVersion=11] ["start time"=334.347µs] [gotSchemaVersion=11] [phyTblIDs="[22]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:49.466 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:49.466 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=23] [version=11] [2024/05/06 09:24:49.468 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=11] ["take time"=3.147627ms] [job="ID:23, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:22, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:49.429 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.473 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:49.429 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.478 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=23] [2024/05/06 09:24:49.478 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:49.479 +00:00] [INFO] [session.go:3945] ["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 09:24:49.479 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(6291456) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:49.483 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:49.48 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:49.483 +00:00] [INFO] [ddl.go:1182] ["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 09:24:49.48 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:49.501 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:49.48 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.511 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=11] [neededSchemaVersion=12] ["start time"=3.662652ms] [gotSchemaVersion=12] [phyTblIDs="[24]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:49.513 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:49.513 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=25] [version=12] [2024/05/06 09:24:49.514 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=12] ["take time"=6.630902ms] [job="ID:25, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:24, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:49.48 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.531 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:49.48 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.536 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=25] [2024/05/06 09:24:49.536 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:49.536 +00:00] [INFO] [session.go:3945] ["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 09:24:49.539 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:49.538 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:49.539 +00:00] [INFO] [ddl.go:1182] ["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 09:24:49.538 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:49.551 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:49.538 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.558 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=12] [neededSchemaVersion=13] ["start time"=414.448µs] [gotSchemaVersion=13] [phyTblIDs="[26]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:49.560 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:49.560 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=27] [version=13] [2024/05/06 09:24:49.560 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=13] ["take time"=2.071066ms] [job="ID:27, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:26, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:49.538 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.566 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:49.538 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.570 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=27] [2024/05/06 09:24:49.571 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:49.571 +00:00] [INFO] [session.go:3945] ["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 09:24:49.595 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:49.592 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:49.595 +00:00] [INFO] [ddl.go:1182] ["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 09:24:49.592 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:49.602 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:49.592 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.605 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=13] [neededSchemaVersion=14] ["start time"=341.93µs] [gotSchemaVersion=14] [phyTblIDs="[28]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:49.607 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:49.607 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=29] [version=14] [2024/05/06 09:24:49.609 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=14] ["take time"=3.758023ms] [job="ID:29, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:28, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:49.592 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.625 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:49.592 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.629 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=29] [2024/05/06 09:24:49.629 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:49.630 +00:00] [INFO] [session.go:3945] ["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 09:24:49.633 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:49.631 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:49.633 +00:00] [INFO] [ddl.go:1182] ["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 09:24:49.631 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:49.640 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:49.631 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.643 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=14] [neededSchemaVersion=15] ["start time"=345.055µs] [gotSchemaVersion=15] [phyTblIDs="[30]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:49.645 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:49.645 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=31] [version=15] [2024/05/06 09:24:49.647 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=15] ["take time"=4.019462ms] [job="ID:31, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:30, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:49.631 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.656 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:49.631 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.660 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=31] [2024/05/06 09:24:49.661 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:49.661 +00:00] [INFO] [session.go:3945] ["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 09:24:49.664 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:49.662 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:49.664 +00:00] [INFO] [ddl.go:1182] ["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 09:24:49.662 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:49.672 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:49.662 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.675 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=15] [neededSchemaVersion=16] ["start time"=295.796µs] [gotSchemaVersion=16] [phyTblIDs="[32]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:49.676 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:49.676 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=33] [version=16] [2024/05/06 09:24:49.677 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=16] ["take time"=2.010653ms] [job="ID:33, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:32, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:49.662 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.685 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:49.662 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.689 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=33] [2024/05/06 09:24:49.689 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:49.690 +00:00] [INFO] [session.go:3945] ["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 09:24:49.693 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:49.691 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:49.693 +00:00] [INFO] [ddl.go:1182] ["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 09:24:49.691 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:49.715 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:49.691 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.722 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=16] [neededSchemaVersion=17] ["start time"=352.907µs] [gotSchemaVersion=17] [phyTblIDs="[34]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:49.723 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:49.724 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=35] [version=17] [2024/05/06 09:24:49.728 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=17] ["take time"=5.845576ms] [job="ID:35, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:34, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:49.691 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.737 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:49.691 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.741 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=35] [2024/05/06 09:24:49.741 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:49.742 +00:00] [INFO] [session.go:3945] ["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 09:24:49.750 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:49.748 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:49.750 +00:00] [INFO] [ddl.go:1182] ["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 09:24:49.748 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:49.757 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:49.748 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.761 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=17] [neededSchemaVersion=18] ["start time"=284.847µs] [gotSchemaVersion=18] [phyTblIDs="[36]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:49.762 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:49.762 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=37] [version=18] [2024/05/06 09:24:49.762 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=18] ["take time"=2.08327ms] [job="ID:37, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:36, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:49.748 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.779 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:49.748 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.784 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=37] [2024/05/06 09:24:49.784 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:49.790 +00:00] [INFO] [session.go:3945] ["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 09:24:49.795 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:49.791 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:49.795 +00:00] [INFO] [ddl.go:1182] ["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 09:24:49.791 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:49.806 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:49.791 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.810 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=18] [neededSchemaVersion=19] ["start time"=467.168µs] [gotSchemaVersion=19] [phyTblIDs="[38]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:49.812 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:49.812 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=39] [version=19] [2024/05/06 09:24:49.814 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=19] ["take time"=4.400168ms] [job="ID:39, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:38, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:49.791 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.828 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:49.791 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.832 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=39] [2024/05/06 09:24:49.832 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:49.834 +00:00] [INFO] [session.go:3945] ["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 09:24:49.837 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:49.835 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:49.837 +00:00] [INFO] [ddl.go:1182] ["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 09:24:49.835 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:49.843 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:49.835 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.847 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=19] [neededSchemaVersion=20] ["start time"=358.771µs] [gotSchemaVersion=20] [phyTblIDs="[40]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:49.848 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:49.848 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=41] [version=20] [2024/05/06 09:24:49.849 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=20] ["take time"=3.15314ms] [job="ID:41, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:40, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:49.835 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.867 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:49.835 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.872 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=41] [2024/05/06 09:24:49.872 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:49.872 +00:00] [INFO] [session.go:3945] ["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 09:24:49.875 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:49.874 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:49.875 +00:00] [INFO] [ddl.go:1182] ["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 09:24:49.874 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:49.881 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:49.874 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.885 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=20] [neededSchemaVersion=21] ["start time"=252.088µs] [gotSchemaVersion=21] [phyTblIDs="[42]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:49.886 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:49.886 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=43] [version=21] [2024/05/06 09:24:49.887 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=21] ["take time"=2.015093ms] [job="ID:43, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:42, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:49.874 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.898 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:49.874 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.898 +00:00] [WARN] [runaway.go:166] ["failed to start runaway manager loop, please check whether the bootstrap or update is finished"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [errorVerbose="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/planner/core.Preprocess\n\tpkg/planner/core/preprocess.go:141\ngithub.com/pingcap/tidb/pkg/executor.(*Compiler).Compile\n\tpkg/executor/compiler.go:67\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2089\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteInternalStmt\n\tpkg/session/session.go:1993\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecRestrictedSQL.func1\n\tpkg/session/session.go:1958\ngithub.com/pingcap/tidb/pkg/session.(*session).withRestrictedSQLExecutor\n\tpkg/session/session.go:1944\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecRestrictedSQL\n\tpkg/session/session.go:1948\ngithub.com/pingcap/tidb/pkg/domain.(*SystemTableReader).Read\n\tpkg/domain/runaway.go:655\ngithub.com/pingcap/tidb/pkg/domain.getRunawayWatchRecord\n\tpkg/domain/runaway.go:543\ngithub.com/pingcap/tidb/pkg/domain.(*runawaySyncer).getWatchRecord\n\tpkg/domain/runaway.go:526\ngithub.com/pingcap/tidb/pkg/domain.(*runawaySyncer).getNewWatchRecords\n\tpkg/domain/runaway.go:509\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).updateNewAndDoneWatch\n\tpkg/domain/runaway.go:177\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).runawayStartLoop\n\tpkg/domain/runaway.go:156\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:99\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [2024/05/06 09:24:49.903 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=43] [2024/05/06 09:24:49.903 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:49.904 +00:00] [INFO] [session.go:3945] ["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 09:24:49.908 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:49.907 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:49.908 +00:00] [INFO] [ddl.go:1182] ["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 09:24:49.907 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE TABLE IF NOT EXISTS mysql.opt_rule_blacklist (\n\t\tname \tCHAR(100) NOT NULL\n\t);"] [2024/05/06 09:24:49.919 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:49.907 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.922 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=21] [neededSchemaVersion=22] ["start time"=176.616µs] [gotSchemaVersion=22] [phyTblIDs="[44]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:49.923 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:49.923 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=45] [version=22] [2024/05/06 09:24:49.924 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=22] ["take time"=2.409537ms] [job="ID:45, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:44, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:49.907 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.929 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:49.907 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.932 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=45] [2024/05/06 09:24:49.932 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:49.933 +00:00] [INFO] [session.go:3945] ["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 09:24:49.939 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:49.935 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:49.939 +00:00] [INFO] [ddl.go:1182] ["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 09:24:49.935 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:49.949 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:49.935 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.953 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=22] [neededSchemaVersion=23] ["start time"=454.965µs] [gotSchemaVersion=23] [phyTblIDs="[46]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:49.954 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:49.954 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=47] [version=23] [2024/05/06 09:24:49.954 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=23] ["take time"=2.042525ms] [job="ID:47, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:46, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:49.935 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.964 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:49.935 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.969 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=47] [2024/05/06 09:24:49.969 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:49.973 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=23] [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 09:24:49.977 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:49.975 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:49.977 +00:00] [INFO] [ddl.go:1182] ["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 09:24:49.975 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:49.993 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:49.975 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:49.998 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=23] [neededSchemaVersion=24] ["start time"=325.63µs] [gotSchemaVersion=24] [phyTblIDs="[48]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:50.000 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:50.000 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=49] [version=24] [2024/05/06 09:24:50.002 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=24] ["take time"=4.609312ms] [job="ID:49, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:48, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:49.975 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.010 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:49.975 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.017 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=49] [2024/05/06 09:24:50.021 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:50.021 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=24] [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 09:24:50.025 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:50.023 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:50.025 +00:00] [INFO] [ddl.go:1182] ["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 09:24:50.023 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:50.032 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:50.023 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.035 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=24] [neededSchemaVersion=25] ["start time"=271.123µs] [gotSchemaVersion=25] [phyTblIDs="[50]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:50.036 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:50.036 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=51] [version=25] [2024/05/06 09:24:50.037 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=25] ["take time"=2.626228ms] [job="ID:51, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:50, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:50.023 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.045 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:50.023 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.055 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=51] [2024/05/06 09:24:50.058 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:50.059 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=25] [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 09:24:50.062 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:50.061 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:50.062 +00:00] [INFO] [ddl.go:1182] ["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 09:24:50.061 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:50.071 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:50.061 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.075 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=25] [neededSchemaVersion=26] ["start time"=306.546µs] [gotSchemaVersion=26] [phyTblIDs="[52]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:50.078 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:50.078 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=53] [version=26] [2024/05/06 09:24:50.080 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=26] ["take time"=4.698124ms] [job="ID:53, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:52, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:50.061 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.088 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:50.061 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.092 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=53] [2024/05/06 09:24:50.093 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:50.093 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=26] [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 09:24:50.096 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:50.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:50.096 +00:00] [INFO] [ddl.go:1182] ["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 09:24:50.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:50.107 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:50.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.112 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=26] [neededSchemaVersion=27] ["start time"=316.97µs] [gotSchemaVersion=27] [phyTblIDs="[54]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:50.113 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:50.113 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=55] [version=27] [2024/05/06 09:24:50.114 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=27] ["take time"=2.526657ms] [job="ID:55, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:54, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:50.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.130 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:50.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.134 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=55] [2024/05/06 09:24:50.134 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:50.134 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=27] [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 09:24:50.138 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:50.137 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:50.138 +00:00] [INFO] [ddl.go:1182] ["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 09:24:50.137 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:50.151 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:50.137 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.154 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=27] [neededSchemaVersion=28] ["start time"=282.182µs] [gotSchemaVersion=28] [phyTblIDs="[56]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:50.156 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:50.156 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=57] [version=28] [2024/05/06 09:24:50.156 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=28] ["take time"=2.424993ms] [job="ID:57, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:56, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:50.137 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.169 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:50.137 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.172 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=57] [2024/05/06 09:24:50.172 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:50.173 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=28] [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 09:24:50.173 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(19372) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:50.177 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:50.175 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:50.177 +00:00] [INFO] [ddl.go:1182] ["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 09:24:50.175 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:50.188 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:50.175 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.195 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=28] [neededSchemaVersion=29] ["start time"=320.073µs] [gotSchemaVersion=29] [phyTblIDs="[58]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:50.197 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:50.197 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=59] [version=29] [2024/05/06 09:24:50.203 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=29] ["take time"=8.08615ms] [job="ID:59, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:58, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:50.175 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.209 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:50.175 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.213 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=59] [2024/05/06 09:24:50.213 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:50.213 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=29] [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 09:24:50.217 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:50.215 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:50.218 +00:00] [INFO] [ddl.go:1182] ["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 09:24:50.215 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:50.228 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:50.215 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.233 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=29] [neededSchemaVersion=30] ["start time"=390.255µs] [gotSchemaVersion=30] [phyTblIDs="[60]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:50.235 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:50.235 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=61] [version=30] [2024/05/06 09:24:50.238 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=30] ["take time"=5.513087ms] [job="ID:61, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:60, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:50.215 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.246 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:50.215 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.255 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=61] [2024/05/06 09:24:50.255 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:50.256 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=30] [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 09:24:50.264 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:50.26 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:50.264 +00:00] [INFO] [ddl.go:1182] ["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 09:24:50.26 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:50.271 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:50.26 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.274 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=30] [neededSchemaVersion=31] ["start time"=379.993µs] [gotSchemaVersion=31] [phyTblIDs="[62]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:50.276 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:50.276 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=63] [version=31] [2024/05/06 09:24:50.278 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=31] ["take time"=4.575673ms] [job="ID:63, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:62, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:50.26 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.284 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:50.26 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.289 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=63] [2024/05/06 09:24:50.289 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:50.289 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=31] [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 09:24:50.293 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:50.291 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:50.293 +00:00] [INFO] [ddl.go:1182] ["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 09:24:50.291 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:50.308 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:50.291 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.323 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=31] [neededSchemaVersion=32] ["start time"=512.64µs] [gotSchemaVersion=32] [phyTblIDs="[64]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:50.325 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:50.325 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=65] [version=32] [2024/05/06 09:24:50.328 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=32] ["take time"=5.475429ms] [job="ID:65, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:64, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:50.291 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.338 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:50.291 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.344 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=65] [2024/05/06 09:24:50.344 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:50.344 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=32] [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 09:24:50.351 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:50.346 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:50.351 +00:00] [INFO] [ddl.go:1182] ["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 09:24:50.346 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE TABLE IF NOT EXISTS mysql.advisory_locks (\n\t\tlock_name VARCHAR(64) NOT NULL PRIMARY KEY\n\t);"] [2024/05/06 09:24:50.367 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:50.346 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.373 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=32] [neededSchemaVersion=33] ["start time"=239.931µs] [gotSchemaVersion=33] [phyTblIDs="[66]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:50.375 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:50.375 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=67] [version=33] [2024/05/06 09:24:50.375 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=33] ["take time"=2.08393ms] [job="ID:67, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:66, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:50.346 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.383 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:50.346 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.402 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=67] [2024/05/06 09:24:50.402 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:50.410 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:69, Type:create view, State:queueing, SchemaState:none, SchemaID:1, TableID:68, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:50.406 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:50.410 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:69, Type:create view, State:queueing, SchemaState:none, SchemaID:1, TableID:68, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:50.406 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE OR REPLACE VIEW mysql.tidb_mdl_view as (\n\t\tSELECT tidb_mdl_info.job_id,\n\t\t\tJSON_UNQUOTE(JSON_EXTRACT(cast(cast(job_meta as char) as json), \"$.schema_name\")) as db_name,\n\t\t\tJSON_UNQUOTE(JSON_EXTRACT(cast(cast(job_meta as char) as json), \"$.table_name\")) as table_name,\n\t\t\tJSON_UNQUOTE(JSON_EXTRACT(cast(cast(job_meta as char) as json), \"$.query\")) as query,\n\t\t\tsession_id,\n\t\t\tcluster_tidb_trx.start_time,\n\t\t\ttidb_decode_sql_digests(all_sql_digests, 4096) AS SQL_DIGESTS\n\t\tFROM mysql.tidb_ddl_job,\n\t\t\tmysql.tidb_mdl_info,\n\t\t\tinformation_schema.cluster_tidb_trx\n\t\tWHERE tidb_ddl_job.job_id=tidb_mdl_info.job_id\n\t\t\tAND CONCAT(',', tidb_mdl_info.table_ids, ',') REGEXP CONCAT(',', REPLACE(cluster_tidb_trx.related_table_ids, ',', '|'), ',') != 0\n\t);"] [2024/05/06 09:24:50.417 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, tp general"] [category=ddl] [jobID=69] [category=ddl] [job="ID:69, Type:create view, State:queueing, SchemaState:none, SchemaID:1, TableID:68, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:50.406 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.421 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=33] [neededSchemaVersion=34] ["start time"=379.159µs] [gotSchemaVersion=34] [phyTblIDs="[68]"] [actionTypes="[21]"] [diffTypes="[\"create view\"]"] [2024/05/06 09:24:50.423 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:50.423 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=69] [version=34] [2024/05/06 09:24:50.429 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=34] ["take time"=8.654717ms] [job="ID:69, Type:create view, State:done, SchemaState:public, SchemaID:1, TableID:68, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:50.406 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.443 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, tp general"] [category=ddl] [jobID=69] [job="ID:69, Type:create view, State:synced, SchemaState:public, SchemaID:1, TableID:68, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:50.406 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.449 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=69] [2024/05/06 09:24:50.449 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:50.450 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=34] [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 09:24:50.453 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:71, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:70, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:50.451 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:50.453 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:71, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:70, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:50.451 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:50.467 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, tp general"] [category=ddl] [jobID=71] [category=ddl] [job="ID:71, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:70, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:50.451 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.471 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=34] [neededSchemaVersion=35] ["start time"=345.562µs] [gotSchemaVersion=35] [phyTblIDs="[70]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:50.472 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:50.472 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=71] [version=35] [2024/05/06 09:24:50.475 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=35] ["take time"=4.514229ms] [job="ID:71, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:70, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:50.451 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.482 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, tp general"] [category=ddl] [jobID=71] [job="ID:71, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:70, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:50.451 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.487 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=71] [2024/05/06 09:24:50.487 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:50.488 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=35] [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 09:24:50.493 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:50.49 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:50.493 +00:00] [INFO] [ddl.go:1182] ["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 09:24:50.49 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:50.500 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:50.49 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.503 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=35] [neededSchemaVersion=36] ["start time"=249.643µs] [gotSchemaVersion=36] [phyTblIDs="[72]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:50.505 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:50.505 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=73] [version=36] [2024/05/06 09:24:50.508 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=36] ["take time"=5.367995ms] [job="ID:73, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:72, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:50.49 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.524 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:50.49 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.528 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=73] [2024/05/06 09:24:50.528 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:50.529 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=36] [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 09:24:50.532 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:50.531 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:50.532 +00:00] [INFO] [ddl.go:1182] ["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 09:24:50.531 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:50.544 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:50.531 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.552 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=36] [neededSchemaVersion=37] ["start time"=271.093µs] [gotSchemaVersion=37] [phyTblIDs="[74]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:50.553 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:50.553 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=75] [version=37] [2024/05/06 09:24:50.553 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=37] ["take time"=2.154105ms] [job="ID:75, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:74, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:50.531 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.563 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:50.531 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.567 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=75] [2024/05/06 09:24:50.567 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:50.567 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=37] [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 09:24:50.571 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:50.569 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:50.571 +00:00] [INFO] [ddl.go:1182] ["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 09:24:50.569 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:50.619 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:50.569 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.624 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=37] [neededSchemaVersion=38] ["start time"=538.551µs] [gotSchemaVersion=38] [phyTblIDs="[76]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:50.626 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:50.626 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=77] [version=38] [2024/05/06 09:24:50.628 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=38] ["take time"=4.143924ms] [job="ID:77, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:76, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:50.569 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.634 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:50.569 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.639 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=77] [2024/05/06 09:24:50.639 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:50.640 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=38] [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 09:24:50.645 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:50.642 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:50.645 +00:00] [INFO] [ddl.go:1182] ["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 09:24:50.642 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:50.655 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:50.642 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.660 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=38] [neededSchemaVersion=39] ["start time"=533.706µs] [gotSchemaVersion=39] [phyTblIDs="[78]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:50.662 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:50.662 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=79] [version=39] [2024/05/06 09:24:50.662 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=39] ["take time"=2.806906ms] [job="ID:79, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:78, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:50.642 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.671 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:50.642 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.679 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=79] [2024/05/06 09:24:50.679 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:50.680 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=39] [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 09:24:50.685 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:50.681 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:50.685 +00:00] [INFO] [ddl.go:1182] ["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 09:24:50.681 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:50.692 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:50.681 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.697 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=39] [neededSchemaVersion=40] ["start time"=663.913µs] [gotSchemaVersion=40] [phyTblIDs="[80]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:50.700 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:50.701 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=81] [version=40] [2024/05/06 09:24:50.701 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=40] ["take time"=4.404056ms] [job="ID:81, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:80, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:50.681 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.709 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:50.681 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.713 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=81] [2024/05/06 09:24:50.713 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:50.714 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=40] [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(261),\n\t\tstate VARCHAR(64) NOT NULL,\n\t\tpriority INT DEFAULT 1,\n\t\tcreate_time TIMESTAMP,\n\t\tstart_time TIMESTAMP,\n\t\tstate_update_time TIMESTAMP,\n\t\tend_time TIMESTAMP,\n\t\tmeta LONGBLOB,\n\t\tconcurrency INT(11),\n\t\tstep INT(11),\n\t\ttarget_scope VARCHAR(256) DEFAULT \"\",\n\t\terror BLOB,\n\t\tkey(state),\n \tUNIQUE KEY task_key(task_key)\n\t);"] [user=] [2024/05/06 09:24:50.722 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:50.72 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:50.722 +00:00] [INFO] [ddl.go:1182] ["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 09:24:50.72 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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(261),\n\t\tstate VARCHAR(64) NOT NULL,\n\t\tpriority INT DEFAULT 1,\n\t\tcreate_time TIMESTAMP,\n\t\tstart_time TIMESTAMP,\n\t\tstate_update_time TIMESTAMP,\n\t\tend_time TIMESTAMP,\n\t\tmeta LONGBLOB,\n\t\tconcurrency INT(11),\n\t\tstep INT(11),\n\t\ttarget_scope VARCHAR(256) DEFAULT \"\",\n\t\terror BLOB,\n\t\tkey(state),\n \tUNIQUE KEY task_key(task_key)\n\t);"] [2024/05/06 09:24:50.730 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:50.72 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.740 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=40] [neededSchemaVersion=41] ["start time"=537.719µs] [gotSchemaVersion=41] [phyTblIDs="[82]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:50.741 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:50.741 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=83] [version=41] [2024/05/06 09:24:50.743 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=41] ["take time"=4.2591ms] [job="ID:83, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:50.72 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.758 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:50.72 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.766 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=83] [2024/05/06 09:24:50.767 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:50.768 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=41] [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(261),\n\t\tstate VARCHAR(64) NOT NULL,\n\t\tpriority INT DEFAULT 1,\n\t\tcreate_time TIMESTAMP,\n\t\tstart_time TIMESTAMP,\n\t\tstate_update_time TIMESTAMP,\n\t\tend_time TIMESTAMP,\n\t\tmeta LONGBLOB,\n\t\tconcurrency INT(11),\n\t\tstep INT(11),\n\t\ttarget_scope VARCHAR(256) DEFAULT \"\",\n\t\terror BLOB,\n\t\tkey(state),\n \tUNIQUE KEY task_key(task_key)\n\t);"] [user=] [2024/05/06 09:24:50.776 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:50.769 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:50.776 +00:00] [INFO] [ddl.go:1182] ["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 09:24:50.769 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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(261),\n\t\tstate VARCHAR(64) NOT NULL,\n\t\tpriority INT DEFAULT 1,\n\t\tcreate_time TIMESTAMP,\n\t\tstart_time TIMESTAMP,\n\t\tstate_update_time TIMESTAMP,\n\t\tend_time TIMESTAMP,\n\t\tmeta LONGBLOB,\n\t\tconcurrency INT(11),\n\t\tstep INT(11),\n\t\ttarget_scope VARCHAR(256) DEFAULT \"\",\n\t\terror BLOB,\n\t\tkey(state),\n \tUNIQUE KEY task_key(task_key)\n\t);"] [2024/05/06 09:24:50.786 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:50.769 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.791 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=41] [neededSchemaVersion=42] ["start time"=563.83µs] [gotSchemaVersion=42] [phyTblIDs="[84]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:50.792 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:50.792 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=85] [version=42] [2024/05/06 09:24:50.792 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=42] ["take time"=2.01486ms] [job="ID:85, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:84, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:50.769 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.804 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:50.769 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.813 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=85] [2024/05/06 09:24:50.813 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:50.815 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=42] [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 09:24:50.819 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:50.817 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:50.819 +00:00] [INFO] [ddl.go:1182] ["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 09:24:50.817 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:50.832 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:50.817 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.840 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=42] [neededSchemaVersion=43] ["start time"=528.356µs] [gotSchemaVersion=43] [phyTblIDs="[86]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:50.841 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:50.842 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=87] [version=43] [2024/05/06 09:24:50.844 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=43] ["take time"=5.207864ms] [job="ID:87, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:86, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:50.817 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.859 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:50.817 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.865 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=87] [2024/05/06 09:24:50.865 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:50.867 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=43] [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 09:24:50.870 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:50.869 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:50.871 +00:00] [INFO] [ddl.go:1182] ["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 09:24:50.869 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:50.877 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:50.869 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.883 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=43] [neededSchemaVersion=44] ["start time"=388.032µs] [gotSchemaVersion=44] [phyTblIDs="[88]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:50.885 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:50.885 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=89] [version=44] [2024/05/06 09:24:50.887 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=44] ["take time"=4.755609ms] [job="ID:89, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:88, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:50.869 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.893 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:50.869 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.896 +00:00] [INFO] [info.go:1142] [SetTiFlashGroupConfig] [2024/05/06 09:24:50.898 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=89] [2024/05/06 09:24:50.899 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:50.899 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=44] [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 09:24:50.902 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:50.9 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:50.902 +00:00] [INFO] [ddl.go:1182] ["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 09:24:50.9 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:50.910 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:50.9 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.914 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=44] [neededSchemaVersion=45] ["start time"=376.086µs] [gotSchemaVersion=45] [phyTblIDs="[90]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:50.915 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:50.915 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=91] [version=45] [2024/05/06 09:24:50.915 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=45] ["take time"=2.08922ms] [job="ID:91, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:90, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:50.9 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.926 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:50.9 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.930 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=91] [2024/05/06 09:24:50.930 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:50.930 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=45] [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 09:24:50.934 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:50.932 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:50.935 +00:00] [INFO] [ddl.go:1182] ["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 09:24:50.932 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:50.967 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:50.932 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.984 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=45] [neededSchemaVersion=46] ["start time"=709.091µs] [gotSchemaVersion=46] [phyTblIDs="[92]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:50.986 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:50.986 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=93] [version=46] [2024/05/06 09:24:50.988 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=46] ["take time"=4.270787ms] [job="ID:93, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:92, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:50.932 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:50.994 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:50.932 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.000 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=93] [2024/05/06 09:24:51.000 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:51.000 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=46] [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 09:24:51.004 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:51.002 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:51.004 +00:00] [INFO] [ddl.go:1182] ["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 09:24:51.002 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:51.011 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:51.002 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.015 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=46] [neededSchemaVersion=47] ["start time"=378.658µs] [gotSchemaVersion=47] [phyTblIDs="[94]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:51.016 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:51.016 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=95] [version=47] [2024/05/06 09:24:51.017 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=47] ["take time"=2.788319ms] [job="ID:95, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:94, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:51.002 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.025 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:51.002 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.031 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=95] [2024/05/06 09:24:51.032 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:51.032 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=47] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.dist_framework_meta (\n host VARCHAR(261) NOT NULL PRIMARY KEY,\n role VARCHAR(64),\n cpu_count int default 0,\n keyspace_id bigint(8) NOT NULL DEFAULT -1\n );"] [user=] [2024/05/06 09:24:51.038 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:51.035 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:51.038 +00:00] [INFO] [ddl.go:1182] ["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 09:24:51.035 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE TABLE IF NOT EXISTS mysql.dist_framework_meta (\n host VARCHAR(261) NOT NULL PRIMARY KEY,\n role VARCHAR(64),\n cpu_count int default 0,\n keyspace_id bigint(8) NOT NULL DEFAULT -1\n );"] [2024/05/06 09:24:51.050 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:51.035 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.054 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=47] [neededSchemaVersion=48] ["start time"=412.661µs] [gotSchemaVersion=48] [phyTblIDs="[96]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:51.056 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:51.056 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=97] [version=48] [2024/05/06 09:24:51.058 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=48] ["take time"=4.552768ms] [job="ID:97, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:96, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:51.035 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.064 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:51.035 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.068 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=97] [2024/05/06 09:24:51.068 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:51.069 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=48] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.request_unit_by_group (\n\t\tstart_time TIMESTAMP(6) NOT NULL,\n\t\tend_time TIMESTAMP(6) NOT NULL,\n\t\tresource_group VARCHAR(32) NOT null,\n\t\ttotal_ru bigint(64) UNSIGNED NOT NULL,\n\t\tPRIMARY KEY (start_time, end_time, resource_group),\n\t\tKEY (resource_group)\n\t);"] [user=] [2024/05/06 09:24:51.073 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:51.072 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:51.073 +00:00] [INFO] [ddl.go:1182] ["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 09:24:51.072 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE TABLE IF NOT EXISTS mysql.request_unit_by_group (\n\t\tstart_time TIMESTAMP(6) NOT NULL,\n\t\tend_time TIMESTAMP(6) NOT NULL,\n\t\tresource_group VARCHAR(32) NOT null,\n\t\ttotal_ru bigint(64) UNSIGNED NOT NULL,\n\t\tPRIMARY KEY (start_time, end_time, resource_group),\n\t\tKEY (resource_group)\n\t);"] [2024/05/06 09:24:51.089 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, 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 09:24:51.072 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.093 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=48] [neededSchemaVersion=49] ["start time"=344.609µs] [gotSchemaVersion=49] [phyTblIDs="[98]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:51.095 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:51.095 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=99] [version=49] [2024/05/06 09:24:51.095 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=49] ["take time"=2.008355ms] [job="ID:99, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:98, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:51.072 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.101 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, 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 09:24:51.072 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.106 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=99] [2024/05/06 09:24:51.106 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:51.107 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=49] [cur_db=mysql] [sql="CREATE DATABASE IF NOT EXISTS sys;"] [user=] [2024/05/06 09:24:51.110 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:101, Type:create schema, State:queueing, SchemaState:none, SchemaID:100, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:51.109 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:51.110 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:101, Type:create schema, State:queueing, SchemaState:none, SchemaID:100, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:51.109 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE DATABASE IF NOT EXISTS sys;"] [2024/05/06 09:24:51.120 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, tp general"] [category=ddl] [jobID=101] [category=ddl] [job="ID:101, Type:create schema, State:queueing, SchemaState:none, SchemaID:100, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.109 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.122 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=49] [neededSchemaVersion=50] ["start time"=66.59µs] [gotSchemaVersion=50] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"create schema\"]"] [2024/05/06 09:24:51.123 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:51.123 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=101] [version=50] [2024/05/06 09:24:51.125 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=50] ["take time"=2.815668ms] [job="ID:101, Type:create schema, State:done, SchemaState:public, SchemaID:100, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:51.109 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.138 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, tp general"] [category=ddl] [jobID=101] [job="ID:101, Type:create schema, State:synced, SchemaState:public, SchemaID:100, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.109 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.142 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=101] [2024/05/06 09:24:51.142 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:51.150 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:103, Type:create view, State:queueing, SchemaState:none, SchemaID:100, TableID:102, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:51.144 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:51.150 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:103, Type:create view, State:queueing, SchemaState:none, SchemaID:100, TableID:102, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:51.144 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE OR REPLACE VIEW sys.schema_unused_indexes AS\n\t\tSELECT\n\t\t\ttable_schema as object_schema,\n\t\t\ttable_name as object_name,\n\t\t\tindex_name\n\t\tFROM information_schema.cluster_tidb_index_usage\n\t\tWHERE\n\t\t\ttable_schema not in ('sys', 'mysql', 'INFORMATION_SCHEMA', 'PERFORMANCE_SCHEMA') and\n\t\t\tindex_name != 'PRIMARY'\n\t\tGROUP BY table_schema, table_name, index_name\n\t\tHAVING\n\t\t\tsum(last_access_time) is null;"] [2024/05/06 09:24:51.157 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 61, tp general"] [category=ddl] [jobID=103] [category=ddl] [job="ID:103, Type:create view, State:queueing, SchemaState:none, SchemaID:100, TableID:102, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.144 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.168 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=50] [neededSchemaVersion=51] ["start time"=340.385µs] [gotSchemaVersion=51] [phyTblIDs="[102]"] [actionTypes="[21]"] [diffTypes="[\"create view\"]"] [2024/05/06 09:24:51.170 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:51.170 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=103] [version=51] [2024/05/06 09:24:51.173 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=51] ["take time"=5.142219ms] [job="ID:103, Type:create view, State:done, SchemaState:public, SchemaID:100, TableID:102, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:51.144 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.179 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 61, tp general"] [category=ddl] [jobID=103] [job="ID:103, Type:create view, State:synced, SchemaState:public, SchemaID:100, TableID:102, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.144 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.184 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=103] [2024/05/06 09:24:51.184 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:51.237 +00:00] [INFO] [bootstrap.go:745] ["bootstrap successful"] ["take time"=2.340513203s] [2024/05/06 09:24:51.237 +00:00] [INFO] [mock.go:106] ["owner manager is canceled"] [category=ddl] [ID=68d94d8a-3942-4684-bfa1-a07786c0a99e] [ownerKey=/tidb/ddl/fg/owner] [2024/05/06 09:24:51.237 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:51.237 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 64, tp add index"] [category=ddl] ["take time"=14.433µs] [2024/05/06 09:24:51.237 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 65, tp add index"] [category=ddl] ["take time"=4.034µs] [2024/05/06 09:24:51.237 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 62, tp add index"] [category=ddl] ["take time"=4.271µs] [2024/05/06 09:24:51.237 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 63, tp add index"] [category=ddl] ["take time"=4.649µs] [2024/05/06 09:24:51.237 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:51.237 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 61, tp general"] [category=ddl] ["take time"=905ns] [2024/05/06 09:24:51.237 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:51.237 +00:00] [INFO] [delete_range.go:162] ["closing delRange"] [category=ddl] [2024/05/06 09:24:51.237 +00:00] [INFO] [session_pool.go:99] ["closing session pool"] [category=ddl] [2024/05/06 09:24:51.242 +00:00] [INFO] [ddl.go:951] ["DDL closed"] [category=ddl] [ID=68d94d8a-3942-4684-bfa1-a07786c0a99e] ["take time"=5.176942ms] [2024/05/06 09:24:51.242 +00:00] [INFO] [ddl.go:769] ["stop DDL"] [category=ddl] [ID=68d94d8a-3942-4684-bfa1-a07786c0a99e] [2024/05/06 09:24:51.242 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=mdlCheckLoop] [2024/05/06 09:24:51.242 +00:00] [INFO] [domain.go:907] ["loadSchemaInLoop exited."] [2024/05/06 09:24:51.242 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=loadSchemaInLoop] [2024/05/06 09:24:51.243 +00:00] [INFO] [domain.go:711] ["infoSyncerKeeper exited."] [2024/05/06 09:24:51.243 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=infoSyncerKeeper] [2024/05/06 09:24:51.244 +00:00] [INFO] [domain.go:761] ["topologySyncerKeeper exited."] [2024/05/06 09:24:51.244 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=topologySyncerKeeper] [2024/05/06 09:24:51.244 +00:00] [INFO] [domain.go:737] ["globalConfigSyncerKeeper exited."] [2024/05/06 09:24:51.244 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=globalConfigSyncerKeeper] [2024/05/06 09:24:51.244 +00:00] [INFO] [domain.go:683] ["topNSlowQueryLoop exited."] [2024/05/06 09:24:51.244 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=topNSlowQueryLoop] [2024/05/06 09:24:51.244 +00:00] [INFO] [domain.go:1361] ["closestReplicaReadCheckLoop exited."] [2024/05/06 09:24:51.244 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=closestReplicaReadCheckLoop] [2024/05/06 09:24:51.242 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=runawayStartLoop] [2024/05/06 09:24:51.248 +00:00] [INFO] [domain.go:1074] ["domain closed"] ["take time"=10.412507ms] [2024/05/06 09:24:51.248 +00:00] [INFO] [tidb.go:80] ["new domain"] [store=319af21f-a7ee-4561-b9e4-e482ca90d858] ["ddl lease"=500ms] ["stats lease"=-1ns] [2024/05/06 09:24:51.258 +00:00] [WARN] [controller.go:198] ["[resource group controller] server does not save config, load config failed"] [2024/05/06 09:24:51.258 +00:00] [INFO] [controller.go:185] ["load resource controller config"] [config="{\"degraded-mode-wait-duration\":\"0s\",\"ltb-max-wait-duration\":\"30s\",\"wait-retry-interval\":\"50ms\",\"wait-retry-times\":10,\"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,\"WaitRetryInterval\":50000000,\"WaitRetryTimes\":10,\"DegradedModeWaitDuration\":0}"] [2024/05/06 09:24:51.294 +00:00] [INFO] [domain.go:315] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=51] ["start time"=34.761999ms] [2024/05/06 09:24:51.300 +00:00] [INFO] [domain.go:635] ["full load and reset schema validator"] [2024/05/06 09:24:51.301 +00:00] [INFO] [ddl.go:818] ["start DDL"] [category=ddl] [ID=ea95070f-6d6f-4bc4-973d-455a511efa6a] [runWorker=true] [2024/05/06 09:24:51.301 +00:00] [INFO] [ddl.go:777] ["start delRangeManager OK"] [category=ddl] ["is a emulator"=true] [2024/05/06 09:24:51.301 +00:00] [WARN] [env.go:51] ["initialize environment failed"] [category=ddl-ingest] ["storage limitation"="only support TiKV storage"] ["current storage"=unistore] ["lightning is initialized"=false] [2024/05/06 09:24:51.301 +00:00] [INFO] [delete_range.go:172] ["start delRange emulator"] [category=ddl] [2024/05/06 09:24:51.301 +00:00] [INFO] [job_table.go:334] ["get global state and global state change"] [category=ddl] [oldState=false] [currState=false] [2024/05/06 09:24:51.302 +00:00] [INFO] [job_table.go:349] ["the owner sets owner operator value"] [category=ddl] [ownerOp=none] [2024/05/06 09:24:51.302 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=loadSchemaInLoop] [2024/05/06 09:24:51.302 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=mdlCheckLoop] [2024/05/06 09:24:51.302 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=topNSlowQueryLoop] [2024/05/06 09:24:51.302 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=infoSyncerKeeper] [2024/05/06 09:24:51.302 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=globalConfigSyncerKeeper] [2024/05/06 09:24:51.302 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=runawayStartLoop] [2024/05/06 09:24:51.303 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=requestUnitsWriterLoop] [2024/05/06 09:24:51.303 +00:00] [INFO] [runaway.go:149] ["try to start runaway manager loop"] [2024/05/06 09:24:51.303 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=topologySyncerKeeper] [2024/05/06 09:24:51.303 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=closestReplicaReadCheckLoop] [2024/05/06 09:24:51.303 +00:00] [WARN] [domain.go:1326] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 09:24:51.303 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=requestUnitsWriterLoop] [2024/05/06 09:24:51.304 +00:00] [INFO] [controller.go:447] ["[resource group controller] create resource group cost controller"] [name=default] [2024/05/06 09:24:51.312 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=globalBindHandleWorkerLoop] [2024/05/06 09:24:51.312 +00:00] [WARN] [sysvar_cache.go:49] ["sysvar cache is empty, triggering rebuild"] [2024/05/06 09:24:51.329 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=loadPrivilegeInLoop] [2024/05/06 09:24:51.332 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=LoadSysVarCacheLoop] [2024/05/06 09:24:51.334 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=dumpFileGcChecker] [2024/05/06 09:24:51.335 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=indexUsageWorker] [2024/05/06 09:24:51.335 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=quitStatsOwner] [2024/05/06 09:24:51.335 +00:00] [INFO] [domain.go:2070] ["dumpFileGcChecker started"] [2024/05/06 09:24:51.336 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=loadSigningCertLoop] [2024/05/06 09:24:51.336 +00:00] [INFO] [task_manager.go:217] ["scale ttl worker"] [ttl-worker=job-manager] [ttl-worker=task-manager] [originalCount=0] [newCount=4] [2024/05/06 09:24:51.337 +00:00] [INFO] [task_manager.go:217] ["scale ttl worker"] [ttl-worker=job-manager] [ttl-worker=task-manager] [originalCount=0] [newCount=4] [2024/05/06 09:24:51.341 +00:00] [INFO] [manager.go:113] ["build task executor manager"] [server-id=:4000] [total-cpu=16] [total-mem=342GiB] [2024/05/06 09:24:51.343 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=distTaskFrameworkLoop] [2024/05/06 09:24:51.343 +00:00] [INFO] [manager.go:146] ["task executor manager start"] [server-id=:4000] [2024/05/06 09:24:51.343 +00:00] [INFO] [domain.go:1525] ["dist task executor manager started"] [2024/05/06 09:24:51.348 +00:00] [INFO] [set.go:170] ["set global var"] [conn=12] [name=tidb_schema_cache_size] [val=1024] [2024/05/06 09:24:51.349 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=12] [schemaVersion=51] [cur_db=test] [sql="drop table if exists t;"] [user=] [2024/05/06 09:24:51.349 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=12] [schemaVersion=51] [cur_db=test] [sql="create table t (a int default 1, b int default 2);"] [user=] [2024/05/06 09:24:51.352 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:105, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:51.351 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:51.352 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:105, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:51.351 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create table t (a int default 1, b int default 2);"] [2024/05/06 09:24:51.358 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=105] [conn=12] [category=ddl] [job="ID:105, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.351 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.363 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=51] [neededSchemaVersion=52] ["start time"=224.869µs] [gotSchemaVersion=52] [phyTblIDs="[104]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:51.365 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=105] [version=52] [2024/05/06 09:24:51.368 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=52] ["take time"=5.202467ms] [job="ID:105, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:51.351 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.375 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=105] [conn=12] [job="ID:105, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.351 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.380 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=105] [2024/05/06 09:24:51.380 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:51.384 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=12] [schemaVersion=52] [cur_db=test] [sql="alter table t rename column b to c, add column c int"] [user=] [2024/05/06 09:24:51.385 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:51.385 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=52] [error="[ddl:8200]Unsupported operate same column 'c'"] [errorVerbose="[ddl:8200]Unsupported operate same column 'c'\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.(*Error).GenWithStackByArgs\n\texternal/com_github_pingcap_errors/normalize.go:175\ngithub.com/pingcap/tidb/pkg/ddl.checkOperateSameColAndIdx.func1\n\tpkg/ddl/multi_schema_change.go:329\ngithub.com/pingcap/tidb/pkg/ddl.checkOperateSameColAndIdx\n\tpkg/ddl/multi_schema_change.go:351\ngithub.com/pingcap/tidb/pkg/ddl.checkMultiSchemaInfo\n\tpkg/ddl/multi_schema_change.go:457\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).MultiSchemaChange\n\tpkg/ddl/multi_schema_change.go:60\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:4095\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestMultiSchemaChangeRenameColumns\n\tpkg/ddl/multi_schema_change_test.go:179\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 12,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:51.385 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=12] [schemaVersion=52] [cur_db=test] [sql="drop table if exists t;"] [user=] [2024/05/06 09:24:51.387 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:106, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:51.386 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:51.387 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:106, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:51.386 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="drop table if exists t;"] [2024/05/06 09:24:51.394 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=106] [conn=12] [category=ddl] [job="ID:106, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.386 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.398 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=52] [neededSchemaVersion=53] ["start time"=68.603µs] [gotSchemaVersion=53] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:51.399 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=106] [version=53] [2024/05/06 09:24:51.400 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=53] ["take time"=2.362582ms] [job="ID:106, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:51.386 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.405 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=106] [conn=12] [category=ddl] [job="ID:106, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.386 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.411 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=53] [neededSchemaVersion=54] ["start time"=39.876µs] [gotSchemaVersion=54] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:51.412 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=106] [version=54] [2024/05/06 09:24:51.413 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=54] ["take time"=2.116049ms] [job="ID:106, Type:drop table, State:running, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.386 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.419 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=106] [conn=12] [category=ddl] [job="ID:106, Type:drop table, State:running, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.386 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.423 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=54] [neededSchemaVersion=55] ["start time"=48.68µs] [gotSchemaVersion=55] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:51.426 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=106] [version=55] [2024/05/06 09:24:51.428 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=55] ["take time"=4.90948ms] [job="ID:106, Type:drop table, State:done, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:51.386 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.433 +00:00] [INFO] [delete_range.go:447] ["insert into delete-range table"] [category=ddl] [jobID=106] [tableIDs="[104]"] [comment="drop table: table ID"] [2024/05/06 09:24:51.434 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=106] [jobType="drop table"] [2024/05/06 09:24:51.434 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=106] [conn=12] [job="ID:106, Type:drop table, State:synced, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:51.386 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.440 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=106] [2024/05/06 09:24:51.440 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:51.440 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=12] [schemaVersion=55] [cur_db=test] [sql="create table t (a int default 1, b int default 2);"] [user=] [2024/05/06 09:24:51.441 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=106] [elementID=1] [startKey=748000000000000068] [endKey=748000000000000069] [2024/05/06 09:24:51.444 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:108, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:107, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:51.442 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:51.444 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:108, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:107, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:51.442 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create table t (a int default 1, b int default 2);"] [2024/05/06 09:24:51.466 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=108] [conn=12] [category=ddl] [job="ID:108, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:107, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.442 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.469 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=55] [neededSchemaVersion=56] ["start time"=438.683µs] [gotSchemaVersion=56] [phyTblIDs="[107]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:51.470 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=108] [version=56] [2024/05/06 09:24:51.471 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=56] ["take time"=2.901146ms] [job="ID:108, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:107, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:51.442 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.482 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=108] [conn=12] [job="ID:108, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:107, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.442 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.494 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=108] [2024/05/06 09:24:51.495 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:51.497 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=12] [schemaVersion=56] [cur_db=test] [sql="alter table t rename column b to c, add column e int after b"] [user=] [2024/05/06 09:24:51.498 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:51.498 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=56] [error="[ddl:8200]Unsupported operate same column 'b'"] [errorVerbose="[ddl:8200]Unsupported operate same column 'b'\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.(*Error).GenWithStackByArgs\n\texternal/com_github_pingcap_errors/normalize.go:175\ngithub.com/pingcap/tidb/pkg/ddl.checkOperateSameColAndIdx.func1\n\tpkg/ddl/multi_schema_change.go:329\ngithub.com/pingcap/tidb/pkg/ddl.checkOperateSameColAndIdx\n\tpkg/ddl/multi_schema_change.go:357\ngithub.com/pingcap/tidb/pkg/ddl.checkMultiSchemaInfo\n\tpkg/ddl/multi_schema_change.go:457\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).MultiSchemaChange\n\tpkg/ddl/multi_schema_change.go:60\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:4095\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestMultiSchemaChangeRenameColumns\n\tpkg/ddl/multi_schema_change_test.go:185\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 12,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:51.498 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=12] [schemaVersion=56] [cur_db=test] [sql="drop table if exists t;"] [user=] [2024/05/06 09:24:51.500 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:109, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:107, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:51.499 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:51.500 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:109, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:107, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:51.499 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="drop table if exists t;"] [2024/05/06 09:24:51.508 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=109] [conn=12] [category=ddl] [job="ID:109, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:107, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.499 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.515 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=56] [neededSchemaVersion=57] ["start time"=76.286µs] [gotSchemaVersion=57] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:51.516 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=109] [version=57] [2024/05/06 09:24:51.517 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=57] ["take time"=2.728307ms] [job="ID:109, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:107, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:51.499 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.524 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=109] [conn=12] [category=ddl] [job="ID:109, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:107, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.499 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.526 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=57] [neededSchemaVersion=58] ["start time"=51.066µs] [gotSchemaVersion=58] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:51.527 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=109] [version=58] [2024/05/06 09:24:51.529 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=58] ["take time"=2.595612ms] [job="ID:109, Type:drop table, State:running, SchemaState:delete only, SchemaID:2, TableID:107, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.499 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.534 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=109] [conn=12] [category=ddl] [job="ID:109, Type:drop table, State:running, SchemaState:delete only, SchemaID:2, TableID:107, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.499 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.537 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=58] [neededSchemaVersion=59] ["start time"=50.76µs] [gotSchemaVersion=59] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:51.538 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=109] [version=59] [2024/05/06 09:24:51.539 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=59] ["take time"=2.022719ms] [job="ID:109, Type:drop table, State:done, SchemaState:none, SchemaID:2, TableID:107, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:51.499 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.546 +00:00] [INFO] [delete_range.go:447] ["insert into delete-range table"] [category=ddl] [jobID=109] [tableIDs="[107]"] [comment="drop table: table ID"] [2024/05/06 09:24:51.547 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=109] [jobType="drop table"] [2024/05/06 09:24:51.548 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=109] [conn=12] [job="ID:109, Type:drop table, State:synced, SchemaState:none, SchemaID:2, TableID:107, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:51.499 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.552 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=109] [elementID=1] [startKey=74800000000000006b] [endKey=74800000000000006c] [2024/05/06 09:24:51.555 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=109] [2024/05/06 09:24:51.555 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:51.556 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=12] [schemaVersion=59] [cur_db=test] [sql="create table t (a int default 1, b int default 2);"] [user=] [2024/05/06 09:24:51.559 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:111, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:110, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:51.557 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:51.559 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:111, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:110, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:51.557 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create table t (a int default 1, b int default 2);"] [2024/05/06 09:24:51.567 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=111] [conn=12] [category=ddl] [job="ID:111, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:110, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.557 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.570 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=59] [neededSchemaVersion=60] ["start time"=253.449µs] [gotSchemaVersion=60] [phyTblIDs="[110]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:51.571 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=111] [version=60] [2024/05/06 09:24:51.573 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=60] ["take time"=2.962096ms] [job="ID:111, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:110, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:51.557 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.586 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=111] [conn=12] [job="ID:111, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:110, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.557 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.590 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=111] [2024/05/06 09:24:51.590 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:51.591 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=12] [schemaVersion=60] [cur_db=test] [sql="alter table t drop column b, rename column b to c"] [user=] [2024/05/06 09:24:51.591 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:51.591 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=60] [error="[ddl:8200]Unsupported operate same column 'b'"] [errorVerbose="[ddl:8200]Unsupported operate same column 'b'\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.(*Error).GenWithStackByArgs\n\texternal/com_github_pingcap_errors/normalize.go:175\ngithub.com/pingcap/tidb/pkg/ddl.checkOperateSameColAndIdx.func1\n\tpkg/ddl/multi_schema_change.go:329\ngithub.com/pingcap/tidb/pkg/ddl.checkOperateSameColAndIdx\n\tpkg/ddl/multi_schema_change.go:354\ngithub.com/pingcap/tidb/pkg/ddl.checkMultiSchemaInfo\n\tpkg/ddl/multi_schema_change.go:457\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).MultiSchemaChange\n\tpkg/ddl/multi_schema_change.go:60\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:4095\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestMultiSchemaChangeRenameColumns\n\tpkg/ddl/multi_schema_change_test.go:191\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 12,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:51.592 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=12] [schemaVersion=60] [cur_db=test] [sql="drop table if exists t;"] [user=] [2024/05/06 09:24:51.594 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:112, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:110, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:51.593 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:51.594 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:112, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:110, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:51.593 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="drop table if exists t;"] [2024/05/06 09:24:51.602 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=112] [conn=12] [category=ddl] [job="ID:112, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:110, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.593 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.604 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=60] [neededSchemaVersion=61] ["start time"=67.58µs] [gotSchemaVersion=61] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:51.606 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=112] [version=61] [2024/05/06 09:24:51.607 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=61] ["take time"=2.494336ms] [job="ID:112, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:110, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:51.593 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.614 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=112] [conn=12] [category=ddl] [job="ID:112, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:110, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.593 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.617 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=61] [neededSchemaVersion=62] ["start time"=44.815µs] [gotSchemaVersion=62] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:51.618 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=112] [version=62] [2024/05/06 09:24:51.619 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=62] ["take time"=2.129212ms] [job="ID:112, Type:drop table, State:running, SchemaState:delete only, SchemaID:2, TableID:110, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.593 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.628 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=112] [conn=12] [category=ddl] [job="ID:112, Type:drop table, State:running, SchemaState:delete only, SchemaID:2, TableID:110, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.593 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.630 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=62] [neededSchemaVersion=63] ["start time"=51.076µs] [gotSchemaVersion=63] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:51.632 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=112] [version=63] [2024/05/06 09:24:51.632 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=63] ["take time"=2.115264ms] [job="ID:112, Type:drop table, State:done, SchemaState:none, SchemaID:2, TableID:110, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:51.593 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.638 +00:00] [INFO] [delete_range.go:447] ["insert into delete-range table"] [category=ddl] [jobID=112] [tableIDs="[110]"] [comment="drop table: table ID"] [2024/05/06 09:24:51.639 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=112] [jobType="drop table"] [2024/05/06 09:24:51.640 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=112] [conn=12] [job="ID:112, Type:drop table, State:synced, SchemaState:none, SchemaID:2, TableID:110, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:51.593 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.645 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=112] [2024/05/06 09:24:51.646 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:51.646 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=12] [schemaVersion=63] [cur_db=test] [sql="create table t (a int default 1, b int default 2, index t(a, b));"] [user=] [2024/05/06 09:24:51.650 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:114, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:113, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:51.648 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:51.650 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:114, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:113, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:51.648 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create table t (a int default 1, b int default 2, index t(a, b));"] [2024/05/06 09:24:51.650 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=112] [elementID=1] [startKey=74800000000000006e] [endKey=74800000000000006f] [2024/05/06 09:24:51.656 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=114] [conn=12] [category=ddl] [job="ID:114, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:113, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.648 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.662 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=63] [neededSchemaVersion=64] ["start time"=243.585µs] [gotSchemaVersion=64] [phyTblIDs="[113]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:51.664 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=114] [version=64] [2024/05/06 09:24:51.670 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=64] ["take time"=8.001759ms] [job="ID:114, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:113, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:51.648 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.676 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=114] [conn=12] [job="ID:114, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:113, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.648 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.680 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=114] [2024/05/06 09:24:51.680 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:51.681 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=12] [schemaVersion=64] [cur_db=test] [sql="alter table t rename column b to c, add index t1(a, b)"] [user=] [2024/05/06 09:24:51.682 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:51.682 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=64] [error="[ddl:8200]Unsupported operate same column 'b'"] [errorVerbose="[ddl:8200]Unsupported operate same column 'b'\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.(*Error).GenWithStackByArgs\n\texternal/com_github_pingcap_errors/normalize.go:175\ngithub.com/pingcap/tidb/pkg/ddl.checkOperateSameColAndIdx.func1\n\tpkg/ddl/multi_schema_change.go:329\ngithub.com/pingcap/tidb/pkg/ddl.checkOperateSameColAndIdx\n\tpkg/ddl/multi_schema_change.go:363\ngithub.com/pingcap/tidb/pkg/ddl.checkMultiSchemaInfo\n\tpkg/ddl/multi_schema_change.go:457\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).MultiSchemaChange\n\tpkg/ddl/multi_schema_change.go:60\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:4095\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestMultiSchemaChangeRenameColumns\n\tpkg/ddl/multi_schema_change_test.go:197\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 12,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:51.682 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=12] [schemaVersion=64] [cur_db=test] [sql="drop table if exists t;"] [user=] [2024/05/06 09:24:51.684 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:115, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:113, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:51.683 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:51.684 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:115, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:113, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:51.683 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="drop table if exists t;"] [2024/05/06 09:24:51.690 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=115] [conn=12] [category=ddl] [job="ID:115, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:113, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.683 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.693 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=64] [neededSchemaVersion=65] ["start time"=92.962µs] [gotSchemaVersion=65] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:51.694 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=115] [version=65] [2024/05/06 09:24:51.695 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=65] ["take time"=2.748138ms] [job="ID:115, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:113, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:51.683 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.702 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=115] [conn=12] [category=ddl] [job="ID:115, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:113, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.683 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.705 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=65] [neededSchemaVersion=66] ["start time"=71.025µs] [gotSchemaVersion=66] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:51.708 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=115] [version=66] [2024/05/06 09:24:51.710 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=66] ["take time"=5.010667ms] [job="ID:115, Type:drop table, State:running, SchemaState:delete only, SchemaID:2, TableID:113, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.683 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.716 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=115] [conn=12] [category=ddl] [job="ID:115, Type:drop table, State:running, SchemaState:delete only, SchemaID:2, TableID:113, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.683 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.718 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=66] [neededSchemaVersion=67] ["start time"=46.666µs] [gotSchemaVersion=67] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:51.719 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=115] [version=67] [2024/05/06 09:24:51.720 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=67] ["take time"=2.086315ms] [job="ID:115, Type:drop table, State:done, SchemaState:none, SchemaID:2, TableID:113, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:51.683 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.727 +00:00] [INFO] [delete_range.go:447] ["insert into delete-range table"] [category=ddl] [jobID=115] [tableIDs="[113]"] [comment="drop table: table ID"] [2024/05/06 09:24:51.728 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=115] [jobType="drop table"] [2024/05/06 09:24:51.728 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=115] [conn=12] [job="ID:115, Type:drop table, State:synced, SchemaState:none, SchemaID:2, TableID:113, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:51.683 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.735 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=115] [elementID=1] [startKey=748000000000000071] [endKey=748000000000000072] [2024/05/06 09:24:51.735 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=115] [2024/05/06 09:24:51.735 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:51.736 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=12] [schemaVersion=67] [cur_db=test] [sql="create table t (a int default 1, b int default 2, index t(a, b));"] [user=] [2024/05/06 09:24:51.739 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:117, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:116, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:51.738 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:51.740 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:117, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:116, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:51.738 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create table t (a int default 1, b int default 2, index t(a, b));"] [2024/05/06 09:24:51.747 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=117] [conn=12] [category=ddl] [job="ID:117, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:116, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.738 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.750 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=67] [neededSchemaVersion=68] ["start time"=268.537µs] [gotSchemaVersion=68] [phyTblIDs="[116]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:51.751 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=117] [version=68] [2024/05/06 09:24:51.752 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=68] ["take time"=2.615867ms] [job="ID:117, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:116, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:51.738 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.770 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=117] [conn=12] [job="ID:117, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:116, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.738 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.775 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=117] [2024/05/06 09:24:51.775 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:51.776 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=12] [schemaVersion=68] [cur_db=test] [sql="alter table t rename column b to c, add column e int default 3"] [user=] [2024/05/06 09:24:51.779 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:118, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:116, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.778 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:51.779 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:118, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:116, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.778 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t rename column b to c, add column e int default 3"] [2024/05/06 09:24:51.794 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=118] [conn=12] [category=ddl] [job="ID:118, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:116, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.778 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:24:51.796 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=118] [2024/05/06 09:24:51.815 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=118] [conn=12] [category=ddl] [job="ID:118, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:116, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.778 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:24:51.821 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:118, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:116, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:51.778 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [columnInfo="{\"id\":3,\"name\":{\"O\":\"e\",\"L\":\"e\"},\"offset\":2,\"origin_default\":\"3\",\"origin_default_bit\":null,\"default\":\"3\",\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{},\"state\":0,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2}"] [2024/05/06 09:24:51.824 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=68] [neededSchemaVersion=69] ["start time"=298.646µs] [gotSchemaVersion=69] [phyTblIDs="[116]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:51.826 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=118] [version=69] [2024/05/06 09:24:51.828 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=69] ["take time"=4.474722ms] [job="ID:118, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:116, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.778 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:51.838 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=118] [conn=12] [category=ddl] [job="ID:118, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:116, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.778 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:24:51.841 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=69] [neededSchemaVersion=70] ["start time"=290.182µs] [gotSchemaVersion=70] [phyTblIDs="[116]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:51.842 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=118] [version=70] [2024/05/06 09:24:51.856 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=70] ["take time"=15.399204ms] [job="ID:118, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:116, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.778 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:51.872 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=118] [conn=12] [category=ddl] [job="ID:118, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:116, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.778 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:24:51.887 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=70] [neededSchemaVersion=71] ["start time"=312.359µs] [gotSchemaVersion=71] [phyTblIDs="[116]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:51.888 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=118] [version=71] [2024/05/06 09:24:51.888 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=71] ["take time"=2.071153ms] [job="ID:118, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:116, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.778 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:51.893 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=118] [conn=12] [category=ddl] [job="ID:118, Type:modify column, State:running, SchemaState:none, SchemaID:2, TableID:116, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.778 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:24:51.894 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=118] [conn=12] [category=ddl] [job="ID:118, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:116, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.778 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:24:51.897 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=71] [neededSchemaVersion=72] ["start time"=304.214µs] [gotSchemaVersion=72] [phyTblIDs="[116]"] [actionTypes="[61]"] [diffTypes="[\"alter table multi-schema change\"]"] [2024/05/06 09:24:51.898 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=118] [version=72] [2024/05/06 09:24:51.899 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=72] ["take time"=2.670306ms] [job="ID:118, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:116, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.778 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:51.912 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=118] [2024/05/06 09:24:51.917 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=118] [jobType="alter table multi-schema change"] [2024/05/06 09:24:51.917 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=118] [conn=12] [job="ID:118, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:116, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.778 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:51.923 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=118] [2024/05/06 09:24:51.923 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:51.925 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=12] [schemaVersion=72] [cur_db=test] [sql="drop table if exists t"] [user=] [2024/05/06 09:24:51.927 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:119, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:116, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:51.926 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:51.928 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:119, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:116, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:51.926 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="drop table if exists t"] [2024/05/06 09:24:51.942 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=119] [conn=12] [category=ddl] [job="ID:119, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:116, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.926 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.952 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=72] [neededSchemaVersion=73] ["start time"=105.169µs] [gotSchemaVersion=73] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:51.963 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=119] [version=73] [2024/05/06 09:24:51.964 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=73] ["take time"=12.563216ms] [job="ID:119, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:116, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:51.926 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.970 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=119] [conn=12] [category=ddl] [job="ID:119, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:116, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.926 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.973 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=73] [neededSchemaVersion=74] ["start time"=46.543µs] [gotSchemaVersion=74] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:51.974 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=119] [version=74] [2024/05/06 09:24:51.976 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=74] ["take time"=2.859055ms] [job="ID:119, Type:drop table, State:running, SchemaState:delete only, SchemaID:2, TableID:116, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.926 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.981 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=119] [conn=12] [category=ddl] [job="ID:119, Type:drop table, State:running, SchemaState:delete only, SchemaID:2, TableID:116, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:51.926 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.984 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=74] [neededSchemaVersion=75] ["start time"=44.866µs] [gotSchemaVersion=75] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:51.985 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=119] [version=75] [2024/05/06 09:24:51.986 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=75] ["take time"=2.190511ms] [job="ID:119, Type:drop table, State:done, SchemaState:none, SchemaID:2, TableID:116, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:51.926 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:51.993 +00:00] [INFO] [delete_range.go:447] ["insert into delete-range table"] [category=ddl] [jobID=119] [tableIDs="[116]"] [comment="drop table: table ID"] [2024/05/06 09:24:51.995 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=119] [jobType="drop table"] [2024/05/06 09:24:51.996 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=119] [conn=12] [job="ID:119, Type:drop table, State:synced, SchemaState:none, SchemaID:2, TableID:116, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:51.926 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.005 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=119] [elementID=1] [startKey=748000000000000074] [endKey=748000000000000075] [2024/05/06 09:24:52.006 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=119] [2024/05/06 09:24:52.006 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:52.007 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=12] [schemaVersion=75] [cur_db=test] [sql="create table t (a int default 1, b int default 2)"] [user=] [2024/05/06 09:24:52.010 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:121, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:120, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:52.008 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:52.010 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:121, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:120, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:52.008 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create table t (a int default 1, b int default 2)"] [2024/05/06 09:24:52.018 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=121] [conn=12] [category=ddl] [job="ID:121, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.008 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.021 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=75] [neededSchemaVersion=76] ["start time"=228.592µs] [gotSchemaVersion=76] [phyTblIDs="[120]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:52.022 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=121] [version=76] [2024/05/06 09:24:52.023 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=76] ["take time"=3.042646ms] [job="ID:121, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:120, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:52.008 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.030 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=121] [conn=12] [job="ID:121, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.008 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.037 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=121] [2024/05/06 09:24:52.037 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:52.042 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=12] [schemaVersion=76] [cur_db=test] [sql="alter table t add column c int default 3, rename column b to d;"] [user=] [2024/05/06 09:24:52.045 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:122, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.043 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:52.045 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:122, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.043 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add column c int default 3, rename column b to d;"] [2024/05/06 09:24:52.053 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:122, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.043 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.054 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=122] [conn=12] [category=ddl] [job="ID:122, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.043 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:24:52.055 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:122, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:120, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:52.043 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [columnInfo="{\"id\":3,\"name\":{\"O\":\"c\",\"L\":\"c\"},\"offset\":2,\"origin_default\":\"3\",\"origin_default_bit\":null,\"default\":\"3\",\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{},\"state\":0,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2}"] [2024/05/06 09:24:52.055 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:122, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.043 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.059 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=76] [neededSchemaVersion=77] ["start time"=274.865µs] [gotSchemaVersion=77] [phyTblIDs="[120]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:52.060 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=122] [version=77] [2024/05/06 09:24:52.061 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=77] ["take time"=2.793743ms] [job="ID:122, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.043 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.066 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:122, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.043 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.066 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=122] [conn=12] [category=ddl] [job="ID:122, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.043 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:24:52.067 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:122, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.043 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.069 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=77] [neededSchemaVersion=78] ["start time"=252.721µs] [gotSchemaVersion=78] [phyTblIDs="[120]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:52.070 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=122] [version=78] [2024/05/06 09:24:52.071 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=78] ["take time"=2.845391ms] [job="ID:122, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.043 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.077 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:122, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.043 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.079 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=122] [conn=12] [category=ddl] [job="ID:122, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.043 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:24:52.079 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:122, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.043 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.081 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=78] [neededSchemaVersion=79] ["start time"=262.926µs] [gotSchemaVersion=79] [phyTblIDs="[120]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:52.083 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=122] [version=79] [2024/05/06 09:24:52.084 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=79] ["take time"=2.787132ms] [job="ID:122, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.043 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.091 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:122, Type:alter table multi-schema change, State:cancelling, SchemaState:none, SchemaID:2, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.043 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.093 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 66, tp general"] [category=ddl] [jobID=122] [conn=12] [job="ID:122, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.043 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:24:52.093 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:122, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.043 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.094 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=122] [2024/05/06 09:24:52.099 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:122, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.043 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.099 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=122] [conn=12] [category=ddl] [job="ID:122, Type:add column, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.043 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:24:52.100 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 66, tp general"] [category=ddl] [jobID=122] [conn=12] [job="ID:122, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:120, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:52.043 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:24:52.100 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:122, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.043 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.102 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=79] [neededSchemaVersion=80] ["start time"=239.851µs] [gotSchemaVersion=80] [phyTblIDs="[120]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:52.103 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=122] [version=80] [2024/05/06 09:24:52.105 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=80] ["take time"=3.059677ms] [job="ID:122, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.043 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.111 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:122, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.043 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.111 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=122] [conn=12] [category=ddl] [job="ID:122, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.043 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:24:52.112 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:122, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.043 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.114 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=80] [neededSchemaVersion=81] ["start time"=275.336µs] [gotSchemaVersion=81] [phyTblIDs="[120]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:52.115 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=122] [version=81] [2024/05/06 09:24:52.115 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=81] ["take time"=2.063221ms] [job="ID:122, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.043 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.125 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:122, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.043 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.125 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=122] [conn=12] [category=ddl] [job="ID:122, Type:add column, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.043 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:24:52.128 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:122, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.043 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.130 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=81] [neededSchemaVersion=82] ["start time"=252.707µs] [gotSchemaVersion=82] [phyTblIDs="[120]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:52.132 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=122] [version=82] [2024/05/06 09:24:52.132 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=82] ["take time"=2.458377ms] [job="ID:122, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.043 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.148 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:122, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.043 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.148 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:122, Type:alter table multi-schema change, State:rollback done, SchemaState:none, SchemaID:2, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.043 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.150 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=122] [2024/05/06 09:24:52.157 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=122] [conn=12] [job="ID:122, Type:alter table multi-schema change, State:rollback done, SchemaState:none, SchemaID:2, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.043 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.161 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=122] [2024/05/06 09:24:52.162 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=122] [2024/05/06 09:24:52.162 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:24:52.162 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=76] [error="[ddl:8214]Cancelled DDL job"] [errorVerbose="[ddl:8214]Cancelled DDL job\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).DoDDLJob\n\tpkg/ddl/ddl.go:1293\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).MultiSchemaChange\n\tpkg/ddl/multi_schema_change.go:66\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:4095\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterTable\n\tpkg/executor/ddl.go:388\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:152\ngithub.com/pingcap/tidb/pkg/executor/internal/exec.Next\n\tpkg/executor/internal/exec/executor.go:410\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).next\n\tpkg/executor/adapter.go:1211\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelayExecutor\n\tpkg/executor/adapter.go:960\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).handleNoDelay\n\tpkg/executor/adapter.go:794\ngithub.com/pingcap/tidb/pkg/executor.(*ExecStmt).Exec\n\tpkg/executor/adapter.go:559\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2280\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestMultiSchemaChangeRenameColumns\n\tpkg/ddl/multi_schema_change_test.go:220\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 12,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:52.164 +00:00] [WARN] [session.go:2111] ["compile SQL failed"] [error="[planner:1054]Unknown column 'd' in 'field list'"] [errorVerbose="[planner:1054]Unknown column 'd' in 'field list'\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.(*Error).GenWithStackByArgs\n\texternal/com_github_pingcap_errors/normalize.go:175\ngithub.com/pingcap/tidb/pkg/planner/core.(*expressionRewriter).toColumn\n\tpkg/planner/core/expression_rewriter.go:2446\ngithub.com/pingcap/tidb/pkg/planner/core.(*expressionRewriter).Leave\n\tpkg/planner/core/expression_rewriter.go:1462\ngithub.com/pingcap/tidb/pkg/parser/ast.(*ColumnName).Accept\n\tpkg/parser/ast/expressions.go:534\ngithub.com/pingcap/tidb/pkg/parser/ast.(*ColumnNameExpr).Accept\n\tpkg/parser/ast/expressions.go:607\ngithub.com/pingcap/tidb/pkg/planner/core.rewriteExprNode\n\tpkg/planner/core/expression_rewriter.go:302\ngithub.com/pingcap/tidb/pkg/planner/core.(*PlanBuilder).rewriteWithPreprocess\n\tpkg/planner/core/expression_rewriter.go:241\ngithub.com/pingcap/tidb/pkg/planner/core.(*PlanBuilder).buildProjection\n\tpkg/planner/core/logical_plan_builder.go:1709\ngithub.com/pingcap/tidb/pkg/planner/core.(*PlanBuilder).buildSelect\n\tpkg/planner/core/logical_plan_builder.go:4250\ngithub.com/pingcap/tidb/pkg/planner/core.(*PlanBuilder).Build\n\tpkg/planner/core/planbuilder.go:539\ngithub.com/pingcap/tidb/pkg/planner.buildLogicalPlan\n\tpkg/planner/optimize.go:549\ngithub.com/pingcap/tidb/pkg/planner.optimize\n\tpkg/planner/optimize.go:466\ngithub.com/pingcap/tidb/pkg/planner.Optimize\n\tpkg/planner/optimize.go:334\ngithub.com/pingcap/tidb/pkg/executor.(*Compiler).Compile\n\tpkg/executor/compiler.go:102\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2089\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestMultiSchemaChangeRenameColumns\n\tpkg/ddl/multi_schema_change_test.go:223\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [SQL="select d from t"] [2024/05/06 09:24:52.164 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=12] [schemaVersion=82] [cur_db=test] [sql="drop table if exists t"] [user=] [2024/05/06 09:24:52.167 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:123, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:120, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:52.165 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:52.167 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:123, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:120, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:52.165 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="drop table if exists t"] [2024/05/06 09:24:52.176 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=123] [conn=12] [category=ddl] [job="ID:123, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.165 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.181 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=82] [neededSchemaVersion=83] ["start time"=71.907µs] [gotSchemaVersion=83] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:52.183 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=123] [version=83] [2024/05/06 09:24:52.185 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=83] ["take time"=4.136975ms] [job="ID:123, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:120, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:52.165 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.191 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=123] [conn=12] [category=ddl] [job="ID:123, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.165 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.194 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=83] [neededSchemaVersion=84] ["start time"=50.174µs] [gotSchemaVersion=84] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:52.196 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=123] [version=84] [2024/05/06 09:24:52.196 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=84] ["take time"=2.127037ms] [job="ID:123, Type:drop table, State:running, SchemaState:delete only, SchemaID:2, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.165 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.202 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=123] [conn=12] [category=ddl] [job="ID:123, Type:drop table, State:running, SchemaState:delete only, SchemaID:2, TableID:120, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.165 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.205 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=84] [neededSchemaVersion=85] ["start time"=52.111µs] [gotSchemaVersion=85] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:52.206 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=123] [version=85] [2024/05/06 09:24:52.207 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=85] ["take time"=2.008316ms] [job="ID:123, Type:drop table, State:done, SchemaState:none, SchemaID:2, TableID:120, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:52.165 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.211 +00:00] [INFO] [delete_range.go:447] ["insert into delete-range table"] [category=ddl] [jobID=123] [tableIDs="[120]"] [comment="drop table: table ID"] [2024/05/06 09:24:52.212 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=123] [jobType="drop table"] [2024/05/06 09:24:52.213 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=123] [conn=12] [job="ID:123, Type:drop table, State:synced, SchemaState:none, SchemaID:2, TableID:120, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:52.165 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.218 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=123] [elementID=1] [startKey=748000000000000078] [endKey=748000000000000079] [2024/05/06 09:24:52.218 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=123] [2024/05/06 09:24:52.218 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:52.219 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=12] [schemaVersion=85] [cur_db=test] [sql="create table t (a int default 1, b int default 2)"] [user=] [2024/05/06 09:24:52.221 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:125, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:124, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:52.22 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:52.221 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:125, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:124, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:52.22 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create table t (a int default 1, b int default 2)"] [2024/05/06 09:24:52.234 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=125] [conn=12] [category=ddl] [job="ID:125, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:124, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.22 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.238 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=85] [neededSchemaVersion=86] ["start time"=211.642µs] [gotSchemaVersion=86] [phyTblIDs="[124]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:52.239 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=125] [version=86] [2024/05/06 09:24:52.240 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=86] ["take time"=2.890742ms] [job="ID:125, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:124, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:52.22 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.247 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=125] [conn=12] [job="ID:125, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:124, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.22 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.251 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=125] [2024/05/06 09:24:52.251 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:52.252 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=12] [schemaVersion=86] [cur_db=test] [sql="alter table t add column c int default 3, rename column b to d;"] [user=] [2024/05/06 09:24:52.255 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:126, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:124, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.254 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:24:52.255 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:126, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:124, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.254 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add column c int default 3, rename column b to d;"] [2024/05/06 09:24:52.262 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:126, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:124, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.254 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.262 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=126] [conn=12] [category=ddl] [job="ID:126, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:124, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.254 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:24:52.262 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:126, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:124, RowCount:0, ArgLen:4, start time: 2024-05-06 09:24:52.254 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [columnInfo="{\"id\":3,\"name\":{\"O\":\"c\",\"L\":\"c\"},\"offset\":2,\"origin_default\":\"3\",\"origin_default_bit\":null,\"default\":\"3\",\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{},\"state\":0,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2}"] [2024/05/06 09:24:52.263 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:126, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:124, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.254 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.266 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=86] [neededSchemaVersion=87] ["start time"=263.788µs] [gotSchemaVersion=87] [phyTblIDs="[124]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:52.268 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=126] [version=87] [2024/05/06 09:24:52.271 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=87] ["take time"=5.410052ms] [job="ID:126, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:124, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.254 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.272 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:126, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:124, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.254 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.278 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:126, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:124, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.254 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.278 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=126] [conn=12] [category=ddl] [job="ID:126, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:124, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.254 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:24:52.279 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:126, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:124, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.254 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.281 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=87] [neededSchemaVersion=88] ["start time"=246.191µs] [gotSchemaVersion=88] [phyTblIDs="[124]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:52.282 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=126] [version=88] [2024/05/06 09:24:52.284 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=88] ["take time"=3.053209ms] [job="ID:126, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:124, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.254 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.284 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:126, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:124, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.254 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.289 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:126, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:124, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.254 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.289 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=126] [conn=12] [category=ddl] [job="ID:126, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:124, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.254 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:24:52.289 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:126, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:124, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.254 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.291 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=88] [neededSchemaVersion=89] ["start time"=220.258µs] [gotSchemaVersion=89] [phyTblIDs="[124]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:24:52.292 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=126] [version=89] [2024/05/06 09:24:52.293 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=89] ["take time"=2.177405ms] [job="ID:126, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:124, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.254 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.294 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:126, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:124, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.254 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.298 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:126, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:124, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.254 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.299 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=126] [conn=12] [category=ddl] [job="ID:126, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:124, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.254 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:24:52.300 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:126, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:124, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.254 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.301 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=126] [2024/05/06 09:24:52.302 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:126, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:124, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.254 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.307 +00:00] [INFO] [runaway.go:158] ["preparations for the runaway manager are finished and start runaway manager loop"] [2024/05/06 09:24:52.307 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=runawayRecordFlushLoop] [2024/05/06 09:24:52.307 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=runawayWatchSyncLoop] [2024/05/06 09:24:52.307 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=runawayStartLoop] [2024/05/06 09:24:52.311 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:126, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:124, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.254 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.312 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=126] [conn=12] [category=ddl] [job="ID:126, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:124, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.254 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:24:52.313 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=126] [conn=12] [category=ddl] [job="ID:126, Type:modify column, State:running, SchemaState:none, SchemaID:2, TableID:124, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.254 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:24:52.313 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:126, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:124, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.254 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.316 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=89] [neededSchemaVersion=90] ["start time"=270.107µs] [gotSchemaVersion=90] [phyTblIDs="[124]"] [actionTypes="[61]"] [diffTypes="[\"alter table multi-schema change\"]"] [2024/05/06 09:24:52.320 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=126] [version=90] [2024/05/06 09:24:52.324 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=90] ["take time"=8.358846ms] [job="ID:126, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:124, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.254 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.325 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:126, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:124, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.254 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.330 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:126, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:124, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.254 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.330 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:126, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:124, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.254 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.332 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=126] [2024/05/06 09:24:52.332 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:126, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:124, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.254 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.337 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=126] [jobType="alter table multi-schema change"] [2024/05/06 09:24:52.337 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 66, tp general"] [category=ddl] [jobID=126] [conn=12] [job="ID:126, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:124, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.254 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.342 +00:00] [INFO] [runtime.go:160] ["TimerGroupRuntime loop started"] [groupID=ttl] [2024/05/06 09:24:52.342 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:126, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:124, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:52.254 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:24:52.342 +00:00] [INFO] [runtime.go:402] ["create watch chan if possible for timer runtime"] [groupID=ttl] [storeSupportWatch=true] [2024/05/06 09:24:52.347 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=126] [2024/05/06 09:24:52.347 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:52.348 +00:00] [INFO] [slots.go:205] ["initialize slot capacity"] [capacity=16] [2024/05/06 09:24:52.349 +00:00] [WARN] [session.go:2111] ["compile SQL failed"] [error="[planner:1054]Unknown column 'b' in 'field list'"] [errorVerbose="[planner:1054]Unknown column 'b' in 'field list'\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.(*Error).GenWithStackByArgs\n\texternal/com_github_pingcap_errors/normalize.go:175\ngithub.com/pingcap/tidb/pkg/planner/core.(*expressionRewriter).toColumn\n\tpkg/planner/core/expression_rewriter.go:2446\ngithub.com/pingcap/tidb/pkg/planner/core.(*expressionRewriter).Leave\n\tpkg/planner/core/expression_rewriter.go:1462\ngithub.com/pingcap/tidb/pkg/parser/ast.(*ColumnName).Accept\n\tpkg/parser/ast/expressions.go:534\ngithub.com/pingcap/tidb/pkg/parser/ast.(*ColumnNameExpr).Accept\n\tpkg/parser/ast/expressions.go:607\ngithub.com/pingcap/tidb/pkg/planner/core.rewriteExprNode\n\tpkg/planner/core/expression_rewriter.go:302\ngithub.com/pingcap/tidb/pkg/planner/core.(*PlanBuilder).rewriteWithPreprocess\n\tpkg/planner/core/expression_rewriter.go:241\ngithub.com/pingcap/tidb/pkg/planner/core.(*PlanBuilder).buildProjection\n\tpkg/planner/core/logical_plan_builder.go:1709\ngithub.com/pingcap/tidb/pkg/planner/core.(*PlanBuilder).buildSelect\n\tpkg/planner/core/logical_plan_builder.go:4250\ngithub.com/pingcap/tidb/pkg/planner/core.(*PlanBuilder).Build\n\tpkg/planner/core/planbuilder.go:539\ngithub.com/pingcap/tidb/pkg/planner.buildLogicalPlan\n\tpkg/planner/optimize.go:549\ngithub.com/pingcap/tidb/pkg/planner.optimize\n\tpkg/planner/optimize.go:466\ngithub.com/pingcap/tidb/pkg/planner.Optimize\n\tpkg/planner/optimize.go:334\ngithub.com/pingcap/tidb/pkg/executor.(*Compiler).Compile\n\tpkg/executor/compiler.go:102\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2089\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).MustGetErrCode\n\tpkg/testkit/testkit.go:469\ngithub.com/pingcap/tidb/pkg/ddl_test.TestMultiSchemaChangeRenameColumns\n\tpkg/ddl/multi_schema_change_test.go:241\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [SQL="select b from t"] [2024/05/06 09:24:52.351 +00:00] [INFO] [mock.go:106] ["owner manager is canceled"] [category=ddl] [ID=ea95070f-6d6f-4bc4-973d-455a511efa6a] [ownerKey=/tidb/ddl/fg/owner] [2024/05/06 09:24:52.351 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:52.351 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 68, tp add index"] [category=ddl] ["take time"=5.977µs] [2024/05/06 09:24:52.351 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 69, tp add index"] [category=ddl] ["take time"=4.767µs] [2024/05/06 09:24:52.351 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 70, tp add index"] [category=ddl] ["take time"=4.211µs] [2024/05/06 09:24:52.351 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 67, tp add index"] [category=ddl] ["take time"=4.689µs] [2024/05/06 09:24:52.352 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:52.352 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 66, tp general"] [category=ddl] ["take time"=1.222µs] [2024/05/06 09:24:52.352 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:52.352 +00:00] [INFO] [delete_range.go:162] ["closing delRange"] [category=ddl] [2024/05/06 09:24:52.352 +00:00] [INFO] [session_pool.go:99] ["closing session pool"] [category=ddl] [2024/05/06 09:24:52.352 +00:00] [INFO] [scheduler_manager.go:200] ["schedule task loop start"] [server-id=:4000] [2024/05/06 09:24:52.352 +00:00] [INFO] [scheduler_manager.go:312] ["subtask table gc loop start"] [server-id=:4000] [2024/05/06 09:24:52.352 +00:00] [INFO] [scheduler_manager.go:373] ["cleanup loop start"] [server-id=:4000] [2024/05/06 09:24:52.352 +00:00] [INFO] [scheduler_manager.go:453] ["collect loop start"] [server-id=:4000] [2024/05/06 09:24:52.354 +00:00] [INFO] [ddl.go:951] ["DDL closed"] [category=ddl] [ID=ea95070f-6d6f-4bc4-973d-455a511efa6a] ["take time"=3.297824ms] [2024/05/06 09:24:52.354 +00:00] [INFO] [ddl.go:769] ["stop DDL"] [category=ddl] [ID=ea95070f-6d6f-4bc4-973d-455a511efa6a] [2024/05/06 09:24:52.355 +00:00] [INFO] [domain.go:1026] ["stopping ttlJobManager"] [2024/05/06 09:24:52.361 +00:00] [INFO] [runtime.go:190] ["TimerGroupRuntime loop exit"] [groupID=ttl] [2024/05/06 09:24:52.361 +00:00] [INFO] [task_manager.go:194] ["shrink ttl worker"] [ttl-worker=job-manager] [ttl-worker=task-manager] [originalCount=4] [newCount=0] [2024/05/06 09:24:52.361 +00:00] [INFO] [scan.go:309] ["ttlScanWorker loop exited."] [2024/05/06 09:24:52.361 +00:00] [INFO] [scan.go:309] ["ttlScanWorker loop exited."] [2024/05/06 09:24:52.361 +00:00] [INFO] [scan.go:309] ["ttlScanWorker loop exited."] [2024/05/06 09:24:52.361 +00:00] [INFO] [scan.go:309] ["ttlScanWorker loop exited."] [2024/05/06 09:24:52.361 +00:00] [INFO] [task_manager.go:194] ["shrink ttl worker"] [ttl-worker=job-manager] [ttl-worker=task-manager] [originalCount=4] [newCount=0] [2024/05/06 09:24:52.361 +00:00] [INFO] [del.go:261] ["ttlDeleteWorker loop exited."] [2024/05/06 09:24:52.361 +00:00] [INFO] [del.go:261] ["ttlDeleteWorker loop exited."] [2024/05/06 09:24:52.361 +00:00] [INFO] [del.go:261] ["ttlDeleteWorker loop exited."] [2024/05/06 09:24:52.362 +00:00] [INFO] [del.go:261] ["ttlDeleteWorker loop exited."] [2024/05/06 09:24:52.362 +00:00] [INFO] [job_manager.go:174] ["ttlJobManager loop exited."] [ttl-worker=job-manager] [2024/05/06 09:24:52.362 +00:00] [INFO] [domain.go:1037] ["ttlJobManager exited."] [2024/05/06 09:24:52.362 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=runawayWatchSyncLoop] [2024/05/06 09:24:52.362 +00:00] [INFO] [mock.go:106] ["owner manager is canceled"] [category=ddl] [ID=ea95070f-6d6f-4bc4-973d-455a511efa6a] [ownerKey=/tidb/stats/owner] [2024/05/06 09:24:52.362 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=mdlCheckLoop] [2024/05/06 09:24:52.362 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=quitStatsOwner] [2024/05/06 09:24:52.363 +00:00] [INFO] [domain.go:1542] ["stopping dist task scheduler manager because the current node is not DDL owner anymore"] [id=ea95070f-6d6f-4bc4-973d-455a511efa6a] [2024/05/06 09:24:52.363 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=loadSigningCertLoop] [2024/05/06 09:24:52.363 +00:00] [INFO] [domain.go:907] ["loadSchemaInLoop exited."] [2024/05/06 09:24:52.363 +00:00] [INFO] [stats_syncload.go:202] ["SubLoadWorker exited."] [2024/05/06 09:24:52.363 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=loadSchemaInLoop] [2024/05/06 09:24:52.363 +00:00] [INFO] [stats_syncload.go:202] ["SubLoadWorker exited."] [2024/05/06 09:24:52.363 +00:00] [INFO] [stats_syncload.go:202] ["SubLoadWorker exited."] [2024/05/06 09:24:52.363 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=runawayRecordFlushLoop] [2024/05/06 09:24:52.363 +00:00] [INFO] [stats_syncload.go:202] ["SubLoadWorker exited."] [2024/05/06 09:24:52.363 +00:00] [INFO] [scheduler_manager.go:459] ["collect loop exits"] [server-id=:4000] [2024/05/06 09:24:52.363 +00:00] [INFO] [scheduler_manager.go:379] ["cleanup loop exits"] [server-id=:4000] [2024/05/06 09:24:52.363 +00:00] [INFO] [domain.go:761] ["topologySyncerKeeper exited."] [2024/05/06 09:24:52.363 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=topologySyncerKeeper] [2024/05/06 09:24:52.363 +00:00] [INFO] [domain.go:2352] ["indexUsageWorker exited."] [2024/05/06 09:24:52.363 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=indexUsageWorker] [2024/05/06 09:24:52.363 +00:00] [INFO] [domain.go:2074] ["dumpFileGcChecker exited."] [2024/05/06 09:24:52.363 +00:00] [INFO] [scheduler_manager.go:318] ["subtask history table gc loop exits"] [server-id=:4000] [2024/05/06 09:24:52.363 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=dumpFileGcChecker] [2024/05/06 09:24:52.363 +00:00] [INFO] [scheduler_manager.go:206] ["schedule task loop exits"] [server-id=:4000] [2024/05/06 09:24:52.363 +00:00] [INFO] [stats_syncload.go:202] ["SubLoadWorker exited."] [2024/05/06 09:24:52.363 +00:00] [INFO] [domain.go:1544] ["dist task scheduler manager stopped"] [id=ea95070f-6d6f-4bc4-973d-455a511efa6a] [2024/05/06 09:24:52.363 +00:00] [INFO] [domain.go:1527] ["stopping dist task executor manager"] [2024/05/06 09:24:52.363 +00:00] [INFO] [domain.go:1750] ["LoadSysVarCacheLoop exited."] [2024/05/06 09:24:52.363 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=LoadSysVarCacheLoop] [2024/05/06 09:24:52.363 +00:00] [INFO] [domain.go:683] ["topNSlowQueryLoop exited."] [2024/05/06 09:24:52.363 +00:00] [INFO] [domain.go:1700] ["loadPrivilegeInLoop exited."] [2024/05/06 09:24:52.363 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=topNSlowQueryLoop] [2024/05/06 09:24:52.363 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=loadPrivilegeInLoop] [2024/05/06 09:24:52.363 +00:00] [INFO] [domain.go:737] ["globalConfigSyncerKeeper exited."] [2024/05/06 09:24:52.363 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=globalConfigSyncerKeeper] [2024/05/06 09:24:52.363 +00:00] [INFO] [domain.go:711] ["infoSyncerKeeper exited."] [2024/05/06 09:24:52.363 +00:00] [INFO] [mock.go:106] ["owner manager is canceled"] [category=ddl] [ID=ea95070f-6d6f-4bc4-973d-455a511efa6a] [ownerKey=/tidb/bindinfo/owner] [2024/05/06 09:24:52.363 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=infoSyncerKeeper] [2024/05/06 09:24:52.363 +00:00] [INFO] [domain.go:1889] ["globalBindHandleWorkerLoop exited."] [2024/05/06 09:24:52.363 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=globalBindHandleWorkerLoop] [2024/05/06 09:24:52.363 +00:00] [INFO] [domain.go:1361] ["closestReplicaReadCheckLoop exited."] [2024/05/06 09:24:52.363 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=closestReplicaReadCheckLoop] [2024/05/06 09:24:52.363 +00:00] [INFO] [manager.go:179] ["handle tasks loop done"] [server-id=:4000] [2024/05/06 09:24:52.363 +00:00] [INFO] [manager.go:280] ["recoverMetaLoop done"] [server-id=:4000] [2024/05/06 09:24:52.363 +00:00] [INFO] [domain.go:1529] ["dist task executor manager stopped"] [2024/05/06 09:24:52.363 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=distTaskFrameworkLoop] [2024/05/06 09:24:52.364 +00:00] [INFO] [domain.go:1074] ["domain closed"] ["take time"=12.77548ms] [2024/05/06 09:24:52.365 +00:00] [INFO] [db.go:567] ["Closing database"] [2024/05/06 09:24:52.366 +00:00] [INFO] [db.go:592] ["Memtable flushed"] [2024/05/06 09:24:52.366 +00:00] [INFO] [db.go:596] ["Compaction finished"] [2024/05/06 09:24:52.366 +00:00] [INFO] [db.go:615] ["BlobManager finished"] [2024/05/06 09:24:52.366 +00:00] [INFO] [db.go:619] ["ResourceManager finished"] [2024/05/06 09:24:52.366 +00:00] [INFO] [db.go:625] ["Waiting for closer"] --- PASS: TestMultiSchemaChangeRenameColumns (3.56s) === RUN TestTxnScopeConstraint [2024/05/06 09:24:52.373 +00:00] [INFO] [store_cache.go:510] ["change store resolve state"] [store=1] [addr=store1] [from=unresolved] [to=resolved] [liveness-state=reachable] [2024/05/06 09:24:52.373 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:52.373 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:52.374 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:52.374 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:52.375 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:52.377 +00:00] [INFO] [tidb.go:80] ["new domain"] [store=806447cf-7462-417e-9885-4e5bf7e6d0e0] ["ddl lease"=500ms] ["stats lease"=-1ns] [2024/05/06 09:24:52.384 +00:00] [WARN] [controller.go:198] ["[resource group controller] server does not save config, load config failed"] [2024/05/06 09:24:52.384 +00:00] [INFO] [controller.go:185] ["load resource controller config"] [config="{\"degraded-mode-wait-duration\":\"0s\",\"ltb-max-wait-duration\":\"30s\",\"wait-retry-interval\":\"50ms\",\"wait-retry-times\":10,\"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,\"WaitRetryInterval\":50000000,\"WaitRetryTimes\":10,\"DegradedModeWaitDuration\":0}"] [2024/05/06 09:24:52.384 +00:00] [WARN] [domain.go:245] ["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:335\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).loadInfoSchema\n\tpkg/domain/domain.go:242\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).Reload\n\tpkg/domain/domain.go:606\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).Init\n\tpkg/domain/domain.go:1260\ngithub.com/pingcap/tidb/pkg/session.(*domainMap).Get.func1\n\tpkg/session/tidb.go:92\ngithub.com/pingcap/tidb/pkg/util.RunWithRetry\n\tpkg/util/misc.go:70\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:3620\ngithub.com/pingcap/tidb/pkg/session.createSession\n\tpkg/session/session.go:3612\ngithub.com/pingcap/tidb/pkg/session.runInBootstrapSession\n\tpkg/session/session.go:3562\ngithub.com/pingcap/tidb/pkg/session.bootstrapSessionImpl\n\tpkg/session/session.go:3346\ngithub.com/pingcap/tidb/pkg/session.BootstrapSession\n\tpkg/session/session.go:3312\ngithub.com/pingcap/tidb/pkg/testkit.bootstrap\n\tpkg/testkit/mockstore.go:294\ngithub.com/pingcap/tidb/pkg/testkit.CreateMockStoreAndDomain\n\tpkg/testkit/mockstore.go:265\ngithub.com/pingcap/tidb/pkg/ddl_test.TestTxnScopeConstraint\n\tpkg/ddl/placement_sql_test.go:33\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [version=0] [2024/05/06 09:24:52.415 +00:00] [INFO] [domain.go:315] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=0] ["start time"=30.45747ms] [2024/05/06 09:24:52.416 +00:00] [INFO] [domain.go:635] ["full load and reset schema validator"] [2024/05/06 09:24:52.416 +00:00] [INFO] [ddl.go:818] ["start DDL"] [category=ddl] [ID=de3e1507-6714-47d5-8b49-5daf9b39d02c] [runWorker=true] [2024/05/06 09:24:52.416 +00:00] [INFO] [ddl.go:777] ["start delRangeManager OK"] [category=ddl] ["is a emulator"=true] [2024/05/06 09:24:52.416 +00:00] [INFO] [delete_range.go:172] ["start delRange emulator"] [category=ddl] [2024/05/06 09:24:52.416 +00:00] [INFO] [job_table.go:334] ["get global state and global state change"] [category=ddl] [oldState=false] [currState=false] [2024/05/06 09:24:52.416 +00:00] [WARN] [env.go:51] ["initialize environment failed"] [category=ddl-ingest] ["storage limitation"="only support TiKV storage"] ["current storage"=unistore] ["lightning is initialized"=false] [2024/05/06 09:24:52.417 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=loadSchemaInLoop] [2024/05/06 09:24:52.417 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=mdlCheckLoop] [2024/05/06 09:24:52.417 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=topNSlowQueryLoop] [2024/05/06 09:24:52.417 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=infoSyncerKeeper] [2024/05/06 09:24:52.417 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=globalConfigSyncerKeeper] [2024/05/06 09:24:52.417 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=runawayStartLoop] [2024/05/06 09:24:52.417 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=requestUnitsWriterLoop] [2024/05/06 09:24:52.417 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=topologySyncerKeeper] [2024/05/06 09:24:52.417 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=closestReplicaReadCheckLoop] [2024/05/06 09:24:52.417 +00:00] [WARN] [domain.go:1326] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 09:24:52.417 +00:00] [INFO] [runaway.go:149] ["try to start runaway manager loop"] [2024/05/06 09:24:52.417 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=requestUnitsWriterLoop] [2024/05/06 09:24:52.418 +00:00] [INFO] [controller.go:447] ["[resource group controller] create resource group cost controller"] [name=default] [2024/05/06 09:24:52.419 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=0] [cur_db=mysql] [sql="CREATE DATABASE IF NOT EXISTS test"] [user=] [2024/05/06 09:24:52.422 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:52.42 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:52.422 +00:00] [INFO] [ddl.go:1182] ["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 09:24:52.42 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE DATABASE IF NOT EXISTS test"] [2024/05/06 09:24:52.467 +00:00] [INFO] [job_table.go:334] ["get global state and global state change"] [category=ddl] [oldState=false] [currState=false] [2024/05/06 09:24:52.467 +00:00] [INFO] [job_table.go:349] ["the owner sets owner operator value"] [category=ddl] [ownerOp=none] [2024/05/06 09:24:52.474 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:52.42 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.514 +00:00] [INFO] [domain.go:315] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=1] ["start time"=38.112625ms] [2024/05/06 09:24:52.519 +00:00] [INFO] [domain.go:635] ["full load and reset schema validator"] [2024/05/06 09:24:52.522 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:52.522 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=3] [version=1] [2024/05/06 09:24:52.523 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=1] ["take time"=46.649636ms] [job="ID:3, Type:create schema, State:done, SchemaState:public, SchemaID:2, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:52.42 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.529 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:52.42 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.532 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=3] [2024/05/06 09:24:52.532 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:52.533 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=1] [cur_db=mysql] [sql="CREATE DATABASE IF NOT EXISTS `mysql`"] [user=] [2024/05/06 09:24:52.534 +00:00] [INFO] [session.go:3945] ["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 09:24:52.545 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:52.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:52.545 +00:00] [INFO] [ddl.go:1182] ["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 09:24:52.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:52.558 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:52.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.569 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=1] [neededSchemaVersion=2] ["start time"=1.335824ms] [gotSchemaVersion=2] [phyTblIDs="[4]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:52.575 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:52.575 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=5] [version=2] [2024/05/06 09:24:52.576 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=2] ["take time"=8.649946ms] [job="ID:5, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:4, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:52.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.607 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:52.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.618 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=5] [2024/05/06 09:24:52.621 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:52.632 +00:00] [INFO] [session.go:3945] ["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 09:24:52.640 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:52.638 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:52.640 +00:00] [INFO] [ddl.go:1182] ["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 09:24:52.638 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:52.681 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:52.638 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.690 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=2] [neededSchemaVersion=3] ["start time"=346.574µs] [gotSchemaVersion=3] [phyTblIDs="[6]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:52.691 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:52.692 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=7] [version=3] [2024/05/06 09:24:52.694 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=3] ["take time"=4.901144ms] [job="ID:7, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:6, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:52.638 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.718 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:52.638 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.722 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=7] [2024/05/06 09:24:52.722 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:52.722 +00:00] [INFO] [session.go:3945] ["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 09:24:52.725 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:52.724 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:52.725 +00:00] [INFO] [ddl.go:1182] ["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 09:24:52.724 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:52.735 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:52.724 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.738 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=3] [neededSchemaVersion=4] ["start time"=319.108µs] [gotSchemaVersion=4] [phyTblIDs="[8]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:52.739 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:52.739 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=9] [version=4] [2024/05/06 09:24:52.741 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=4] ["take time"=4.236387ms] [job="ID:9, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:8, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:52.724 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.750 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:52.724 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.754 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=9] [2024/05/06 09:24:52.754 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:52.755 +00:00] [INFO] [session.go:3945] ["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 09:24:52.764 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:52.759 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:52.764 +00:00] [INFO] [ddl.go:1182] ["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 09:24:52.759 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:52.768 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:52.759 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.774 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=4] [neededSchemaVersion=5] ["start time"=721.963µs] [gotSchemaVersion=5] [phyTblIDs="[10]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:52.775 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:52.775 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=11] [version=5] [2024/05/06 09:24:52.778 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=5] ["take time"=4.187873ms] [job="ID:11, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:10, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:52.759 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.788 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:52.759 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.793 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=11] [2024/05/06 09:24:52.793 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:52.794 +00:00] [INFO] [session.go:3945] ["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 09:24:52.797 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:52.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:52.797 +00:00] [INFO] [ddl.go:1182] ["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 09:24:52.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:52.807 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:52.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.813 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=5] [neededSchemaVersion=6] ["start time"=439.194µs] [gotSchemaVersion=6] [phyTblIDs="[12]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:52.815 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:52.815 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=13] [version=6] [2024/05/06 09:24:52.816 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=6] ["take time"=4.261822ms] [job="ID:13, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:12, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:52.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.834 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:52.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.838 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=13] [2024/05/06 09:24:52.838 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:52.839 +00:00] [INFO] [session.go:3945] ["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 09:24:52.842 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:52.84 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:52.842 +00:00] [INFO] [ddl.go:1182] ["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 09:24:52.84 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:52.854 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:52.84 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.858 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=6] [neededSchemaVersion=7] ["start time"=380.535µs] [gotSchemaVersion=7] [phyTblIDs="[14]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:52.859 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:52.859 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=15] [version=7] [2024/05/06 09:24:52.860 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=7] ["take time"=2.03611ms] [job="ID:15, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:14, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:52.84 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.865 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:52.84 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.872 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=15] [2024/05/06 09:24:52.872 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:52.873 +00:00] [INFO] [session.go:3945] ["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 09:24:52.876 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:52.874 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:52.876 +00:00] [INFO] [ddl.go:1182] ["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 09:24:52.874 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:52.883 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:52.874 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.887 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=7] [neededSchemaVersion=8] ["start time"=280.763µs] [gotSchemaVersion=8] [phyTblIDs="[16]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:52.888 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:52.888 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=17] [version=8] [2024/05/06 09:24:52.889 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=8] ["take time"=2.352744ms] [job="ID:17, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:16, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:52.874 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.895 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:52.874 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.899 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=17] [2024/05/06 09:24:52.899 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:52.899 +00:00] [INFO] [session.go:3945] ["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 09:24:52.903 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:52.901 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:52.903 +00:00] [INFO] [ddl.go:1182] ["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 09:24:52.901 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:52.916 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:52.901 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.921 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=8] [neededSchemaVersion=9] ["start time"=300.826µs] [gotSchemaVersion=9] [phyTblIDs="[18]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:52.922 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:52.922 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=19] [version=9] [2024/05/06 09:24:52.923 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=9] ["take time"=2.335264ms] [job="ID:19, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:18, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:52.901 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.933 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:52.901 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.937 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=19] [2024/05/06 09:24:52.937 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:52.938 +00:00] [INFO] [session.go:3945] ["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 09:24:52.942 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:52.94 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:52.942 +00:00] [INFO] [ddl.go:1182] ["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 09:24:52.94 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:52.952 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:52.94 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.956 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=9] [neededSchemaVersion=10] ["start time"=323.586µs] [gotSchemaVersion=10] [phyTblIDs="[20]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:52.957 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:52.957 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=21] [version=10] [2024/05/06 09:24:52.957 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=10] ["take time"=2.098039ms] [job="ID:21, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:20, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:52.94 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.967 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:52.94 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.972 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=21] [2024/05/06 09:24:52.972 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:52.972 +00:00] [INFO] [session.go:3945] ["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 09:24:52.982 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:52.981 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:52.982 +00:00] [INFO] [ddl.go:1182] ["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 09:24:52.981 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:52.990 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:52.981 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:52.993 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=10] [neededSchemaVersion=11] ["start time"=405.882µs] [gotSchemaVersion=11] [phyTblIDs="[22]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:52.995 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:52.995 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=23] [version=11] [2024/05/06 09:24:52.997 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=11] ["take time"=4.125017ms] [job="ID:23, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:22, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:52.981 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.005 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:52.981 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.010 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=23] [2024/05/06 09:24:53.010 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:53.010 +00:00] [INFO] [session.go:3945] ["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 09:24:53.011 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(6291456) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:53.014 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:53.012 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:53.014 +00:00] [INFO] [ddl.go:1182] ["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 09:24:53.012 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:53.022 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:53.012 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.029 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=11] [neededSchemaVersion=12] ["start time"=543.379µs] [gotSchemaVersion=12] [phyTblIDs="[24]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:53.031 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:53.031 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=25] [version=12] [2024/05/06 09:24:53.033 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=12] ["take time"=4.72054ms] [job="ID:25, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:24, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:53.012 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.040 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:53.012 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.045 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=25] [2024/05/06 09:24:53.045 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:53.045 +00:00] [INFO] [session.go:3945] ["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 09:24:53.048 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:53.047 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:53.048 +00:00] [INFO] [ddl.go:1182] ["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 09:24:53.047 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:53.065 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:53.047 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.069 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=12] [neededSchemaVersion=13] ["start time"=411.667µs] [gotSchemaVersion=13] [phyTblIDs="[26]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:53.070 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:53.070 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=27] [version=13] [2024/05/06 09:24:53.070 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=13] ["take time"=2.14566ms] [job="ID:27, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:26, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:53.047 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.084 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:53.047 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.090 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=27] [2024/05/06 09:24:53.091 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:53.091 +00:00] [INFO] [session.go:3945] ["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 09:24:53.098 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:53.094 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:53.098 +00:00] [INFO] [ddl.go:1182] ["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 09:24:53.094 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:53.108 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:53.094 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.113 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=13] [neededSchemaVersion=14] ["start time"=319.255µs] [gotSchemaVersion=14] [phyTblIDs="[28]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:53.114 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:53.114 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=29] [version=14] [2024/05/06 09:24:53.114 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=14] ["take time"=2.027284ms] [job="ID:29, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:28, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:53.094 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.120 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:53.094 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.128 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=29] [2024/05/06 09:24:53.129 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:53.129 +00:00] [INFO] [session.go:3945] ["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 09:24:53.140 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:53.138 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:53.140 +00:00] [INFO] [ddl.go:1182] ["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 09:24:53.138 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:53.147 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:53.138 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.150 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=14] [neededSchemaVersion=15] ["start time"=293.392µs] [gotSchemaVersion=15] [phyTblIDs="[30]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:53.152 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:53.152 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=31] [version=15] [2024/05/06 09:24:53.154 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=15] ["take time"=4.141422ms] [job="ID:31, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:30, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:53.138 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.160 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:53.138 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.164 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=31] [2024/05/06 09:24:53.164 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:53.165 +00:00] [INFO] [session.go:3945] ["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 09:24:53.169 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:53.167 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:53.169 +00:00] [INFO] [ddl.go:1182] ["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 09:24:53.167 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:53.184 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:53.167 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.186 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=15] [neededSchemaVersion=16] ["start time"=277.332µs] [gotSchemaVersion=16] [phyTblIDs="[32]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:53.188 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:53.188 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=33] [version=16] [2024/05/06 09:24:53.188 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=16] ["take time"=2.037201ms] [job="ID:33, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:32, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:53.167 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.199 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:53.167 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.204 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=33] [2024/05/06 09:24:53.204 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:53.204 +00:00] [INFO] [session.go:3945] ["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 09:24:53.208 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:53.206 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:53.208 +00:00] [INFO] [ddl.go:1182] ["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 09:24:53.206 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:53.218 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:53.206 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.225 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=16] [neededSchemaVersion=17] ["start time"=326.052µs] [gotSchemaVersion=17] [phyTblIDs="[34]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:53.226 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:53.226 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=35] [version=17] [2024/05/06 09:24:53.226 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=17] ["take time"=2.009196ms] [job="ID:35, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:34, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:53.206 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.234 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:53.206 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.238 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=35] [2024/05/06 09:24:53.238 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:53.241 +00:00] [INFO] [session.go:3945] ["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 09:24:53.245 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:53.243 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:53.245 +00:00] [INFO] [ddl.go:1182] ["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 09:24:53.243 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:53.257 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:53.243 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.265 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=17] [neededSchemaVersion=18] ["start time"=311.825µs] [gotSchemaVersion=18] [phyTblIDs="[36]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:53.267 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:53.267 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=37] [version=18] [2024/05/06 09:24:53.267 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=18] ["take time"=2.30335ms] [job="ID:37, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:36, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:53.243 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.282 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:53.243 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.285 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=37] [2024/05/06 09:24:53.285 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:53.286 +00:00] [INFO] [session.go:3945] ["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 09:24:53.289 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:53.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:53.289 +00:00] [INFO] [ddl.go:1182] ["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 09:24:53.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:53.311 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:53.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.316 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=18] [neededSchemaVersion=19] ["start time"=452.458µs] [gotSchemaVersion=19] [phyTblIDs="[38]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:53.317 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:53.317 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=39] [version=19] [2024/05/06 09:24:53.323 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=19] ["take time"=8.349003ms] [job="ID:39, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:38, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:53.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.359 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:53.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.363 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=39] [2024/05/06 09:24:53.363 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:53.365 +00:00] [INFO] [session.go:3945] ["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 09:24:53.369 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:53.368 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:53.369 +00:00] [INFO] [ddl.go:1182] ["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 09:24:53.368 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:53.384 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:53.368 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.391 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=19] [neededSchemaVersion=20] ["start time"=334.012µs] [gotSchemaVersion=20] [phyTblIDs="[40]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:53.401 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:53.401 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=41] [version=20] [2024/05/06 09:24:53.402 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=20] ["take time"=12.206134ms] [job="ID:41, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:40, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:53.368 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.407 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:53.368 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.413 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=41] [2024/05/06 09:24:53.413 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:53.413 +00:00] [INFO] [session.go:3945] ["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 09:24:53.418 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:53.416 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:53.418 +00:00] [INFO] [ddl.go:1182] ["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 09:24:53.416 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:53.418 +00:00] [WARN] [runaway.go:166] ["failed to start runaway manager loop, please check whether the bootstrap or update is finished"] [error="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist"] [errorVerbose="[schema:1146]Table 'mysql.tidb_runaway_watch' doesn't exist\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.Trace\n\texternal/com_github_pingcap_errors/juju_adaptor.go:15\ngithub.com/pingcap/tidb/pkg/planner/core.Preprocess\n\tpkg/planner/core/preprocess.go:141\ngithub.com/pingcap/tidb/pkg/executor.(*Compiler).Compile\n\tpkg/executor/compiler.go:67\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2089\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteInternalStmt\n\tpkg/session/session.go:1993\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecRestrictedSQL.func1\n\tpkg/session/session.go:1958\ngithub.com/pingcap/tidb/pkg/session.(*session).withRestrictedSQLExecutor\n\tpkg/session/session.go:1944\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecRestrictedSQL\n\tpkg/session/session.go:1948\ngithub.com/pingcap/tidb/pkg/domain.(*SystemTableReader).Read\n\tpkg/domain/runaway.go:655\ngithub.com/pingcap/tidb/pkg/domain.getRunawayWatchRecord\n\tpkg/domain/runaway.go:543\ngithub.com/pingcap/tidb/pkg/domain.(*runawaySyncer).getWatchRecord\n\tpkg/domain/runaway.go:526\ngithub.com/pingcap/tidb/pkg/domain.(*runawaySyncer).getNewWatchRecords\n\tpkg/domain/runaway.go:509\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).updateNewAndDoneWatch\n\tpkg/domain/runaway.go:177\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).runawayStartLoop\n\tpkg/domain/runaway.go:156\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\tpkg/util/wait_group_wrapper.go:99\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [2024/05/06 09:24:53.430 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:53.416 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.435 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=20] [neededSchemaVersion=21] ["start time"=237.133µs] [gotSchemaVersion=21] [phyTblIDs="[42]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:53.436 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:53.436 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=43] [version=21] [2024/05/06 09:24:53.437 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=21] ["take time"=2.263579ms] [job="ID:43, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:42, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:53.416 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.443 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:53.416 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.449 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=43] [2024/05/06 09:24:53.449 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:53.449 +00:00] [INFO] [session.go:3945] ["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 09:24:53.451 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:53.45 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:53.451 +00:00] [INFO] [ddl.go:1182] ["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 09:24:53.45 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE TABLE IF NOT EXISTS mysql.opt_rule_blacklist (\n\t\tname \tCHAR(100) NOT NULL\n\t);"] [2024/05/06 09:24:53.462 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:53.45 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.467 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=21] [neededSchemaVersion=22] ["start time"=264.192µs] [gotSchemaVersion=22] [phyTblIDs="[44]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:53.469 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:53.469 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=45] [version=22] [2024/05/06 09:24:53.469 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=22] ["take time"=2.138723ms] [job="ID:45, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:44, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:53.45 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.486 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:53.45 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.490 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=45] [2024/05/06 09:24:53.490 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:53.491 +00:00] [INFO] [session.go:3945] ["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 09:24:53.495 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:53.493 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:53.495 +00:00] [INFO] [ddl.go:1182] ["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 09:24:53.493 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:53.502 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:53.493 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.505 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=22] [neededSchemaVersion=23] ["start time"=379.881µs] [gotSchemaVersion=23] [phyTblIDs="[46]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:53.510 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:53.510 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=47] [version=23] [2024/05/06 09:24:53.511 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=23] ["take time"=6.326972ms] [job="ID:47, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:46, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:53.493 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.524 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:53.493 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.529 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=47] [2024/05/06 09:24:53.529 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:53.530 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=23] [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 09:24:53.533 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:53.532 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:53.533 +00:00] [INFO] [ddl.go:1182] ["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 09:24:53.532 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:53.543 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:53.532 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.546 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=23] [neededSchemaVersion=24] ["start time"=283.943µs] [gotSchemaVersion=24] [phyTblIDs="[48]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:53.547 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:53.547 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=49] [version=24] [2024/05/06 09:24:53.548 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=24] ["take time"=2.572936ms] [job="ID:49, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:48, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:53.532 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.556 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:53.532 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.560 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=49] [2024/05/06 09:24:53.560 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:53.560 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=24] [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 09:24:53.563 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:53.562 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:53.563 +00:00] [INFO] [ddl.go:1182] ["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 09:24:53.562 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:53.586 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:53.562 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.589 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=24] [neededSchemaVersion=25] ["start time"=353.75µs] [gotSchemaVersion=25] [phyTblIDs="[50]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:53.590 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:53.590 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=51] [version=25] [2024/05/06 09:24:53.591 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=25] ["take time"=2.033924ms] [job="ID:51, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:50, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:53.562 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.600 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:53.562 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.604 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=51] [2024/05/06 09:24:53.604 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:53.605 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=25] [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 09:24:53.608 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:53.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:53.608 +00:00] [INFO] [ddl.go:1182] ["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 09:24:53.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:53.620 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:53.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.624 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=25] [neededSchemaVersion=26] ["start time"=266.044µs] [gotSchemaVersion=26] [phyTblIDs="[52]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:53.625 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:53.625 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=53] [version=26] [2024/05/06 09:24:53.626 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=26] ["take time"=2.180924ms] [job="ID:53, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:52, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:53.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.636 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:53.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.639 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=53] [2024/05/06 09:24:53.639 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:53.640 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=26] [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 09:24:53.643 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:53.642 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:53.643 +00:00] [INFO] [ddl.go:1182] ["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 09:24:53.642 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:53.652 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:53.642 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.656 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=26] [neededSchemaVersion=27] ["start time"=283.277µs] [gotSchemaVersion=27] [phyTblIDs="[54]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:53.657 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:53.657 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=55] [version=27] [2024/05/06 09:24:53.659 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=27] ["take time"=2.919285ms] [job="ID:55, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:54, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:53.642 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.665 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:53.642 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.669 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=55] [2024/05/06 09:24:53.669 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:53.669 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=27] [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 09:24:53.672 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:53.671 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:53.672 +00:00] [INFO] [ddl.go:1182] ["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 09:24:53.671 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:53.684 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:53.671 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.686 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=27] [neededSchemaVersion=28] ["start time"=244.293µs] [gotSchemaVersion=28] [phyTblIDs="[56]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:53.688 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:53.688 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=57] [version=28] [2024/05/06 09:24:53.688 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=28] ["take time"=2.03145ms] [job="ID:57, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:56, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:53.671 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.698 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:53.671 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.703 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=57] [2024/05/06 09:24:53.703 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:53.704 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=28] [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 09:24:53.704 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(19372) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:24:53.708 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:53.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:53.708 +00:00] [INFO] [ddl.go:1182] ["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 09:24:53.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:53.719 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:53.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.727 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=28] [neededSchemaVersion=29] ["start time"=447.716µs] [gotSchemaVersion=29] [phyTblIDs="[58]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:53.729 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:53.729 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=59] [version=29] [2024/05/06 09:24:53.731 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=29] ["take time"=4.466837ms] [job="ID:59, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:58, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:53.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.751 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:53.706 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.755 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=59] [2024/05/06 09:24:53.755 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:53.755 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=29] [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 09:24:53.759 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:53.757 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:53.759 +00:00] [INFO] [ddl.go:1182] ["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 09:24:53.757 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:53.764 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:53.757 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.767 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=29] [neededSchemaVersion=30] ["start time"=348.542µs] [gotSchemaVersion=30] [phyTblIDs="[60]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:53.769 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:53.769 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=61] [version=30] [2024/05/06 09:24:53.769 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=30] ["take time"=2.01359ms] [job="ID:61, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:60, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:53.757 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.780 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:53.757 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.783 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=61] [2024/05/06 09:24:53.783 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:53.784 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=30] [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 09:24:53.787 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:53.785 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:53.787 +00:00] [INFO] [ddl.go:1182] ["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 09:24:53.785 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:53.804 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:53.785 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.814 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=30] [neededSchemaVersion=31] ["start time"=384.322µs] [gotSchemaVersion=31] [phyTblIDs="[62]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:53.815 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:53.815 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=63] [version=31] [2024/05/06 09:24:53.817 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=31] ["take time"=3.027728ms] [job="ID:63, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:62, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:53.785 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.833 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:53.785 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.837 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=63] [2024/05/06 09:24:53.837 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:53.838 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=31] [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 09:24:53.846 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:53.843 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:53.847 +00:00] [INFO] [ddl.go:1182] ["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 09:24:53.843 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:53.854 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:53.843 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.863 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=31] [neededSchemaVersion=32] ["start time"=503.049µs] [gotSchemaVersion=32] [phyTblIDs="[64]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:53.865 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:53.865 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=65] [version=32] [2024/05/06 09:24:53.865 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=32] ["take time"=2.016953ms] [job="ID:65, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:64, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:53.843 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.872 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:53.843 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.877 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=65] [2024/05/06 09:24:53.877 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:53.877 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=32] [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 09:24:53.881 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:53.879 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:53.881 +00:00] [INFO] [ddl.go:1182] ["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 09:24:53.879 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE TABLE IF NOT EXISTS mysql.advisory_locks (\n\t\tlock_name VARCHAR(64) NOT NULL PRIMARY KEY\n\t);"] [2024/05/06 09:24:53.889 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:53.879 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.898 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=32] [neededSchemaVersion=33] ["start time"=240.606µs] [gotSchemaVersion=33] [phyTblIDs="[66]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:53.899 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:53.899 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=67] [version=33] [2024/05/06 09:24:53.900 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=33] ["take time"=2.04984ms] [job="ID:67, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:66, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:53.879 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.906 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:53.879 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.910 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=67] [2024/05/06 09:24:53.910 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:53.915 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:69, Type:create view, State:queueing, SchemaState:none, SchemaID:1, TableID:68, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:53.913 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:53.915 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:69, Type:create view, State:queueing, SchemaState:none, SchemaID:1, TableID:68, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:53.913 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE OR REPLACE VIEW mysql.tidb_mdl_view as (\n\t\tSELECT tidb_mdl_info.job_id,\n\t\t\tJSON_UNQUOTE(JSON_EXTRACT(cast(cast(job_meta as char) as json), \"$.schema_name\")) as db_name,\n\t\t\tJSON_UNQUOTE(JSON_EXTRACT(cast(cast(job_meta as char) as json), \"$.table_name\")) as table_name,\n\t\t\tJSON_UNQUOTE(JSON_EXTRACT(cast(cast(job_meta as char) as json), \"$.query\")) as query,\n\t\t\tsession_id,\n\t\t\tcluster_tidb_trx.start_time,\n\t\t\ttidb_decode_sql_digests(all_sql_digests, 4096) AS SQL_DIGESTS\n\t\tFROM mysql.tidb_ddl_job,\n\t\t\tmysql.tidb_mdl_info,\n\t\t\tinformation_schema.cluster_tidb_trx\n\t\tWHERE tidb_ddl_job.job_id=tidb_mdl_info.job_id\n\t\t\tAND CONCAT(',', tidb_mdl_info.table_ids, ',') REGEXP CONCAT(',', REPLACE(cluster_tidb_trx.related_table_ids, ',', '|'), ',') != 0\n\t);"] [2024/05/06 09:24:53.932 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, tp general"] [category=ddl] [jobID=69] [category=ddl] [job="ID:69, Type:create view, State:queueing, SchemaState:none, SchemaID:1, TableID:68, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:53.913 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.948 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=33] [neededSchemaVersion=34] ["start time"=309.24µs] [gotSchemaVersion=34] [phyTblIDs="[68]"] [actionTypes="[21]"] [diffTypes="[\"create view\"]"] [2024/05/06 09:24:53.950 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:53.950 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=69] [version=34] [2024/05/06 09:24:53.955 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=34] ["take time"=7.346452ms] [job="ID:69, Type:create view, State:done, SchemaState:public, SchemaID:1, TableID:68, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:53.913 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.973 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, tp general"] [category=ddl] [jobID=69] [job="ID:69, Type:create view, State:synced, SchemaState:public, SchemaID:1, TableID:68, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:53.913 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:53.977 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=69] [2024/05/06 09:24:53.977 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:53.978 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=34] [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 09:24:53.984 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:71, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:70, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:53.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:53.985 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:71, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:70, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:53.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:53.995 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, tp general"] [category=ddl] [jobID=71] [category=ddl] [job="ID:71, Type:create table, State:queueing, SchemaState:none, SchemaID:1, TableID:70, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:53.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.000 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=34] [neededSchemaVersion=35] ["start time"=344.261µs] [gotSchemaVersion=35] [phyTblIDs="[70]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:54.002 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:54.002 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=71] [version=35] [2024/05/06 09:24:54.002 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=35] ["take time"=2.222722ms] [job="ID:71, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:70, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:53.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.008 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, tp general"] [category=ddl] [jobID=71] [job="ID:71, Type:create table, State:synced, SchemaState:public, SchemaID:1, TableID:70, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:53.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.011 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=71] [2024/05/06 09:24:54.011 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:54.012 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=35] [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 09:24:54.014 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:54.013 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:54.014 +00:00] [INFO] [ddl.go:1182] ["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 09:24:54.013 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:54.025 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:54.013 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.029 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=35] [neededSchemaVersion=36] ["start time"=270.604µs] [gotSchemaVersion=36] [phyTblIDs="[72]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:54.031 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:54.031 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=73] [version=36] [2024/05/06 09:24:54.033 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=36] ["take time"=4.74457ms] [job="ID:73, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:72, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:54.013 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.045 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:54.013 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.049 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=73] [2024/05/06 09:24:54.049 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:54.050 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=36] [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 09:24:54.055 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:54.054 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:54.055 +00:00] [INFO] [ddl.go:1182] ["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 09:24:54.054 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:54.067 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:54.054 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.070 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=36] [neededSchemaVersion=37] ["start time"=274.384µs] [gotSchemaVersion=37] [phyTblIDs="[74]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:54.071 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:54.072 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=75] [version=37] [2024/05/06 09:24:54.072 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=37] ["take time"=2.060327ms] [job="ID:75, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:74, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:54.054 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.087 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:54.054 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.091 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=75] [2024/05/06 09:24:54.091 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:54.091 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=37] [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 09:24:54.095 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:54.093 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:54.095 +00:00] [INFO] [ddl.go:1182] ["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 09:24:54.093 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:54.108 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:54.093 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.115 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=37] [neededSchemaVersion=38] ["start time"=591.985µs] [gotSchemaVersion=38] [phyTblIDs="[76]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:54.117 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:54.117 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=77] [version=38] [2024/05/06 09:24:54.119 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=38] ["take time"=4.426811ms] [job="ID:77, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:76, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:54.093 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.132 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:54.093 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.136 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=77] [2024/05/06 09:24:54.137 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:54.137 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=38] [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 09:24:54.141 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:54.139 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:54.141 +00:00] [INFO] [ddl.go:1182] ["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 09:24:54.139 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:54.153 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:54.139 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.157 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=38] [neededSchemaVersion=39] ["start time"=472.51µs] [gotSchemaVersion=39] [phyTblIDs="[78]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:54.159 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:54.159 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=79] [version=39] [2024/05/06 09:24:54.159 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=39] ["take time"=2.442715ms] [job="ID:79, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:78, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:54.139 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.166 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:54.139 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.182 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=79] [2024/05/06 09:24:54.182 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:54.184 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=39] [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 09:24:54.193 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:54.191 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:54.193 +00:00] [INFO] [ddl.go:1182] ["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 09:24:54.191 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:54.212 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:54.191 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.217 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=39] [neededSchemaVersion=40] ["start time"=555.626µs] [gotSchemaVersion=40] [phyTblIDs="[80]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:54.218 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:54.218 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=81] [version=40] [2024/05/06 09:24:54.220 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=40] ["take time"=4.220136ms] [job="ID:81, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:80, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:54.191 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.232 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:54.191 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.238 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=81] [2024/05/06 09:24:54.238 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:54.238 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=40] [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(261),\n\t\tstate VARCHAR(64) NOT NULL,\n\t\tpriority INT DEFAULT 1,\n\t\tcreate_time TIMESTAMP,\n\t\tstart_time TIMESTAMP,\n\t\tstate_update_time TIMESTAMP,\n\t\tend_time TIMESTAMP,\n\t\tmeta LONGBLOB,\n\t\tconcurrency INT(11),\n\t\tstep INT(11),\n\t\ttarget_scope VARCHAR(256) DEFAULT \"\",\n\t\terror BLOB,\n\t\tkey(state),\n \tUNIQUE KEY task_key(task_key)\n\t);"] [user=] [2024/05/06 09:24:54.244 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:54.242 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:54.244 +00:00] [INFO] [ddl.go:1182] ["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 09:24:54.242 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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(261),\n\t\tstate VARCHAR(64) NOT NULL,\n\t\tpriority INT DEFAULT 1,\n\t\tcreate_time TIMESTAMP,\n\t\tstart_time TIMESTAMP,\n\t\tstate_update_time TIMESTAMP,\n\t\tend_time TIMESTAMP,\n\t\tmeta LONGBLOB,\n\t\tconcurrency INT(11),\n\t\tstep INT(11),\n\t\ttarget_scope VARCHAR(256) DEFAULT \"\",\n\t\terror BLOB,\n\t\tkey(state),\n \tUNIQUE KEY task_key(task_key)\n\t);"] [2024/05/06 09:24:54.255 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:54.242 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.260 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=40] [neededSchemaVersion=41] ["start time"=533.059µs] [gotSchemaVersion=41] [phyTblIDs="[82]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:54.261 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:54.261 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=83] [version=41] [2024/05/06 09:24:54.264 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=41] ["take time"=4.224081ms] [job="ID:83, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:54.242 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.276 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:54.242 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.287 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=83] [2024/05/06 09:24:54.287 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:54.288 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=41] [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(261),\n\t\tstate VARCHAR(64) NOT NULL,\n\t\tpriority INT DEFAULT 1,\n\t\tcreate_time TIMESTAMP,\n\t\tstart_time TIMESTAMP,\n\t\tstate_update_time TIMESTAMP,\n\t\tend_time TIMESTAMP,\n\t\tmeta LONGBLOB,\n\t\tconcurrency INT(11),\n\t\tstep INT(11),\n\t\ttarget_scope VARCHAR(256) DEFAULT \"\",\n\t\terror BLOB,\n\t\tkey(state),\n \tUNIQUE KEY task_key(task_key)\n\t);"] [user=] [2024/05/06 09:24:54.293 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:54.29 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:54.293 +00:00] [INFO] [ddl.go:1182] ["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 09:24:54.29 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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(261),\n\t\tstate VARCHAR(64) NOT NULL,\n\t\tpriority INT DEFAULT 1,\n\t\tcreate_time TIMESTAMP,\n\t\tstart_time TIMESTAMP,\n\t\tstate_update_time TIMESTAMP,\n\t\tend_time TIMESTAMP,\n\t\tmeta LONGBLOB,\n\t\tconcurrency INT(11),\n\t\tstep INT(11),\n\t\ttarget_scope VARCHAR(256) DEFAULT \"\",\n\t\terror BLOB,\n\t\tkey(state),\n \tUNIQUE KEY task_key(task_key)\n\t);"] [2024/05/06 09:24:54.299 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:54.29 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.304 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=41] [neededSchemaVersion=42] ["start time"=531.07µs] [gotSchemaVersion=42] [phyTblIDs="[84]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:54.305 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:54.305 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=85] [version=42] [2024/05/06 09:24:54.305 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=42] ["take time"=2.08987ms] [job="ID:85, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:84, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:54.29 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.311 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:54.29 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.321 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=85] [2024/05/06 09:24:54.321 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:54.321 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=42] [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 09:24:54.330 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:54.323 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:54.330 +00:00] [INFO] [ddl.go:1182] ["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 09:24:54.323 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:54.337 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:54.323 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.342 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=42] [neededSchemaVersion=43] ["start time"=527.424µs] [gotSchemaVersion=43] [phyTblIDs="[86]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:54.343 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:54.344 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=87] [version=43] [2024/05/06 09:24:54.346 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=43] ["take time"=4.643862ms] [job="ID:87, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:86, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:54.323 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.361 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:54.323 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.366 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=87] [2024/05/06 09:24:54.366 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:54.366 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=43] [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 09:24:54.374 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:54.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:54.374 +00:00] [INFO] [ddl.go:1182] ["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 09:24:54.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:54.388 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:54.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.401 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=43] [neededSchemaVersion=44] ["start time"=823.918µs] [gotSchemaVersion=44] [phyTblIDs="[88]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:54.402 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:54.402 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=89] [version=44] [2024/05/06 09:24:54.404 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=44] ["take time"=4.045866ms] [job="ID:89, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:88, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:54.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.417 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:54.372 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.421 +00:00] [INFO] [info.go:1142] [SetTiFlashGroupConfig] [2024/05/06 09:24:54.432 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=89] [2024/05/06 09:24:54.432 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:54.433 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=44] [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 09:24:54.437 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:54.435 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:54.437 +00:00] [INFO] [ddl.go:1182] ["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 09:24:54.435 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:54.448 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:54.435 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.454 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=44] [neededSchemaVersion=45] ["start time"=375.581µs] [gotSchemaVersion=45] [phyTblIDs="[90]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:54.458 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:54.461 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=91] [version=45] [2024/05/06 09:24:54.462 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=45] ["take time"=8.020852ms] [job="ID:91, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:90, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:54.435 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.472 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:54.435 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.476 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=91] [2024/05/06 09:24:54.476 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:54.477 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=45] [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 09:24:54.482 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:54.479 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:54.482 +00:00] [INFO] [ddl.go:1182] ["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 09:24:54.479 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:54.489 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:54.479 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.508 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=45] [neededSchemaVersion=46] ["start time"=623.456µs] [gotSchemaVersion=46] [phyTblIDs="[92]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:54.510 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:54.510 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=93] [version=46] [2024/05/06 09:24:54.510 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=46] ["take time"=2.871552ms] [job="ID:93, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:92, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:54.479 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.517 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:54.479 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.523 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=93] [2024/05/06 09:24:54.523 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:54.524 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=46] [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 09:24:54.527 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:54.525 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:54.527 +00:00] [INFO] [ddl.go:1182] ["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 09:24:54.525 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [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 09:24:54.539 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:54.525 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.543 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=46] [neededSchemaVersion=47] ["start time"=356.764µs] [gotSchemaVersion=47] [phyTblIDs="[94]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:54.546 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:54.546 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=95] [version=47] [2024/05/06 09:24:54.553 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=47] ["take time"=10.614411ms] [job="ID:95, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:94, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:54.525 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.560 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:54.525 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.564 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=95] [2024/05/06 09:24:54.564 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:54.565 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=47] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.dist_framework_meta (\n host VARCHAR(261) NOT NULL PRIMARY KEY,\n role VARCHAR(64),\n cpu_count int default 0,\n keyspace_id bigint(8) NOT NULL DEFAULT -1\n );"] [user=] [2024/05/06 09:24:54.577 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:54.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:54.577 +00:00] [INFO] [ddl.go:1182] ["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 09:24:54.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE TABLE IF NOT EXISTS mysql.dist_framework_meta (\n host VARCHAR(261) NOT NULL PRIMARY KEY,\n role VARCHAR(64),\n cpu_count int default 0,\n keyspace_id bigint(8) NOT NULL DEFAULT -1\n );"] [2024/05/06 09:24:54.587 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:54.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.590 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=47] [neededSchemaVersion=48] ["start time"=321.448µs] [gotSchemaVersion=48] [phyTblIDs="[96]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:54.595 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:54.595 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=97] [version=48] [2024/05/06 09:24:54.597 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=48] ["take time"=6.676388ms] [job="ID:97, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:96, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:54.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.605 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:54.576 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.608 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=97] [2024/05/06 09:24:54.608 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:54.608 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=48] [cur_db=mysql] [sql="CREATE TABLE IF NOT EXISTS mysql.request_unit_by_group (\n\t\tstart_time TIMESTAMP(6) NOT NULL,\n\t\tend_time TIMESTAMP(6) NOT NULL,\n\t\tresource_group VARCHAR(32) NOT null,\n\t\ttotal_ru bigint(64) UNSIGNED NOT NULL,\n\t\tPRIMARY KEY (start_time, end_time, resource_group),\n\t\tKEY (resource_group)\n\t);"] [user=] [2024/05/06 09:24:54.611 +00:00] [INFO] [ddl_worker.go:259] ["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 09:24:54.61 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:54.612 +00:00] [INFO] [ddl.go:1182] ["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 09:24:54.61 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE TABLE IF NOT EXISTS mysql.request_unit_by_group (\n\t\tstart_time TIMESTAMP(6) NOT NULL,\n\t\tend_time TIMESTAMP(6) NOT NULL,\n\t\tresource_group VARCHAR(32) NOT null,\n\t\ttotal_ru bigint(64) UNSIGNED NOT NULL,\n\t\tPRIMARY KEY (start_time, end_time, resource_group),\n\t\tKEY (resource_group)\n\t);"] [2024/05/06 09:24:54.624 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, 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 09:24:54.61 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.628 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=48] [neededSchemaVersion=49] ["start time"=341.578µs] [gotSchemaVersion=49] [phyTblIDs="[98]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:54.629 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:54.629 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=99] [version=49] [2024/05/06 09:24:54.630 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=49] ["take time"=3.308645ms] [job="ID:99, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:98, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:54.61 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.638 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, 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 09:24:54.61 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.645 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=99] [2024/05/06 09:24:54.645 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:54.645 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=0] [schemaVersion=49] [cur_db=mysql] [sql="CREATE DATABASE IF NOT EXISTS sys;"] [user=] [2024/05/06 09:24:54.648 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:101, Type:create schema, State:queueing, SchemaState:none, SchemaID:100, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:54.647 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:54.648 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:101, Type:create schema, State:queueing, SchemaState:none, SchemaID:100, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:54.647 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE DATABASE IF NOT EXISTS sys;"] [2024/05/06 09:24:54.658 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, tp general"] [category=ddl] [jobID=101] [category=ddl] [job="ID:101, Type:create schema, State:queueing, SchemaState:none, SchemaID:100, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:54.647 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.664 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=49] [neededSchemaVersion=50] ["start time"=73.432µs] [gotSchemaVersion=50] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"create schema\"]"] [2024/05/06 09:24:54.665 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:54.665 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=101] [version=50] [2024/05/06 09:24:54.665 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=50] ["take time"=2.011845ms] [job="ID:101, Type:create schema, State:done, SchemaState:public, SchemaID:100, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:54.647 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.672 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, tp general"] [category=ddl] [jobID=101] [job="ID:101, Type:create schema, State:synced, SchemaState:public, SchemaID:100, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:54.647 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.675 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=101] [2024/05/06 09:24:54.675 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:54.679 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:103, Type:create view, State:queueing, SchemaState:none, SchemaID:100, TableID:102, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:54.677 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:54.679 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:103, Type:create view, State:queueing, SchemaState:none, SchemaID:100, TableID:102, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:54.677 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE OR REPLACE VIEW sys.schema_unused_indexes AS\n\t\tSELECT\n\t\t\ttable_schema as object_schema,\n\t\t\ttable_name as object_name,\n\t\t\tindex_name\n\t\tFROM information_schema.cluster_tidb_index_usage\n\t\tWHERE\n\t\t\ttable_schema not in ('sys', 'mysql', 'INFORMATION_SCHEMA', 'PERFORMANCE_SCHEMA') and\n\t\t\tindex_name != 'PRIMARY'\n\t\tGROUP BY table_schema, table_name, index_name\n\t\tHAVING\n\t\t\tsum(last_access_time) is null;"] [2024/05/06 09:24:54.694 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 71, tp general"] [category=ddl] [jobID=103] [category=ddl] [job="ID:103, Type:create view, State:queueing, SchemaState:none, SchemaID:100, TableID:102, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:54.677 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.700 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=50] [neededSchemaVersion=51] ["start time"=251.712µs] [gotSchemaVersion=51] [phyTblIDs="[102]"] [actionTypes="[21]"] [diffTypes="[\"create view\"]"] [2024/05/06 09:24:54.703 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:24:54.703 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=103] [version=51] [2024/05/06 09:24:54.705 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=51] ["take time"=4.767701ms] [job="ID:103, Type:create view, State:done, SchemaState:public, SchemaID:100, TableID:102, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:54.677 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.714 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 71, tp general"] [category=ddl] [jobID=103] [job="ID:103, Type:create view, State:synced, SchemaState:public, SchemaID:100, TableID:102, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:54.677 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.718 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=103] [2024/05/06 09:24:54.718 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:54.777 +00:00] [INFO] [bootstrap.go:745] ["bootstrap successful"] ["take time"=2.359638996s] [2024/05/06 09:24:54.778 +00:00] [INFO] [mock.go:106] ["owner manager is canceled"] [category=ddl] [ID=de3e1507-6714-47d5-8b49-5daf9b39d02c] [ownerKey=/tidb/ddl/fg/owner] [2024/05/06 09:24:54.778 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:54.778 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 73, tp add index"] [category=ddl] ["take time"=1.844µs] [2024/05/06 09:24:54.778 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 74, tp add index"] [category=ddl] ["take time"=855ns] [2024/05/06 09:24:54.778 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 75, tp add index"] [category=ddl] ["take time"=1.091µs] [2024/05/06 09:24:54.778 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 72, tp add index"] [category=ddl] ["take time"=1.432µs] [2024/05/06 09:24:54.778 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:54.778 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 71, tp general"] [category=ddl] ["take time"=854ns] [2024/05/06 09:24:54.778 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:54.778 +00:00] [INFO] [delete_range.go:162] ["closing delRange"] [category=ddl] [2024/05/06 09:24:54.778 +00:00] [INFO] [session_pool.go:99] ["closing session pool"] [category=ddl] [2024/05/06 09:24:54.782 +00:00] [INFO] [ddl.go:951] ["DDL closed"] [category=ddl] [ID=de3e1507-6714-47d5-8b49-5daf9b39d02c] ["take time"=4.361541ms] [2024/05/06 09:24:54.782 +00:00] [INFO] [ddl.go:769] ["stop DDL"] [category=ddl] [ID=de3e1507-6714-47d5-8b49-5daf9b39d02c] [2024/05/06 09:24:54.782 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=mdlCheckLoop] [2024/05/06 09:24:54.782 +00:00] [INFO] [domain.go:907] ["loadSchemaInLoop exited."] [2024/05/06 09:24:54.782 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=loadSchemaInLoop] [2024/05/06 09:24:54.782 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=runawayStartLoop] [2024/05/06 09:24:54.782 +00:00] [INFO] [domain.go:761] ["topologySyncerKeeper exited."] [2024/05/06 09:24:54.783 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=topologySyncerKeeper] [2024/05/06 09:24:54.783 +00:00] [INFO] [domain.go:737] ["globalConfigSyncerKeeper exited."] [2024/05/06 09:24:54.783 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=globalConfigSyncerKeeper] [2024/05/06 09:24:54.783 +00:00] [INFO] [domain.go:711] ["infoSyncerKeeper exited."] [2024/05/06 09:24:54.783 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=infoSyncerKeeper] [2024/05/06 09:24:54.783 +00:00] [INFO] [domain.go:683] ["topNSlowQueryLoop exited."] [2024/05/06 09:24:54.783 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=topNSlowQueryLoop] [2024/05/06 09:24:54.783 +00:00] [INFO] [domain.go:1361] ["closestReplicaReadCheckLoop exited."] [2024/05/06 09:24:54.783 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=closestReplicaReadCheckLoop] [2024/05/06 09:24:54.783 +00:00] [INFO] [domain.go:1074] ["domain closed"] ["take time"=5.446113ms] [2024/05/06 09:24:54.783 +00:00] [INFO] [tidb.go:80] ["new domain"] [store=806447cf-7462-417e-9885-4e5bf7e6d0e0] ["ddl lease"=500ms] ["stats lease"=-1ns] [2024/05/06 09:24:54.792 +00:00] [WARN] [controller.go:198] ["[resource group controller] server does not save config, load config failed"] [2024/05/06 09:24:54.793 +00:00] [INFO] [controller.go:185] ["load resource controller config"] [config="{\"degraded-mode-wait-duration\":\"0s\",\"ltb-max-wait-duration\":\"30s\",\"wait-retry-interval\":\"50ms\",\"wait-retry-times\":10,\"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,\"WaitRetryInterval\":50000000,\"WaitRetryTimes\":10,\"DegradedModeWaitDuration\":0}"] [2024/05/06 09:24:54.826 +00:00] [INFO] [domain.go:315] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=51] ["start time"=33.153973ms] [2024/05/06 09:24:54.832 +00:00] [INFO] [domain.go:635] ["full load and reset schema validator"] [2024/05/06 09:24:54.832 +00:00] [INFO] [ddl.go:818] ["start DDL"] [category=ddl] [ID=43749419-a7c6-4e92-925c-7e1fd3a34641] [runWorker=true] [2024/05/06 09:24:54.834 +00:00] [INFO] [ddl.go:777] ["start delRangeManager OK"] [category=ddl] ["is a emulator"=true] [2024/05/06 09:24:54.835 +00:00] [INFO] [delete_range.go:172] ["start delRange emulator"] [category=ddl] [2024/05/06 09:24:54.839 +00:00] [INFO] [job_table.go:334] ["get global state and global state change"] [category=ddl] [oldState=false] [currState=false] [2024/05/06 09:24:54.839 +00:00] [INFO] [job_table.go:349] ["the owner sets owner operator value"] [category=ddl] [ownerOp=none] [2024/05/06 09:24:54.839 +00:00] [WARN] [env.go:51] ["initialize environment failed"] [category=ddl-ingest] ["storage limitation"="only support TiKV storage"] ["current storage"=unistore] ["lightning is initialized"=false] [2024/05/06 09:24:54.839 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=loadSchemaInLoop] [2024/05/06 09:24:54.839 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=mdlCheckLoop] [2024/05/06 09:24:54.840 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=topNSlowQueryLoop] [2024/05/06 09:24:54.840 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=infoSyncerKeeper] [2024/05/06 09:24:54.840 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=globalConfigSyncerKeeper] [2024/05/06 09:24:54.840 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=runawayStartLoop] [2024/05/06 09:24:54.840 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=requestUnitsWriterLoop] [2024/05/06 09:24:54.840 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=topologySyncerKeeper] [2024/05/06 09:24:54.840 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=closestReplicaReadCheckLoop] [2024/05/06 09:24:54.840 +00:00] [WARN] [domain.go:1326] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 09:24:54.840 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=requestUnitsWriterLoop] [2024/05/06 09:24:54.841 +00:00] [INFO] [runaway.go:149] ["try to start runaway manager loop"] [2024/05/06 09:24:54.841 +00:00] [INFO] [controller.go:447] ["[resource group controller] create resource group cost controller"] [name=default] [2024/05/06 09:24:54.852 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=globalBindHandleWorkerLoop] [2024/05/06 09:24:54.853 +00:00] [WARN] [sysvar_cache.go:49] ["sysvar cache is empty, triggering rebuild"] [2024/05/06 09:24:54.869 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=loadPrivilegeInLoop] [2024/05/06 09:24:54.872 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=LoadSysVarCacheLoop] [2024/05/06 09:24:54.874 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=dumpFileGcChecker] [2024/05/06 09:24:54.875 +00:00] [INFO] [domain.go:2070] ["dumpFileGcChecker started"] [2024/05/06 09:24:54.876 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=indexUsageWorker] [2024/05/06 09:24:54.876 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=quitStatsOwner] [2024/05/06 09:24:54.877 +00:00] [INFO] [task_manager.go:217] ["scale ttl worker"] [ttl-worker=job-manager] [ttl-worker=task-manager] [originalCount=0] [newCount=4] [2024/05/06 09:24:54.877 +00:00] [INFO] [task_manager.go:217] ["scale ttl worker"] [ttl-worker=job-manager] [ttl-worker=task-manager] [originalCount=0] [newCount=4] [2024/05/06 09:24:54.893 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=loadSigningCertLoop] [2024/05/06 09:24:54.895 +00:00] [INFO] [manager.go:113] ["build task executor manager"] [server-id=:4000] [total-cpu=16] [total-mem=342GiB] [2024/05/06 09:24:54.901 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=distTaskFrameworkLoop] [2024/05/06 09:24:54.901 +00:00] [INFO] [manager.go:146] ["task executor manager start"] [server-id=:4000] [2024/05/06 09:24:54.901 +00:00] [INFO] [domain.go:1525] ["dist task executor manager started"] [2024/05/06 09:24:54.906 +00:00] [INFO] [set.go:170] ["set global var"] [conn=14] [name=tidb_schema_cache_size] [val=1024] [2024/05/06 09:24:54.909 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=14] [schemaVersion=51] [cur_db=test] [sql="drop table if exists t1"] [user=] [2024/05/06 09:24:54.913 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:104, Type:create placement policy, State:queueing, SchemaState:none, SchemaID:0, TableID:0, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:54.912 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:54.913 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:104, Type:create placement policy, State:queueing, SchemaState:none, SchemaID:0, TableID:0, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:54.912 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create placement policy p1 leader_constraints='[+zone=sh]'"] [2024/05/06 09:24:54.922 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 76, tp general"] [category=ddl] [jobID=104] [conn=14] [category=ddl] [job="ID:104, Type:create placement policy, State:queueing, SchemaState:none, SchemaID:0, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:54.912 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.924 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=51] [neededSchemaVersion=52] ["start time"=85.078µs] [gotSchemaVersion=52] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"create placement policy\"]"] [2024/05/06 09:24:54.926 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=104] [version=52] [2024/05/06 09:24:54.928 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=52] ["take time"=4.320654ms] [job="ID:104, Type:create placement policy, State:done, SchemaState:public, SchemaID:1, TableID:0, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:54.912 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.939 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 76, tp general"] [category=ddl] [jobID=104] [conn=14] [job="ID:104, Type:create placement policy, State:synced, SchemaState:public, SchemaID:1, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:54.912 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.942 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=104] [2024/05/06 09:24:54.942 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:54.945 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:105, Type:create placement policy, State:queueing, SchemaState:none, SchemaID:0, TableID:0, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:54.944 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:54.945 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:105, Type:create placement policy, State:queueing, SchemaState:none, SchemaID:0, TableID:0, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:54.944 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create placement policy p2 follower_constraints='[+zone=sh]'"] [2024/05/06 09:24:54.997 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 76, tp general"] [category=ddl] [jobID=105] [conn=14] [category=ddl] [job="ID:105, Type:create placement policy, State:queueing, SchemaState:none, SchemaID:0, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:54.944 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:54.999 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=52] [neededSchemaVersion=53] ["start time"=83.051µs] [gotSchemaVersion=53] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"create placement policy\"]"] [2024/05/06 09:24:55.001 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=105] [version=53] [2024/05/06 09:24:55.002 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=53] ["take time"=2.427875ms] [job="ID:105, Type:create placement policy, State:done, SchemaState:public, SchemaID:2, TableID:0, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:54.944 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:55.012 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 76, tp general"] [category=ddl] [jobID=105] [conn=14] [job="ID:105, Type:create placement policy, State:synced, SchemaState:public, SchemaID:2, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:54.944 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:55.015 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=105] [2024/05/06 09:24:55.015 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:55.016 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=14] [schemaVersion=53] [cur_db=test] [sql="create table t1 (c int)\nPARTITION BY RANGE (c) (\n\tPARTITION p0 VALUES LESS THAN (6),\n\tPARTITION p1 VALUES LESS THAN (11),\n\tPARTITION p2 VALUES LESS THAN (16),\n\tPARTITION p3 VALUES LESS THAN (21)\n);"] [user=] [2024/05/06 09:24:55.019 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:111, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:55.018 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:55.019 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:111, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:55.018 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create table t1 (c int)\nPARTITION BY RANGE (c) (\n\tPARTITION p0 VALUES LESS THAN (6),\n\tPARTITION p1 VALUES LESS THAN (11),\n\tPARTITION p2 VALUES LESS THAN (16),\n\tPARTITION p3 VALUES LESS THAN (21)\n);"] [2024/05/06 09:24:55.042 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 76, tp general"] [category=ddl] [jobID=111] [conn=14] [category=ddl] [job="ID:111, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:55.018 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:55.053 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=53] [neededSchemaVersion=54] ["start time"=7.539626ms] [gotSchemaVersion=54] [phyTblIDs="[106,107,108,109,110]"] [actionTypes="[3,3,3,3,3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:24:55.055 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=111] [version=54] [2024/05/06 09:24:55.056 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=54] ["take time"=10.384348ms] [job="ID:111, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:55.018 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:55.068 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 76, tp general"] [category=ddl] [jobID=111] [conn=14] [job="ID:111, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:55.018 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:55.072 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=111] [2024/05/06 09:24:55.072 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:55.072 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=14] [schemaVersion=54] [cur_db=test] [sql="alter table t1 partition p0 placement policy p1"] [user=] [2024/05/06 09:24:55.075 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:112, Type:alter table partition placement, State:queueing, SchemaState:none, SchemaID:2, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:55.073 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:55.075 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:112, Type:alter table partition placement, State:queueing, SchemaState:none, SchemaID:2, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:55.073 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t1 partition p0 placement policy p1"] [2024/05/06 09:24:55.092 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 76, tp general"] [category=ddl] [jobID=112] [conn=14] [category=ddl] [job="ID:112, Type:alter table partition placement, State:queueing, SchemaState:none, SchemaID:2, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:55.073 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:55.111 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=54] [neededSchemaVersion=55] ["start time"=10.271469ms] [gotSchemaVersion=55] [phyTblIDs="[106,107,108,109,110]"] [actionTypes="[54,54,54,54,54]"] [diffTypes="[\"alter table partition placement\"]"] [2024/05/06 09:24:55.113 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=112] [version=55] [2024/05/06 09:24:55.113 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=55] ["take time"=12.265121ms] [job="ID:112, Type:alter table partition placement, State:done, SchemaState:public, SchemaID:2, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:55.073 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:55.120 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 76, tp general"] [category=ddl] [jobID=112] [conn=14] [job="ID:112, Type:alter table partition placement, State:synced, SchemaState:public, SchemaID:2, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:55.073 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:55.126 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=112] [2024/05/06 09:24:55.126 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:55.127 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=14] [schemaVersion=55] [cur_db=test] [sql="alter table t1 partition p2 placement policy p2"] [user=] [2024/05/06 09:24:55.130 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:113, Type:alter table partition placement, State:queueing, SchemaState:none, SchemaID:2, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:55.129 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:55.130 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:113, Type:alter table partition placement, State:queueing, SchemaState:none, SchemaID:2, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:55.129 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t1 partition p2 placement policy p2"] [2024/05/06 09:24:55.140 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 76, tp general"] [category=ddl] [jobID=113] [conn=14] [category=ddl] [job="ID:113, Type:alter table partition placement, State:queueing, SchemaState:none, SchemaID:2, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:55.129 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:55.159 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=55] [neededSchemaVersion=56] ["start time"=10.22218ms] [gotSchemaVersion=56] [phyTblIDs="[106,107,108,109,110]"] [actionTypes="[54,54,54,54,54]"] [diffTypes="[\"alter table partition placement\"]"] [2024/05/06 09:24:55.161 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=113] [version=56] [2024/05/06 09:24:55.162 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=56] ["take time"=14.119238ms] [job="ID:113, Type:alter table partition placement, State:done, SchemaState:public, SchemaID:2, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:55.129 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:55.168 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 76, tp general"] [category=ddl] [jobID=113] [conn=14] [job="ID:113, Type:alter table partition placement, State:synced, SchemaState:public, SchemaID:2, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:55.129 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:55.172 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=113] [2024/05/06 09:24:55.172 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:55.177 +00:00] [INFO] [set.go:170] ["set global var"] [conn=14] [name=tidb_enable_local_txn] [val=ON] [2024/05/06 09:24:55.182 +00:00] [INFO] [set.go:170] ["set global var"] [conn=14] [name=tidb_enable_local_txn] [val=off] [2024/05/06 09:24:55.186 +00:00] [INFO] [set.go:170] ["set global var"] [conn=14] [name=tidb_enable_local_txn] [val=ON] [2024/05/06 09:24:55.189 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=general] [error="[ddl:8236]Placement policy didn't meet the constraint, reason: table t1's partition p0's leader location sh is out of txn_scope bj"] [errorVerbose="[ddl:8236]Placement policy didn't meet the constraint, reason: table t1's partition p0's leader location sh is out of txn_scope bj\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.(*Error).GenWithStackByArgs\n\texternal/com_github_pingcap_errors/normalize.go:175\ngithub.com/pingcap/tidb/pkg/session.(*session).checkPlacementPolicyBeforeCommit\n\tpkg/session/session.go:4073\ngithub.com/pingcap/tidb/pkg/session.(*session).doCommit\n\tpkg/session/session.go:514\ngithub.com/pingcap/tidb/pkg/session.(*session).doCommitWithRetry\n\tpkg/session/session.go:787\ngithub.com/pingcap/tidb/pkg/session.(*session).CommitTxn\n\tpkg/session/session.go:917\ngithub.com/pingcap/tidb/pkg/session.autoCommitAfterStmt\n\tpkg/session/tidb.go:281\ngithub.com/pingcap/tidb/pkg/session.finishStmt\n\tpkg/session/tidb.go:243\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2311\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecToErr\n\tpkg/testkit/testkit.go:436\ngithub.com/pingcap/tidb/pkg/ddl_test.TestTxnScopeConstraint\n\tpkg/ddl/placement_sql_test.go:140\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [IsBatchInsert=false] [IsPessimistic=false] [InRestrictedSQL=false] [tidb_retry_limit=10] [tidb_disable_txn_auto_retry=true] [2024/05/06 09:24:55.189 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[ddl:8236]Placement policy didn't meet the constraint, reason: table t1's partition p0's leader location sh is out of txn_scope bj"] [errorVerbose="[ddl:8236]Placement policy didn't meet the constraint, reason: table t1's partition p0's leader location sh is out of txn_scope bj\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.(*Error).GenWithStackByArgs\n\texternal/com_github_pingcap_errors/normalize.go:175\ngithub.com/pingcap/tidb/pkg/session.(*session).checkPlacementPolicyBeforeCommit\n\tpkg/session/session.go:4073\ngithub.com/pingcap/tidb/pkg/session.(*session).doCommit\n\tpkg/session/session.go:514\ngithub.com/pingcap/tidb/pkg/session.(*session).doCommitWithRetry\n\tpkg/session/session.go:787\ngithub.com/pingcap/tidb/pkg/session.(*session).CommitTxn\n\tpkg/session/session.go:917\ngithub.com/pingcap/tidb/pkg/session.autoCommitAfterStmt\n\tpkg/session/tidb.go:281\ngithub.com/pingcap/tidb/pkg/session.finishStmt\n\tpkg/session/tidb.go:243\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2311\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecToErr\n\tpkg/testkit/testkit.go:436\ngithub.com/pingcap/tidb/pkg/ddl_test.TestTxnScopeConstraint\n\tpkg/ddl/placement_sql_test.go:140\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [2024/05/06 09:24:55.189 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=56] [error="[ddl:8236]Placement policy didn't meet the constraint, reason: table t1's partition p0's leader location sh is out of txn_scope bj"] [errorVerbose="[ddl:8236]Placement policy didn't meet the constraint, reason: table t1's partition p0's leader location sh is out of txn_scope bj\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.(*Error).GenWithStackByArgs\n\texternal/com_github_pingcap_errors/normalize.go:175\ngithub.com/pingcap/tidb/pkg/session.(*session).checkPlacementPolicyBeforeCommit\n\tpkg/session/session.go:4073\ngithub.com/pingcap/tidb/pkg/session.(*session).doCommit\n\tpkg/session/session.go:514\ngithub.com/pingcap/tidb/pkg/session.(*session).doCommitWithRetry\n\tpkg/session/session.go:787\ngithub.com/pingcap/tidb/pkg/session.(*session).CommitTxn\n\tpkg/session/session.go:917\ngithub.com/pingcap/tidb/pkg/session.autoCommitAfterStmt\n\tpkg/session/tidb.go:281\ngithub.com/pingcap/tidb/pkg/session.finishStmt\n\tpkg/session/tidb.go:243\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2311\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecToErr\n\tpkg/testkit/testkit.go:436\ngithub.com/pingcap/tidb/pkg/ddl_test.TestTxnScopeConstraint\n\tpkg/ddl/placement_sql_test.go:140\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 14,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:55.199 +00:00] [INFO] [set.go:170] ["set global var"] [conn=14] [name=tidb_enable_local_txn] [val=off] [2024/05/06 09:24:55.204 +00:00] [INFO] [set.go:170] ["set global var"] [conn=14] [name=tidb_enable_local_txn] [val=ON] [2024/05/06 09:24:55.205 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=general] [error="[ddl:8236]Placement policy didn't meet the constraint, reason: table t1's partition p1 doesn't have placement policies with txn_scope bj"] [errorVerbose="[ddl:8236]Placement policy didn't meet the constraint, reason: table t1's partition p1 doesn't have placement policies with txn_scope bj\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.(*Error).GenWithStackByArgs\n\texternal/com_github_pingcap_errors/normalize.go:175\ngithub.com/pingcap/tidb/pkg/session.(*session).checkPlacementPolicyBeforeCommit\n\tpkg/session/session.go:4055\ngithub.com/pingcap/tidb/pkg/session.(*session).doCommit\n\tpkg/session/session.go:514\ngithub.com/pingcap/tidb/pkg/session.(*session).doCommitWithRetry\n\tpkg/session/session.go:787\ngithub.com/pingcap/tidb/pkg/session.(*session).CommitTxn\n\tpkg/session/session.go:917\ngithub.com/pingcap/tidb/pkg/session.autoCommitAfterStmt\n\tpkg/session/tidb.go:281\ngithub.com/pingcap/tidb/pkg/session.finishStmt\n\tpkg/session/tidb.go:243\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2311\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecToErr\n\tpkg/testkit/testkit.go:436\ngithub.com/pingcap/tidb/pkg/ddl_test.TestTxnScopeConstraint\n\tpkg/ddl/placement_sql_test.go:140\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [IsBatchInsert=false] [IsPessimistic=false] [InRestrictedSQL=false] [tidb_retry_limit=10] [tidb_disable_txn_auto_retry=true] [2024/05/06 09:24:55.205 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[ddl:8236]Placement policy didn't meet the constraint, reason: table t1's partition p1 doesn't have placement policies with txn_scope bj"] [errorVerbose="[ddl:8236]Placement policy didn't meet the constraint, reason: table t1's partition p1 doesn't have placement policies with txn_scope bj\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.(*Error).GenWithStackByArgs\n\texternal/com_github_pingcap_errors/normalize.go:175\ngithub.com/pingcap/tidb/pkg/session.(*session).checkPlacementPolicyBeforeCommit\n\tpkg/session/session.go:4055\ngithub.com/pingcap/tidb/pkg/session.(*session).doCommit\n\tpkg/session/session.go:514\ngithub.com/pingcap/tidb/pkg/session.(*session).doCommitWithRetry\n\tpkg/session/session.go:787\ngithub.com/pingcap/tidb/pkg/session.(*session).CommitTxn\n\tpkg/session/session.go:917\ngithub.com/pingcap/tidb/pkg/session.autoCommitAfterStmt\n\tpkg/session/tidb.go:281\ngithub.com/pingcap/tidb/pkg/session.finishStmt\n\tpkg/session/tidb.go:243\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2311\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecToErr\n\tpkg/testkit/testkit.go:436\ngithub.com/pingcap/tidb/pkg/ddl_test.TestTxnScopeConstraint\n\tpkg/ddl/placement_sql_test.go:140\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [2024/05/06 09:24:55.205 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=56] [error="[ddl:8236]Placement policy didn't meet the constraint, reason: table t1's partition p1 doesn't have placement policies with txn_scope bj"] [errorVerbose="[ddl:8236]Placement policy didn't meet the constraint, reason: table t1's partition p1 doesn't have placement policies with txn_scope bj\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.(*Error).GenWithStackByArgs\n\texternal/com_github_pingcap_errors/normalize.go:175\ngithub.com/pingcap/tidb/pkg/session.(*session).checkPlacementPolicyBeforeCommit\n\tpkg/session/session.go:4055\ngithub.com/pingcap/tidb/pkg/session.(*session).doCommit\n\tpkg/session/session.go:514\ngithub.com/pingcap/tidb/pkg/session.(*session).doCommitWithRetry\n\tpkg/session/session.go:787\ngithub.com/pingcap/tidb/pkg/session.(*session).CommitTxn\n\tpkg/session/session.go:917\ngithub.com/pingcap/tidb/pkg/session.autoCommitAfterStmt\n\tpkg/session/tidb.go:281\ngithub.com/pingcap/tidb/pkg/session.finishStmt\n\tpkg/session/tidb.go:243\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2311\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecToErr\n\tpkg/testkit/testkit.go:436\ngithub.com/pingcap/tidb/pkg/ddl_test.TestTxnScopeConstraint\n\tpkg/ddl/placement_sql_test.go:140\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 14,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:55.209 +00:00] [INFO] [set.go:170] ["set global var"] [conn=14] [name=tidb_enable_local_txn] [val=off] [2024/05/06 09:24:55.213 +00:00] [INFO] [set.go:170] ["set global var"] [conn=14] [name=tidb_enable_local_txn] [val=ON] [2024/05/06 09:24:55.219 +00:00] [INFO] [set.go:170] ["set global var"] [conn=14] [name=tidb_enable_local_txn] [val=off] [2024/05/06 09:24:55.224 +00:00] [INFO] [set.go:170] ["set global var"] [conn=14] [name=tidb_enable_local_txn] [val=ON] [2024/05/06 09:24:55.224 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=general] [error="[ddl:8236]Placement policy didn't meet the constraint, reason: table t1's partition p2's leader placement policy is not defined"] [errorVerbose="[ddl:8236]Placement policy didn't meet the constraint, reason: table t1's partition p2's leader placement policy is not defined\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.(*Error).GenWithStackByArgs\n\texternal/com_github_pingcap_errors/normalize.go:175\ngithub.com/pingcap/tidb/pkg/session.(*session).checkPlacementPolicyBeforeCommit\n\tpkg/session/session.go:4064\ngithub.com/pingcap/tidb/pkg/session.(*session).doCommit\n\tpkg/session/session.go:514\ngithub.com/pingcap/tidb/pkg/session.(*session).doCommitWithRetry\n\tpkg/session/session.go:787\ngithub.com/pingcap/tidb/pkg/session.(*session).CommitTxn\n\tpkg/session/session.go:917\ngithub.com/pingcap/tidb/pkg/session.autoCommitAfterStmt\n\tpkg/session/tidb.go:281\ngithub.com/pingcap/tidb/pkg/session.finishStmt\n\tpkg/session/tidb.go:243\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2311\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecToErr\n\tpkg/testkit/testkit.go:436\ngithub.com/pingcap/tidb/pkg/ddl_test.TestTxnScopeConstraint\n\tpkg/ddl/placement_sql_test.go:140\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [IsBatchInsert=false] [IsPessimistic=false] [InRestrictedSQL=false] [tidb_retry_limit=10] [tidb_disable_txn_auto_retry=true] [2024/05/06 09:24:55.225 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[ddl:8236]Placement policy didn't meet the constraint, reason: table t1's partition p2's leader placement policy is not defined"] [errorVerbose="[ddl:8236]Placement policy didn't meet the constraint, reason: table t1's partition p2's leader placement policy is not defined\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.(*Error).GenWithStackByArgs\n\texternal/com_github_pingcap_errors/normalize.go:175\ngithub.com/pingcap/tidb/pkg/session.(*session).checkPlacementPolicyBeforeCommit\n\tpkg/session/session.go:4064\ngithub.com/pingcap/tidb/pkg/session.(*session).doCommit\n\tpkg/session/session.go:514\ngithub.com/pingcap/tidb/pkg/session.(*session).doCommitWithRetry\n\tpkg/session/session.go:787\ngithub.com/pingcap/tidb/pkg/session.(*session).CommitTxn\n\tpkg/session/session.go:917\ngithub.com/pingcap/tidb/pkg/session.autoCommitAfterStmt\n\tpkg/session/tidb.go:281\ngithub.com/pingcap/tidb/pkg/session.finishStmt\n\tpkg/session/tidb.go:243\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2311\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecToErr\n\tpkg/testkit/testkit.go:436\ngithub.com/pingcap/tidb/pkg/ddl_test.TestTxnScopeConstraint\n\tpkg/ddl/placement_sql_test.go:140\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [2024/05/06 09:24:55.225 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=56] [error="[ddl:8236]Placement policy didn't meet the constraint, reason: table t1's partition p2's leader placement policy is not defined"] [errorVerbose="[ddl:8236]Placement policy didn't meet the constraint, reason: table t1's partition p2's leader placement policy is not defined\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.(*Error).GenWithStackByArgs\n\texternal/com_github_pingcap_errors/normalize.go:175\ngithub.com/pingcap/tidb/pkg/session.(*session).checkPlacementPolicyBeforeCommit\n\tpkg/session/session.go:4064\ngithub.com/pingcap/tidb/pkg/session.(*session).doCommit\n\tpkg/session/session.go:514\ngithub.com/pingcap/tidb/pkg/session.(*session).doCommitWithRetry\n\tpkg/session/session.go:787\ngithub.com/pingcap/tidb/pkg/session.(*session).CommitTxn\n\tpkg/session/session.go:917\ngithub.com/pingcap/tidb/pkg/session.autoCommitAfterStmt\n\tpkg/session/tidb.go:281\ngithub.com/pingcap/tidb/pkg/session.finishStmt\n\tpkg/session/tidb.go:243\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2311\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecToErr\n\tpkg/testkit/testkit.go:436\ngithub.com/pingcap/tidb/pkg/ddl_test.TestTxnScopeConstraint\n\tpkg/ddl/placement_sql_test.go:140\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [session="{\n \"currDBName\": \"test\",\n \"id\": 14,\n \"status\": 2,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:55.229 +00:00] [INFO] [set.go:170] ["set global var"] [conn=14] [name=tidb_enable_local_txn] [val=off] [2024/05/06 09:24:55.234 +00:00] [INFO] [set.go:170] ["set global var"] [conn=14] [name=tidb_enable_local_txn] [val=ON] [2024/05/06 09:24:55.239 +00:00] [INFO] [set.go:170] ["set global var"] [conn=14] [name=tidb_enable_local_txn] [val=off] [2024/05/06 09:24:55.243 +00:00] [INFO] [set.go:170] ["set global var"] [conn=14] [name=tidb_enable_local_txn] [val=ON] [2024/05/06 09:24:55.245 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=general] [error="[ddl:8236]Placement policy didn't meet the constraint, reason: table t1's partition p0's leader location sh is out of txn_scope bj"] [errorVerbose="[ddl:8236]Placement policy didn't meet the constraint, reason: table t1's partition p0's leader location sh is out of txn_scope bj\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.(*Error).GenWithStackByArgs\n\texternal/com_github_pingcap_errors/normalize.go:175\ngithub.com/pingcap/tidb/pkg/session.(*session).checkPlacementPolicyBeforeCommit\n\tpkg/session/session.go:4073\ngithub.com/pingcap/tidb/pkg/session.(*session).doCommit\n\tpkg/session/session.go:514\ngithub.com/pingcap/tidb/pkg/session.(*session).doCommitWithRetry\n\tpkg/session/session.go:787\ngithub.com/pingcap/tidb/pkg/session.(*session).CommitTxn\n\tpkg/session/session.go:917\ngithub.com/pingcap/tidb/pkg/session.autoCommitAfterStmt\n\tpkg/session/tidb.go:281\ngithub.com/pingcap/tidb/pkg/session.finishStmt\n\tpkg/session/tidb.go:243\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2311\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecToErr\n\tpkg/testkit/testkit.go:436\ngithub.com/pingcap/tidb/pkg/ddl_test.TestTxnScopeConstraint\n\tpkg/ddl/placement_sql_test.go:138\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [IsBatchInsert=false] [IsPessimistic=true] [InRestrictedSQL=false] [tidb_retry_limit=10] [tidb_disable_txn_auto_retry=true] [2024/05/06 09:24:55.245 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[ddl:8236]Placement policy didn't meet the constraint, reason: table t1's partition p0's leader location sh is out of txn_scope bj"] [errorVerbose="[ddl:8236]Placement policy didn't meet the constraint, reason: table t1's partition p0's leader location sh is out of txn_scope bj\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.(*Error).GenWithStackByArgs\n\texternal/com_github_pingcap_errors/normalize.go:175\ngithub.com/pingcap/tidb/pkg/session.(*session).checkPlacementPolicyBeforeCommit\n\tpkg/session/session.go:4073\ngithub.com/pingcap/tidb/pkg/session.(*session).doCommit\n\tpkg/session/session.go:514\ngithub.com/pingcap/tidb/pkg/session.(*session).doCommitWithRetry\n\tpkg/session/session.go:787\ngithub.com/pingcap/tidb/pkg/session.(*session).CommitTxn\n\tpkg/session/session.go:917\ngithub.com/pingcap/tidb/pkg/session.autoCommitAfterStmt\n\tpkg/session/tidb.go:281\ngithub.com/pingcap/tidb/pkg/session.finishStmt\n\tpkg/session/tidb.go:243\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2311\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecToErr\n\tpkg/testkit/testkit.go:436\ngithub.com/pingcap/tidb/pkg/ddl_test.TestTxnScopeConstraint\n\tpkg/ddl/placement_sql_test.go:138\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650"] [2024/05/06 09:24:55.245 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=56] [error="previous statement: insert into t1 (c) values (1): [ddl:8236]Placement policy didn't meet the constraint, reason: table t1's partition p0's leader location sh is out of txn_scope bj"] [errorVerbose="[ddl:8236]Placement policy didn't meet the constraint, reason: table t1's partition p0's leader location sh is out of txn_scope bj\ngithub.com/pingcap/errors.AddStack\n\texternal/com_github_pingcap_errors/errors.go:178\ngithub.com/pingcap/errors.(*Error).GenWithStackByArgs\n\texternal/com_github_pingcap_errors/normalize.go:175\ngithub.com/pingcap/tidb/pkg/session.(*session).checkPlacementPolicyBeforeCommit\n\tpkg/session/session.go:4073\ngithub.com/pingcap/tidb/pkg/session.(*session).doCommit\n\tpkg/session/session.go:514\ngithub.com/pingcap/tidb/pkg/session.(*session).doCommitWithRetry\n\tpkg/session/session.go:787\ngithub.com/pingcap/tidb/pkg/session.(*session).CommitTxn\n\tpkg/session/session.go:917\ngithub.com/pingcap/tidb/pkg/session.autoCommitAfterStmt\n\tpkg/session/tidb.go:281\ngithub.com/pingcap/tidb/pkg/session.finishStmt\n\tpkg/session/tidb.go:243\ngithub.com/pingcap/tidb/pkg/session.runStmt\n\tpkg/session/session.go:2311\ngithub.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt\n\tpkg/session/session.go:2141\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecWithContext\n\tpkg/testkit/testkit.go:390\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).Exec\n\tpkg/testkit/testkit.go:363\ngithub.com/pingcap/tidb/pkg/testkit.(*TestKit).ExecToErr\n\tpkg/testkit/testkit.go:436\ngithub.com/pingcap/tidb/pkg/ddl_test.TestTxnScopeConstraint\n\tpkg/ddl/placement_sql_test.go:138\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1595\nruntime.goexit\n\tsrc/runtime/asm_amd64.s:1650\nprevious statement: insert into t1 (c) values (1)"] [session="{\n \"currDBName\": \"test\",\n \"id\": 14,\n \"status\": 0,\n \"strictMode\": true,\n \"user\": null\n}"] [2024/05/06 09:24:55.250 +00:00] [INFO] [set.go:170] ["set global var"] [conn=14] [name=tidb_enable_local_txn] [val=off] [2024/05/06 09:24:55.250 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=14] [schemaVersion=56] [cur_db=test] [sql="drop table if exists t1"] [user=] [2024/05/06 09:24:55.253 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:114, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:55.252 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:55.254 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:114, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:55.252 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="drop table if exists t1"] [2024/05/06 09:24:55.260 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 76, tp general"] [category=ddl] [jobID=114] [conn=14] [category=ddl] [job="ID:114, Type:drop table, State:queueing, SchemaState:public, SchemaID:2, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:55.252 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:55.262 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=56] [neededSchemaVersion=57] ["start time"=159.532µs] [gotSchemaVersion=57] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:55.263 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=114] [version=57] [2024/05/06 09:24:55.264 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=57] ["take time"=2.178766ms] [job="ID:114, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:106, RowCount:0, ArgLen:2, start time: 2024-05-06 09:24:55.252 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:55.269 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 76, tp general"] [category=ddl] [jobID=114] [conn=14] [category=ddl] [job="ID:114, Type:drop table, State:running, SchemaState:write only, SchemaID:2, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:55.252 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:55.272 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=57] [neededSchemaVersion=58] ["start time"=45.631µs] [gotSchemaVersion=58] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:55.273 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=114] [version=58] [2024/05/06 09:24:55.274 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=58] ["take time"=2.047582ms] [job="ID:114, Type:drop table, State:running, SchemaState:delete only, SchemaID:2, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:55.252 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:55.285 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 76, tp general"] [category=ddl] [jobID=114] [conn=14] [category=ddl] [job="ID:114, Type:drop table, State:running, SchemaState:delete only, SchemaID:2, TableID:106, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:55.252 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:55.287 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=58] [neededSchemaVersion=59] ["start time"=51.216µs] [gotSchemaVersion=59] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:24:55.288 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=114] [version=59] [2024/05/06 09:24:55.295 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=59] ["take time"=8.366861ms] [job="ID:114, Type:drop table, State:done, SchemaState:none, SchemaID:2, TableID:106, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:55.252 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:55.301 +00:00] [INFO] [delete_range.go:447] ["insert into delete-range table"] [category=ddl] [jobID=114] [tableIDs="[107,108,109,110]"] [comment="drop table: partition table IDs"] [2024/05/06 09:24:55.303 +00:00] [INFO] [delete_range.go:447] ["insert into delete-range table"] [category=ddl] [jobID=114] [tableIDs="[106]"] [comment="drop table: table ID"] [2024/05/06 09:24:55.303 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=114] [jobType="drop table"] [2024/05/06 09:24:55.304 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 76, tp general"] [category=ddl] [jobID=114] [conn=14] [job="ID:114, Type:drop table, State:synced, SchemaState:none, SchemaID:2, TableID:106, RowCount:0, ArgLen:3, start time: 2024-05-06 09:24:55.252 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:55.310 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=114] [2024/05/06 09:24:55.310 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:55.312 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=114] [elementID=1] [startKey=74800000000000006b] [endKey=74800000000000006c] [2024/05/06 09:24:55.315 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=114] [elementID=2] [startKey=74800000000000006c] [endKey=74800000000000006d] [2024/05/06 09:24:55.318 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=114] [elementID=3] [startKey=74800000000000006d] [endKey=74800000000000006e] [2024/05/06 09:24:55.320 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=114] [elementID=4] [startKey=74800000000000006e] [endKey=74800000000000006f] [2024/05/06 09:24:55.323 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=114] [elementID=5] [startKey=74800000000000006a] [endKey=74800000000000006b] [2024/05/06 09:24:55.324 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:115, Type:drop placement policy, State:queueing, SchemaState:none, SchemaID:1, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:55.323 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:55.324 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:115, Type:drop placement policy, State:queueing, SchemaState:none, SchemaID:1, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:55.323 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="drop placement policy if exists p1"] [2024/05/06 09:24:55.332 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 76, tp general"] [category=ddl] [jobID=115] [conn=14] [category=ddl] [job="ID:115, Type:drop placement policy, State:queueing, SchemaState:none, SchemaID:1, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:55.323 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:55.338 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=59] [neededSchemaVersion=60] ["start time"=34.763µs] [gotSchemaVersion=60] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop placement policy\"]"] [2024/05/06 09:24:55.339 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=115] [version=60] [2024/05/06 09:24:55.342 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=60] ["take time"=3.495549ms] [job="ID:115, Type:drop placement policy, State:running, SchemaState:write only, SchemaID:1, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:55.323 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:55.350 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 76, tp general"] [category=ddl] [jobID=115] [conn=14] [category=ddl] [job="ID:115, Type:drop placement policy, State:running, SchemaState:write only, SchemaID:1, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:55.323 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:55.369 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=60] [neededSchemaVersion=61] ["start time"=36.647µs] [gotSchemaVersion=61] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop placement policy\"]"] [2024/05/06 09:24:55.371 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=115] [version=61] [2024/05/06 09:24:55.372 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=61] ["take time"=2.683861ms] [job="ID:115, Type:drop placement policy, State:running, SchemaState:delete only, SchemaID:1, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:55.323 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:55.379 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 76, tp general"] [category=ddl] [jobID=115] [conn=14] [category=ddl] [job="ID:115, Type:drop placement policy, State:running, SchemaState:delete only, SchemaID:1, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:55.323 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:55.389 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=61] [neededSchemaVersion=62] ["start time"=32.545µs] [gotSchemaVersion=62] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop placement policy\"]"] [2024/05/06 09:24:55.390 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=115] [version=62] [2024/05/06 09:24:55.393 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=62] ["take time"=3.581274ms] [job="ID:115, Type:drop placement policy, State:done, SchemaState:none, SchemaID:1, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:55.323 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:55.403 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 76, tp general"] [category=ddl] [jobID=115] [conn=14] [job="ID:115, Type:drop placement policy, State:synced, SchemaState:none, SchemaID:1, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:55.323 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:55.410 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=115] [2024/05/06 09:24:55.411 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:55.423 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:116, Type:drop placement policy, State:queueing, SchemaState:none, SchemaID:2, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:55.419 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:24:55.423 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:116, Type:drop placement policy, State:queueing, SchemaState:none, SchemaID:2, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:24:55.419 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="drop placement policy if exists p2"] [2024/05/06 09:24:55.436 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 76, tp general"] [category=ddl] [jobID=116] [conn=14] [category=ddl] [job="ID:116, Type:drop placement policy, State:queueing, SchemaState:none, SchemaID:2, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:55.419 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:55.443 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=62] [neededSchemaVersion=63] ["start time"=40.96µs] [gotSchemaVersion=63] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop placement policy\"]"] [2024/05/06 09:24:55.444 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=116] [version=63] [2024/05/06 09:24:55.446 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=63] ["take time"=2.771164ms] [job="ID:116, Type:drop placement policy, State:running, SchemaState:write only, SchemaID:2, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:55.419 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:55.452 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 76, tp general"] [category=ddl] [jobID=116] [conn=14] [category=ddl] [job="ID:116, Type:drop placement policy, State:running, SchemaState:write only, SchemaID:2, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:55.419 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:55.463 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=63] [neededSchemaVersion=64] ["start time"=30.647µs] [gotSchemaVersion=64] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop placement policy\"]"] [2024/05/06 09:24:55.464 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=116] [version=64] [2024/05/06 09:24:55.465 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=64] ["take time"=2.574854ms] [job="ID:116, Type:drop placement policy, State:running, SchemaState:delete only, SchemaID:2, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:55.419 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:55.471 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 76, tp general"] [category=ddl] [jobID=116] [conn=14] [category=ddl] [job="ID:116, Type:drop placement policy, State:running, SchemaState:delete only, SchemaID:2, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:55.419 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:55.481 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=64] [neededSchemaVersion=65] ["start time"=32.469µs] [gotSchemaVersion=65] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop placement policy\"]"] [2024/05/06 09:24:55.482 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=116] [version=65] [2024/05/06 09:24:55.483 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=65] ["take time"=2.405906ms] [job="ID:116, Type:drop placement policy, State:done, SchemaState:none, SchemaID:2, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:55.419 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:55.489 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 76, tp general"] [category=ddl] [jobID=116] [conn=14] [job="ID:116, Type:drop placement policy, State:synced, SchemaState:none, SchemaID:2, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:24:55.419 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:24:55.492 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=116] [2024/05/06 09:24:55.492 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:24:55.495 +00:00] [INFO] [mock.go:106] ["owner manager is canceled"] [category=ddl] [ID=43749419-a7c6-4e92-925c-7e1fd3a34641] [ownerKey=/tidb/ddl/fg/owner] [2024/05/06 09:24:55.495 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:55.495 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 77, tp add index"] [category=ddl] ["take time"=5.93µs] [2024/05/06 09:24:55.495 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 78, tp add index"] [category=ddl] ["take time"=4.193µs] [2024/05/06 09:24:55.495 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 79, tp add index"] [category=ddl] ["take time"=3.879µs] [2024/05/06 09:24:55.495 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 80, tp add index"] [category=ddl] ["take time"=4.538µs] [2024/05/06 09:24:55.495 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:55.495 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 76, tp general"] [category=ddl] ["take time"=1.593µs] [2024/05/06 09:24:55.496 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:24:55.496 +00:00] [INFO] [delete_range.go:162] ["closing delRange"] [category=ddl] [2024/05/06 09:24:55.496 +00:00] [INFO] [session_pool.go:99] ["closing session pool"] [category=ddl] [2024/05/06 09:24:55.497 +00:00] [INFO] [ddl.go:951] ["DDL closed"] [category=ddl] [ID=43749419-a7c6-4e92-925c-7e1fd3a34641] ["take time"=4.410187ms] [2024/05/06 09:24:55.497 +00:00] [INFO] [ddl.go:769] ["stop DDL"] [category=ddl] [ID=43749419-a7c6-4e92-925c-7e1fd3a34641] [2024/05/06 09:24:55.497 +00:00] [INFO] [domain.go:1026] ["stopping ttlJobManager"] [2024/05/06 09:24:55.497 +00:00] [INFO] [task_manager.go:194] ["shrink ttl worker"] [ttl-worker=job-manager] [ttl-worker=task-manager] [originalCount=4] [newCount=0] [2024/05/06 09:24:55.497 +00:00] [INFO] [scan.go:309] ["ttlScanWorker loop exited."] [2024/05/06 09:24:55.497 +00:00] [INFO] [scan.go:309] ["ttlScanWorker loop exited."] [2024/05/06 09:24:55.497 +00:00] [INFO] [scan.go:309] ["ttlScanWorker loop exited."] [2024/05/06 09:24:55.497 +00:00] [INFO] [scan.go:309] ["ttlScanWorker loop exited."] [2024/05/06 09:24:55.497 +00:00] [INFO] [task_manager.go:194] ["shrink ttl worker"] [ttl-worker=job-manager] [ttl-worker=task-manager] [originalCount=4] [newCount=0] [2024/05/06 09:24:55.498 +00:00] [INFO] [del.go:261] ["ttlDeleteWorker loop exited."] [2024/05/06 09:24:55.498 +00:00] [INFO] [del.go:261] ["ttlDeleteWorker loop exited."] [2024/05/06 09:24:55.498 +00:00] [INFO] [del.go:261] ["ttlDeleteWorker loop exited."] [2024/05/06 09:24:55.498 +00:00] [INFO] [del.go:261] ["ttlDeleteWorker loop exited."] [2024/05/06 09:24:55.499 +00:00] [INFO] [job_manager.go:174] ["ttlJobManager loop exited."] [ttl-worker=job-manager] [2024/05/06 09:24:55.499 +00:00] [INFO] [domain.go:1037] ["ttlJobManager exited."] [2024/05/06 09:24:55.499 +00:00] [INFO] [manager.go:280] ["recoverMetaLoop done"] [server-id=:4000] [2024/05/06 09:24:55.499 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=mdlCheckLoop] [2024/05/06 09:24:55.499 +00:00] [INFO] [domain.go:907] ["loadSchemaInLoop exited."] [2024/05/06 09:24:55.499 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=loadSchemaInLoop] [2024/05/06 09:24:55.499 +00:00] [INFO] [domain.go:1527] ["stopping dist task executor manager"] [2024/05/06 09:24:55.499 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=loadSigningCertLoop] [2024/05/06 09:24:55.499 +00:00] [INFO] [stats_syncload.go:202] ["SubLoadWorker exited."] [2024/05/06 09:24:55.499 +00:00] [INFO] [stats_syncload.go:202] ["SubLoadWorker exited."] [2024/05/06 09:24:55.499 +00:00] [INFO] [stats_syncload.go:202] ["SubLoadWorker exited."] [2024/05/06 09:24:55.499 +00:00] [INFO] [stats_syncload.go:202] ["SubLoadWorker exited."] [2024/05/06 09:24:55.499 +00:00] [INFO] [mock.go:106] ["owner manager is canceled"] [category=ddl] [ID=43749419-a7c6-4e92-925c-7e1fd3a34641] [ownerKey=/tidb/stats/owner] [2024/05/06 09:24:55.499 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=quitStatsOwner] [2024/05/06 09:24:55.499 +00:00] [INFO] [stats_syncload.go:202] ["SubLoadWorker exited."] [2024/05/06 09:24:55.500 +00:00] [INFO] [domain.go:2352] ["indexUsageWorker exited."] [2024/05/06 09:24:55.500 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=indexUsageWorker] [2024/05/06 09:24:55.500 +00:00] [INFO] [domain.go:2074] ["dumpFileGcChecker exited."] [2024/05/06 09:24:55.500 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=dumpFileGcChecker] [2024/05/06 09:24:55.500 +00:00] [INFO] [domain.go:1750] ["LoadSysVarCacheLoop exited."] [2024/05/06 09:24:55.500 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=LoadSysVarCacheLoop] [2024/05/06 09:24:55.500 +00:00] [INFO] [domain.go:711] ["infoSyncerKeeper exited."] [2024/05/06 09:24:55.500 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=infoSyncerKeeper] [2024/05/06 09:24:55.500 +00:00] [INFO] [domain.go:1700] ["loadPrivilegeInLoop exited."] [2024/05/06 09:24:55.500 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=loadPrivilegeInLoop] [2024/05/06 09:24:55.500 +00:00] [INFO] [mock.go:106] ["owner manager is canceled"] [category=ddl] [ID=43749419-a7c6-4e92-925c-7e1fd3a34641] [ownerKey=/tidb/bindinfo/owner] [2024/05/06 09:24:55.500 +00:00] [INFO] [domain.go:1889] ["globalBindHandleWorkerLoop exited."] [2024/05/06 09:24:55.500 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=globalBindHandleWorkerLoop] [2024/05/06 09:24:55.500 +00:00] [INFO] [domain.go:761] ["topologySyncerKeeper exited."] [2024/05/06 09:24:55.500 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=topologySyncerKeeper] [2024/05/06 09:24:55.500 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=runawayStartLoop] [2024/05/06 09:24:55.500 +00:00] [INFO] [domain.go:737] ["globalConfigSyncerKeeper exited."] [2024/05/06 09:24:55.501 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=globalConfigSyncerKeeper] [2024/05/06 09:24:55.500 +00:00] [INFO] [domain.go:1361] ["closestReplicaReadCheckLoop exited."] [2024/05/06 09:24:55.501 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=closestReplicaReadCheckLoop] [2024/05/06 09:24:55.500 +00:00] [INFO] [domain.go:683] ["topNSlowQueryLoop exited."] [2024/05/06 09:24:55.501 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=topNSlowQueryLoop] [2024/05/06 09:24:55.500 +00:00] [INFO] [manager.go:179] ["handle tasks loop done"] [server-id=:4000] [2024/05/06 09:24:55.501 +00:00] [INFO] [domain.go:1529] ["dist task executor manager stopped"] [2024/05/06 09:24:55.501 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=distTaskFrameworkLoop] [2024/05/06 09:24:55.501 +00:00] [INFO] [domain.go:1074] ["domain closed"] ["take time"=9.112999ms] [2024/05/06 09:24:55.503 +00:00] [INFO] [db.go:567] ["Closing database"] [2024/05/06 09:24:55.503 +00:00] [INFO] [db.go:592] ["Memtable flushed"] [2024/05/06 09:24:55.503 +00:00] [INFO] [db.go:596] ["Compaction finished"] [2024/05/06 09:24:55.503 +00:00] [INFO] [db.go:615] ["BlobManager finished"] [2024/05/06 09:24:55.503 +00:00] [INFO] [db.go:619] ["ResourceManager finished"] [2024/05/06 09:24:55.503 +00:00] [INFO] [db.go:625] ["Waiting for closer"] --- PASS: TestTxnScopeConstraint (3.14s) FAIL coverage: 12.3% of statements -- Coverage runner: Not collecting coverage for failed test. The following commands failed with status 1 /home/jenkins/.tidb/tmp/63a9840cd0739f2c243bb46478607469/sandbox/linux-sandbox/11086/execroot/__main__/bazel-out/k8-fastbuild/bin/pkg/ddl/ddl_test_/ddl_test.runfiles/__main__/pkg/ddl/ddl_test_/ddl_test ================================================================================